/* 基础样式 - 高科技风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 网格背景 */
.content-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 123, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
    padding: 1.2rem 0;
    box-shadow: 0 5px 30px rgba(0, 123, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.8rem;
    color: #007bff;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8)); }
}

.logo-text h1 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #666;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    color: #007bff;
}

.nav-link i {
    font-size: 1.1rem;
    color: #007bff;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
}

/* 数据仪表盘标题 */
.dashboard-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.dashboard-title h2 {
    font-size: 2.2rem;
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.dashboard-title p {
    color: #666;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* 数据卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-up {
    color: #28a745;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.trend-down {
    color: #dc3545;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 图表区域选择栏 */
.chart-selector {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.selector-label {
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-label i {
    color: #007bff;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.selector-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selector-tab {
    padding: 8px 16px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.selector-tab:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.selector-tab.active {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
    border-color: #007bff;
}

/* 图表区域 */
.charts-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 320px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.chart-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

.chart-container:hover::after {
    left: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

.chart-title {
    font-size: 1.1rem;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.chart-controls {
    display: flex;
    gap: 6px;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.chart-btn {
    padding: 5px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    transform: translateY(-1px);
}

.chart-btn.active {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.chart-wrapper {
    height: 220px;
    position: relative;
}

/* 数据分析报告 */
.report-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.report-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0, 123, 255, 0.1);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.report-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.report-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.report-tab:hover {
    color: #007bff;
    transform: translateY(-1px);
}

.report-tab.active {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

.report-tab.active::before {
    opacity: 1;
}

.report-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.report-content {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* 实时监测数据面板 */
.realtime-monitor {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    color: #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.realtime-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.realtime-monitor::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
}

.monitor-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.monitor-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.monitor-stat {
    background: rgba(0, 123, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.monitor-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.monitor-stat:hover::after {
    left: 100%;
}

.monitor-stat:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.monitor-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.monitor-stat-title {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #666;
}

.monitor-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.monitor-stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.change-up {
    color: #28a745;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.change-down {
    color: #dc3545;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.monitor-stat-detail {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
    color: #666;
}

.monitor-locations {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.location-item:hover {
    background: rgba(0, 123, 255, 0.1);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.location-item:last-child {
    border-bottom: none;
}

.location-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.location-name i {
    color: #007bff;
}

.location-value {
    font-weight: 600;
    color: #007bff;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* 报告项目卡片 */
.report-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    position: relative;
}

.report-item::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: width 0.5s ease;
}

.report-item:hover::before {
    width: 100%;
}

.report-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.report-item-title {
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.report-item-content {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* 预测分析 - 可折叠设计 */
.prediction-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    color: #333;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.prediction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.prediction-section.collapsed {
    height: 140px;
    overflow: hidden;
    cursor: pointer;
}

.prediction-section.collapsed:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

.prediction-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    border-radius: 0 0 0 200px;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.prediction-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.prediction-title:hover {
    transform: translateX(5px);
}

.collapse-toggle {
    background: rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.collapse-toggle:hover {
    background: rgba(0, 123, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    color: white;
}

.prediction-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.prediction-section.collapsed .prediction-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
}

.prediction-chart {
    background: rgba(0, 123, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    height: 280px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.prediction-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prediction-stat {
    background: rgba(0, 123, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.prediction-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.prediction-stat:hover::after {
    left: 100%;
}

.prediction-stat:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.prediction-stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.prediction-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    color: #333;
}

.prediction-stat-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
    color: #666;
}

/* AI助手悬浮窗 */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-toggle-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #ffd43b, #ffb347) !important;
    color: #1a5fb4 !important;
    border: 2px solid rgba(255, 212, 59, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    z-index: 9999 !important;
    box-shadow: 
        0 10px 30px rgba(255, 212, 59, 0.4),
        0 0 20px rgba(255, 179, 71, 0.2),
        0 0 40px rgba(255, 212, 59, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    /* 确保固定位置不受其他元素影响 */
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* 确保按钮始终显示在最前面 */
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ai-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(0, 123, 255, 0.6),
        0 0 30px rgba(0, 198, 255, 0.3);
    border-color: #007bff;
}

.ai-toggle-btn:hover::before {
    left: 100%;
}

.ai-toggle-btn i {
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ai-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.ai-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-header {
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    color: white;
    padding: 15px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.ai-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.ai-controls {
    display: flex;
    gap: 10px;
}

.ai-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.ai-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ai-message.bot {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    color: #333;
}

.ai-message.user {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.ai-input-area {
    border-top: 1px solid rgba(0, 123, 255, 0.3);
    padding-top: 15px;
}

.ai-input-group {
    display: flex;
    gap: 10px;
}

.ai-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.ai-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.ai-send {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.ai-quick-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.ai-quick-btn {
    padding: 8px 12px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    transition: all 0.3s ease;
}

.ai-quick-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    color: #666;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff, #28a745);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 198, 255, 0.1) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #007bff;
    padding-left: 10px;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.footer-about {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 123, 255, 0.2);
    font-size: 0.95rem;
    color: #666;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .report-body { grid-template-columns: 1fr; }
    .prediction-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .dashboard-title h2 { font-size: 1.8rem; }
    .chart-container { height: 350px; }
    .chart-wrapper { height: 250px; }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .dashboard-title h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    .chart-container {
        height: 320px;
    }
    .chart-wrapper {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .report-tabs { 
        flex-direction: column; 
        width: 100%;
        gap: 5px;
    }
    .report-tab { 
        width: 100%; 
        justify-content: center;
        padding: 8px 16px;
    }
    .chart-selector { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 15px;
    }
    .selector-tabs { 
        width: 100%; 
        flex-wrap: wrap;
        gap: 8px;
    }
    .selector-tab { 
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .ai-window { 
        width: 90vw; 
        right: 5vw; 
        bottom: 20px;
        max-height: 70vh;
    }
    .footer-content { grid-template-columns: 1fr; }
    .dashboard-title h2 {
        font-size: 1.4rem;
    }
    .dashboard-title p {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-value {
        font-size: 1.8rem;
    }
    .chart-container {
        padding: 15px;
        height: 300px;
    }
    .chart-wrapper {
        height: 200px;
    }
    .chart-title {
        font-size: 1rem;
    }
    .report-section {
        padding: 20px;
    }
    .prediction-section {
        padding: 20px;
    }
    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .nav-link i {
        font-size: 1rem;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
    .logo-text p {
        font-size: 0.8rem;
    }
    .dashboard-title h2 {
        font-size: 1.2rem;
    }
    .stat-value {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .chart-container {
        height: 280px;
    }
    .chart-wrapper {
        height: 180px;
    }
    .chart-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .report-item-title {
        font-size: 1rem;
    }
    .report-item-content {
        font-size: 0.9rem;
    }
    .monitor-stat-value {
        font-size: 1.6rem;
    }
    .location-name span {
        font-size: 0.9rem;
    }
    .location-value {
        font-size: 0.9rem;
    }
    .prediction-stat-value {
        font-size: 1.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #165dff, #00ffea);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffea, #165dff);
}

/* 图表颜色主题 */
.chart-container canvas {
    filter: drop-shadow(0 0 10px rgba(0, 255, 234, 0.2));
}

/* 动画效果 */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

.count-up {
    font-variant-numeric: tabular-nums;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 234, 0.3);
    border-radius: 50%;
    border-top-color: #00ffea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 按钮通用样式 */
.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #165dff, #00ffea);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 107, 190, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 107, 190, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* 输入框通用样式 */
.input {
    padding: 10px 15px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(16, 107, 190, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: #00ffea;
    box-shadow: 0 0 0 3px rgba(0, 255, 234, 0.2);
}

/* 卡片通用样式 */
.card {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 107, 190, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 107, 190, 0.3);
    border-color: #00ffea;
}

/* 数据看板样式 */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dashboard-row:first-child {
    grid-template-columns: 1fr 1fr 1fr;
}

.dashboard-row:nth-child(2) {
    grid-template-columns: 2fr 1fr;
}

.dashboard-row:last-child {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.4);
}

.dashboard-card.large {
    grid-column: span 1;
}

.dashboard-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.dashboard-card-header h4 {
    color: #007bff;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card-body {
    min-height: 200px;
}

/* 排行样式 */
.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.rank-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.rank-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.rank-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.rank-name {
    flex: 1;
    margin-left: 15px;
    font-weight: 600;
    color: #333;
}

.rank-value {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 仪表盘样式 */
.gauge-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gauge-item {
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
}

.gauge-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.gauge-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gauge-bar {
    height: 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.gauge-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 4px;
    width: inherit;
}

/* 实时监测样式 */
.realtime-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.realtime-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.realtime-stat-item:hover {
    background: rgba(0, 123, 255, 0.1);
}

.realtime-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.realtime-stat-info {
    flex: 1;
}

.realtime-stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.realtime-stat-label {
    color: #666;
    font-size: 0.85rem;
}

.realtime-stat-trend {
    font-size: 0.9rem;
    font-weight: 600;
}

.realtime-stat-trend.trend-up {
    color: #28a745;
}

.realtime-stat-trend.trend-down {
    color: #dc3545;
}

/* 位置统计样式 */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-name {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 140px;
    color: #333;
    font-weight: 500;
}

.location-name i {
    color: #007bff;
    font-size: 1.1rem;
}

.location-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.location-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.location-count {
    width: 70px;
    text-align: right;
    font-weight: bold;
    color: #007bff;
}

/* 关键日期样式 */
.key-dates {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.key-date {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.key-date:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.key-date-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.key-date-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.key-date-value {
    color: #007bff;
    font-size: 0.95rem;
}

/* 数据看板响应式 */
@media (max-width: 1400px) {
    .dashboard-row {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .dashboard-row:first-child {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

@media (max-width: 1024px) {
    .dashboard-row {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-row:first-child {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .realtime-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-row:first-child {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .rank-item {
        padding: 10px 12px;
    }
    
    .rank-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .gauge-value {
        font-size: 1.5rem;
    }
    
    .realtime-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .realtime-stat-value {
        font-size: 1.2rem;
    }
}