/* 全国公共资源交易中心导航 - 自定义样式 */

/* 全局样式 */
body {
    font-family: "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 头部样式 */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.header-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 卡片样式增强 */
.uk-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.uk-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.uk-card-header {
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

/* 按钮样式增强 */
.uk-button {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
}

.uk-button-primary {
    background: linear-gradient(135deg, #1e87f0 0%, #0f6ecd 100%);
    border: none;
}

.uk-button-primary:hover {
    background: linear-gradient(135deg, #0f6ecd 0%, #0d5aa7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 135, 240, 0.3);
}

.uk-button-default {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #666;
}

.uk-button-default:hover {
    background: #f8f9fa;
    border-color: #1e87f0;
    color: #1e87f0;
}

/* 表单样式增强 */
.uk-input, .uk-select, .uk-textarea {
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    font-size: 14px;
}

.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.1);
}

/* 搜索框样式 */
.uk-search-input {
    border-radius: 25px;
    padding-left: 40px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
}

.uk-search-input:focus {
    background: #fff;
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.1);
}

/* 选择框样式 */
.district-select {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.district-select:hover {
    border-color: #1e87f0;
}

.district-select.active {
    border-color: #1e87f0;
    background: #f8f9ff;
}

/* 交易中心列表样式 */
.center-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.center-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1e87f0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.center-item:hover {
    background: #f8f9ff;
    border-color: #1e87f0;
    transform: translateX(5px);
}

.center-item:hover::before {
    transform: scaleY(1);
}

.center-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.center-item .uk-text-meta {
    color: #666;
    font-size: 0.9rem;
}

.center-item .uk-text-meta [uk-icon] {
    margin-right: 5px;
    color: #1e87f0;
}

/* 地图容器样式 */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

/* 面包屑导航样式 */
.breadcrumb-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.uk-breadcrumb > li > a {
    color: #1e87f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.uk-breadcrumb > li > a:hover {
    color: #0f6ecd;
}

/* 统计卡片样式 */
.stats-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* 留言表单样式 */
.form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.uk-fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.uk-legend {
    font-weight: 600;
    color: #333;
    padding: 0 15px;
}

/* 加载状态样式 */
.loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading [uk-spinner] {
    margin-bottom: 15px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state [uk-icon] {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 60px;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #5dade2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .header-section p {
        font-size: 1rem;
    }
    
    .center-item {
        padding: 15px;
    }
    
    .center-item:hover {
        transform: none;
    }
    
    .map-container {
        height: 400px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.info-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 通知样式增强 */
.uk-notification-message {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 模态框样式 */
.uk-modal-dialog {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* 标签样式 */
.uk-label {
    border-radius: 4px;
    font-weight: 500;
    padding: 4px 8px;
}

/* 分页样式 */
.uk-pagination > li > a {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.uk-pagination > li > a:hover {
    background: #1e87f0;
    color: white;
    transform: translateY(-1px);
}

/* 工具提示增强 */
.uk-tooltip {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 表格样式 */
.uk-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.uk-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}

.uk-table tbody tr:hover {
    background: #f8f9ff;
}

/* 进度条样式 */
.uk-progress {
    border-radius: 10px;
    overflow: hidden;
}

.uk-progress::-webkit-progress-bar {
    border-radius: 10px;
}

.uk-progress::-webkit-progress-value {
    border-radius: 10px;
    background: linear-gradient(135deg, #1e87f0 0%, #0f6ecd 100%);
}

/* 徽章样式 */
.uk-badge {
    border-radius: 12px;
    font-weight: 500;
    padding: 4px 10px;
}

/* 手风琴样式 */
.uk-accordion-title {
    border-radius: 6px;
    transition: all 0.3s ease;
}

.uk-accordion-title:hover {
    background: #f8f9fa;
}

/* 选项卡样式 */
.uk-tab > li > a {
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
}

.uk-tab > li.uk-active > a {
    background: #1e87f0;
    color: white;
}

/* 下拉菜单样式 */
.uk-dropdown {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: none;
}

.uk-dropdown .uk-nav-default > li > a:hover {
    background: #f8f9ff;
    color: #1e87f0;
}

/* 侧边栏样式 */
.uk-offcanvas-bar {
    background: #2c3e50;
    color: #ecf0f1;
}

.uk-offcanvas-bar .uk-nav-default > li > a {
    color: #ecf0f1;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.uk-offcanvas-bar .uk-nav-default > li > a:hover {
    background: #34495e;
    color: #3498db;
}

/* 图标增强 */
[uk-icon] {
    transition: all 0.3s ease;
}

.icon-hover:hover [uk-icon] {
    transform: scale(1.1);
    color: #1e87f0;
}

/* 文本选择样式 */
::selection {
    background: rgba(30, 135, 240, 0.2);
    color: #333;
}

::-moz-selection {
    background: rgba(30, 135, 240, 0.2);
    color: #333;
}

/* 焦点样式 */
*:focus {
    outline: none;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus,
.uk-button:focus {
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.1);
}

/* 打印样式 */
@media print {
    .header-section,
    .uk-button,
    .breadcrumb-nav,
    footer {
        display: none;
    }
    
    .uk-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .center-item {
        break-inside: avoid;
        margin-bottom: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .uk-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .uk-input,
    .uk-select,
    .uk-textarea {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .center-item {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .center-item:hover {
        background: #363636;
    }
}

/* 可访问性增强 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .uk-button-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .uk-button-default {
        background: #fff;
        border: 2px solid #000;
        color: #000;
    }
    
    .center-item {
        border: 2px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 自定义工具类 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.shadow-strong {
    box-shadow: 0 8px 30px rgba(0,0,0,0.16);
}

.border-radius-lg {
    border-radius: 12px;
}

.border-radius-xl {
    border-radius: 16px;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 性能优化 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}

.contain-strict {
    contain: strict;
}

/* 调试工具 */
.debug-grid {
    background-image: 
        linear-gradient(rgba(255,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.debug-outline * {
    outline: 1px solid red;
}

/* 主题变量（CSS自定义属性） */
:root {
    --primary-color: #1e87f0;
    --primary-dark: #0f6ecd;
    --secondary-color: #667eea;
    --success-color: #32d296;
    --warning-color: #faa05a;
    --danger-color: #f0506e;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-color: #e5e5e5;
    --text-color: #333;
    --text-muted: #666;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-strong: 0 8px 30px rgba(0,0,0,0.16);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: "微软雅黑", "Helvetica Neue", Arial, sans-serif;
}

/* 使用CSS变量的示例 */
.themed-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-family: var(--font-family);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.themed-button:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.themed-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.themed-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}