* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 50%, #0f1922 100%);
    min-height: 100vh;
    color: #e0e6ed;
}

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

header {
    background: rgba(26, 35, 50, 0.95);
    color: white;
    padding: 22px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(100, 150, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, #64b5f6, #42a5f5, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #b8c5d6;
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(100, 150, 255, 0.15);
    color: #64b5f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 150, 255, 0.2);
}

.nav-btn.active {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 区域标题 */
.section-title {
    color: #e0e6ed;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #42a5f5;
}

/* 区域1: 筛选区 */
.filter-section {
    background: linear-gradient(135deg, rgba(30, 42, 60, 0.85) 0%, rgba(26, 35, 50, 0.75) 100%);
    padding: 20px 28px;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(100, 150, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    color: #8cb4d9;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.filter-group input[type="date"],
.filter-group select {
    padding: 9px 14px;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 8px;
    color: #c8d6e5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(180deg);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: rgba(66, 165, 245, 0.6);
    background: rgba(50, 65, 85, 0.6);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.12), 0 2px 10px rgba(66, 165, 245, 0.08);
}

.filter-hint {
    color: #4a6785;
    font-size: 11px;
    font-style: italic;
    opacity: 0.7;
}

.filter-group select#route-filter {
    min-width: 150px;
    max-height: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.5;
}

.filter-group select#route-filter option {
    padding: 6px 10px;
    background: #1e2a3a;
    color: #c8d6e5;
}

/* 区域2: KPI指标区 */
.kpi-section {
    margin-bottom: 30px;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: rgba(26, 35, 50, 0.95);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(100, 150, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kpi-color);
    opacity: 0.8;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(var(--kpi-rgb), 0.15);
    border-color: rgba(100, 150, 255, 0.35);
}

.kpi-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.kpi-icon.blue { background: rgba(33, 150, 243, 0.15); }
.kpi-icon.orange { background: rgba(255, 112, 67, 0.15); }
.kpi-icon.green { background: rgba(76, 175, 80, 0.15); }
.kpi-icon.purple { background: rgba(171, 71, 188, 0.15); }

.kpi-card:nth-child(1) { --kpi-color: #42a5f5; --kpi-rgb: 66, 165, 245; }
.kpi-card:nth-child(2) { --kpi-color: #ff7043; --kpi-rgb: 255, 112, 67; }
.kpi-card:nth-child(3) { --kpi-color: #66bb6a; --kpi-rgb: 102, 187, 106; }
.kpi-card:nth-child(4) { --kpi-color: #ab47bc; --kpi-rgb: 171, 71, 188; }

.kpi-info {
    flex: 1;
}

.kpi-label {
    color: #90a4ae;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.kpi-trend.up {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.kpi-trend.down {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.15);
}

/* 区域3&4: 图表区通用样式 */
.trend-section,
.structure-section {
    margin-bottom: 30px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

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

.chart-container {
    background: rgba(26, 35, 50, 0.95);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.15);
    position: relative;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-title {
    color: #b0bec5;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.chart-container canvas {
    max-height: 280px;
}

.dash-complaint-section {
    margin-bottom: 30px;
}

.dash-complaint-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dash-stat-card {
    background: rgba(26, 35, 50, 0.95);
    padding: 18px 16px;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.12);
    text-align: center;
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 13px;
    color: #90a4ae;
    margin-top: 4px;
}

/* 区域5: 线路分析区 */
.route-analysis-section {
    margin-bottom: 30px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.15);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 35, 50, 0.95);
}

.analysis-table th,
.analysis-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 150, 255, 0.08);
}

.analysis-table th {
    background: rgba(13, 71, 161, 0.4);
    color: #90caf9;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.analysis-table th:hover {
    background: rgba(21, 101, 192, 0.5);
}

.analysis-table td {
    color: #cfd8dc;
    font-size: 14px;
}

.analysis-table tr:hover {
    background: rgba(100, 150, 255, 0.08);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-normal {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.status-warning {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
}

.status-danger {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.15);
}

.btn-detail {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* 区域6: 明细穿透区 */
.detail-section {
    margin-top: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 按钮样式 */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
}

.btn-edit {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    margin-right: 6px;
    border-radius: 6px;
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* 其他页面表格 */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 35, 50, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.1);
}

th, td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 150, 255, 0.08);
}

th {
    background: rgba(13, 71, 161, 0.4);
    color: #90caf9;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #cfd8dc;
    font-size: 14px;
}

tr:hover {
    background: rgba(100, 150, 255, 0.08);
}

.routes-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: var(--routes-table-max-height, none);
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.12);
    scrollbar-color: rgba(66, 165, 245, 0.45) rgba(13, 30, 55, 0.35);
    scrollbar-width: thin;
}

.routes-table-wrap.is-scroll-limited {
    box-shadow: inset 0 -16px 28px rgba(7, 15, 26, 0.16);
}

.routes-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.routes-table-wrap::-webkit-scrollbar-track {
    background: rgba(13, 30, 55, 0.35);
    border-radius: 999px;
}
.routes-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(66, 165, 245, 0.7), rgba(38, 198, 218, 0.45));
    border-radius: 999px;
}
.routes-table-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(100, 181, 246, 0.9), rgba(38, 198, 218, 0.65));
}

.routes-table-wrap table {
    margin: 0;
}

.routes-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

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

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    cursor: pointer;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46, 125, 50, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f57c00, #e65100);
    color: white;
    cursor: pointer;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 124, 0, 0.5);
}

.btn-accent {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
    cursor: pointer;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 137, 123, 0.5);
}

.news-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-stat-card {
    background: linear-gradient(135deg, rgba(30, 42, 60, 0.7) 0%, rgba(26, 35, 50, 0.6) 100%);
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 10px;
    padding: 14px 22px;
    min-width: 140px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #42a5f5;
}

.news-stat-card .stat-label {
    font-size: 12px;
    color: #78909c;
    margin-top: 2px;
}

.crawl-status-bar {
    background: rgba(30, 42, 60, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 8px;
    padding: 10px 18px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #78909c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crawl-status-bar .status-running {
    color: #ffb74d;
}

.crawl-status-bar .status-idle {
    color: #66bb6a;
}

.crawl-status-bar .status-error {
    color: #ef5350;
}

.crawl-status-bar .status-never {
    color: #78909c;
}

.category-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category-tag.policy {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.category-tag.case {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.category-tag.tech {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.category-tag.other {
    background: rgba(158, 158, 158, 0.15);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.2);
}

.news-title-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.news-title-cell:hover {
    color: #42a5f5;
}

.news-detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.15);
}

.news-detail-header h2 {
    color: #e0e6ed;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #78909c;
}

.news-detail-body {
    color: #b0bec5;
    line-height: 1.8;
    font-size: 14px;
    white-space: pre-wrap;
}

.news-detail-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    background: rgba(66, 165, 245, 0.12);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 8px;
    color: #64b5f6;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.news-detail-link:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #90caf9;
}

.light-mode .news-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 248, 255, 0.7) 100%);
    border: 1px solid rgba(144, 202, 249, 0.2);
}

.light-mode .news-stat-card .stat-value { color: #1565c0; }
.light-mode .news-stat-card .stat-label { color: #546e7a; }

.light-mode .crawl-status-bar {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(144, 202, 249, 0.2);
}

.light-mode .category-tag.policy { background: rgba(33, 150, 243, 0.1); color: #1565c0; border-color: rgba(33, 150, 243, 0.2); }
.light-mode .category-tag.case { background: rgba(76, 175, 80, 0.1); color: #2e7d32; border-color: rgba(76, 175, 80, 0.2); }
.light-mode .category-tag.tech { background: rgba(255, 152, 0, 0.1); color: #e65100; border-color: rgba(255, 152, 0, 0.2); }
.light-mode .category-tag.other { background: rgba(158, 158, 158, 0.1); color: #616161; border-color: rgba(158, 158, 158, 0.2); }

.light-mode .news-title-cell:hover { color: #1565c0; }
.light-mode .news-detail-header h2 { color: #263238; }
.light-mode .news-detail-meta { color: #546e7a; }
.light-mode .news-detail-body { color: #37474f; }
.light-mode .news-detail-link { background: rgba(33, 150, 243, 0.08); border-color: rgba(33, 150, 243, 0.2); color: #1565c0; }
.light-mode .news-detail-link:hover { background: rgba(33, 150, 243, 0.15); }

.import-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.import-result {
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.import-result.success {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
}

.import-result.error {
    border-color: rgba(239, 83, 80, 0.4);
    background: rgba(239, 83, 80, 0.1);
}

.import-result h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.import-result .stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.import-result .stat {
    padding: 8px 16px;
    background: rgba(13, 17, 23, 0.5);
    border-radius: 6px;
}

.import-result .stat strong {
    font-size: 20px;
    margin-left: 8px;
}

.import-result ul {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
    font-size: 13px;
    color: #ef5350;
}

h2 {
    color: #e0e6ed;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.compare-config {
    background: rgba(26, 35, 50, 0.9);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(100, 150, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.compare-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.compare-row-options {
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
}

.compare-group {
    flex: 1;
    min-width: 300px;
    background: rgba(13, 17, 23, 0.5);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(100, 150, 255, 0.1);
}

.compare-label {
    color: #42a5f5;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}

.compare-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-fields label {
    color: #90caf9;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-fields select,
.compare-fields input[type="date"] {
    padding: 8px 12px;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 8px;
    color: #c8d6e5;
    font-size: 13px;
    flex: 1;
    transition: all 0.25s ease;
}

.compare-fields input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(180deg);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.compare-fields input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.compare-fields select:focus,
.compare-fields input[type="date"]:focus {
    outline: none;
    border-color: rgba(66, 165, 245, 0.6);
    background: rgba(50, 65, 85, 0.6);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.12), 0 2px 10px rgba(66, 165, 245, 0.08);
}

.compare-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-self: center;
    padding: 0 10px;
}

.compare-date-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.compare-date-range input[type="date"] {
    width: 140px;
}
.compare-date-sep {
    color: #78909c;
    font-size: 13px;
}
.compare-multi-select-wrap {
    position: relative;
}
.compare-select-btn {
    margin-top: 4px;
}
.compare-multi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 28px;
}
.compare-multi-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(66, 165, 245, 0.2);
    color: #42a5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.compare-multi-tag-remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 2px;
    opacity: 0.7;
}
.compare-multi-tag-remove:hover { opacity: 1; }
.compare-multi-dropdown {
    display: none;
    position: absolute;
    z-index: 200;
    background: rgba(26, 35, 50, 0.98);
    border: 1px solid rgba(66, 165, 245, 0.4);
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 8px;
}
.compare-multi-dropdown.show { display: block; }
.compare-multi-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #b0bec5;
    font-size: 13px;
    margin: 1px 0;
}
.compare-multi-dropdown label:hover {
    background: rgba(66, 165, 245, 0.1);
}
.compare-multi-dropdown input[type="checkbox"] {
    accent-color: #42a5f5;
}
.compare-multi-dropdown-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(100,150,255,0.1);
}
.compare-mode-label {
    color: #90caf9;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.compare-mode-label select {
    padding: 6px 10px;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 14px;
}
.compare-section-title {
    color: #42a5f5;
    font-size: 16px;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}

.compare-result {
    background: rgba(26, 35, 50, 0.9);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.15);
}

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th {
    background: rgba(13, 17, 23, 0.8);
    color: #90caf9;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 2px solid rgba(100, 150, 255, 0.3);
    font-weight: 600;
    white-space: nowrap;
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
    color: #e0e6ed;
}

.compare-table td:first-child {
    text-align: left;
    color: #b0bec5;
}

.compare-table tr:hover {
    background: rgba(66, 165, 245, 0.05);
}

.compare-up {
    color: #ef5350 !important;
    font-weight: 600;
}

.compare-down {
    color: #4caf50 !important;
    font-weight: 600;
}

.analysis-section {
    background: rgba(26, 35, 50, 0.9);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.15);
    margin-top: 20px;
}

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

.analysis-header .section-title {
    margin-bottom: 0;
}

.analysis-actions {
    display: flex;
    gap: 10px;
}

.analysis-output {
    animation: fadeIn 0.4s ease;
}

.analysis-block {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 14px;
    border-left: 4px solid;
}

.analysis-summary {
    background: rgba(66, 165, 245, 0.08);
    border-left-color: #42a5f5;
}

.analysis-changes {
    background: rgba(255, 183, 77, 0.08);
    border-left-color: #ffb74d;
}

.analysis-suggestions {
    background: rgba(239, 83, 80, 0.08);
    border-left-color: #ef5350;
}

.analysis-block-icon {
    font-size: 24px;
    flex-shrink: 0;
    padding-top: 2px;
}

.analysis-block-content {
    flex: 1;
}

.analysis-block-content h4 {
    color: #90caf9;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.analysis-block-content p {
    color: #cfd8dc;
    font-size: 14px;
    line-height: 1.8;
}

.analysis-block-content ul {
    list-style: none;
    padding: 0;
}

.analysis-block-content ul li {
    color: #cfd8dc;
    font-size: 14px;
    line-height: 1.8;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.analysis-block-content ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #90caf9;
    font-weight: bold;
}

.analysis-block-content ul li.risk-item {
    color: #ef5350;
}

.analysis-block-content ul li.risk-item::before {
    content: '⚠';
    left: 0;
    color: #ef5350;
}

.analysis-block-content ul li.good-item {
    color: #4caf50;
}

.analysis-block-content ul li.good-item::before {
    content: '✓';
    left: 0;
    color: #4caf50;
}

.analysis-block-content ul li.warn-item {
    color: #ffb74d;
}

.analysis-block-content ul li.warn-item::before {
    content: '!';
    left: 2px;
    color: #ffb74d;
    font-weight: bold;
}

.analysis-meta {
    text-align: right;
    color: #546e7a;
    font-size: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
}

.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #0a0e27 0%, #0f1741 25%, #131b52 50%, #0c1640 75%, #08102e 100%);
    overflow: hidden;
}

.login-brand {
    position: absolute;
    top: 48px;
    left: 52px;
    z-index: 10;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4), 0 0 30px rgba(66, 165, 245, 0.15);
}

.login-brand h1 {
    color: #e8f0fe;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(66,165,245,0.3);
}

.login-brand p {
    color: #7eb8e8;
    font-size: 15px;
    letter-spacing: 4px;
}

/* ===== 背景装饰层 ===== */
.login-decor {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* --- 城市天际线剪影 --- */
.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.12;
}
.skyline-building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, rgba(100,160,220,0.15) 0%, rgba(40,60,100,0.2) 100%);
    border-radius: 2px 2px 0 0;
}
.skyline-building::before {
    content: '';
    position: absolute;
    top: 10px; left: 5px; right: 5px;
    height: 1px;
    background: rgba(120,180,240,0.12);
    box-shadow: 0 18px 0 rgba(120,180,240,0.08), 0 36px 0 rgba(120,180,240,0.06), 0 54px 0 rgba(120,180,240,0.04);
}
.skyline-window {
    position: absolute;
    width: 3px; height: 4px;
    background: rgba(130,190,255,0.35);
    border-radius: 1px;
    animation: winTwinkle 4s ease-in-out infinite;
}
@keyframes winTwinkle { 0%,100%{opacity:0.35} 50%{opacity:0.9} }

/* --- 流动光轨（核心视觉元素）--- */
.light-trail {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.lt-1 {
    width: 500px; height: 500px;
    top: 50%; left: 45%;
    transform: translate(-50%, -50%) rotate(-25deg);
    background: conic-gradient(from 200deg, transparent 0deg, transparent 60deg,
        rgba(33,150,243,0.18) 80deg, rgba(0,176,255,0.08) 110deg, transparent 140deg, transparent 280deg,
        rgba(99,102,241,0.12) 300deg, rgba(33,150,243,0.06) 330deg, transparent 360deg);
    animation: trailSpin1 12s linear infinite;
    filter: blur(2px);
}
.lt-2 {
    width: 650px; height: 650px;
    top: 48%; left: 42%;
    transform: translate(-50%, -50%) rotate(15deg);
    background: conic-gradient(from 340deg, transparent 0deg, transparent 40deg,
        rgba(123,97,255,0.14) 65deg, rgba(66,165,245,0.06) 95deg, transparent 125deg, transparent 260deg,
        rgba(0,212,255,0.1) 285deg, rgba(99,102,241,0.07) 315deg, transparent 350deg);
    animation: trailSpin2 18s linear infinite reverse;
    filter: blur(3px);
}
.lt-3 {
    width: 420px; height: 420px;
    top: 52%; left: 48%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: conic-gradient(from 120deg, transparent 0deg, transparent 55deg,
        rgba(0,212,255,0.12) 78deg, rgba(66,165,245,0.05) 105deg, transparent 135deg, transparent 250deg,
        rgba(123,97,255,0.09) 278deg, transparent 310deg);
    animation: trailSpin3 15s linear infinite;
    filter: blur(1.5px);
}
@keyframes trailSpin1 { from { transform: translate(-50%, -50%) rotate(-25deg); } to { transform: translate(-50%, -50%) rotate(335deg); } }
@keyframes trailSpin2 { from { transform: translate(-50%, -50%) rotate(15deg); } to { transform: translate(-50%, -50%) rotate(-345deg); } }
@keyframes trailSpin3 { from { transform: translate(-50%, -50%) rotate(-45deg); } to { transform: translate(-50%, -50%) rotate(315deg); } }

/* 光轨上的流动亮点 */
.trail-glow-dot {
    position: absolute;
    width: 80px; height: 80px;
    top: 50%; left: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66,165,245,0.25) 0%, transparent 70%);
    filter: blur(8px);
    animation: glowDotPulse 4s ease-in-out infinite;
}
.tgd-1 { animation-delay: 0s; margin-left: 180px; margin-top: -120px; }
.tgd-2 { animation-delay: 1.5s; margin-left: -200px; margin-top: 80px; }
.tgd-3 { animation-delay: 3s; margin-left: 100px; margin-top: 160px; }
@keyframes glowDotPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

/* --- 发光圆环轨道（中央区域）--- */
.glow-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.gr-1 {
    width: 260px; height: 260px;
    border: 1.5px solid rgba(66,165,245,0.15);
    box-shadow: 0 0 30px rgba(66,165,245,0.05), inset 0 0 20px rgba(66,165,245,0.03);
    animation: ringPulse1 6s ease-in-out infinite;
}
.gr-2 {
    width: 340px; height: 340px;
    border: 1px solid rgba(99,102,241,0.1);
    border-style: dashed;
    animation: ringRotate 25s linear infinite;
}
.gr-3 {
    width: 430px; height: 430px;
    border: 1px solid rgba(0,212,255,0.06);
    animation: ringRotate 35s linear infinite reverse;
}
.gr-4 {
    width: 520px; height: 520px;
    border: 1px solid rgba(66,165,245,0.04);
    animation: ringRotate 45s linear infinite;
}
@keyframes ringPulse1 {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 30px rgba(66,165,245,0.05), inset 0 0 20px rgba(66,165,245,0.03); }
    50% { opacity: 1; box-shadow: 0 0 50px rgba(66,165,245,0.12), inset 0 0 30px rgba(66,165,245,0.06); }
}
@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 轨道上的运行点 */
.ring-dot {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}
.gr-1 .ring-dot { width: 6px; height: 6px; background: #42a5f5; box-shadow: 0 0 10px 3px rgba(66,165,245,0.5); }
.gr-2 .ring-dot { width: 5px; height: 5px; background: #7c6fff; box-shadow: 0 0 8px 2px rgba(124,111,255,0.4); top: 2px; }
.gr-3 .ring-dot { width: 4px; height: 4px; background: rgba(0,212,255,0.6); top: 3px; }

/* --- 中央公交车元素 --- */
.center-bus-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-55%, -50%);
    z-index: 5;
}
.center-bus {
    width: 130px; height: 68px;
    background: linear-gradient(145deg, rgba(33,150,243,0.22) 0%, rgba(21,101,192,0.12) 50%, rgba(13,71,161,0.08) 100%);
    border: 1.5px solid rgba(66,165,245,0.25);
    border-radius: 16px 16px 38px 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
    position: relative;
    backdrop-filter: blur(6px);
    box-shadow:
        0 8px 32px rgba(25,118,210,0.2),
        0 0 60px rgba(66,165,245,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -2px 10px rgba(13,71,161,0.1);
    animation: busFloat 5s ease-in-out infinite;
}
.center-bus::before {
    content: '';
    position: absolute;
    top: 10px; left: 14px; right: 14px; height: 22px;
    background: rgba(100,181,246,0.12);
    border-radius: 6px;
}
.center-bus::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 22px;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(66,165,245,0.3);
    border-radius: 50%;
    box-shadow: 54px 0 0 -2px rgba(66,165,245,0.3);
}
@keyframes busFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

/* 公交车底部光晕 */
.bus-glow-floor {
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 60px;
    background: radial-gradient(ellipse at center top, rgba(66,165,245,0.15) 0%, transparent 70%);
    filter: blur(8px);
}

/* --- 数据网络节点 --- */
.data-node {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66,165,245,0.2) 0%, transparent 70%);
}
.data-node::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 4px;
    background: rgba(66,165,245,0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(66,165,245,0.3);
}
.dn-1 { width: 70px; height: 70px; top: 12%; left: 8%; animation: nodeBreath 5s ease-in-out infinite; }
.dn-2 { width: 55px; height: 55px; top: 22%; right: 10%; animation: nodeBreath 5s ease-in-out infinite 1.2s; }
.dn-3 { width: 85px; height: 85px; bottom: 18%; left: 5%; animation: nodeBreath 5s ease-in-out infinite 2.5s; }
.dn-4 { width: 48px; height: 48px; top: 58%; right: 15%; animation: nodeBreath 5s ease-in-out infinite 0.7s; }
.dn-5 { width: 62px; height: 62px; bottom: 28%; right: 6%; animation: nodeBreath 5s ease-in-out infinite 3s; }
@keyframes nodeBreath {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

/* 节点连接线 */
.node-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(66,165,245,0.06), rgba(66,165,245,0.2), rgba(66,165,245,0.06));
    transform-origin: left center;
}
.nl-1 { top: 17%; left: 11%; width: 180px; transform: rotate(22deg); animation: lineFlicker 4s ease-in-out infinite; }
.nl-2 { top: 38%; left: 8%; width: 230px; transform: rotate(-8deg); animation: lineFlicker 4s ease-in-out infinite 1.3s; }
.nl-3 { bottom: 26%; left: 14%; width: 190px; transform: rotate(12deg); animation: lineFlicker 4s ease-in-out infinite 2.6s; }
.nl-4 { top: 52%; right: 16%; width: 130px; transform: rotate(-18deg); animation: lineFlicker 4s ease-in-out infinite 0.5s; }
.nl-5 { top: 28%; left: 22%; width: 160px; transform: rotate(35deg); animation: lineFlicker 4s ease-in-out infinite 1.8s; }
@keyframes lineFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

/* 流动数据粒子 */
.flow-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: #42a5f5;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(66,165,245,0.4);
    animation: particleFlow 5s linear infinite;
}
.fp-1 { top: 17%; left: 11%; --dx: 170px; --dy: 68px; animation-delay: 0s; }
.fp-2 { top: 38%; left: 8%; --dx: 220px; --dy: -18px; animation-delay: 1.6s; }
.fp-3 { bottom: 26%; left: 14%; --dx: 175px; --dy: -50px; animation-delay: 3.2s; }
@keyframes particleFlow {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; }
}

/* --- 浮动微粒 --- */
.float-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(66,165,245,0.5);
    animation: floatDrift 8s ease-in-out infinite;
}
.ft-1 { width: 2px; height: 2px; top: 15%; left: 20%; animation-delay: 0s; }
.ft-2 { width: 3px; height: 3px; top: 65%; left: 75%; animation-delay: 2s; }
.ft-3 { width: 2px; height: 2px; top: 35%; left: 82%; animation-delay: 4s; }
.ft-4 { width: 3px; height: 3px; top: 72%; left: 22%; animation-delay: 6s; }
.ft-5 { width: 2px; height: 2px; top: 42%; left: 12%; animation-delay: 3s; }
.ft-6 { width: 2px; height: 2px; top: 25%; left: 60%; animation-delay: 5s; }
.ft-7 { width: 3px; height: 3px; top: 80%; left: 55%; animation-delay: 1s; }
.ft-8 { width: 2px; height: 2px; top: 8%; left: 48%; animation-delay: 7s; }
@keyframes floatDrift {
    0%, 100% { opacity: 0.2; transform: translateY(0) translateX(0); }
    25% { opacity: 0.7; transform: translateY(-15px) translateX(8px); }
    50% { opacity: 1; transform: translateY(-25px) translateX(-5px); }
    75% { opacity: 0.6; transform: translateY(-10px) translateX(10px); }
}

/* --- 数据标签文字 --- */
.data-tag {
    position: absolute;
    font-size: 10px;
    color: rgba(120,180,230,0.35);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 1.5px;
    animation: tagFade 6s ease-in-out infinite;
}
.dt-1 { top: 18%; right: 14%; animation-delay: 0s; }
.dt-2 { top: 62%; right: 10%; animation-delay: 2s; }
.dt-3 { bottom: 20%; left: 10%; animation-delay: 4s; }
.dt-4 { top: 30%; left: 8%; animation-delay: 1s; }
.dt-5 { bottom: 38%; right: 22%; animation-delay: 3s; }
@keyframes tagFade {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
}

/* --- 底部数据进度条 --- */
.data-progress-bar {
    position: absolute;
    bottom: 36px; left: 44px; right: 44px;
    display: flex; gap: 6px;
    align-items: center;
}
.dpb-segment {
    height: 3px;
    border-radius: 2px;
    animation: dpbGrow 4s ease-out infinite;
}
.dpb-segment:nth-child(1) { width: 22%; background: linear-gradient(90deg, #1565c0, #42a5f5); animation-delay: 0s; }
.dpb-segment:nth-child(2) { width: 16%; background: linear-gradient(90deg, #00838f, #00bcd4); animation-delay: 0.4s; }
.dpb-segment:nth-child(3) { width: 28%; background: linear-gradient(90deg, #1976d2, #64b5f6); animation-delay: 0.8s; }
.dpb-segment:nth-child(4) { width: 18%; background: linear-gradient(90deg, #0277bd, #29b6f6); animation-delay: 1.2s; }
.dpb-segment:nth-child(5) { width: 10%; background: linear-gradient(90deg, #01579b, #03a9f4); animation-delay: 1.6s; }
.dpb-segment:nth-child(6) { width: 6%; background: linear-gradient(90deg, #7c6fff, #a78bfa); animation-delay: 2s; }
@keyframes dpbGrow {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* --- 环境光晕 --- */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.ao-1 {
    width: 320px; height: 320px;
    top: -60px; right: -40px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    animation: orbFloat1 10s ease-in-out infinite;
}
.ao-2 {
    width: 280px; height: 280px;
    bottom: -50px; left: -30px;
    background: radial-gradient(circle, rgba(0,176,255,0.1) 0%, transparent 70%);
    animation: orbFloat2 12s ease-in-out infinite;
}
.ao-3 {
    width: 200px; height: 200px;
    top: 40%; left: 30%;
    background: radial-gradient(circle, rgba(66,165,245,0.08) 0%, transparent 70%);
    animation: orbFloat3 8s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -15px); }
}
@keyframes orbFloat3 {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

/* 扫描线效果 */
.scan-beam {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(66,165,245,0.15) 30%, rgba(0,212,255,0.25) 50%, rgba(66,165,245,0.15) 70%, transparent 100%);
    animation: scanBeamMove 5s ease-in-out infinite;
}
@keyframes scanBeamMove {
    0% { top: -2px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.login-card-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 20;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(13, 71, 161, 0.12),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-card-header h2 {
    color: #1a2332;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card-header p {
    color: #78909c;
    font-size: 14px;
}

.login-field {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    background: #f5f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.3s;
}

.login-field:focus-within {
    border-color: #42a5f5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.field-icon {
    font-size: 17px;
    flex-shrink: 0;
    margin-right: 10px;
    opacity: 0.5;
}

.login-field input {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    border: none;
    outline: none;
    color: #1a2332;
    font-size: 14px;
    min-width: 0;
}

.login-field input::placeholder {
    color: #b0bec5;
}

.toggle-pwd {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.4;
    padding: 4px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toggle-pwd:hover {
    opacity: 0.8;
}

.login-error {
    color: #ef5350;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: left;
    padding-left: 4px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    color: #546e7a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-me input {
    accent-color: #1976d2;
}

.forgot-link {
    color: #1976d2;
    text-decoration: none;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 4px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35);
    transform: translateY(-1px);
}

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

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eceff1;
}

.login-footer span {
    color: #b0bec5;
    font-size: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #90caf9;
    font-size: 13px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 150, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.theme-toggle:hover {
    background: rgba(100, 150, 255, 0.15);
    transform: rotate(15deg) scale(1.08);
}

.modal-large {
    max-width: 600px !important;
    max-height: 85vh;
    overflow-y: auto;
}

#user-modal .modal-large {
    max-width: 820px !important;
}

.perm-section {
    margin: 16px 0;
    padding: 14px;
    background: rgba(13, 17, 23, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 150, 255, 0.1);
}

.perm-section h4 {
    color: #90caf9;
    font-size: 14px;
    margin-bottom: 10px;
}

.perm-hint {
    color: #9fb3c8;
    font-size: 12px;
    line-height: 1.6;
    margin: -2px 0 10px;
}

.perm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.perm-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cfd8dc;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.perm-check input[type="checkbox"] {
    accent-color: #42a5f5;
    width: 16px;
    height: 16px;
}

.perm-check input:disabled {
    opacity: 0.5;
}

.perm-route-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.user-table, .log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(26, 35, 50, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.user-table th, .log-table th {
    background: rgba(13, 17, 23, 0.8);
    color: #90caf9;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(100, 150, 255, 0.3);
    font-weight: 600;
}

.user-table td, .log-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
    color: #e0e6ed;
}

.user-table tr:hover, .log-table tr:hover {
    background: rgba(66, 165, 245, 0.05);
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

.status-disabled {
    color: #ef5350;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-superadmin { background: rgba(156, 39, 176, 0.2); color: #ce93d8; }
.role-admin { background: rgba(33, 150, 243, 0.2); color: #64b5f6; }
.role-analyst { background: rgba(0, 188, 212, 0.18); color: #80deea; }
.role-operator { background: rgba(255, 152, 0, 0.18); color: #ffcc80; }
.role-route_manager { background: rgba(0, 150, 136, 0.18); color: #80cbc4; }
.role-editor { background: rgba(255, 183, 77, 0.2); color: #ffb74d; }
.role-viewer { background: rgba(76, 175, 80, 0.2); color: #81c784; }

.perm-edit-col { }
.perm-delete-col { }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(26, 35, 50, 0.98);
    margin: 3vh auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border: 1px solid rgba(100, 150, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(33, 150, 243, 0.1);
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(66,165,245,0.25); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(66,165,245,0.45); }

.modal-content h3 {
    color: #e0e6ed;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #78909c;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #ef5350;
    transform: rotate(90deg);
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #b0bec5;
    font-size: 14px;
    font-weight: 500;
}

form input, form select, form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(45, 55, 72, 0.5);
    color: #c8d6e5;
    transition: all 0.25s ease;
}

form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(180deg);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: rgba(66, 165, 245, 0.6);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.12), 0 2px 10px rgba(66, 165, 245, 0.08);
    background: rgba(50, 65, 85, 0.6);
}

form input::placeholder, form textarea::placeholder {
    color: #546e7a;
}

form textarea {
    resize: vertical;
    min-height: 90px;
}

select option {
    background: #1a2332;
    color: #e0e6ed;
}

.light-mode select option {
    background: #fff;
    color: #263238;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 35, 50, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 150, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 150, 255, 0.5);
}

body.light-mode {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f6fb 40%, #f5f9fd 100%);
}

.light-mode .container {
    background: transparent;
}

.light-mode header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(144, 202, 249, 0.25);
    box-shadow: 0 4px 24px rgba(13, 71, 161, 0.06), 0 1px 8px rgba(0, 0, 0, 0.03);
}

.light-mode .theme-toggle {
    background: rgba(33, 150, 243, 0.06);
    border: 1px solid rgba(33, 150, 243, 0.15);
}

.light-mode .theme-toggle:hover {
    background: rgba(33, 150, 243, 0.12);
}

.light-mode .user-info { color: #546e7a; }

.light-mode .nav-btn {
    background: rgba(255, 255, 255, 0.7);
    color: #455a64;
    border: 1px solid rgba(144, 202, 249, 0.25);
}

.light-mode .nav-btn.active {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(66, 165, 245, 0.3);
}

.light-mode .nav-btn:hover:not(.active) {
    background: rgba(224, 244, 255, 1);
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.12);
}

.light-mode main.page {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(144, 202, 249, 0.18);
    box-shadow: 0 2px 16px rgba(13, 71, 161, 0.04);
}

.light-mode .section-title {
    color: #1565c0;
    border-left-color: #64b5f6;
}

.light-mode .filter-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(243, 248, 255, 0.8) 100%);
    border: 1px solid rgba(144, 202, 249, 0.22);
    box-shadow: 0 2px 16px rgba(13, 71, 161, 0.06);
}

.light-mode .filter-group label,
.light-mode .filter-hint { color: #546e7a; }

.light-mode .filter-group input[type="date"],
.light-mode .filter-group select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(144, 202, 249, 0.35);
    color: #37474f;
}

.light-mode .filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.55;
}

.light-mode .filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}

.light-mode .filter-group input:focus,
.light-mode .filter-group select:focus {
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.15), 0 2px 8px rgba(100, 181, 246, 0.1);
}

.light-mode .filter-group select#route-filter option {
    background: #ffffff;
    color: #37474f;
}

.light-mode .kpi-section,
.light-mode .trend-section,
.light-mode .structure-section,
.light-mode .route-analysis-section {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(144, 202, 249, 0.18);
    box-shadow: 0 2px 12px rgba(13, 71, 161, 0.03);
}

.light-mode .kpi-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(144, 202, 249, 0.2);
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.04);
}

.light-mode .kpi-label { color: #78909c; }

.light-mode .kpi-value { color: #263238; }

.light-mode .kpi-trend.up { color: #43a047; }
.light-mode .kpi-trend.down { color: #e53935; }

.light-mode .chart-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(144, 202, 249, 0.15);
}

.light-mode .chart-title { color: #37474f; }

.light-mode .analysis-table {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(144, 202, 249, 0.15);
}

.light-mode .analysis-table th {
    background: linear-gradient(180deg, #e3f2fd 0%, #f1f8ff 100%);
    color: #1565c0;
    border-bottom: 2px solid #bbdefb;
}

.light-mode .analysis-table td {
    color: #37474f;
    border-bottom: 1px solid #eceff1;
}

.light-mode .analysis-table tr:hover { background: rgba(224, 244, 255, 0.6); }

.light-mode .status-normal { color: #43a047; }
.light-mode .status-warning { color: #ef6c00; }

.light-mode .detail-section {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(144, 202, 249, 0.18);
}

.light-mode .page-header h2 { color: #1565c0; }

.light-mode table {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(144, 202, 249, 0.15);
}

.light-mode table th {
    background: linear-gradient(180deg, #e3f2fd 0%, #f1f8ff 100%);
    color: #1565c0;
    border-bottom: 2px solid #bbdefb;
}

.light-mode table td {
    color: #37474f;
    border-bottom: 1px solid #eceff1;
}

.light-mode table tr:hover { background: rgba(224, 244, 255, 0.5); }

.light-mode .btn-primary {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    box-shadow: 0 3px 12px rgba(25, 118, 210, 0.25);
}

.light-mode .btn-success { background: linear-gradient(135deg, #388e3c, #66bb6a); }
.light-mode .btn-warning { background: linear-gradient(135deg, #f57c00, #ffb74d); }
.light-mode .btn-danger { background: linear-gradient(135deg, #d32f2f, #ef5350); }
.light-mode .btn-edit { background: linear-gradient(135deg, #1976d2, #42a5f5); }

.light-modal .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid rgba(144, 202, 249, 0.25);
    box-shadow: 0 20px 60px rgba(13, 71, 161, 0.12);
}

.light-mode .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid rgba(144, 202, 249, 0.25);
    box-shadow: 0 20px 60px rgba(13, 71, 161, 0.12);
}

.light-mode .modal-content::-webkit-scrollbar-thumb { background: rgba(100,181,246,0.3); }
.light-mode .modal-content::-webkit-scrollbar-thumb:hover { background: rgba(66,165,245,0.5); }

.light-mode .modal-content h3 { color: #1565c0; }

.light-mode .modal-content form label { color: #37474f; }

.light-mode .modal-content form input,
.light-mode .modal-content form select,
.light-mode .modal-content form textarea {
    background: #f5f9fc;
    border: 1px solid #cfd8dc;
    color: #263238;
}

.light-mode .modal-content form input:focus,
.light-mode .modal-content form select:focus,
.light-mode .modal-content form textarea:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.12), 0 2px 8px rgba(66, 165, 245, 0.08);
    background: #fff;
}

.light-mode .modal-content form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.5;
}

.light-mode .modal-content form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}

.light-mode .close { color: #90a4ae; }
.light-mode .close:hover { color: #e53935; }

.light-mode .import-result.success { background: rgba(76, 175, 80, 0.08); border-left-color: #4caf50; }
.light-mode .import-result.error { background: rgba(239, 83, 80, 0.08); border-left-color: #ef5350; }

.light-mode .compare-config { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(144, 202, 249, 0.2); }

.light-mode .compare-group { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(144, 202, 249, 0.2); }

.light-mode .compare-label { color: #1976d2; }

.light-mode .compare-field label { color: #546e7a; }

.light-mode .compare-field input { background: #fff; border: 1px solid #cfd8dc; color: #263238; }

.light-mode .compare-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.5;
}

.light-mode .compare-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}

.light-mode .compare-result { background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(144, 202, 249, 0.2); }

.light-mode .compare-table { background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(144, 202, 249, 0.15); }

.light-mode .compare-table th {
    background: linear-gradient(180deg, #e3f2fd 0%, #f1f8ff 100%);
    color: #1565c0;
    border-bottom: 2px solid #bbdefb;
}

.light-mode .compare-table td { color: #37474f; border-bottom: 1px solid #eceff1; }

.light-mode .compare-up { color: #e53935 !important; font-weight: 600; }
.light-mode .compare-down { color: #43a047 !important; font-weight: 600; }

.daily-filter-bar {
    background: linear-gradient(135deg, rgba(30, 42, 60, 0.75) 0%, rgba(26, 35, 50, 0.65) 100%);
    border: 1px solid rgba(100, 150, 255, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.daily-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-field label {
    color: #90caf9;
    font-size: 13px;
    white-space: nowrap;
}

.search-field input,
.search-field select {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.18);
    border-radius: 8px;
    color: #c8d6e5;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease;
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(180deg);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.search-field input:focus,
.search-field select:focus {
    border-color: rgba(66, 165, 245, 0.6);
    background: rgba(50, 65, 85, 0.6);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.result-count {
    color: #78909c;
    font-size: 13px;
    margin-left: auto;
}

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.pagination-bar button {
    background: rgba(66, 165, 245, 0.15);
    border: 1px solid rgba(100, 150, 255, 0.25);
    color: #90caf9;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination-bar button:hover:not(:disabled) {
    background: rgba(66, 165, 245, 0.3);
    border-color: #42a5f5;
}

.pagination-bar button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-bar button.active {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.pagination-bar .page-info {
    color: #78909c;
    font-size: 13px;
}

.light-mode .daily-filter-bar {
    background: rgba(224, 244, 255, 0.6);
    border: 1px solid rgba(144, 202, 249, 0.2);
}
.light-mode .search-field label { color: #455a64; }
.light-mode .search-field input,
.light-mode .search-field select {
    background: #fff;
    border: 1px solid #cfd8dc;
    color: #263238;
}

.light-mode .search-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.5;
}

.light-mode .search-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}

.light-mode .result-count { color: #607d8b; }
.light-mode .pagination-bar button {
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.2);
    color: #1565c0;
}
.light-mode .pagination-bar button.active {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
}

.light-mode .analysis-section {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(144, 202, 249, 0.2);
}

.light-mode .analysis-block-summary { background: rgba(224, 244, 255, 0.5); border-left-color: #42a5f5; }
.light-mode .analysis-block-changes { background: rgba(255, 243, 224, 0.5); border-left-color: #ffa726; }
.light-mode .analysis-block-suggestions { background: rgba(255, 235, 238, 0.5); border-left-color: #ef5350; }

.light-mode .analysis-block-content h4 { color: #1565c0; }
.light-mode .analysis-block-content p,
.light-mode .analysis-block-content ul li { color: #455a64; }

.light-mode .user-table,
.light-mode .log-table {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(144, 202, 249, 0.15);
}

.light-mode .user-table th,
.light-mode .log-table th {
    background: linear-gradient(180deg, #e3f2fd 0%, #f1f8ff 100%);
    color: #1565c0;
    border-bottom: 2px solid #bbdefb;
}

.light-mode .user-table td,
.light-mode .log-table td {
    color: #37474f;
    border-bottom: 1px solid #eceff1;
}

.light-mode .user-table tr:hover,
.light-mode .log-table tr:hover { background: rgba(224, 244, 255, 0.5); }

.light-mode .role-superadmin { background: rgba(106, 27, 154, 0.08); color: #7b1fa2; }
.light-mode .role-admin { background: rgba(21, 101, 192, 0.08); color: #1565c0; }
.light-mode .role-analyst { background: rgba(0, 131, 143, 0.08); color: #00838f; }
.light-mode .role-operator { background: rgba(239, 108, 0, 0.08); color: #ef6c00; }
.light-mode .role-route_manager { background: rgba(0, 121, 107, 0.08); color: #00796b; }
.light-mode .role-editor { background: rgba(245, 124, 0, 0.08); color: #e65100; }
.light-mode .role-viewer { background: rgba(56, 142, 60, 0.08); color: #2e7d32; }

.light-mode .perm-section { background: rgba(240, 248, 255, 0.8); border: 1px solid rgba(144, 202, 249, 0.2); }
.light-mode .perm-section h4 { color: #1565c0; }
.light-mode .perm-hint { color: #546e7a; }
.light-mode .perm-check { color: #455a64; }

.light-mode ::-webkit-scrollbar-track { background: rgba(207, 216, 220, 0.3); }
.light-mode ::-webkit-scrollbar-thumb { background: rgba(144, 202, 249, 0.4); }
.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(66, 165, 245, 0.5); }

.doc-type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(66, 165, 245, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(66, 165, 245, 0.25);
}

.doc-type-tag.pdf { background: rgba(239, 83, 80, 0.15); color: #ef5350; border-color: rgba(239, 83, 80, 0.3); }
.doc-type-tag.xls, .doc-type-tag.xlsx { background: rgba(76, 175, 80, 0.15); color: #81c784; border-color: rgba(76, 175, 80, 0.3); }
.doc-type-tag.doc, .doc-type-tag.docx { background: rgba(33, 150, 243, 0.15); color: #64b5f6; border-color: rgba(33, 150, 243, 0.3); }
.doc-type-tag.jpg, .doc-type-tag.jpeg, .doc-type-tag.png { background: rgba(255, 152, 0, 0.15); color: #ffb74d; border-color: rgba(255, 152, 0, 0.3); }

.doc-title-cell {
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.doc-title-cell:hover {
    color: #42a5f5;
}

.file-size {
    color: #78909c;
    font-size: 12px;
}

.doc-detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.15);
}

.doc-detail-header h3 {
    font-size: 20px;
    color: #e0e6ed;
    margin-bottom: 10px;
}

.doc-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #78909c;
}

.doc-detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-preview-frame {
    width: 100%;
    min-height: 500px;
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 8px;
    background: #fff;
}

.doc-download-area {
    text-align: center;
    padding: 40px;
    color: #78909c;
}

.doc-download-area .btn {
    margin-top: 14px;
}

.light-mode .doc-type-tag { background: rgba(21, 101, 192, 0.1); color: #1565c0; border-color: rgba(21, 101, 192, 0.2); }
.light-mode .doc-type-tag.pdf { background: rgba(211, 47, 47, 0.1); color: #c62828; border-color: rgba(211, 47, 47, 0.25); }
.light-mode .doc-type-tag.xls, .light-mode .doc-type-tag.xlsx { background: rgba(46, 125, 50, 0.1); color: #2e7d32; border-color: rgba(46, 125, 50, 0.25); }
.light-mode .doc-type-tag.doc, .light-mode .doc-type-tag.docx { background: rgba(21, 101, 192, 0.1); color: #1565c0; border-color: rgba(21, 101, 192, 0.25); }
.light-mode .doc-title-cell:hover { color: #1565c0; }
.light-mode .doc-detail-header h3 { color: #263238; }
.light-mode .doc-detail-meta { color: #546e7a; }
.light-mode .doc-download-area { color: #546e7a; }

.task-sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(100, 150, 255, 0.15);
}

.task-sub-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: #78909c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.task-sub-btn:hover { color: #b0bec5; }

.task-sub-btn.active {
    color: #42a5f5;
    border-bottom-color: #42a5f5;
}

.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-tag.未开始 { background: rgba(158, 158, 158, 0.15); color: #bdbdbd; border: 1px solid rgba(158, 158, 158, 0.2); }
.status-tag.进行中 { background: rgba(33, 150, 243, 0.15); color: #64b5f6; border: 1px solid rgba(33, 150, 243, 0.2); }
.status-tag.已完成 { background: rgba(76, 175, 80, 0.15); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.2); }
.status-tag.延期 { background: rgba(239, 83, 80, 0.15); color: #ef5350; border: 1px solid rgba(239, 83, 80, 0.2); }

.priority-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.priority-dot.高 { background: #ef5350; box-shadow: 0 0 6px rgba(239,83,80,0.4); }
.priority-dot.中 { background: #ffb74d; }
.priority-dot.低 { background: #78909c; }

.kpi-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.light-mode .task-sub-btn.active { color: #1565c0; border-bottom-color: #1565c0; }
.light-mode .status-tag.未开始 { background: rgba(158, 158, 158, 0.1); color: #616161; border-color: rgba(158, 158, 158, 0.2); }
.light-mode .status-tag.进行中 { background: rgba(33, 150, 243, 0.1); color: #1565c0; border-color: rgba(33, 150, 243, 0.2); }
.light-mode .status-tag.已完成 { background: rgba(76, 175, 80, 0.1); color: #2e7d32; border-color: rgba(76, 175, 80, 0.2); }
.light-mode .status-tag.延期 { background: rgba(239, 83, 80, 0.1); color: #c62828; border-color: rgba(239, 83, 80, 0.2); }
.light-mode .kpi-badge { background: rgba(255, 193, 7, 0.1); color: #f57f17; border-color: rgba(255, 193, 7, 0.2); }

/* ================================================================
   驾驶舱（汇总看板）样式 - 公交运营驾驶舱
   设计风格：柔和科技感 + 数据中台风 + 深蓝灰主色 + 公交蓝点缀
   ================================================================ */

.cockpit-header { margin-bottom: 20px; }

.cockpit-title-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(13, 27, 48, 0.95) 0%, rgba(20, 40, 65, 0.9) 100%);
    border-radius: 14px; border: 1px solid rgba(66, 165, 245, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); margin-bottom: 14px;
}

.cockpit-title-left { display: flex; align-items: center; gap: 14px; }

.cockpit-title-left h2 {
    font-size: 22px; font-weight: 700; color: #e0e6ed; letter-spacing: 2px;
    background: linear-gradient(90deg, #90caf9, #42a5f5, #64b5f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.cockpit-icon { font-size: 32px; filter: drop-shadow(0 2px 8px rgba(66, 165, 245, 0.3)); }

.cockpit-badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    background: rgba(76, 175, 80, 0.2); color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.35); border-radius: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    animation: cockpit-pulse 2s ease-in-out infinite;
}

@keyframes cockpit-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.cockpit-title-right { display: flex; align-items: center; gap: 16px; color: #78909c; font-size: 13px; }

.cockpit-time { font-size: 20px; font-weight: 700; color: #64b5f6; font-family: 'Consolas', monospace; letter-spacing: 1px; }

.cockpit-date { color: #90a4ae; }

.cockpit-filter-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(20, 35, 55, 0.85) 0%, rgba(18, 30, 48, 0.75) 100%);
    border-radius: 12px; border: 1px solid rgba(66, 165, 245, 0.12);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2); gap: 16px; flex-wrap: wrap;
}

.cockpit-filter-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.cockpit-filter-item { display: flex; align-items: center; gap: 8px; }

.cockpit-filter-item label { color: #8cb4d9; font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: 0.3px; }

.cockpit-filter-item input[type="date"] {
    padding: 7px 12px; background: rgba(30, 45, 65, 0.6);
    border: 1px solid rgba(66, 165, 245, 0.2); border-radius: 8px;
    color: #c8d6e5; font-size: 13px; outline: none; transition: all 0.25s;
}

.cockpit-filter-item input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(180deg); opacity: 0.6; cursor: pointer;
}

.cockpit-filter-item input[type="date"]:focus {
    border-color: rgba(66, 165, 245, 0.5); box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.08);
}

.cockpit-filter-item select {
    padding: 7px 12px; background: rgba(30, 45, 65, 0.6);
    border: 1px solid rgba(66, 165, 245, 0.2); border-radius: 8px;
    color: #c8d6e5; font-size: 13px; outline: none; cursor: pointer; min-width: 140px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364b5f6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}

.cockpit-route-select {
    min-width: 160px; max-width: 220px;
    padding: 7px 28px 7px 12px;
}

.cockpit-filter-item span { color: #546e7a; font-size: 13px; }

.cockpit-granularity-group {
    display: flex; background: rgba(30, 45, 65, 0.5); border-radius: 8px;
    overflow: hidden; border: 1px solid rgba(66, 165, 245, 0.2);
}

.cockpit-gran-btn {
    padding: 6px 16px; border: none; background: transparent;
    color: #78909c; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}

.cockpit-gran-btn:hover { color: #b0bec5; }

.cockpit-gran-btn.active { background: rgba(66, 165, 245, 0.25); color: #64b5f6; }

.cockpit-filter-right { display: flex; align-items: center; gap: 8px; }

.cockpit-btn {
    padding: 8px 18px; border: 1px solid rgba(66, 165, 245, 0.25); border-radius: 8px;
    cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.25s;
    background: rgba(30, 45, 65, 0.5); color: #90caf9;
}

.cockpit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

.cockpit-btn-primary {
    background: linear-gradient(135deg, #1565c0, #1976d2); color: #fff;
    border-color: transparent; box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.cockpit-btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, #1e88e5); box-shadow: 0 6px 20px rgba(21, 101, 192, 0.5);
}

.cockpit-btn-secondary { background: rgba(40, 55, 75, 0.6); color: #90caf9; }

.cockpit-btn-refresh {
    width: 38px; height: 38px; padding: 0; display: flex;
    align-items: center; justify-content: center; font-size: 16px; border-radius: 50%;
}

.cockpit-btn-refresh:hover { animation: cockpit-spin 0.8s ease; }

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

/* 区域1: 顶部核心指标区 */
.cockpit-kpi-section {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-bottom: 20px;
}

.cockpit-kpi-card {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.95) 0%, rgba(18, 30, 48, 0.9) 100%);
    border-radius: 14px; padding: 16px 14px; border: 1px solid rgba(66, 165, 245, 0.12);
    cursor: default; transition: all 0.3s ease; position: relative; overflow: hidden;
}

.cockpit-kpi-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--kpi-accent, #42a5f5); opacity: 0.7; transition: opacity 0.3s;
}

.cockpit-kpi-card[data-kpi="passenger"] { --kpi-accent: #42a5f5; }
.cockpit-kpi-card[data-kpi="avg-passenger"] { --kpi-accent: #26c6da; }
.cockpit-kpi-card[data-kpi="per-km"] { --kpi-accent: #7c4dff; }
.cockpit-kpi-card[data-kpi="complaint"] { --kpi-accent: #ff7043; }
.cockpit-kpi-card[data-kpi="complaint-rate"] { --kpi-accent: #ffa726; }
.cockpit-kpi-card[data-kpi="mileage"] { --kpi-accent: #66bb6a; }
.cockpit-kpi-card[data-kpi="kpi"] { --kpi-accent: #ab47bc; }

.cockpit-kpi-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 30px rgba(66, 165, 245, 0.08);
    border-color: rgba(66, 165, 245, 0.3);
}

.cockpit-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }

.cockpit-kpi-icon-wrap {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}

.cockpit-kpi-icon-wrap.passenger { background: rgba(66, 165, 245, 0.15); color: #42a5f5; }
.cockpit-kpi-icon-wrap.avgp { background: rgba(38, 198, 218, 0.15); color: #26c6da; }
.cockpit-kpi-icon-wrap.perkm { background: rgba(124, 77, 255, 0.15); color: #7c4dff; }
.cockpit-kpi-icon-wrap.trip { background: rgba(0, 172, 193, 0.15); color: #00acc1; }
.cockpit-kpi-icon-wrap.complaint { background: rgba(255, 112, 67, 0.15); color: #ff7043; }
.cockpit-kpi-icon-wrap.crate { background: rgba(255, 167, 38, 0.15); color: #ffa726; }
.cockpit-kpi-icon-wrap.mileage { background: rgba(102, 187, 106, 0.15); color: #66bb6a; }
.cockpit-kpi-icon-wrap.kpi { background: rgba(171, 71, 188, 0.15); color: #ab47bc; }

.cockpit-kpi-sparkline { width: 55px; height: 28px; opacity: 0.75; }
.cockpit-kpi-sparkline svg { width: 100%; height: 100%; }

.cockpit-kpi-label {
    color: #78909c; font-size: 11px; font-weight: 500; margin-bottom: 4px;
    letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cockpit-kpi-value { color: #ffffff; font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: 0.5px; }

.cockpit-kpi-change { font-size: 11px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 3px; }

.cockpit-kpi-change.up { color: #66bb6a; }
.cockpit-kpi-change.down { color: #ef5350; }
.cockpit-kpi-change.neutral { color: #78909c; }

/* 趋势+结构并排 */
.cockpit-trend-structure-row {
    display: grid; grid-template-columns: 3fr 2fr; gap: 20px; margin-bottom: 20px;
}

.cockpit-trend-section, .cockpit-structure-section {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.9) 0%, rgba(18, 30, 48, 0.85) 100%);
    border-radius: 14px; padding: 20px 22px;
    border: 1px solid rgba(66, 165, 245, 0.1); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.cockpit-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(66, 165, 245, 0.1);
}

.cockpit-section-title { font-size: 15px; font-weight: 700; color: #b0bec5; letter-spacing: 0.5px; }

.cockpit-section-actions {
    display: flex; gap: 4px; background: rgba(30, 45, 65, 0.5);
    border-radius: 8px; overflow: hidden; border: 1px solid rgba(66, 165, 245, 0.15);
}

.cockpit-trend-tab {
    padding: 6px 16px; border: none; background: transparent;
    color: #607d8b; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}

.cockpit-trend-tab:hover { color: #90caf9; }
.cockpit-trend-tab.active { background: rgba(66, 165, 245, 0.25); color: #42a5f5; }

.cockpit-trend-chart-wrap { min-height: 260px; position: relative; }
.cockpit-trend-chart-wrap canvas { max-height: 260px; }

.cockpit-structure-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cockpit-sub-title {
    font-size: 12px; font-weight: 600; color: #78909c; margin-bottom: 10px; text-align: center;
}

.cockpit-structure-half canvas { max-height: 180px; }

/* 底部三列 */
.cockpit-bottom-row {
    display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px;
}

.cockpit-route-section {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.9) 0%, rgba(18, 30, 48, 0.85) 100%);
    border-radius: 14px; padding: 20px 22px;
    border: 1px solid rgba(66, 165, 245, 0.1); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.cockpit-route-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: var(--cockpit-route-table-max-height, none);
    padding-right: 4px;
    scrollbar-color: rgba(66, 165, 245, 0.45) rgba(13, 30, 55, 0.35);
    scrollbar-width: thin;
}

.cockpit-route-table-wrap.is-scroll-limited {
    border-radius: 12px;
    border: 1px solid rgba(66, 165, 245, 0.08);
    box-shadow: inset 0 -16px 28px rgba(7, 15, 26, 0.16);
}

.cockpit-route-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.cockpit-route-table-wrap::-webkit-scrollbar-track {
    background: rgba(13, 30, 55, 0.35);
    border-radius: 999px;
}
.cockpit-route-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(66, 165, 245, 0.7), rgba(38, 198, 218, 0.45));
    border-radius: 999px;
}
.cockpit-route-table-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(100, 181, 246, 0.9), rgba(38, 198, 218, 0.65));
}

.cockpit-route-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.cockpit-route-table th {
    padding: 12px 14px; text-align: left; background: rgba(13, 30, 55, 0.5);
    color: #90caf9; font-weight: 600; font-size: 12px;
    border-bottom: 2px solid rgba(66, 165, 245, 0.2); white-space: nowrap;
    position: sticky; top: 0; z-index: 2;
}

.cockpit-route-table th.sortable { cursor: pointer; transition: color 0.2s; }
.cockpit-route-table th.sortable:hover { color: #42a5f5; }

.cockpit-route-table td {
    padding: 10px 14px; border-bottom: 1px solid rgba(66, 165, 245, 0.06); color: #cfd8dc;
}

.cockpit-route-table tbody tr { cursor: pointer; transition: background 0.2s; }
.cockpit-route-table tbody tr:hover { background: rgba(66, 165, 245, 0.06); }
.cockpit-route-table tbody tr.expanded { background: rgba(66, 165, 245, 0.08); }

.cockpit-route-table .route-detail-row td { padding: 0; background: rgba(13, 25, 42, 0.7); }

.cockpit-route-detail-panel {
    padding: 16px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    animation: cockpit-slide-down 0.3s ease;
}

@keyframes cockpit-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cockpit-route-detail-item { display: flex; align-items: center; gap: 10px; }
.cockpit-route-detail-item .detail-label { color: #607d8b; font-size: 11px; white-space: nowrap; }
.cockpit-route-detail-item .detail-value { color: #e0e6ed; font-size: 14px; font-weight: 600; }
.cockpit-route-detail-chart { grid-column: 1 / -1; max-height: 120px; }

.cockpit-risk-level {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
}

.cockpit-risk-level.high { background: rgba(239, 83, 80, 0.15); color: #ef5350; border: 1px solid rgba(239, 83, 80, 0.3); }
.cockpit-risk-level.medium { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.cockpit-risk-level.normal { background: rgba(76, 175, 80, 0.15); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.3); }

.cockpit-right-panel { display: flex; flex-direction: column; gap: 20px; }

.cockpit-warning-section {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.9) 0%, rgba(18, 30, 48, 0.85) 100%);
    border-radius: 14px; padding: 20px 22px;
    border: 1px solid rgba(66, 165, 245, 0.1); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.cockpit-warning-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.cockpit-warning-list::-webkit-scrollbar { width: 4px; }
.cockpit-warning-list::-webkit-scrollbar-track { background: transparent; }
.cockpit-warning-list::-webkit-scrollbar-thumb { background: rgba(66, 165, 245, 0.2); border-radius: 2px; }

.cockpit-warning-empty { text-align: center; color: #546e7a; padding: 30px; font-size: 13px; }

.cockpit-warning-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
    background: rgba(20, 35, 55, 0.6); border: 1px solid rgba(66, 165, 245, 0.08);
    cursor: pointer; transition: all 0.2s;
}

.cockpit-warning-item:hover { background: rgba(20, 35, 55, 0.8); border-color: rgba(66, 165, 245, 0.2); }
.cockpit-warning-item.level-high { border-left: 3px solid #ef5350; }
.cockpit-warning-item.level-medium { border-left: 3px solid #ffc107; }

.cockpit-warning-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cockpit-warning-dot.high { background: #ef5350; box-shadow: 0 0 8px rgba(239, 83, 80, 0.5); }
.cockpit-warning-dot.medium { background: #ffc107; box-shadow: 0 0 8px rgba(255, 193, 7, 0.5); }
.cockpit-warning-dot.normal { background: #81c784; }

.cockpit-warning-info { flex: 1; min-width: 0; }
.cockpit-warning-route { font-weight: 700; font-size: 13px; color: #e0e6ed; }
.cockpit-warning-reasons { font-size: 11px; color: #78909c; margin-top: 2px; }

.cockpit-conclusions-section {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.9) 0%, rgba(18, 30, 48, 0.85) 100%);
    border-radius: 14px; padding: 20px 22px;
    border: 1px solid rgba(66, 165, 245, 0.1); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2); flex: 1;
}

.cockpit-conclusions-body { line-height: 1.9; font-size: 13px; }
.cockpit-conclusion-loading { color: #607d8b; font-style: italic; }

.cockpit-conclusion-item { padding: 6px 0; color: #b0bec5; display: flex; gap: 8px; align-items: flex-start; }
.cockpit-conclusion-dot { color: #42a5f5; font-weight: 700; flex-shrink: 0; }

.cockpit-conclusion-section-label {
    color: #64b5f6; font-weight: 700; font-size: 12px; margin-top: 10px;
    padding-top: 8px; border-top: 1px solid rgba(66, 165, 245, 0.1); letter-spacing: 0.5px;
}

/* 明细穿透面板 */
.cockpit-detail-panel {
    background: linear-gradient(180deg, rgba(22, 38, 58, 0.95) 0%, rgba(18, 30, 48, 0.92) 100%);
    border-radius: 14px; padding: 20px 22px;
    border: 1px solid rgba(66, 165, 245, 0.15); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: cockpit-slide-down 0.3s ease;
}

.cockpit-detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(66, 165, 245, 0.12);
}

.cockpit-detail-header h3 { color: #90caf9; font-size: 16px; font-weight: 700; }
.cockpit-detail-content { overflow-x: auto; }

.cockpit-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.cockpit-detail-table th {
    padding: 10px 14px; text-align: left; background: rgba(13, 30, 55, 0.5);
    color: #90caf9; font-weight: 600; font-size: 12px; border-bottom: 2px solid rgba(66, 165, 245, 0.2);
}

.cockpit-detail-table td { padding: 9px 14px; border-bottom: 1px solid rgba(66, 165, 245, 0.06); color: #cfd8dc; }
.cockpit-detail-table tr:hover { background: rgba(66, 165, 245, 0.05); }
.cockpit-route-no-data { text-align: center; color: #546e7a; padding: 30px; }

/* 响应式 */
@media (max-width: 1400px) {
    .cockpit-kpi-section { grid-template-columns: repeat(4, 1fr); }
    .cockpit-trend-structure-row { grid-template-columns: 1fr; }
    .cockpit-bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .cockpit-kpi-section { grid-template-columns: repeat(2, 1fr); }
    .cockpit-structure-charts { grid-template-columns: 1fr; }
    .cockpit-filter-bar { flex-direction: column; align-items: stretch; }
    .cockpit-filter-left { flex-direction: column; align-items: stretch; }
    .cockpit-route-detail-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .cockpit-kpi-section { grid-template-columns: 1fr; }
}

/* 运营分析报告按钮 */
.cockpit-btn-report {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(66, 165, 245, 0.3);
    cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}
.cockpit-btn-report:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.5);
    transform: translateY(-1px);
}

.light-mode .cockpit-btn-report {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
}

.suggestion-card {
    transition: all 0.2s ease;
}
.suggestion-card:hover {
    background: #222240 !important;
    border-color: #3a3a5e !important;
    transform: translateX(4px);
}
