/* 数据大屏 · 科技感三栏布局（图三样式 + 图二数据） */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.screen-page {
    height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: #b8d4f0;
    background: #030b1a;
}

.screen-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 180, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 60% at 0% 50%, rgba(0, 100, 200, 0.12), transparent),
        radial-gradient(ellipse 40% 60% at 100% 50%, rgba(0, 100, 200, 0.12), transparent),
        linear-gradient(180deg, #020810 0%, #061428 50%, #030b1a 100%);
}

.screen-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 20%, transparent 75%);
}

.screen-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.screen-glow-l {
    left: -80px;
    top: 30%;
    background: #0066cc;
}

.screen-glow-r {
    right: -80px;
    top: 40%;
    background: #00aaff;
}

.screen-wrap {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px 16px 8px;
    box-sizing: border-box;
}

/* ---------- 顶栏 ---------- */
.screen-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
    flex-shrink: 0;
}

.screen-header-side {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.screen-header-actions {
    justify-content: flex-end;
}

.screen-title-box {
    text-align: center;
}

.screen-title-box h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #e8f4ff;
    text-shadow: 0 0 24px rgba(0, 200, 255, 0.6);
}

.screen-title-box p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #5a8ab0;
    letter-spacing: 0.2em;
}

.screen-title-deco {
    display: inline-block;
    width: 60px;
    height: 2px;
    margin: 0 12px;
    vertical-align: middle;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 4px;
    background: rgba(0, 80, 140, 0.25);
    font-size: 12px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.screen-clock {
    color: #7eb8e0;
    font-variant-numeric: tabular-nums;
}

.btn-screen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(0, 120, 200, 0.5), rgba(0, 60, 120, 0.5));
    color: #e8f4ff;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.btn-screen:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
}

.btn-screen-ghost {
    background: transparent;
}

.btn-screen.is-loading i {
    animation: spin 0.8s linear infinite;
}

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

/* ---------- 顶部 KPI（图二五类指标） ---------- */
.screen-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.screen-kpi {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.45) 0%, rgba(0, 30, 60, 0.35) 100%);
    box-shadow: inset 0 0 20px rgba(0, 150, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.screen-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.screen-kpi-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 150, 255, 0.2);
    color: #00d4ff;
    font-size: 18px;
}

.screen-kpi--revenue .screen-kpi-icon { color: #ffc107; background: rgba(255, 193, 7, 0.15); }
.screen-kpi--matchmaker .screen-kpi-icon { color: #ff6b9d; }
.screen-kpi--activity .screen-kpi-icon { color: #00e676; }
.screen-kpi--merchant .screen-kpi-icon { color: #b388ff; }

.screen-kpi-body {
    flex: 1;
    min-width: 0;
}

.screen-kpi-body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e8f4ff;
}

.screen-kpi-tip {
    margin: 0 0 4px;
    font-size: 10px;
    color: #5a8ab0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screen-kpi-metrics {
    display: flex;
    gap: 8px;
}

.screen-kpi-m {
    flex: 1;
    text-align: center;
}

.screen-kpi-m span {
    display: block;
    font-size: 10px;
    color: #5a8ab0;
    margin-bottom: 2px;
}

.screen-kpi-m strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #c8e6ff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.screen-kpi-m.is-accent strong {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ---------- 三栏主体 ---------- */
.screen-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 22% 1fr 22%;
    gap: 12px;
}

.screen-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.screen-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 160, 255, 0.28);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.55) 0%, rgba(0, 25, 50, 0.4) 100%);
    box-shadow: inset 0 0 30px rgba(0, 120, 200, 0.05);
    overflow: hidden;
}

.screen-panel-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 160, 255, 0.2);
    background: rgba(0, 60, 120, 0.25);
}

.screen-panel-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e8f4ff;
}

.screen-panel-head h3 i {
    margin-right: 6px;
    color: #00d4ff;
}

.screen-panel-sub {
    font-size: 11px;
    color: #5a8ab0;
}

.screen-panel-sub strong {
    color: #00d4ff;
}

.screen-chart {
    flex: 1;
    min-height: 120px;
}

.screen-chart-trend {
    min-height: 140px;
}

/* ---------- 中央主视觉 ---------- */
.screen-panel-hero {
    flex: 1.2;
}

.screen-hero {
    position: relative;
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screen-core {
    position: relative;
    width: 200px;
    height: 200px;
}

.screen-core-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    animation: coreSpin 12s linear infinite;
}

.screen-core-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 212, 255, 0.2);
}

@keyframes coreSpin {
    to { transform: rotate(360deg); }
}

.screen-core-inner {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(0, 180, 255, 0.35), rgba(0, 40, 100, 0.8));
    box-shadow: 0 0 60px rgba(0, 180, 255, 0.4), inset 0 0 40px rgba(0, 100, 200, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.core-label {
    margin: 0;
    font-size: 12px;
    color: #7eb8e0;
}

.core-value {
    margin: 4px 0 0;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.core-unit {
    margin: 4px 0 0;
    font-size: 12px;
    color: #5a8ab0;
}

.screen-orbit {
    position: absolute;
    padding: 8px 12px;
    border: 1px solid rgba(0, 180, 255, 0.35);
    border-radius: 6px;
    background: rgba(0, 50, 100, 0.6);
    text-align: center;
    min-width: 88px;
    animation: orbitFloat 4s ease-in-out infinite;
}

.screen-orbit-tl { left: 8%; top: 12%; animation-delay: 0s; }
.screen-orbit-tr { right: 8%; top: 12%; animation-delay: -1s; }
.screen-orbit-bl { left: 8%; bottom: 12%; animation-delay: -2s; }
.screen-orbit-br { right: 8%; bottom: 12%; animation-delay: -3s; }

@keyframes orbitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.orbit-label {
    display: block;
    font-size: 11px;
    color: #5a8ab0;
}

.orbit-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
    font-variant-numeric: tabular-nums;
}

/* ---------- 六边形流程 ---------- */
.screen-panel-flow {
    flex-shrink: 0;
}

.screen-hex-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 10px;
}

.hex-step {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hex-shape {
    position: relative;
    width: 100px;
    padding: 12px 8px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 100, 180, 0.6), rgba(0, 60, 120, 0.5));
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.hex-num {
    display: block;
    font-size: 10px;
    color: #00d4ff;
}

.hex-label {
    display: block;
    font-size: 11px;
    color: #b8d4f0;
    margin: 2px 0;
}

.hex-count {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.hex-rate {
    display: block;
    font-size: 10px;
    color: #5a8ab0;
}

.hex-arrow {
    color: #00d4ff;
    font-size: 18px;
    opacity: 0.7;
}

/* ---------- 右侧表格 ---------- */
.screen-table-wrap {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

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

.screen-table th,
.screen-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 120, 200, 0.2);
}

.screen-table th {
    color: #5a8ab0;
    font-weight: 500;
    background: rgba(0, 50, 100, 0.3);
}

.screen-table tbody tr {
    transition: background 0.2s;
}

.screen-table tbody tr.is-clickable {
    cursor: pointer;
}

.screen-table tbody tr.is-clickable:hover {
    background: rgba(0, 150, 255, 0.15);
}

.tbl-num {
    font-weight: 700;
    color: #00d4ff;
    font-variant-numeric: tabular-nums;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.tag-warn {
    background: rgba(255, 152, 0, 0.25);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.tag-ok {
    background: rgba(0, 200, 100, 0.15);
    color: #69f0ae;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

/* ---------- 页脚 ---------- */
.screen-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    padding: 6px 4px 0;
    font-size: 11px;
    color: #5a8ab0;
}

.screen-footer em {
    font-style: normal;
    color: #7eb8e0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
    .screen-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .screen-body {
        grid-template-columns: 1fr 1.2fr 1fr;
    }

    .screen-kpi-m strong {
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .screen-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .screen-page,
    html, body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .screen-wrap {
        height: auto;
        min-height: 100vh;
    }

    .screen-col {
        min-height: 400px;
    }
}
