/* ==================== CSS 变量 ==================== */
:root,
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-solid: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --accent-light: #3b82f6;
    --accent-light-rgb: 59, 130, 246;
    --accent-ac: #10b981;
    --accent-ac-rgb: 16, 185, 129;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #8b5cf6;
    --gradient-light: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-ac: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-info: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-bg-solid: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'LXGW WenKai GB Screen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== 背景动画 ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(var(--accent-light-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(var(--accent-ac-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-light);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-ac);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-info);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ==================== 玻璃态效果 ==================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ==================== 应用容器 ==================== */
.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin: 16px;
    border-radius: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

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

.brand-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-ac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-light-rgb), 0.4);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon.spinning svg {
    animation: spin 1s linear infinite;
}

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

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
    display: none;
}

/* ==================== 主内容 ==================== */
.main-content {
    flex: 1;
    padding: 0 16px 16px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== 状态概览卡片 ==================== */
.overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.card-light::before {
    background: var(--gradient-light);
}

.card-ac::before {
    background: var(--gradient-ac);
}

.card-info::before {
    background: var(--gradient-info);
}

.stat-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    top: -50px;
    right: -50px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-glow {
    opacity: 0.5;
}

.light-glow { background: var(--accent-light); }
.ac-glow { background: var(--accent-ac); }
.info-glow { background: var(--accent-info); }

.stat-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
}

.stat-icon {
    font-size: 32px;
    line-height: 1;
    margin-right: auto;
}

.stat-trend-group {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.stat-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--border-color);
}

.trend-value {
    font-size: 14px;
    font-weight: 600;
}

.trend-label {
    font-size: 10px;
    color: var(--text-muted);
}

.trend-up .trend-value { color: var(--success-color); }
.trend-down .trend-value { color: var(--danger-color); }

.stat-body {
    margin-bottom: 16px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-fill { background: var(--gradient-light); }
.ac-fill { background: var(--gradient-ac); }

.stat-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-good {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-ac);
}

.status-normal {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

/* 信息卡片 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 图表控制 ==================== */
.chart-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg-solid);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
    border-color: var(--accent-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-light-rgb), 0.1);
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.btn-group {
    display: flex;
    background: var(--border-color);
    border-radius: 10px;
    padding: 3px;
}

.btn-toggle {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    color: var(--text-primary);
}

.btn-toggle.active {
    background: var(--card-bg-solid);
    color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    display: none;
}

.switch-label {
    width: 40px;
    height: 22px;
    background: var(--border-color);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.switch-label::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.switch:checked + .switch-label {
    background: var(--accent-light);
}

.switch:checked + .switch-label::after {
    transform: translateX(18px);
}

.switch-wrapper span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 图表区域 ==================== */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.chart-container {
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: var(--shadow-xl);
}

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

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-actions {
    display: flex;
    gap: 4px;
}

.btn-sm {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    background: var(--accent-light);
    color: white;
}

.chart {
    width: 100%;
    height: 300px;
}

/* ==================== 统计区域 ==================== */
.stats-section {
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

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

.mini-stat-icon {
    font-size: 24px;
}

.mini-stat-content {
    display: flex;
    flex-direction: column;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: 16px;
    margin: 0 16px 16px;
    border-radius: 16px;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* ==================== Toast 通知 ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--card-bg-solid);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--accent-ac);
}

.toast-error {
    border-left: 4px solid var(--accent-danger);
}

.toast-info {
    border-left: 4px solid var(--accent-light);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .navbar {
        margin: 8px;
        padding: 10px 16px;
    }

    .brand-text {
        font-size: 16px;
    }

    .main-content {
        padding: 0 8px 8px;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 36px;
    }

    .chart-controls {
        flex-direction: column;
        gap: 12px;
    }

    .control-group {
        width: 100%;
        justify-content: space-between;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .chart {
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        margin: 0 8px 8px;
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-wrap: wrap;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

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

.stat-card,
.chart-container,
.mini-stat {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.chart-container:nth-child(1) { animation-delay: 0.4s; }
.chart-container:nth-child(2) { animation-delay: 0.5s; }

.mini-stat:nth-child(1) { animation-delay: 0.6s; }
.mini-stat:nth-child(2) { animation-delay: 0.65s; }
.mini-stat:nth-child(3) { animation-delay: 0.7s; }
.mini-stat:nth-child(4) { animation-delay: 0.75s; }

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== 选择高亮 ==================== */
::selection {
    background: rgba(var(--accent-light-rgb), 0.3);
    color: var(--text-primary);
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-danger);
    color: white;
}

/* ==================== 年度总结报告 ==================== */
.report-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.report-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-ac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-title-icon,
.report-title-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-ac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-select {
    font-size: 28px;
    font-weight: 800;
    background: transparent;
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    padding: 0 8px;
    min-width: 100px;
    vertical-align: middle;
    line-height: 1;
    -webkit-text-fill-color: var(--accent-light);
    display: inline-block;
    text-align: center;
    height: 36px;
}

.year-select:focus {
    outline: none;
}

.year-select option {
    background: var(--card-bg-solid);
    color: var(--text-primary);
    font-size: 16px;
}

.report-date-range {
    font-size: 14px;
    color: var(--text-muted);
}

/* 报告卡片 */
.report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.report-card-icon {
    font-size: 40px;
    line-height: 1;
}

.report-card-content {
    flex: 1;
}

.report-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.report-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.report-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-total {
    background: linear-gradient(135deg, rgba(var(--accent-light-rgb), 0.1), rgba(var(--accent-ac-rgb), 0.1));
    border-color: rgba(var(--accent-light-rgb), 0.3);
}

.card-light {
    background: linear-gradient(135deg, rgba(var(--accent-light-rgb), 0.1), transparent);
    border-color: rgba(var(--accent-light-rgb), 0.2);
}

.card-ac-report {
    background: linear-gradient(135deg, rgba(var(--accent-ac-rgb), 0.1), transparent);
    border-color: rgba(var(--accent-ac-rgb), 0.2);
}

.card-peak {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
    border-color: rgba(245, 158, 11, 0.2);
}

/* 报告区块 */
.report-section {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.report-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.report-chart {
    width: 100%;
    height: 300px;
}

.report-chart-large {
    width: 100%;
    height: 400px;
}

/* 导出按钮 */
.report-actions {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: var(--gradient-light);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-light-rgb), 0.4);
}

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

/* 响应式 - 模态框 */
@media (max-width: 1024px) {
    .report-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 16px;
        padding: 20px;
    }

    .report-header h2 {
        font-size: 22px;
    }

    .report-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-card {
        padding: 16px;
    }

    .report-card-icon {
        font-size: 32px;
    }

    .report-card-value {
        font-size: 22px;
    }

    .report-section {
        padding: 16px;
    }

    .report-chart {
        height: 250px;
    }

    .report-chart-large {
        height: 300px;
    }
}

/* ==================== 房间查询器样式 ==================== */
.room-query-form {
    padding: 0;
}

.query-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.query-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.query-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.query-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.result-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.result-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
    font-family: 'Courier New', monospace;
    background: var(--border-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    word-break: break-all;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--accent-light);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover:not(:disabled) {
    background: var(--accent-ac);
    transform: translateY(-1px);
}

.copy-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.usage-guide {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.usage-guide h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.usage-guide ol {
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.usage-guide li {
    margin-bottom: 8px;
}

.campus-codes {
    margin-top: 20px;
    padding: 16px;
    background: var(--border-color);
    border-radius: 12px;
    border: 1px solid var(--accent-light);
}

.campus-codes h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.campus-codes p {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    margin: 0;
    line-height: 1.5;
}

/* 响应式 - 房间查询器 */
@media (max-width: 768px) {
    .query-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .query-result {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .result-card {
        padding: 16px;
    }

    .result-value {
        font-size: 16px;
        padding: 10px;
    }

    .usage-guide {
        padding: 16px;
    }
}
