/* ======================================================
 * 宜荣财达智慧物流大数据看板样式
 * www.yrcdw.com | 2026-8
 ========================================================= */

/* ========== 基础重置 & 深色主题 ========== */
body.yrc-bigdata-page {
    background: #0a0e27 !important;
    color: #c8d6e5;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}
body.yrc-bigdata-page * { box-sizing: border-box; }

body.yrc-bigdata-page::before {
    content: "";
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 168, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none; z-index: 0;
}

/* ========== 顶部信息栏 ========== */
.yrc-data-header {
    position: relative; z-index: 10;
    background: linear-gradient(180deg, rgba(10, 20, 60, 0.95) 0%, rgba(10, 14, 39, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 168, 255, 0.1);
}
.data-header-inner {
    max-width: 1920px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}

.header-left {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 300px;
}
.header-left .icon-calendar { font-size: 18px; }
.solar-date { font-size: 16px; font-weight: 700; color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.lunar-date { font-size: 13px; color: #00d4ff; background: rgba(0, 212, 255, 0.1); padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(0, 212, 255, 0.2); }
.week-day { font-size: 13px; color: #00ff88; font-weight: 600; }
.ganzhi { font-size: 12px; color: #ff9f43; background: rgba(255, 159, 67, 0.1); padding: 2px 8px; border-radius: 4px; }
.shengxiao { font-size: 12px; color: #ff6b6b; }
.live-clock {
    font-size: 22px; font-weight: 700; color: #00d4ff;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    letter-spacing: 2px; margin-left: 10px;
    animation: clockPulse 1s ease-in-out infinite alternate;
}
@keyframes clockPulse {
    from { text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    to { text-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

.header-center {
    display: flex; align-items: center; gap: 12px;
    flex: 1; justify-content: center; min-width: 300px;
}

/* 品牌导航下拉 */
.yrc-brand-nav { display: inline-flex; align-items: center; position: relative; }
.nav-brand-menu { position: relative; display: inline-block; cursor: pointer; }
.nav-brand-current {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff; font-size: 18px; font-weight: 700;
    padding: 6px 16px; border-radius: 4px; letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    transition: all 0.3s;
}
.nav-brand-current:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}
.nav-arrow { color: #fff; font-size: 10px; margin-left: 6px; vertical-align: middle; transition: transform 0.3s; }
.nav-brand-menu:hover .nav-arrow { transform: rotate(180deg); }
.nav-brand-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 140px;
    background: #fff; border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    list-style: none; padding: 0; margin: 4px 0 0 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-5px); transition: all 0.25s ease;
    z-index: 1000; overflow: hidden;
}
.nav-brand-menu:hover .nav-brand-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-brand-item {
    display: block; padding: 10px 16px;
    color: #333; font-size: 14px; cursor: pointer;
    transition: all 0.2s; border-bottom: 1px solid #f0f0f0; white-space: nowrap;
}
.nav-brand-item:last-child { border-bottom: none; }
.nav-brand-item a { display: block; color: inherit; text-decoration: none; margin: -10px -16px; padding: 10px 16px; }
.nav-brand-item:hover, .nav-brand-item.active { background: #1a73e8; color: #fff; }
.nav-brand-item:hover a, .nav-brand-item.active a { color: #fff; }
.title-suffix {
    font-size: 18px; font-weight: 700; color: #00d4ff;
    letter-spacing: 2px; margin-left: 8px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.header-center .icon-truck { font-size: 24px; animation: truckMove 2s ease-in-out infinite; }
@keyframes truckMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.header-right {
    display: flex; align-items: center; gap: 10px;
    flex: 1; justify-content: flex-end; min-width: 300px;
}
#weather-icon { font-size: 20px; }
.weather-city { font-size: 14px; color: #00d4ff; font-weight: 600; }
.weather-temp { font-size: 18px; font-weight: 700; color: #ffd700; }
.weather-desc { font-size: 13px; color: #c8d6e5; }
.weather-humidity, .weather-wind { font-size: 12px; color: #88a4c3; }

/* ========== 内容区 ========== */
.yrc-section { position: relative; z-index: 5; padding: 15px 20px; }
.yrc-container { max-width: 1920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 15px; }
.yrc-container.full { grid-template-columns: 1fr; }

/* ========== 面板通用 ========== */
.panel {
    background: linear-gradient(135deg, rgba(16, 30, 70, 0.9) 0%, rgba(10, 18, 50, 0.95) 100%);
    border: 1px solid rgba(0, 168, 255, 0.15); border-radius: 8px;
    overflow: hidden; position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.panel:hover { box-shadow: 0 8px 30px rgba(0, 168, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: scanLine 3s linear infinite;
}
@keyframes scanLine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.panel-header {
    padding: 12px 15px; border-bottom: 1px solid rgba(0, 168, 255, 0.1);
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: #00d4ff;
    background: linear-gradient(90deg, rgba(0, 168, 255, 0.08), transparent);
}
.panel-header .icon { font-size: 16px; }
.panel-header.sub-header { border-top: 1px solid rgba(0, 168, 255, 0.1); margin-top: 5px; }
.panel-body { padding: 15px; }

/* ========== TOP 列表 ========== */
.top-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.top-item {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(16, 30, 70, 0.6) 0%, rgba(10, 18, 50, 0.8) 100%);
    border: 1px solid rgba(0, 168, 255, 0.08); border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.top-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #0088cc 50%, #00d4ff 100%);
    opacity: 0.6; transition: all 0.3s ease;
}
.top-item:hover {
    background: linear-gradient(135deg, rgba(16, 35, 80, 0.8) 0%, rgba(12, 22, 55, 0.9) 100%);
    border-color: rgba(0, 168, 255, 0.25); transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.1);
}
.top-item:hover::before { opacity: 1; width: 4px; box-shadow: 0 0 12px rgba(0, 212, 255, 0.4); }

.rank {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
    position: relative; z-index: 1; font-family: "Courier New", monospace;
}
.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.2);
    animation: rankGlow1 2s ease-in-out infinite alternate;
}
@keyframes rankGlow1 {
    from { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.15); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.3); }
}
.rank-2 { background: linear-gradient(135deg, #e0e0e0, #a0a0a0); color: #000; box-shadow: 0 0 12px rgba(224, 224, 224, 0.4); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; box-shadow: 0 0 12px rgba(205, 127, 50, 0.4); }
.rank-4, .rank-5, .rank-6, .rank-7 { background: rgba(0, 168, 255, 0.12); color: #00d4ff; border: 1px solid rgba(0, 168, 255, 0.25); box-shadow: 0 0 8px rgba(0, 168, 255, 0.1); }
.rank-stop {
    background: linear-gradient(135deg, #ff4444, #cc0000); color: #fff;
    font-size: 11px; font-weight: 700; box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
}

.city-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.city-name { font-size: 15px; color: #e8edf5; font-weight: 700; display: flex; align-items: center; gap: 6px; letter-spacing: 0.5px; }
.city-name::before { content: '📍'; font-size: 12px; filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5)); }
.transport-num { font-size: 12px; color: #7799aa; display: flex; align-items: center; gap: 6px; }
.transport-num strong { color: #00ff88; font-size: 18px; font-weight: 800; font-family: "Courier New", monospace; text-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }

.trend { font-size: 11px; display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; background: rgba(0, 0, 0, 0.2); white-space: nowrap; }
.trend-up { color: #00ff88; background: rgba(0, 255, 136, 0.08); border: 1px solid rgba(0, 255, 136, 0.15); }
.trend-up::before { content: '▲'; font-size: 9px; animation: trendArrow 1.5s ease-in-out infinite; }
.trend-stable { color: #88a4c3; background: rgba(136, 164, 195, 0.06); border: 1px solid rgba(136, 164, 195, 0.1); }
.trend-stable::before { content: '▶'; font-size: 8px; opacity: 0.6; }
.trend-stop { color: #ff6b6b; background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.15); font-weight: 600; }
.trend-stop::before { content: '⛔'; font-size: 10px; }
@keyframes trendArrow { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-3px); opacity: 0.7; } }

.stop-item {
    background: linear-gradient(135deg, rgba(80, 20, 20, 0.4) 0%, rgba(40, 10, 10, 0.6) 100%);
    border-color: rgba(255, 68, 68, 0.15);
}
.stop-item::before { background: linear-gradient(180deg, #ff4444 0%, #cc0000 50%, #ff4444 100%); opacity: 0.8; }
.stop-item:hover { border-color: rgba(255, 68, 68, 0.3); box-shadow: 0 4px 20px rgba(255, 68, 68, 0.1); }
.stop-item .city-name { color: #ffaaaa; }
.stop-item .transport-num strong { color: #ff8888; text-shadow: 0 0 10px rgba(255, 68, 68, 0.3); }

/* ========== 实时监控HUD — 现代大数据风格 ========== */
.monitor-body { text-align: center; padding: 15px 10px; }

.monitor-hud-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#monitorCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 旋转轨道 */
.hud-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 212, 255, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.hud-orbit-1 {
    width: 220px;
    height: 220px;
    border-style: dashed;
    animation: hudOrbit1 20s linear infinite;
}
.hud-orbit-2 {
    width: 260px;
    height: 260px;
    border: 1px dotted rgba(0, 168, 255, 0.12);
    animation: hudOrbit2 30s linear infinite reverse;
}
.hud-orbit-3 {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    animation: hudOrbit3 15s linear infinite;
}
@keyframes hudOrbit1 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hudOrbit2 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes hudOrbit3 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 扫描线 */
.hud-scanline {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 340deg,
        rgba(0, 212, 255, 0.12) 350deg,
        rgba(0, 212, 255, 0.25) 360deg
    );
    animation: hudScan 4s linear infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes hudScan {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 脉冲波纹 */
.hud-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.3);
    animation: hudPulse 2.5s ease-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes hudPulse {
    0% { width: 80px; height: 80px; opacity: 0.8; border-color: rgba(0, 212, 255, 0.4); }
    100% { width: 260px; height: 260px; opacity: 0; border-color: rgba(0, 212, 255, 0); }
}

/* 中心数据区域 */
.hud-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* LIVE徽章 */
.hud-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 60, 0.12);
    border: 1px solid rgba(255, 0, 60, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.hud-live-dot {
    width: 6px;
    height: 6px;
    background: #ff003c;
    border-radius: 50%;
    animation: liveBlink 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.6);
}
.hud-live-text {
    font-size: 10px;
    font-weight: 700;
    color: #ff4d6d;
    letter-spacing: 2px;
}
@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.6); }
}

/* 品牌名 */
.hud-brand {
    font-size: 13px;
    color: #88a4c3;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 大数字 */
.hud-value {
    font-size: 48px;
    font-weight: 900;
    color: #00d4ff;
    font-family: "Courier New", "DIN Alternate", "SF Mono", monospace;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 168, 255, 0.1);
    line-height: 1.1;
    animation: hudNumberPulse 3s ease-in-out infinite;
}
@keyframes hudNumberPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2); }
    50% { text-shadow: 0 0 25px rgba(0, 212, 255, 0.7), 0 0 50px rgba(0, 212, 255, 0.35), 0 0 80px rgba(0, 168, 255, 0.15); }
}

/* 单位 */
.hud-unit {
    font-size: 11px;
    color: #5a7a9a;
    letter-spacing: 2px;
}

/* 趋势指示 */
.hud-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.hud-trend-arrow {
    font-size: 9px;
    color: #00ff88;
    animation: trendFloat 1.5s ease-in-out infinite;
}
.hud-trend-text {
    font-size: 11px;
    color: #00ff88;
    font-weight: 600;
}
@keyframes trendFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* 四角装饰 */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 5;
    pointer-events: none;
}
.hud-corner-tl {
    top: 25px;
    left: 25px;
    border-top: 2px solid rgba(0, 212, 255, 0.4);
    border-left: 2px solid rgba(0, 212, 255, 0.4);
}
.hud-corner-tr {
    top: 25px;
    right: 25px;
    border-top: 2px solid rgba(0, 212, 255, 0.4);
    border-right: 2px solid rgba(0, 212, 255, 0.4);
}
.hud-corner-bl {
    bottom: 25px;
    left: 25px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.4);
    border-left: 2px solid rgba(0, 212, 255, 0.4);
}
.hud-corner-br {
    bottom: 25px;
    right: 25px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.4);
    border-right: 2px solid rgba(0, 212, 255, 0.4);
}

.factory-marquee { margin: 15px 0; overflow: hidden; border-top: 1px solid rgba(0, 168, 255, 0.1); border-bottom: 1px solid rgba(0, 168, 255, 0.1); padding: 10px 0; }
.marquee-label { font-size: 12px; color: #88a4c3; margin-bottom: 8px; text-align: left; }
.marquee-track { display: flex; gap: 10px; animation: marqueeScroll 20s linear infinite; white-space: nowrap; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.factory-tag {
    background: rgba(0, 168, 255, 0.15); border: 1px solid rgba(0, 168, 255, 0.3);
    color: #00d4ff; padding: 4px 12px; border-radius: 20px; font-size: 12px;
    white-space: nowrap; flex-shrink: 0;
}

.realtime-records { margin-top: 10px; text-align: left; }
.records-title { font-size: 12px; color: #88a4c3; margin-bottom: 8px; }
.records-scroll { max-height: 270px; overflow: hidden; position: relative; }
.record-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: recordSlide 0.5s ease-out;
}
@keyframes recordSlide { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.record-route { color: #e0e6ed; flex: 1; }
.record-plate { color: #ffd700; font-weight: 600; font-size: 12px; margin: 0 8px; background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.2); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.record-date { color: #88a4c3; font-size: 11px; }

/* ========== 财务卡片 ========== */
.finance-body { padding: 10px; }
.finance-card {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(0, 100, 200, 0.05));
    border: 1px solid rgba(0, 168, 255, 0.15); border-radius: 6px;
    padding: 12px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.finance-card::after {
    content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 168, 255, 0.1) 50%);
}
.finance-card.highlight {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.05));
}
.finance-card.highlight .finance-label { color: #ffd700; }
.finance-card.highlight .finance-value { color: #ffd700; }
.finance-label { font-size: 12px; color: #88a4c3; margin-bottom: 5px; }
.finance-value { font-size: 20px; font-weight: 700; color: #00d4ff; font-family: "Courier New", monospace; }
.finance-sub { font-size: 11px; color: #88a4c3; margin-top: 4px; }

/* ========== 趋势图表区 ========== */
.section-trend { padding-top: 0; }
.chart-body { padding: 15px; }
#trendChart { width: 100% !important; }

/* ========== 城市双列图表 ========== */
.city-double-wrap { display: flex; width: 100%; gap: 0; }
.city-col { flex: 1; min-width: 0; position: relative; }
.city-col canvas { display: block; width: 100%; }

/* ========== 诸暨线路 ========== */
.line-list { min-height: 380px; height: 100%; }
.line-list::-webkit-scrollbar { width: 4px; }
.line-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.line-list::-webkit-scrollbar-thumb { background: rgba(0, 168, 255, 0.3); border-radius: 2px; }
.line-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}
.line-item:hover { background: rgba(0, 168, 255, 0.05); padding-left: 8px; border-radius: 4px; }
.line-route { color: #ffffff !important; flex: 1; font-weight: 600; }
.line-km { color: #00ff88; font-size: 12px; margin: 0 10px; font-weight: 600; }

/* ========== 年度对比 — 旧横向样式保留兼容 ========== */
.compare-body { padding: 20px; }
.year-compare { display: flex; flex-direction: column; gap: 20px; }
.year-bar-item { display: flex; align-items: center; gap: 15px; }
.year-label { width: 60px; font-size: 14px; font-weight: 700; color: #00d4ff; text-align: right; }
.year-bar-wrapper { flex: 1; height: 36px; background: rgba(0, 0, 0, 0.3); border-radius: 18px; overflow: hidden; position: relative; border: 1px solid rgba(0, 168, 255, 0.1); }
.year-bar {
    height: 100%; border-radius: 18px; display: flex; align-items: center; justify-content: flex-end;
    padding-right: 12px;
    background: linear-gradient(90deg, rgba(0, 168, 255, 0.3), rgba(0, 212, 255, 0.6));
    width: 0%; transition: width 2s ease-out; position: relative; overflow: hidden;
}
.year-bar::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: barShine 2s linear infinite;
}
@keyframes barShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bar-num { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.year-unit { width: 30px; font-size: 12px; color: #88a4c3; }

/* ========== 合作车辆总数 — 仪表盘 ========== */
.vehicle-total-body { display: flex; justify-content: center; align-items: center; padding: 20px; }
.vehicle-total-ring { width: 200px; height: 130px; position: relative; margin: 0 auto; overflow: hidden; }
.dash-arc { width: 200px; height: 200px; border-radius: 50%; position: absolute; top: 0; left: 0; border: 8px solid rgba(0, 168, 255, 0.12); border-bottom-color: transparent; box-sizing: border-box; }
.tick { position: absolute; width: 2px; height: 10px; background: rgba(0, 168, 255, 0.5); left: 50%; top: 0; margin-left: -1px; transform-origin: 50% 100px; }
.tick.major { height: 14px; width: 3px; margin-left: -1.5px; background: rgba(0, 212, 255, 0.9); }
.dash-needle {
    position: absolute; width: 3px; height: 85px;
    background: linear-gradient(to bottom, #ffd700 0%, #ff6b6b 60%, #ffd700 100%);
    left: 50%; top: 15px; margin-left: -1.5px;
    transform-origin: 50% 85px; transform: rotate(-90deg);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px; z-index: 10;
}
.dash-needle::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    background: radial-gradient(circle, #ffd700 30%, #e6a800 100%);
    border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 50%;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); z-index: 11;
}
.dash-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 70px; background: linear-gradient(to top, rgba(10, 14, 39, 0.98) 30%, transparent); z-index: 5; pointer-events: none; }
.vt-ring-inner { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 20; }
.vt-number { font-size: 32px; font-weight: 700; color: #00d4ff; font-family: "Courier New", monospace; text-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
.vt-label { font-size: 14px; color: #88a4c3; }

/* ========== 周统计卡片 ========== */
.week-stats { display: flex; flex-direction: column; gap: 10px; }
.week-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0, 168, 255, 0.06); border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 6px; padding: 12px; transition: all 0.3s;
}
.week-card:hover { background: rgba(0, 168, 255, 0.1); transform: translateX(5px); }
.week-card.today { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.06); }
.week-card.today .week-value { color: #ffd700; }
.week-card.yesterday { background: rgba(255, 180, 0, 0.06); border: 1px solid rgba(255, 180, 0, 0.2); }
.week-icon { font-size: 20px; }
.week-label { font-size: 13px; color: #88a4c3; width: 40px; }
.week-value { flex: 1; font-size: 18px; font-weight: 700; color: #00d4ff; text-align: right; font-family: "Courier New", monospace; }

/* ========== 合作车辆车型 ========== */
.vehicle-tags { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; padding: 10px !important; }
.vehicle-tag {
    position: relative !important;
    background: linear-gradient(135deg, rgba(16, 30, 70, 0.9) 0%, rgba(10, 18, 50, 0.95) 100%) !important;
    border: 1px solid rgba(0, 168, 255, 0.15) !important; border-radius: 14px !important;
    padding: 14px 18px !important; display: flex !important; align-items: center !important;
    justify-content: space-between !important; gap: 10px !important; white-space: nowrap !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    min-width: 0 !important; overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.vehicle-tag::before {
    content: '' !important; position: absolute !important; left: 0 !important; top: 50% !important;
    transform: translateY(-50%) !important; width: 4px !important; height: 50% !important;
    background: linear-gradient(180deg, #00d4ff 0%, #0088cc 50%, #00d4ff 100%) !important;
    border-radius: 0 3px 3px 0 !important; opacity: 0.8 !important; transition: all 0.35s ease !important;
}
.vehicle-tag::after {
    content: '' !important; position: absolute !important; top: 0 !important; left: -100% !important;
    width: 60% !important; height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent) !important;
    transition: left 0.7s ease !important; pointer-events: none !important;
}
.vehicle-tag:hover {
    transform: translateY(-4px) scale(1.03) !important;
    border-color: rgba(0, 168, 255, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 168, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 25px rgba(0, 168, 255, 0.08) !important;
}
.vehicle-tag:hover::before { height: 75% !important; opacity: 1 !important; box-shadow: 0 0 12px rgba(0, 212, 255, 0.3) !important; }
.vehicle-tag:hover::after { left: 150% !important; }

.v-length {
    font-size: 15px !important; font-weight: 700 !important; color: #00d4ff !important;
    white-space: nowrap !important; letter-spacing: 0.5px !important; z-index: 1 !important;
    display: flex !important; align-items: center !important; gap: 6px !important;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.2) !important;
    background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
}
.v-length::before { content: '🚚' !important; font-size: 14px !important; filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3)) !important; opacity: 0.9 !important; }
.v-count {
    font-size: 13px !important; color: #88a4c3 !important; white-space: nowrap !important; z-index: 1 !important;
    display: flex !important; align-items: center !important; gap: 5px !important;
    background: transparent !important; padding: 0 !important; border-radius: 0 !important; border: none !important; box-shadow: none !important;
}
.v-count::before { content: '◆' !important; color: #00d4ff !important; font-size: 8px !important; }
.v-count .counter {
    color: #ffd700 !important; font-weight: 800 !important; font-size: 17px !important;
    font-family: 'Courier New', monospace !important; letter-spacing: 1px !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3) !important;
    background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
}

/* ========== 年度总吨位卡片 ========== */
.year-weight-card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 35, 80, 0.95) 0%, rgba(8, 15, 40, 0.98) 60%, rgba(12, 25, 60, 0.95) 100%);
    border: 1px solid rgba(0, 168, 255, 0.22); border-radius: 16px;
    padding: 28px 20px 22px; text-align: center; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.year-weight-card:hover {
    transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 16px 50px rgba(0, 168, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.year-weight-card::before {
    content: ''; position: absolute; top: 0; left: -100%; right: -100%; height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #ffd700, #00d4ff, transparent);
    animation: ywBorderFlow 2.5s linear infinite; background-size: 50% 100%;
}
@keyframes ywBorderFlow { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }
.yw-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 65%); pointer-events: none; }
.yw-ring { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 140px; height: 70px; border: 1px solid rgba(0, 168, 255, 0.1); border-bottom: none; border-radius: 140px 140px 0 0; pointer-events: none; }
.yw-ring::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 120px; height: 60px; border: 1px dashed rgba(0, 168, 255, 0.08); border-bottom: none; border-radius: 120px 120px 0 0; }
.yw-content { position: relative; z-index: 2; }
.yw-badge-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.yw-badge { font-size: 12px; font-weight: 700; color: #0a0e27; background: linear-gradient(135deg, #ffd700, #ffaa00); padding: 4px 14px; border-radius: 20px; letter-spacing: 1px; box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25); }
.yw-live-dot { width: 7px; height: 7px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); animation: ywPulse 1.2s ease-in-out infinite; }
@keyframes ywPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.5); } }
.yw-live-text { font-size: 11px; color: #00ff88; font-weight: 600; letter-spacing: 1px; }
.yw-number-box { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px; padding: 8px 0; }
.yw-number { font-size: 52px; font-weight: 900; color: #ffd700; font-family: "Courier New", "SF Mono", "DIN Alternate", monospace; text-shadow: 0 0 30px rgba(255, 215, 0, 0.35), 0 0 60px rgba(255, 215, 0, 0.15), 0 2px 4px rgba(0,0,0,0.5); letter-spacing: 2px; line-height: 1; }
.yw-unit { font-size: 20px; font-weight: 700; color: #00d4ff; text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
.yw-divider { width: 60%; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.3), transparent); }
.yw-meta { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; }
.yw-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7799aa; }
.yw-meta-icon { font-size: 14px; }
.yw-progress-wrap { width: 100%; padding: 0 10px; }
.yw-progress-track { width: 100%; height: 4px; background: rgba(0, 0, 0, 0.4); border-radius: 2px; overflow: hidden; position: relative; }
.yw-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00d4ff, #ffd700, #00d4ff); background-size: 200% 100%; border-radius: 2px; animation: ywBarFlow 2s linear infinite; position: relative; }
.yw-progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: barShine 1.5s linear infinite; }
@keyframes ywBarFlow { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* ======================================================
   新增：年度总运输量对比 — 竖向柱状图新样式
========================================================= */
.year-compare-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 50px;
    height: 240px;
    padding: 10px 20px 20px;
}
.ycv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 140px;
}
.ycv-top {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.ycv-num {
    font-size: 24px;
    font-weight: 800;
    color: #00d4ff;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 10px rgba(0,212,255,0.3);
}
.ycv-unit {
    font-size: 12px;
    color: #88a4c3;
}
.ycv-bar-wrap {
    width: 56px;
    height: 150px;
    background: rgba(0,0,0,0.25);
    border-radius: 10px 10px 6px 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,168,255,0.08);
}
.ycv-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 10px 10px 6px 6px;
    transition: height 2s ease-out;
    width: 100%;
}
.ycv-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: barShine 2s linear infinite;
}
.ycv-label {
    font-size: 13px;
    font-weight: 700;
    color: #88a4c3;
    margin-top: 4px;
}

/* 竖向柱状图响应式 */
@media (max-width: 768px) {
    .year-compare-v2 { gap: 25px; height: 200px; padding: 10px; }
    .ycv-bar-wrap { width: 40px; height: 120px; }
    .ycv-num { font-size: 18px; }
    .ycv-label { font-size: 12px; }
}
@media (max-width: 480px) {
    .year-compare-v2 { gap: 15px; height: 180px; }
    .ycv-bar-wrap { width: 32px; height: 100px; }
    .ycv-num { font-size: 15px; }
    .ycv-label { font-size: 11px; }
}

/* ======================================================
   追加：滑动窗口双线曲线图样式（2026-2038）
========================================================= */
.dual-chart-box {
    background: linear-gradient(135deg, rgba(16, 30, 70, 0.6) 0%, rgba(10, 18, 50, 0.8) 100%);
    border: 1px solid rgba(0, 168, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    height: 160px;
    display: flex;
    flex-direction: column;
}
.dual-chart-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #ffd700);
    opacity: 0.6;
}
.dual-chart-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.dual-chart-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
}
.dual-chart-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .dual-chart-wrap { height: 120px; }
    .dual-chart-box.quarter .dual-chart-wrap { min-height: 80px; }
}
@media (max-width: 480px) {
    .dual-chart-wrap { height: 100px; }
}

/* 右侧4图严格平分 */
.chart-quarter {
    flex: 1;
    min-height: 0;
    background: linear-gradient(135deg, rgba(16,30,70,0.6), rgba(10,18,50,0.8));
    border: 1px solid rgba(0,168,255,0.12);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.chart-quarter::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #ffd700);
    opacity: 0.6;
    margin: -6px -8px 4px -8px;
}
.cq-header {
    color: #00d4ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.cq-body {
    flex: 1;
    position: relative;
    min-height: 0;
}
.cq-body canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .yrc-container { grid-template-columns: 1fr 1fr; }
    .panel-center { grid-column: 1 / -1; }
    .header-center { order: -1; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .yrc-container { grid-template-columns: 1fr; gap: 10px; }
    .yrc-section { padding: 10px; }
    .data-header-inner { flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; }
    .header-left, .header-center, .header-right { flex: none; min-width: auto; width: 100%; justify-content: center; }
    .header-left { flex-wrap: wrap; gap: 4px 8px; order: 1; }
    .header-center { order: -1; margin-bottom: 2px; }
    .header-right { flex-wrap: wrap; gap: 4px 8px; order: 2; }
    .live-clock { font-size: 14px; margin-left: 0; }
    .nav-brand-current { font-size: 14px; padding: 4px 10px; }
    .title-suffix { font-size: 14px; margin-left: 4px; letter-spacing: 1px; }
    .panel-header { font-size: 13px; padding: 10px 12px; gap: 6px; }
    .panel-body { padding: 10px; }

    .top-item { padding: 10px 12px; gap: 10px; }
    .rank { width: 30px; height: 30px; font-size: 12px; }
    .city-name { font-size: 14px; }
    .transport-num strong { font-size: 16px; }
    .trend { padding: 3px 8px; font-size: 10px; }

    .finance-body { padding: 8px; }
    .finance-card { padding: 10px; margin-bottom: 8px; }
    .finance-value { font-size: 16px; }

    .compare-body { padding: 15px; }
    .year-compare { gap: 15px; }
    .year-label { width: 45px; font-size: 12px; }
    .year-bar-wrapper { height: 28px; }
    .bar-num { font-size: 12px; }

    .vehicle-total-body { padding: 15px; }
    .vehicle-total-ring { width: 160px; height: 110px; }
    .dash-arc { width: 160px; height: 160px; }
    .tick { transform-origin: 50% 80px; height: 8px; }
    .tick.major { height: 11px; transform-origin: 50% 80px; }
    .dash-needle { height: 70px; top: 10px; transform-origin: 50% 70px; }
    .dash-bottom { height: 55px; }
    .vt-ring-inner { bottom: 14px; }
    .vt-number { font-size: 24px; }
    .vt-label { font-size: 12px; }

    .week-stats { gap: 8px; }
    .week-card { padding: 10px; gap: 10px; }
    .week-icon { font-size: 16px; }
    .week-label { font-size: 12px; width: 36px; }
    .week-value { font-size: 15px; }

    .vehicle-tags { gap: 10px !important; padding: 6px !important; }
    .vehicle-tag { padding: 11px 13px !important; border-radius: 12px !important; }
    .v-length { font-size: 13px !important; }
    .v-count { font-size: 11px !important; }
    .v-count .counter { font-size: 15px !important; }

    .line-list { max-height: 240px; }
    .line-item { padding: 6px 0; font-size: 12px; }
    .line-km { font-size: 11px; margin: 0 6px; }

    .realtime-records { margin-top: 8px; }
    .records-title { font-size: 11px; margin-bottom: 6px; }
    .records-scroll { max-height: 200px; }
    .record-item { padding: 4px 0; font-size: 11px; }
    .record-plate { font-size: 11px; padding: 1px 5px; margin: 0 4px; }

    .factory-marquee { margin: 10px 0; padding: 8px 0; }
    .marquee-label { font-size: 11px; margin-bottom: 6px; }
    .factory-tag { padding: 3px 8px; font-size: 11px; }

    .monitor-ring-wrapper { width: 200px; height: 200px; }
    .ring-value { font-size: 28px; }
    .ring-label { font-size: 12px; }

    .city-multi-wrap { flex-direction: column; }
    .city-multi-wrap[data-cols="4"] .city-col { width: 100%; }
    .city-col { height: 160px; }
    .city-col canvas { height: 160px !important; }

    .year-weight-card { padding: 22px 14px 18px; }
    .yw-number { font-size: 40px; }
    .yw-unit { font-size: 16px; }
    .yw-badge { font-size: 11px; padding: 3px 10px; }
    .yw-meta { gap: 14px; }
    .yw-meta-item { font-size: 11px; }
    .yw-ring { width: 110px; height: 55px; border-radius: 110px 110px 0 0; }

    .year-compare-v2 { gap: 25px; height: 200px; padding: 10px; }
    .ycv-bar-wrap { width: 40px; height: 120px; }
    .ycv-num { font-size: 18px; }
    .ycv-label { font-size: 12px; }
}

@media (max-width: 480px) {
    .data-header-inner { padding: 6px 8px; gap: 4px; }
    .header-left { gap: 3px 6px; }
    .solar-date { font-size: 12px; }
    .lunar-date { font-size: 10px; padding: 1px 4px; }
    .week-day { font-size: 10px; }
    .ganzhi { font-size: 9px; padding: 1px 4px; }
    .shengxiao { font-size: 9px; }
    .live-clock { font-size: 12px; letter-spacing: 0; }
    .nav-brand-current { font-size: 13px; padding: 3px 8px; }
    .title-suffix { font-size: 13px; }
    .weather-temp { font-size: 13px; }
    .weather-city { font-size: 11px; }
    .weather-desc { font-size: 10px; }

    .panel-header { font-size: 12px; padding: 8px 10px; }
    .panel-body { padding: 8px; }

    .city-col { height: 140px; }
    .city-col canvas { height: 140px !important; }

    .top-item { padding: 8px 10px; gap: 8px; border-radius: 8px; }
    .rank { width: 26px; height: 26px; font-size: 11px; }
    .city-name { font-size: 13px; gap: 4px; }
    .transport-num { font-size: 11px; }
    .transport-num strong { font-size: 14px; }
    .trend { padding: 2px 6px; font-size: 9px; }

    .year-label { width: 40px; font-size: 11px; }
    .year-bar-wrapper { height: 24px; }
    .bar-num { font-size: 11px; }

    .vehicle-tag { padding: 9px 10px !important; border-radius: 10px !important; }
    .v-length { font-size: 12px !important; letter-spacing: 0.3px !important; }
    .v-count { font-size: 10px !important; }
    .v-count .counter { font-size: 13px !important; letter-spacing: 0.5px !important; }

    .week-card { padding: 8px; gap: 8px; }
    .week-icon { font-size: 14px; }
    .week-label { font-size: 11px; width: 32px; }
    .week-value { font-size: 13px; }

    .finance-value { font-size: 14px; }

    .line-item { font-size: 11px; padding: 5px 0; }
    .line-km { font-size: 10px; }

    .record-item { font-size: 10px; }
    .record-plate { font-size: 10px; padding: 1px 4px; }
    .record-date { font-size: 9px; }

    .monitor-ring-wrapper { width: 180px; height: 180px; }
    .ring-value { font-size: 24px; }
    .ring-label { font-size: 11px; }

    .vehicle-total-ring { width: 140px; height: 95px; }
    .dash-arc { width: 140px; height: 140px; }
    .tick { transform-origin: 50% 70px; height: 6px; }
    .tick.major { height: 9px; transform-origin: 50% 70px; }
    .dash-needle { height: 60px; top: 10px; transform-origin: 50% 60px; }
    .dash-bottom { height: 48px; }
    .vt-ring-inner { bottom: 12px; }
    .vt-number { font-size: 20px; }
    .vt-label { font-size: 11px; }

    .year-weight-card { padding: 18px 12px 16px; }
    .yw-number { font-size: 34px; letter-spacing: 1px; }
    .yw-unit { font-size: 14px; }
    .yw-badge-row { gap: 6px; margin-bottom: 14px; }
    .yw-meta { flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .yw-meta-item { justify-content: center; }

    .year-compare-v2 { gap: 15px; height: 180px; }
    .ycv-bar-wrap { width: 32px; height: 100px; }
    .ycv-num { font-size: 15px; }
    .ycv-label { font-size: 11px; }
}

/* ========== 修复：确保右侧面板正确撑满 ========== */
.yrc-container .panel-right {
    min-height: 0;
}


/* ======================================================
   响应式增强修复（2026-08-26）
   支持：电脑版、平板、手机通用
========================================================= */

/* ---------- 基础触摸优化 ---------- */
body.yrc-bigdata-page {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 防止iOS横屏文字放大 */
@media screen and (max-device-width: 768px) {
    body.yrc-bigdata-page {
        -webkit-text-size-adjust: none;
    }
}

/* ---------- 图片/Canvas自适应 ---------- */
.yrc-bigdata-page canvas,
.yrc-bigdata-page img {
    max-width: 100%;
    height: auto;
}

/* ---------- 顶部Header精细化响应式 ---------- */
@media (max-width: 1200px) {
    .data-header-inner {
        padding: 10px 15px;
    }
    .header-left {
        min-width: 250px;
        gap: 8px;
    }
    .header-right {
        min-width: 250px;
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .data-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        min-width: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    .header-left {
        order: 2;
        justify-content: center;
    }
    .header-center {
        order: 0;
        margin-bottom: 4px;
    }
    .header-right {
        order: 3;
        justify-content: center;
    }
    .live-clock {
        margin-left: 0;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 4px 6px;
        font-size: 11px;
    }
    .solar-date { font-size: 13px; }
    .lunar-date { font-size: 10px; padding: 1px 5px; }
    .week-day { font-size: 11px; }
    .ganzhi { font-size: 10px; padding: 1px 5px; }
    .shengxiao { font-size: 10px; }
    .live-clock {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .nav-brand-current {
        font-size: 15px;
        padding: 5px 12px;
    }
    .title-suffix {
        font-size: 15px;
        margin-left: 6px;
    }
    .weather-temp { font-size: 15px; }
    .weather-city { font-size: 12px; }
    .weather-desc { font-size: 11px; }
    .weather-humidity,
    .weather-wind {
        font-size: 10px;
    }
}

/* ---------- 品牌下拉菜单触控优化 ---------- */
@media (hover: none) and (pointer: coarse) {
    .nav-brand-menu:hover .nav-brand-dropdown {
        opacity: 0;
        visibility: hidden;
    }
    .nav-brand-menu.active .nav-brand-dropdown,
    .nav-brand-menu:focus-within .nav-brand-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-brand-item {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* ---------- 面板通用响应式增强 ---------- */
@media (max-width: 768px) {
    .yrc-section {
        padding: 8px 10px;
    }
    .yrc-container {
        gap: 10px;
    }
    .panel {
        border-radius: 6px;
    }
    .panel-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    .panel-body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .yrc-section {
        padding: 6px 8px;
    }
    .yrc-container {
        gap: 8px;
    }
    .panel-header {
        padding: 8px 10px;
        font-size: 13px;
        gap: 6px;
    }
    .panel-body {
        padding: 8px;
    }
}

/* ---------- TOP列表响应式增强 ---------- */
@media (max-width: 768px) {
    .top-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .rank {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .city-name {
        font-size: 14px;
    }
    .transport-num strong {
        font-size: 16px;
    }
    .trend {
        padding: 3px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .top-item {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 8px;
    }
    .rank {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .city-name {
        font-size: 13px;
    }
    .transport-num {
        font-size: 11px;
    }
    .transport-num strong {
        font-size: 14px;
    }
    .trend {
        padding: 2px 6px;
        font-size: 9px;
    }
}

/* ---------- 实时监控圆环响应式 ---------- */
@media (max-width: 768px) {
    .monitor-ring-wrapper {
        width: 220px;
        height: 220px;
    }
    .ring-value {
        font-size: 32px;
    }
    .ring-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .monitor-ring-wrapper {
        width: 180px;
        height: 180px;
    }
    .ring-value {
        font-size: 26px;
    }
    .ring-label {
        font-size: 11px;
    }
}

/* ---------- 双曲线图容器响应式 ---------- */
@media (max-width: 768px) {
    .dual-chart-box {
        height: 140px;
        padding: 8px 10px;
        margin-top: 8px;
    }
    .dual-chart-header {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .dual-chart-box {
        height: 120px;
        padding: 6px 8px;
    }
    .dual-chart-header {
        font-size: 11px;
    }
}

/* ---------- 右侧四图严格平分响应式 ---------- */
@media (max-width: 768px) {
    .chart-quarter {
        padding: 5px 6px;
        min-height: 110px;
    }
    .cq-header {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .chart-quarter {
        min-height: 100px;
        padding: 4px 5px;
    }
    .cq-header {
        font-size: 10px;
        margin-bottom: 2px;
    }
}

/* ---------- 城市多列图表响应式 ---------- */
@media (max-width: 768px) {
    .city-multi-wrap {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .city-col {
        height: 160px;
        width: 100% !important;
    }
    .city-col canvas {
        height: 160px !important;
    }
}

@media (max-width: 480px) {
    .city-col {
        height: 140px;
    }
    .city-col canvas {
        height: 140px !important;
    }
}

/* ---------- 趋势图表区响应式 ---------- */
@media (max-width: 768px) {
    .chart-body {
        padding: 10px;
    }
    #trendChart {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    #trendChart {
        min-height: 160px;
    }
}

/* ---------- 年度对比柱状图响应式 ---------- */
@media (max-width: 768px) {
    .year-compare-v2 {
        gap: 30px;
        height: 200px;
        padding: 10px 15px 15px;
    }
    .ycv-bar-wrap {
        width: 44px;
        height: 120px;
    }
    .ycv-num {
        font-size: 18px;
    }
    .ycv-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .year-compare-v2 {
        gap: 15px;
        height: 170px;
        padding: 8px 10px 12px;
    }
    .ycv-bar-wrap {
        width: 32px;
        height: 95px;
    }
    .ycv-num {
        font-size: 14px;
    }
    .ycv-unit {
        font-size: 10px;
    }
    .ycv-label {
        font-size: 10px;
    }
}

/* ---------- 车型/吨位图表响应式 ---------- */
@media (max-width: 768px) {
    #vehicleTypeChartCenter,
    #weightChartCenter {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    #vehicleTypeChartCenter,
    #weightChartCenter {
        min-height: 160px;
    }
}

/* ---------- 合作车辆车型标签响应式 ---------- */
@media (max-width: 768px) {
    .vehicle-tags {
        gap: 10px !important;
        padding: 8px !important;
    }
    .vehicle-tag {
        padding: 11px 13px !important;
        border-radius: 12px !important;
    }
    .v-length {
        font-size: 13px !important;
    }
    .v-count {
        font-size: 11px !important;
    }
    .v-count .counter {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .vehicle-tags {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 6px !important;
    }
    .vehicle-tag {
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }
    .v-length {
        font-size: 13px !important;
    }
    .v-count {
        font-size: 11px !important;
    }
    .v-count .counter {
        font-size: 14px !important;
    }
}

/* ---------- 诸暨线路列表响应式 ---------- */
@media (max-width: 768px) {
    .line-list {
        min-height: auto;
        max-height: 280px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .line-item {
        padding: 7px 0;
        font-size: 12px;
    }
    .line-km {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .line-list {
        max-height: 220px;
    }
    .line-item {
        padding: 6px 0;
        font-size: 11px;
    }
    .line-km {
        font-size: 10px;
        margin: 0 6px;
    }
}

/* ---------- 仪表盘响应式 ---------- */
@media (max-width: 768px) {
    .vehicle-total-body {
        padding: 15px;
    }
    .vehicle-total-ring {
        width: 160px;
        height: 110px;
    }
    .dash-arc {
        width: 160px;
        height: 160px;
    }
    .tick {
        transform-origin: 50% 80px;
        height: 8px;
    }
    .tick.major {
        height: 11px;
        transform-origin: 50% 80px;
    }
    .dash-needle {
        height: 70px;
        top: 10px;
        transform-origin: 50% 70px;
    }
    .dash-bottom {
        height: 55px;
    }
    .vt-ring-inner {
        bottom: 14px;
    }
    .vt-number {
        font-size: 24px;
    }
    .vt-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .vehicle-total-ring {
        width: 140px;
        height: 95px;
    }
    .dash-arc {
        width: 140px;
        height: 140px;
    }
    .tick {
        transform-origin: 50% 70px;
        height: 6px;
    }
    .tick.major {
        height: 9px;
        transform-origin: 50% 70px;
    }
    .dash-needle {
        height: 60px;
        top: 10px;
        transform-origin: 50% 60px;
    }
    .dash-bottom {
        height: 48px;
    }
    .vt-ring-inner {
        bottom: 12px;
    }
    .vt-number {
        font-size: 20px;
    }
    .vt-label {
        font-size: 11px;
    }
}

/* ---------- 每日运输量图表响应式 ---------- */
@media (max-width: 768px) {
    .daily-chart-wrap {
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .daily-chart-wrap {
        min-height: 120px;
    }
}

/* ---------- 周统计卡片响应式 ---------- */
@media (max-width: 768px) {
    .week-stats {
        gap: 8px;
    }
    .week-card {
        padding: 10px;
        gap: 10px;
    }
    .week-icon {
        font-size: 18px;
    }
    .week-label {
        font-size: 12px;
        width: 36px;
    }
    .week-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .week-card {
        padding: 8px;
        gap: 8px;
    }
    .week-icon {
        font-size: 16px;
    }
    .week-label {
        font-size: 11px;
        width: 32px;
    }
    .week-value {
        font-size: 14px;
    }
}

/* ---------- 年度吨位图表响应式 ---------- */
@media (max-width: 768px) {
    #yearWeightChart {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    #yearWeightChart {
        min-height: 110px;
    }
}

/* ---------- 年度总吨位卡片响应式 ---------- */
@media (max-width: 768px) {
    .year-weight-card {
        padding: 22px 16px 18px;
    }
    .yw-number {
        font-size: 42px;
    }
    .yw-unit {
        font-size: 18px;
    }
    .yw-badge {
        font-size: 11px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .year-weight-card {
        padding: 18px 12px 16px;
    }
    .yw-number {
        font-size: 34px;
        letter-spacing: 1px;
    }
    .yw-unit {
        font-size: 15px;
    }
    .yw-badge-row {
        gap: 6px;
        margin-bottom: 14px;
    }
    .yw-meta {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
    }
    .yw-meta-item {
        justify-content: center;
        font-size: 11px;
    }
    .yw-ring {
        width: 110px;
        height: 55px;
        border-radius: 110px 110px 0 0;
    }
}

/* ---------- 走马灯响应式 ---------- */
@media (max-width: 768px) {
    .factory-marquee {
        margin: 10px 0;
        padding: 8px 0;
    }
    .marquee-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .factory-tag {
        padding: 3px 10px;
        font-size: 11px;
    }
}

/* ---------- 实时记录响应式 ---------- */
@media (max-width: 768px) {
    .realtime-records {
        margin-top: 8px;
    }
    .records-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .records-scroll {
        max-height: 180px;
    }
    .record-item {
        padding: 4px 0;
        font-size: 11px;
    }
    .record-plate {
        font-size: 11px;
        padding: 1px 5px;
        margin: 0 4px;
    }
    .record-date {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .records-scroll {
        max-height: 150px;
    }
    .record-item {
        font-size: 10px;
    }
    .record-plate {
        font-size: 10px;
    }
    .record-date {
        font-size: 9px;
    }
}

/* ---------- 触摸设备交互优化 ---------- */
@media (hover: none) and (pointer: coarse) {
    .top-item:hover {
        transform: none;
    }
    .vehicle-tag:hover {
        transform: none !important;
    }
    .week-card:hover {
        transform: none;
    }
    .panel:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .year-weight-card:hover {
        transform: none;
    }
}

/* ---------- 横屏手机优化 ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .yrc-data-header {
        padding: 6px 0;
    }
    .data-header-inner {
        gap: 4px;
    }
    .header-left,
    .header-center,
    .header-right {
        min-width: auto;
    }
    .live-clock {
        font-size: 14px;
    }
    .monitor-ring-wrapper {
        width: 160px;
        height: 160px;
    }
    .ring-value {
        font-size: 24px;
    }
}

/* ---------- 超小屏设备 ---------- */
@media (max-width: 360px) {
    .yrc-section {
        padding: 5px 6px;
    }
    .panel-header {
        font-size: 12px;
        padding: 6px 8px;
    }
    .panel-body {
        padding: 6px;
    }
    .nav-brand-current {
        font-size: 13px;
        padding: 4px 8px;
    }
    .title-suffix {
        font-size: 13px;
    }
    .dual-chart-box {
        height: 110px;
    }
    .chart-quarter {
        min-height: 90px;
    }
    .city-col {
        height: 120px;
    }
    .city-col canvas {
        height: 120px !important;
    }
    .year-compare-v2 {
        gap: 10px;
        height: 150px;
    }
    .ycv-bar-wrap {
        width: 28px;
        height: 85px;
    }
    .ycv-num {
        font-size: 13px;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    body.yrc-bigdata-page {
        background: #fff !important;
        color: #000 !important;
    }
    .yrc-data-header,
    .panel::before,
    .monitor-ring-wrapper,
    .dash-arc,
    .dash-needle {
        display: none !important;
    }
    .panel {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ========== HUD响应式 ========== */
@media (max-width: 768px) {
    .monitor-hud-wrapper {
        width: 240px;
        height: 240px;
    }
    .hud-orbit-1 { width: 180px; height: 180px; }
    .hud-orbit-2 { width: 210px; height: 210px; }
    .hud-orbit-3 { width: 150px; height: 150px; }
    .hud-scanline { width: 220px; height: 220px; }
    .hud-value { font-size: 36px; }
    .hud-brand { font-size: 11px; }
    .hud-unit { font-size: 10px; }
    .hud-corner { width: 14px; height: 14px; }
    .hud-corner-tl { top: 20px; left: 20px; }
    .hud-corner-tr { top: 20px; right: 20px; }
    .hud-corner-bl { bottom: 20px; left: 20px; }
    .hud-corner-br { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .monitor-hud-wrapper {
        width: 200px;
        height: 200px;
    }
    .hud-orbit-1 { width: 150px; height: 150px; }
    .hud-orbit-2 { width: 175px; height: 175px; }
    .hud-orbit-3 { width: 125px; height: 125px; }
    .hud-scanline { width: 180px; height: 180px; }
    .hud-value { font-size: 30px; }
    .hud-brand { font-size: 10px; }
    .hud-live-badge { padding: 1px 7px; }
    .hud-live-text { font-size: 9px; }
    .hud-corner { width: 10px; height: 10px; }
}

/* ======================================================
 * v5.0 日期天气4框样式（自模板内联迁入，2026-09-09）
 * 桌面单行紧凑不换行；手机版4个独立大框
 ====================================================== */
.yrc-data-header .header-left{flex-wrap:nowrap;white-space:nowrap}
.ab-dt-box{display:inline-flex;align-items:center;gap:6px;background:rgba(13,25,48,0.85);
  border:1px solid rgba(255,255,255,0.12);border-radius:8px;padding:6px 16px;font-size:17px;flex-shrink:0}
.ab-dt-box.ab-dt-clock{padding:6px 20px}
.ab-dt-clock .live-clock{font-weight:700;font-size:18px}
@media (max-width:768px){
  .yrc-data-header .data-header-inner{flex-wrap:wrap}
  .yrc-data-header .header-left{flex-wrap:wrap;white-space:normal}
  .header-left{width:100%;justify-content:center;gap:10px}
  .header-right{width:100%;justify-content:center;margin-top:10px}
  .ab-dt-box{flex:1 1 44%;justify-content:center;font-size:15px;padding:12px 8px;
    border-radius:10px;gap:8px;flex-wrap:wrap;text-align:center;line-height:1.6}
  .ab-dt-box.ab-dt-clock{flex:1 1 100%}
  .header-right .ab-dt-box:last-child{flex:1 1 100%}
  .ab-dt-box .live-clock{font-size:18px}
}