/* ================================================================
   燎电视界 · 设计系统基础层
   主题：曜石深空 / 电弧青 / 琥珀警示
   ================================================================ */
:root {
    --bg-0: #04070d;
    --bg-1: #060b14;
    --bg-2: #0a1120;
    --bg-3: #0d1728;
    --panel: #0b1422;
    --panel-2: #101c30;
    --panel-3: #14233a;
    --line: rgba(126, 170, 214, .13);
    --line-2: rgba(126, 170, 214, .26);
    --line-hot: rgba(57, 230, 242, .45);

    --cyan: #39e6f2;
    --cyan-2: #1fb3c8;
    --blue: #4f8cff;
    --amber: #ffb648;
    --red: #ff5f72;
    --green: #38e0a4;
    --purple: #a78bfa;

    --text: #e9f2fb;
    --text-2: #a4b6ca;
    --text-3: #6b7f95;
    --text-4: #46596d;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow: 0 18px 48px rgba(0, 0, 0, .35);
    --shadow-soft: 0 8px 26px rgba(0, 0, 0, .22);
    --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --mono: "Bahnschrift", "DIN Alternate", "JetBrains Mono", "Cascadia Mono", "Segoe UI", monospace;
    --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(57, 230, 242, .28); color: #fff; }

h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
strong, b { font-weight: 600; }
em { font-style: normal; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(126, 170, 214, .18); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(126, 170, 214, .32); }

/* 通用工具 */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-cyan { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }

/* 背景层 */
.app-body {
    background:
        radial-gradient(1200px 620px at 82% -8%, rgba(31, 179, 200, .10), transparent 60%),
        radial-gradient(900px 500px at -8% 40%, rgba(79, 140, 255, .08), transparent 62%),
        linear-gradient(180deg, #060b14 0%, #04070d 100%);
}
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(126, 170, 214, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 170, 214, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow-a { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(57, 230, 242, .10); }
.bg-glow-b { width: 420px; height: 420px; left: 20%; bottom: -260px; background: rgba(79, 140, 255, .09); }
.bg-scan {
    position: absolute; left: 0; right: 0; height: 220px; top: -220px;
    background: linear-gradient(180deg, transparent, rgba(57, 230, 242, .035), transparent);
    animation: scanMove 14s linear infinite;
}
@keyframes scanMove { to { transform: translateY(calc(100vh + 440px)); } }

/* 错误页 */
.error-body { display: flex; align-items: center; justify-content: center; background: var(--bg-0); }
.error-card {
    width: 460px; max-width: 92vw; padding: 44px 40px; text-align: center; border-radius: 22px;
    background: linear-gradient(160deg, rgba(20, 35, 58, .9), rgba(8, 14, 24, .95));
    border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.error-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: var(--amber); background: rgba(255, 182, 72, .1); border: 1px solid rgba(255, 182, 72, .3); }
.error-card h1 { font-size: 22px; margin-bottom: 10px; }
.error-card p { color: var(--text-2); margin-bottom: 24px; }
