/* 计划物流监视系统 — 深蓝科技大屏 */
:root {
    --wall-bg: #020b1a;
    --wall-panel: rgba(8, 28, 58, 0.82);
    --wall-border: rgba(0, 198, 255, 0.35);
    --wall-glow: rgba(0, 229, 255, 0.45);
    --wall-cyan: #00e5ff;
    --wall-blue: #3aa0ff;
    --wall-text: #e8f4ff;
    --wall-muted: #7aa4c8;
    --wall-ok: #3dd68c;
    --wall-warn: #ffb020;
    --wall-danger: #ff6b6b;
}

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

html, body.wall-body {
    height: 100%;
    overflow: hidden;
    font-family: "DIN Alternate", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--wall-text);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 80, 160, 0.35), transparent 55%),
        linear-gradient(180deg, #031227 0%, var(--wall-bg) 40%, #010710 100%);
}

.wall-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 16px 8px;
    gap: 8px;
}

.wall-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 64px;
    padding: 0 8px 6px;
    border-bottom: 1px solid rgba(0, 198, 255, 0.25);
    background:
        linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.08), transparent);
}

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

.wall-nav-right { justify-content: flex-end; }

.wall-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 6px 12px;
    color: var(--wall-cyan);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    border: 1px solid var(--wall-border);
    background: linear-gradient(180deg, rgba(0, 80, 140, 0.45), rgba(0, 40, 80, 0.35));
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.wall-nav-btn:hover {
    color: #fff;
    border-color: var(--wall-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.wall-nav-exit { color: #ffb4b4; }

.wall-title-wrap {
    text-align: center;
    padding: 0 16px;
}

.wall-title {
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: 0.18em;
    background: linear-gradient(180deg, #ffffff 20%, var(--wall-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.wall-title-line {
    height: 2px;
    margin: 6px auto 0;
    width: min(420px, 50vw);
    background: linear-gradient(90deg, transparent, var(--wall-cyan), transparent);
    box-shadow: 0 0 10px var(--wall-glow);
}

.wall-clock {
    position: absolute;
    right: 12px;
    bottom: -2px;
    font-size: 12px;
    color: var(--wall-muted);
    font-variant-numeric: tabular-nums;
}

.wall-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.05fr 1.3fr 1.05fr;
    grid-template-rows: 1fr 1.15fr;
    gap: 10px;
}

.wall-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--wall-panel);
    border: 1px solid var(--wall-border);
    box-shadow:
        inset 0 0 30px rgba(0, 120, 200, 0.08),
        0 0 16px rgba(0, 40, 80, 0.35);
    position: relative;
    overflow: hidden;
}

.wall-panel::before,
.wall-panel::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--wall-cyan);
    pointer-events: none;
    opacity: 0.7;
}
.wall-panel::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.wall-panel::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.wall-panel-title {
    flex: 0 0 auto;
    padding: 8px 14px 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--wall-cyan);
    border-bottom: 1px solid rgba(0, 198, 255, 0.18);
    background: linear-gradient(90deg, rgba(0, 140, 220, 0.18), transparent 60%);
}

.wall-hint {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 400;
    color: var(--wall-muted);
    letter-spacing: 0;
}

.wall-panel-body {
    flex: 1;
    min-height: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wall-today-body {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}

.wall-line-rank {
    flex: 0 0 28%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

.wall-line-rank-empty {
    color: var(--wall-muted);
    font-size: 12px;
    padding: 8px;
}

.wall-line-row {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 2px 8px;
    align-content: center;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(0, 180, 255, 0.18);
    background: rgba(0, 40, 80, 0.35);
}

.wall-line-idx {
    font-size: 12px;
    color: var(--wall-cyan);
    font-weight: 700;
}

.wall-line-name {
    font-size: 13px;
    color: var(--wall-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-line-qty {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wall-line-bar {
    grid-column: 2 / -1;
    height: 4px;
    margin-top: 3px;
    background: rgba(0, 40, 80, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.2);
    overflow: hidden;
}

.wall-line-bar > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0088cc, var(--wall-cyan));
}

.wall-line-meta {
    grid-column: 2 / -1;
    font-size: 10px;
    color: var(--wall-muted);
    line-height: 1.2;
}

.wall-kpi-col {
    flex: 0 0 26%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.wall-kpi {
    padding: 6px 10px;
    border: 1px solid rgba(0, 180, 255, 0.2);
    background: rgba(0, 40, 80, 0.35);
}

.wall-kpi.inline {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.wall-kpi-label {
    display: block;
    font-size: 12px;
    color: var(--wall-muted);
    margin-bottom: 2px;
}

.wall-kpi-value {
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.wall-kpi-sm {
    font-size: clamp(13px, 1.1vw, 16px);
    letter-spacing: 0.02em;
    word-break: break-all;
}

.wall-ok { color: var(--wall-ok); }
.wall-warn { color: var(--wall-warn); }

.wall-chart-box {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.wall-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.wall-month-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}

.wall-stat-card {
    flex: 0 0 22%;
    text-align: center;
    padding: 14px 8px;
    border: 1px solid rgba(0, 180, 255, 0.28);
    background: rgba(0, 50, 100, 0.35);
}

.wall-stat-label {
    display: block;
    font-size: 12px;
    color: var(--wall-muted);
    margin-bottom: 8px;
}

.wall-stat-value {
    display: block;
    font-size: clamp(24px, 2.2vw, 36px);
    font-weight: 700;
    color: var(--wall-cyan);
}

.wall-stat-sub {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--wall-blue);
}

.wall-month-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wall-ring {
    width: min(220px, 28vw);
    height: min(220px, 28vw);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 229, 255, 0.55);
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.25),
        inset 0 0 40px rgba(0, 120, 220, 0.25);
    background:
        radial-gradient(circle at 50% 40%, rgba(30, 100, 180, 0.55), rgba(2, 20, 50, 0.9));
    animation: wall-pulse 3.5s ease-in-out infinite;
}

@keyframes wall-pulse {
    0%, 100% { box-shadow: 0 0 24px rgba(0, 229, 255, 0.2), inset 0 0 36px rgba(0, 120, 220, 0.22); }
    50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), inset 0 0 48px rgba(0, 140, 240, 0.3); }
}

.wall-ring-label {
    font-size: 13px;
    color: var(--wall-muted);
    margin-bottom: 6px;
}

.wall-ring-value {
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wall-hex-row {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 4px 0 8px;
}

.wall-hex {
    width: 96px;
    height: 88px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(160deg, rgba(0, 180, 255, 0.35), rgba(0, 60, 120, 0.55));
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.wall-hex-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.wall-hex-label {
    font-size: 11px;
    color: var(--wall-muted);
}

.wall-hbar-box { min-height: 120px; }
.wall-series-box { min-height: 0; flex: 1; }

.wall-order-kpis {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.wall-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.wall-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wall-table th,
.wall-table td {
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 140, 200, 0.15);
}

.wall-table th {
    position: sticky;
    top: 0;
    background: rgba(0, 40, 80, 0.95);
    color: var(--wall-cyan);
    font-weight: 600;
    z-index: 1;
}

.wall-table tbody tr:nth-child(even) {
    background: rgba(0, 60, 120, 0.18);
}

.wall-table td { color: var(--wall-text); }

.wall-table .abnormal { color: var(--wall-danger); font-weight: 600; }

.wall-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.wall-progress-track {
    flex: 1;
    height: 8px;
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid rgba(0, 180, 255, 0.25);
    overflow: hidden;
}

.wall-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0088cc, var(--wall-cyan));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}

.wall-progress-pct {
    width: 40px;
    text-align: right;
    color: var(--wall-muted);
    font-variant-numeric: tabular-nums;
}

.wall-ship-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.wall-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--wall-muted);
    padding: 2px 0;
}

.wall-footer-sep { opacity: 0.5; }

@media (max-width: 1100px) {
    body.wall-body { overflow: auto; }
    .wall-shell { height: auto; min-height: 100%; }
    .wall-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .wall-panel { min-height: 280px; }
    .wall-header {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 20px;
    }
    .wall-nav { justify-content: center; }
    .wall-clock { position: static; text-align: center; }
}
