:root {
    --bg-color: #020617;
    --primary-color: #fbbf24; /* 醒目的琥珀黄，远距离穿透力强 */
    --accent-color: #22d3ee; /* 极光青 */
    --text-main: #ffffff;
    --text-dim: #64748b;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', 'Impact', 'Microsoft YaHei', sans-serif;
    height: 100vh;
    padding: 1.5vh 1.5vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.5vh;
}

/* 顶部时间栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5vh;
    flex-shrink: 0;
}

.header h1 { font-size: 1.8vh; color: var(--text-dim); margin-bottom: 0.2vh; display: flex; align-items: center; gap: 1vh; }
.header-right { text-align: right; }
.time-text { font-size: 5vh; font-weight: 800; color: var(--accent-color); line-height: 1; }
.date-text { font-size: 2vh; color: var(--text-dim); }

/* 演示版徽标 */
.demo-badge {
    font-size: 1.1vh;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000;
    background: var(--primary-color);
    padding: 0.3vh 0.9vh;
    border-radius: 999px;
    vertical-align: middle;
}

/* 主看板容器 */
.layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.5vh;
    height: 100%;
    min-height: 0;
}

/* 1. 顶部 VIN 码 */
.vin-box {
    grid-column: 1 / -1;
    background: #0f172a;
    padding: 1.5vh 2vw;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vin-label { font-size: 2vh; color: var(--primary-color); font-weight: bold; margin-bottom: 0.5vh; }
.vin-value { font-size: min(14vh, 9vw); font-weight: 900; letter-spacing: 0.5vw; color: #fff; line-height: 0.9; text-align: center; white-space: nowrap; transition: opacity 0.25s ease; }

/* 2. 左侧数据大字区 */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vh;
}

.data-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5vh 1.5vw;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.label { font-size: 2.5vh; color: var(--text-dim); margin-bottom: 0.5vh; font-weight: 600; }
.val {
    font-size: 8vh;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    white-space: pre;
}
.unit { font-size: 3vh; color: var(--accent-color); margin-left: 10px; }

/* 3. 右侧图片辅助区 */
.visual-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.image-card {
    flex: 1;
    background: radial-gradient(circle, #1e293b, #020617);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5vh;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.image-card img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); transition: opacity 0.25s ease; }

.region-tag-large {
    background: var(--accent-color);
    color: #000;
    font-size: 6vh;
    font-weight: 900;
    text-align: center;
    padding: 1.5vh;
    border-radius: 12px;
    text-transform: uppercase;
}

/* 切换动画 */
@keyframes vin-pop {
    0% { opacity: 0; transform: translateY(0.4vh); }
    100% { opacity: 1; transform: translateY(0); }
}
.vin-value.swap, .image-card img.swap { animation: vin-pop 0.35s ease; }

/* 较窄 / 5:4 屏 */
@media screen and (max-aspect-ratio: 13/10) {
    .vin-value { font-size: min(11vh, 9vw); }
    .val { font-size: 7vh; }
    .region-tag-large { font-size: 5vh; }
}

/* 较窄桌面兜底（本看板主打 16:9 大屏；窄屏允许横向滚动，避免卡片被压窄） */
@media screen and (max-width: 1080px) {
    body { overflow: auto; }
    .layout-grid { grid-template-columns: minmax(640px, 1.8fr) minmax(300px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .vin-value, .image-card img { transition: none; }
    .vin-value.swap, .image-card img.swap { animation: none; }
}
