@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
    --bg: #01080b;
    --panel: rgba(3, 17, 22, 0.76);
    --cy: #3ff2d4;
    --cy-2: #a8fff1;
    --cy-dim: rgba(63, 242, 212, 0.45);
    --line: rgba(63, 242, 212, 0.15);
    --line-2: rgba(63, 242, 212, 0.32);
    --text: #dcfff8;
    --soft: #b4dcd5;
    --muted: #6a9f98;
    --faint: #36605b;
    --ok: #7dffb2;
    --warn: #ffc857;
    --red: #ff4d6d;
    --cyan: var(--cy);
    --top: 64px;
    --bottom: 30px;
    --mono: "Share Tech Mono", ui-monospace, monospace;
    --disp: "Orbitron", "Rajdhani", "Noto Sans SC", sans-serif;
    --ui: "Rajdhani", "Noto Sans SC", sans-serif;
    --body: "Noto Sans SC", "Rajdhani", "Segoe UI", sans-serif;
    --glow: 0 0 14px rgba(63, 242, 212, 0.35);
    --brk:
        linear-gradient(#3ff2d4, #3ff2d4) 0 0 / 14px 1px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 0 0 / 1px 14px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 100% 0 / 14px 1px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 100% 0 / 1px 14px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 0 100% / 14px 1px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 0 100% / 1px 14px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 100% 100% / 14px 1px no-repeat,
        linear-gradient(#3ff2d4, #3ff2d4) 100% 100% / 1px 14px no-repeat;
    --cut: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background:
        radial-gradient(1100px 680px at 50% 48%, rgba(18, 92, 88, 0.22), transparent 70%),
        radial-gradient(700px 420px at 92% 0%, rgba(63, 242, 212, 0.07), transparent 70%),
        radial-gradient(circle, rgba(63, 242, 212, 0.08) 1px, transparent 1.4px) 0 0 / 24px 24px,
        var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
::selection { background: rgba(63, 242, 212, 0.35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(63, 242, 212, 0.35) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(63, 242, 212, 0.3); }
::-webkit-scrollbar-track { background: transparent; }

body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 12;
    background: repeating-linear-gradient(to bottom, rgba(63, 242, 212, 0.035) 0 1px, transparent 1px 3px);
}
body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 11;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes load { to { width: 100%; } }
@keyframes scan { to { top: 100%; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes warp { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes blip { 0%, 60% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- BOOT ---------- */
.boot {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
    background: radial-gradient(circle at center, rgba(22, 96, 92, 0.35), #010609 66%);
    transition: opacity 0.45s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-panel {
    position: relative; width: min(500px, calc(100vw - 32px)); padding: 34px 28px 22px; text-align: center;
    border: 1px solid var(--line-2); background: var(--brk), rgba(2, 14, 18, 0.92);
    box-shadow: 0 0 60px rgba(63, 242, 212, 0.14), inset 0 0 40px rgba(63, 242, 212, 0.05);
}
.boot-panel::before {
    content: "SYS.BOOT // AIO-MULTIVERSE"; position: absolute; left: 14px; top: -9px; padding: 0 8px;
    background: #010a0d; font: 10px/18px var(--mono); letter-spacing: 0.3em; color: var(--cy);
}
.boot-orbit {
    position: relative; width: 96px; height: 96px; margin: 0 auto 18px;
    border: 1px dashed var(--cy-dim); border-radius: 50%; animation: spin 6s linear infinite;
}
.boot-orbit::before {
    content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid transparent;
    border-top-color: var(--cy); border-bottom-color: var(--cy); animation: spin 1.4s linear infinite reverse;
}
.boot-orbit::after {
    content: ""; position: absolute; inset: 38px; border-radius: 50%; background: var(--cy);
    box-shadow: 0 0 22px var(--cy); animation: pulse 1.2s ease-in-out infinite;
}
.boot-orbit i {
    position: absolute; width: 8px; height: 8px; top: -4px; left: calc(50% - 4px);
    background: var(--cy); box-shadow: 0 0 12px var(--cy); transform: rotate(45deg);
}
.boot h2 { margin: 0 0 6px; font: 700 20px/1.3 var(--disp); letter-spacing: 0.32em; color: #eafffb; text-shadow: var(--glow); }
.boot p { margin: 0 0 18px; font: 12px/1.4 var(--mono); letter-spacing: 0.3em; color: var(--muted); }
.boot-track {
    height: 8px; padding: 1px; border: 1px solid var(--cy-dim);
    background: repeating-linear-gradient(90deg, rgba(63, 242, 212, 0.08) 0 6px, transparent 6px 8px);
}
.boot-track b {
    display: block; height: 100%; width: 0;
    background: repeating-linear-gradient(90deg, var(--cy) 0 6px, transparent 6px 8px);
    filter: drop-shadow(0 0 4px var(--cy)); animation: load 2s linear forwards;
}
.boot-readout { margin-top: 10px; font: 14px/1 var(--mono); letter-spacing: 0.2em; color: var(--cy); }

/* ---------- TOP / STATUS ---------- */
.topbar, .statusbar {
    position: fixed; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 18px; font: 13px/1 var(--mono); letter-spacing: 0.14em;
}
.topbar {
    top: 0; height: var(--top);
    background: linear-gradient(180deg, rgba(2, 14, 18, 0.94), rgba(2, 12, 16, 0.72));
    border-bottom: 1px solid var(--line-2); backdrop-filter: blur(14px);
}
.topbar::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none; opacity: 0.5;
    background: repeating-linear-gradient(90deg, rgba(63, 242, 212, 0.35) 0 1px, transparent 1px 14px);
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent 0, var(--cy) 18%, transparent 38%, transparent 62%, var(--cy) 82%, transparent 100%);
    box-shadow: 0 0 10px var(--cy);
}
.statusbar {
    bottom: 0; height: var(--bottom); border-top: 1px solid var(--line);
    background: rgba(1, 10, 13, 0.9); color: var(--muted); font-size: 11px; letter-spacing: 0.24em;
}
.statusbar span { display: inline-flex; align-items: center; }
.statusbar .fa-solid { color: var(--cy); font-size: 11px; }
.brand {
    display: flex; align-items: center; gap: 12px;
    font: 700 14px/1 var(--disp); letter-spacing: 0.24em; color: #eafffb; text-shadow: 0 0 12px rgba(63, 242, 212, 0.3);
}
.brand img {
    width: 38px; height: 38px; object-fit: contain; border-radius: 50%;
    box-shadow: 0 0 0 1px var(--cy-dim), 0 0 0 4px rgba(63, 242, 212, 0.08), 0 0 18px rgba(63, 242, 212, 0.35);
}
.top-meta, .lang-switch { display: flex; align-items: center; gap: 10px; }
.top-meta { color: var(--soft); }
.led {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok);
    display: inline-block; animation: pulse 1.6s ease-in-out infinite;
}
#clock { color: var(--cy); text-shadow: var(--glow); }
.lang-switch { gap: 0; border: 1px solid var(--line-2); }
.lang-switch a { padding: 6px 10px; color: var(--muted); font: 12px/1 var(--mono); letter-spacing: 0.16em; transition: 0.2s; }
.lang-switch a + a { border-left: 1px solid var(--line-2); }
.lang-switch a.active { color: #021014; background: var(--cy); box-shadow: 0 0 14px rgba(63, 242, 212, 0.5); }
.lang-switch a:not(.active):hover { color: var(--cy); background: rgba(63, 242, 212, 0.08); }

.back, .stage-back {
    display: inline-flex; align-items: center; padding: 7px 14px;
    border: 1px solid var(--cy-dim); background: rgba(63, 242, 212, 0.06); color: var(--cy-2);
    font: 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; clip-path: var(--cut); transition: 0.2s;
}
.back:hover, .stage-back:hover { background: rgba(63, 242, 212, 0.18); color: #fff; box-shadow: inset 0 0 14px rgba(63, 242, 212, 0.25); }
.menu-btn { display: none; }
.fa-solid { margin-right: 8px; color: var(--cy); }

/* ---------- DECK ---------- */
.deck {
    position: fixed; inset: calc(var(--top) + 10px) 10px calc(var(--bottom) + 10px) 10px;
    display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 10px;
}
.deck > * {
    position: relative; min-width: 0; min-height: 0;
    border: 1px solid var(--line); background: var(--brk), var(--panel); backdrop-filter: blur(6px);
}
.pane { overflow: auto; }
.pane-h {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px;
    font: 11px/1 var(--mono); letter-spacing: 0.3em; color: var(--cy); text-transform: uppercase;
}
.pane-h::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.pane-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.search {
    display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 9px 12px 9px 30px;
    background: radial-gradient(circle at 14px 50%, var(--cy) 0 2px, transparent 2.5px), rgba(1, 10, 13, 0.8);
    border: 1px solid var(--line-2); color: var(--text); font: 13px/1.2 var(--mono); letter-spacing: 0.08em; outline: none; transition: 0.2s;
}
.search::placeholder { color: var(--faint); text-transform: uppercase; letter-spacing: 0.2em; }
.search:focus { border-color: var(--cy); box-shadow: 0 0 0 1px rgba(63, 242, 212, 0.25), var(--glow); }

/* ---------- FILE GROUPS ---------- */
.file-group {
    --tone: var(--cy); --tone-rgb: 63, 242, 212;
    margin: 0 12px 10px; border: 1px solid rgba(var(--tone-rgb), 0.18); background: rgba(1, 10, 13, 0.55);
}
.file-group.tone-green { --tone: #a6ffbf; --tone-rgb: 166, 255, 191; }
.file-group.tone-red { --tone: #ff5d73; --tone-rgb: 255, 93, 115; }
.file-group h2 {
    position: relative; margin: 0; padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer;
    color: var(--tone); font: 700 15px/1.2 var(--ui); letter-spacing: 0.1em; text-transform: uppercase;
    background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.14), transparent 75%);
    border-left: 2px solid var(--tone); transition: background 0.2s;
}
.file-group h2:hover { background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.24), transparent 85%); }
.file-group h2::after {
    content: ""; margin-left: auto; width: 7px; height: 7px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform 0.25s;
}
.file-group.open h2::after { transform: rotate(45deg) translate(-2px, -2px); }
.mark { width: 30px; height: 30px; object-fit: contain; flex: none; filter: drop-shadow(0 0 6px rgba(var(--tone-rgb), 0.5)); }
.file-group a { display: none; }
.file-group.open a {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px 9px 16px; color: rgba(var(--tone-rgb), 0.78);
    font: 500 15px/1.35 var(--ui); letter-spacing: 0.03em;
    border-top: 1px solid rgba(var(--tone-rgb), 0.07); transition: background 0.2s, color 0.2s, padding 0.2s;
}
.file-group a span { display: flex; align-items: center; min-width: 0; }
.file-group a small {
    margin-left: auto; padding: 3px 5px; font: 11px/1 var(--mono); letter-spacing: 0.1em;
    color: rgba(var(--tone-rgb), 0.55); border: 1px solid rgba(var(--tone-rgb), 0.25);
}
.file-group.open a:hover { color: #fff; padding-left: 20px; background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.14), transparent); }
.file-group.open a.active {
    color: #fff; box-shadow: inset 2px 0 0 var(--tone);
    background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.22), rgba(var(--tone-rgb), 0.04));
}
.file-group.open a.active::after {
    content: ""; position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
    border: 4px solid transparent; border-left-color: var(--tone);
}
.file-group a.active small { color: #021014; background: var(--tone); border-color: var(--tone); }
.file-group .fa-solid { width: 20px; text-align: center; font-size: 15px; color: var(--tone); filter: drop-shadow(0 0 5px rgba(var(--tone-rgb), 0.5)); }

/* ---------- STAGE ---------- */
.stage {
    overflow: hidden; min-height: 100%;
    background: var(--brk), radial-gradient(ellipse 70% 60% at 50% 55%, rgba(22, 110, 104, 0.2), transparent 70%), rgba(1, 8, 11, 0.6);
}
.stage::after {
    content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 50% 52%, rgba(168, 255, 241, 0.35), transparent 55%);
}
.stage.is-warp::after { animation: warp 0.7s ease-out; }
#galaxy { position: absolute; inset: 0; min-height: 420px; }
#galaxy canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stage-label, .stage-back, #planet-tip { position: absolute; z-index: 5; }
.stage-label {
    top: 16px; left: 18px; padding-left: 12px; border-left: 2px solid var(--hud, var(--cy));
    font: 700 14px/1.3 var(--disp); letter-spacing: 0.26em; color: #eafffb; text-shadow: var(--glow);
}
.stage-label span { display: block; margin-top: 4px; font: 11px/1 var(--mono); letter-spacing: 0.34em; color: var(--hud, var(--cy)); opacity: 0.85; }
.stage-back { top: 16px; right: 18px; display: none; }
.stage-back.show { display: inline-flex; }
.stage-hint {
    position: absolute; left: 0; right: 0; bottom: 14px; z-index: 5; text-align: center; pointer-events: none;
    font: 11px/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--soft);
}
.stage-hint::before { content: "[ "; color: var(--hud, var(--cy)); }
.stage-hint::after { content: " ]"; color: var(--hud, var(--cy)); }
#planet-tip { display: none; padding: 4px 8px; font-family: var(--mono); border: 1px solid var(--cy-dim); background: rgba(2, 16, 20, 0.92); pointer-events: none; }

.node-card {
    position: absolute; z-index: 6; display: none; width: 250px; padding: 10px 12px 12px; pointer-events: none;
    border: 1px solid var(--cy-dim); background: var(--brk), rgba(2, 16, 20, 0.92);
    box-shadow: 0 0 30px rgba(63, 242, 212, 0.18), inset 0 0 24px rgba(63, 242, 212, 0.06);
    backdrop-filter: blur(8px); animation: cardIn 0.18s ease-out;
}
.node-card b { display: block; margin-bottom: 8px; font: 600 15px/1.3 var(--ui); color: #f0fffc; letter-spacing: 0.04em; }
.node-card b em.fa-solid { font-style: normal; font-size: 11px; margin-right: 6px; color: var(--cy); }
.node-card i {
    display: block; aspect-ratio: 2.35 / 1; margin-bottom: 8px; border: 1px solid var(--line-2);
    background: repeating-linear-gradient(135deg, rgba(63, 242, 212, 0.06) 0 6px, transparent 6px 12px), #04141a;
    background-size: cover; background-position: center;
}
.node-card span { font: 12px/1 var(--mono); letter-spacing: 0.26em; color: var(--cy); }
.node-card span::before { content: "ID // "; color: var(--muted); }

/* 3D labels (galaxy.js) */
.g-label { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; color: var(--c, var(--cy)); will-change: transform; transition: opacity 0.3s; }
.g-label::before {
    content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 1px; background: currentColor;
    transform-origin: 0 0; transform: rotate(-45deg); box-shadow: 0 0 6px currentColor;
}
.g-label::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.g-label > div {
    position: absolute; left: 21px; bottom: 21px; padding: 3px 10px 4px 8px; white-space: nowrap;
    border-left: 2px solid currentColor; background: linear-gradient(90deg, rgba(1, 12, 15, 0.88), rgba(1, 12, 15, 0));
}
.g-label b { display: block; font: 11px/1.2 var(--mono); letter-spacing: 0.26em; text-shadow: 0 0 8px currentColor; }
.g-label span { display: block; font: 600 13px/1.25 var(--ui); letter-spacing: 0.06em; color: #eafffb; }
.g-label.is-dim { opacity: 0.5; }
.g-label.is-dim::before { width: 18px; }
.g-label.is-dim > div { left: 13px; bottom: 13px; }

/* HUD overlay (command.js) */
.hud-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; color: var(--hud, var(--cy)); transition: color 0.6s; }
.hud-ruler { position: absolute; display: block; opacity: 0.45; }
.hud-ruler-t, .hud-ruler-b { left: 18%; right: 18%; height: 9px; }
.hud-ruler-t { top: 0; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) top / 100% 5px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 50px) top / 100% 9px no-repeat; }
.hud-ruler-b { bottom: 0; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 50px) bottom / 100% 9px no-repeat; }
.hud-ruler-l, .hud-ruler-r { top: 22%; bottom: 22%; width: 9px; }
.hud-ruler-l { left: 0; background: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 10px) left / 5px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 50px) left / 9px 100% no-repeat; }
.hud-ruler-r { right: 0; background: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 10px) right / 5px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 50px) right / 9px 100% no-repeat; }
.hud-reticle { position: absolute; left: 50%; top: 52%; width: min(46vh, 42%); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.2; }
.hud-reticle svg { width: 100%; height: 100%; overflow: visible; }
.hud-reticle .rt-a { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.hud-reticle .rt-b { transform-origin: 100px 100px; animation: spin 24s linear infinite reverse; }
.hud-cross { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s; }
.hud-stage.is-aim .hud-cross { opacity: 1; }
.hud-cross .hx { position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0.2; background: linear-gradient(90deg, transparent, currentColor 15%, currentColor 85%, transparent); }
.hud-cross .hy { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; opacity: 0.2; background: linear-gradient(180deg, transparent, currentColor 15%, currentColor 85%, transparent); }
.hud-cross .hxy { position: absolute; left: 0; top: 0; padding: 3px 6px; white-space: nowrap; font: 10px/1 var(--mono); letter-spacing: 0.16em; border: 1px solid currentColor; background: rgba(1, 10, 13, 0.7); opacity: 0.85; }
.hud-stream { position: absolute; right: 18px; top: 60px; font: 10px/1.65 var(--mono); letter-spacing: 0.08em; text-align: right; opacity: 0.75; }
.hud-stream::before { content: ""; display: block; margin-bottom: 4px; padding-bottom: 2px; border-bottom: 1px solid currentColor; letter-spacing: 0.24em; }
.hud-stream div { color: var(--muted); }
.hud-stream div:last-child { color: currentColor; text-shadow: 0 0 8px currentColor; }
.hud-side { position: absolute; left: 20px; top: 50%; width: 128px; transform: translateY(-50%); font: 9px/1 var(--mono); letter-spacing: 0.14em; opacity: 0.85; }
.hs-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 6px; margin: 8px 0; color: var(--muted); }
.hs-row em { font-style: normal; }
.hs-row i { position: relative; display: block; height: 4px; background: rgba(63, 242, 212, 0.12); color: var(--hud, var(--cy)); }
.hs-row i b { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: currentColor; box-shadow: 0 0 6px currentColor; transition: width 1.1s ease; }
.hud-wave { position: absolute; left: 20px; bottom: 44px; width: 240px; }
.hud-wave span, .hud-radar span { display: block; margin-bottom: 5px; font: 10px/1 var(--mono); letter-spacing: 0.2em; }
.hud-wave canvas { display: block; width: 240px; height: 56px; border: 1px solid var(--line); background: rgba(1, 10, 13, 0.5); }
.hud-radar { position: absolute; right: 20px; bottom: 44px; width: 96px; text-align: center; }
.hud-radar svg { display: block; width: 96px; height: 96px; }
.hud-radar .rd-sweep { transform-origin: 50px 50px; animation: spin 3.2s linear infinite; }
.hud-radar .rd-blip { animation: blip 3.2s linear infinite; }

/* ---------- INTEL ---------- */
.intel { padding: 16px 18px 26px; display: flex; flex-direction: column; min-height: 100%; }
.intel::after { content: ""; margin-top: auto; height: 44px; border-top: 1px dashed rgba(63, 242, 212, 0.28); background: repeating-linear-gradient(180deg, rgba(63, 242, 212, 0.05) 0 1px, transparent 1px 3px); }
.kicker { font: 11px/1.4 var(--mono); letter-spacing: 0.3em; color: var(--cy); text-transform: uppercase; }
.intel .kicker { display: flex; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.intel h1 { margin: 14px 0 8px; font: 700 22px/1.3 var(--disp); letter-spacing: 0.06em; color: #f0fffc; text-shadow: 0 0 18px rgba(63, 242, 212, 0.35); }
.tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
    font: 11px/1.2 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ok); border: 1px solid rgba(125, 255, 178, 0.35); background: rgba(125, 255, 178, 0.06);
}
.tag::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 1.4s infinite; }
.tag.is-locked { color: var(--warn); border-color: rgba(255, 200, 87, 0.35); background: rgba(255, 200, 87, 0.06); }
.visual {
    position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 2.35 / 1;
    margin: 14px 0; overflow: hidden; border: 1px solid var(--line-2);
    background: repeating-linear-gradient(135deg, rgba(63, 242, 212, 0.05) 0 6px, transparent 6px 12px), #04141a;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.visual::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--brk), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.visual::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(63, 242, 212, 0.22), transparent); animation: scan 3.6s linear infinite; }
.intel p { color: var(--soft); font-size: 15px; line-height: 1.75; }
.intel .intel-cta {
    display: inline-block; margin-top: 12px; padding: 9px 16px; text-decoration: none;
    border: 1px solid var(--cy-2); background: rgba(2, 16, 20, 0.55); color: var(--cy);
    font: 700 11px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: 0.2s;
}
.intel .intel-cta:hover { background: var(--cy); color: #021014; box-shadow: var(--glow); }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.meta-grid div { padding: 8px 9px; border: 1px solid var(--line); background: rgba(63, 242, 212, 0.04); font: 700 14px/1.3 var(--disp); letter-spacing: 0.06em; color: #eafffb; }
.meta-grid span { display: block; margin-bottom: 4px; font: 400 10px/1 var(--mono); letter-spacing: 0.24em; color: var(--muted); }

/* ---------- DOC ---------- */
.doc { overflow: auto; padding: 28px 36px 64px; }
.doc h1 {
    position: relative; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
    font: 700 30px/1.25 var(--disp); letter-spacing: 0.05em; color: #f0fffc; text-shadow: 0 0 22px rgba(63, 242, 212, 0.3);
}
.doc h1::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 140px; height: 3px; background: var(--cy); box-shadow: var(--glow); }
.doc h2, .doc h3, .doc h4 { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; font: 700 20px/1.3 var(--ui); letter-spacing: 0.06em; color: var(--cy-2); }
.doc h4 { font-size: 18px; }
.doc h2[data-sec]::before, .doc h4[data-sec]::before { content: attr(data-sec); flex: none; padding: 3px 7px; font: 11px/1 var(--mono); letter-spacing: 0.14em; color: #021014; background: var(--cy); }
.doc h2::after, .doc h3::after, .doc h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.doc p { margin: 0 0 16px; color: var(--soft); max-width: 100%; }
.doc strong, .doc b { color: #f0fffc; }
.doc a { color: var(--cy); border-bottom: 1px dashed rgba(63, 242, 212, 0.45); transition: 0.2s; }
.doc a:hover { color: #fff; border-bottom-color: var(--cy); text-shadow: var(--glow); }
.doc a .fa-link { margin: 0 0 0 5px; font-size: 0.78em; }
.doc .table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--line); background: var(--brk), rgba(1, 10, 13, 0.55); }
.doc table, .doc table[style] { width: 100% !important; border-collapse: collapse; font-size: 15px; margin: 14px 0 22px; }
.doc .table-wrap table { margin: 0; }
.doc th { padding: 11px 14px; text-align: left; font: 11px/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cy); background: rgba(63, 242, 212, 0.07); border-bottom: 1px solid var(--line-2); }
.doc td { padding: 11px 14px; vertical-align: top; color: var(--soft); border-bottom: 1px solid rgba(63, 242, 212, 0.08); }
.doc td:first-child { color: #eafffb; font-weight: 500; }
.doc tbody tr { transition: background 0.2s; }
.doc tbody tr:hover { background: rgba(63, 242, 212, 0.05); }
.doc tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--cy); }
.doc ol { list-style: none; counter-reset: li; margin: 0 0 18px; padding: 0; border-top: 1px dashed var(--line); }
.doc ol > li { counter-increment: li; position: relative; padding: 9px 12px 9px 54px; border-bottom: 1px dashed var(--line); color: var(--soft); }
.doc ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 10px; top: 10px; padding: 1px 6px; font: 12px/1.4 var(--mono); color: var(--cy); border: 1px solid var(--line-2); }
.doc ul { list-style: none; margin: 0 0 18px; padding: 0; }
.doc ul > li { position: relative; margin: 8px 0; padding-left: 24px; color: var(--soft); }
.doc ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border: 1px solid var(--cy); transform: rotate(45deg); box-shadow: 0 0 6px rgba(63, 242, 212, 0.5); }
.callout {
    position: relative; margin: 14px 0 20px; padding: 30px 16px 14px 18px; color: var(--text);
    border: 1px solid var(--line-2); border-left: 3px solid var(--cy);
    background: linear-gradient(90deg, rgba(63, 242, 212, 0.09), rgba(63, 242, 212, 0.02));
}
.callout::before { content: "// SYSTEM NOTE"; position: absolute; left: 18px; top: 10px; font: 10px/1 var(--mono); letter-spacing: 0.3em; color: var(--cy); }
.callout.danger { border-color: rgba(255, 77, 109, 0.35); border-left-color: var(--red); background: linear-gradient(90deg, rgba(255, 77, 109, 0.12), rgba(255, 77, 109, 0.02)); }
.callout.danger::before { content: "// WARNING · HAZARD"; color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
.stat { padding: 12px 14px; border: 1px solid var(--line); background: var(--brk), rgba(63, 242, 212, 0.04); }
.stat span { display: block; font: 10px/1 var(--mono); letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }
.stat b { display: block; margin-top: 8px; font: 700 18px/1.2 var(--disp); color: var(--cy-2); text-shadow: var(--glow); }
.plate {
    position: relative; width: min(100%, 880px); aspect-ratio: 2.35 / 1; max-height: 380px; margin: 0 auto 22px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2);
    background: repeating-linear-gradient(135deg, rgba(63, 242, 212, 0.05) 0 6px, transparent 6px 12px), #04141a;
}
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate iframe { position: relative; z-index: 2; width: 100%; height: 100%; border: 0; display: block; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--brk), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 60%, rgba(1, 8, 11, 0.75)); }
.plate::after { content: ""; position: absolute; left: 0; right: 0; top: -25%; height: 25%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(63, 242, 212, 0.18), transparent); animation: scan 4.2s linear infinite; }
.plate span { position: relative; z-index: 2; font: 12px/1 var(--mono); letter-spacing: 0.3em; color: var(--muted); }

.dock { display: none; }

/* ---------- MOBILE ---------- */
@media (max-width: 980px) {
    :root { --top: 58px; }
    .deck { grid-template-columns: 1fr; inset: calc(var(--top) + 6px) 6px 84px 6px; }
    .top-meta > span:first-child, .menu-btn, .statusbar { display: none; }
    .brand { font-size: 12px; letter-spacing: 0.14em; }
    .back { white-space: nowrap; }
    .pane, .intel-pane {
        display: block; position: fixed; z-index: 30; top: calc(var(--top) + 6px); bottom: 84px; width: min(88vw, 360px);
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none;
        background: var(--brk), rgba(2, 13, 17, 0.97);
    }
    .pane.files { left: 6px; transform: translateX(-110%); }
    .intel-pane { right: 6px; transform: translateX(110%); }
    body.nav-open .pane.files, body.intel-open .intel-pane { transform: none; pointer-events: auto; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2); }
    .doc { padding: 18px 16px 40px; }
    .doc h1 { font-size: 22px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hud-stream, .hud-side, .hud-wave, .hud-ruler-l, .hud-ruler-r, .hud-radar { display: none; }
    .dock {
        display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; height: 64px;
        align-items: flex-end; justify-content: space-around; padding: 8px 18px;
        border: 1px solid var(--line-2); background: var(--brk), rgba(2, 13, 17, 0.85);
        backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
    .dock button, .dock a { display: grid; justify-items: center; gap: 4px; border: 0; color: var(--soft); font: 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
    .dock .fa-solid { font-size: 20px; margin: 0; filter: drop-shadow(0 0 6px rgba(63, 242, 212, 0.6)); }
    .dock .dock-plus {
        width: 60px; height: 60px; margin-top: -30px; display: grid; place-items: center; color: #021014; background: var(--cy);
        clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    }
    .dock .dock-plus .fa-solid { color: #021014; font-size: 24px; filter: none; }

    /* 手机端：顶部新闻入口换成右下角圆形 FAB（fa-solid newspaper，无文字） */
    .news-link { display: none; }
    .fab-news {
        display: grid; place-items: center; position: fixed; z-index: 41;
        right: 16px; bottom: 96px; width: 56px; height: 56px; border-radius: 50%;
        background: var(--cy); color: #021014; border: 1px solid var(--cy-2);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(63, 242, 212, 0.45);
        transition: transform 0.15s ease;
    }
    .fab-news .fa-solid { font-size: 24px; filter: none; }
    .fab-news:active { transform: scale(0.9); }
}

/* 桌面端隐藏 FAB（新闻入口仍用顶栏 / 底部按钮）；移动端由上方媒体查询显示 */
@media (min-width: 981px) {
    .fab-news { display: none; }
}

/* 菜单分组 Logo（强制尺寸，防止被原有样式覆盖） */
.files .file-group h2.has-logo {
  display: flex !important;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.files .file-group h2 img.group-logo {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 0 !important;
  flex: 0 0 22px !important;
  object-fit: contain;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  border-radius: 50%;
}

.file-group a .item-icon{width:1em;height:1em;object-fit:contain;margin-right:.5em;vertical-align:-.15em;flex:none}
#intel-copy{white-space:pre-line}

/* ---------- NEWS GRID（V2.6：一行两个，桌面与手机一致） ---------- */
.news-search-row { margin: 18px 0 4px; }
.news-search-row .search { width: 100%; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.news-card { display: flex; align-items: stretch; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(63, 242, 212, 0.05), rgba(1, 10, 13, 0.6)); cursor: pointer; }
/* V2.17：卡片左侧固定分类栏（图5 样式：竖线 + 竖排分类名） */
.news-catbar { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--cy); background: linear-gradient(180deg, rgba(63, 242, 212, 0.08), rgba(2, 12, 16, 0.6)); }
.news-catbar .nc-link, .news-catbar .nc-none { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--cy); }
.news-catbar .nc-line { width: 3px; height: 34px; background: var(--cy); border-radius: 2px; box-shadow: var(--glow); }
.news-catbar .nc-line.dim { background: var(--muted); box-shadow: none; }
.news-catbar .nc-name { writing-mode: vertical-rl; text-orientation: mixed; font: 700 10px/1.5 var(--mono); letter-spacing: 0.22em; }
.news-catbar .nc-none { color: var(--muted); }
.news-main { flex: 1; min-width: 0; }
.news-card:hover { border-color: var(--cy-2); box-shadow: var(--glow); }
.news-card.hidden { display: none; }

/* 大卡（第一行 3 张）：封面横版 + 正文 */
.news-card.large .news-cover { aspect-ratio: 16 / 9; }
.news-card.large .news-body h2 { font-size: 18px; }
/* 小卡：封面缩略 + 紧凑正文 */
.news-card.compact .news-cover { aspect-ratio: 3 / 2; }
.news-card.compact .news-body { padding: 10px 12px 12px; }
.news-card.compact .news-body h2 { font-size: 15px; }
.news-card.compact .news-summary { font-size: 12px; }

/* 封面容器：沿用右侧情报面板 .visual 的样式（图2：科技边框 + 深色渐变） */
.news-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(63, 242, 212, 0.06), rgba(1, 10, 13, 0.85)); }
.news-cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(63, 242, 212, 0.18), inset 0 -30px 50px rgba(1, 10, 13, 0.55); pointer-events: none; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 14px 16px 16px; }
.news-body h2 { margin: 8px 0 6px; font: 700 19px/1.45 var(--disp); letter-spacing: 0.04em; }
.news-body h2 a { color: inherit; text-decoration: none; }
.news-body h2 a:hover { color: var(--cy); text-shadow: 0 0 10px currentColor; }
.news-summary { color: var(--soft); font-size: 14px; line-height: 1.7; margin: 8px 0; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.news-tag { appearance: none; border: 1px solid var(--line); background: rgba(63, 242, 212, 0.05); color: var(--cy); padding: 3px 9px; font: 400 11px/1 var(--mono); letter-spacing: 0.12em; cursor: pointer; }
.news-tag:hover, .news-tag.on { background: var(--cy); color: #021014; box-shadow: var(--glow); }
.news-tag em { font-style: normal; opacity: 0.65; margin-left: 4px; }
.news-views { display: inline-flex; align-items: center; gap: 4px; opacity: 0.75; }
.news-link { margin-top: 8px; }
.news-link a { color: var(--cy); text-decoration: none; letter-spacing: 0.16em; font: 700 11px/1 var(--mono); }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-body { padding: 10px 10px 12px; }
  .news-body h2 { font-size: 15px; }
  .news-summary { font-size: 12px; }
}
/* ---------- INTEL 面板（V2.6） ---------- */
.intel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.intel-rss { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--red); background: rgba(255, 77, 109, 0.08); color: var(--red); padding: 6px 10px; font: 700 11px/1 var(--mono); letter-spacing: 0.18em; text-decoration: none; transition: 0.2s; }
.intel-rss:hover { background: var(--red); color: #021014; box-shadow: 0 0 12px rgba(255, 77, 109, 0.6); }
.intel-cta { display: inline-flex; align-items: center; gap: 8px; }
.intel-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.intel-block-h { font: 700 10px/1 var(--mono); letter-spacing: 0.28em; color: var(--muted); margin-bottom: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.random-list { list-style: none; margin: 0; padding: 0; }
.random-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(63, 242, 212, 0.08); }
.random-list li:last-child { border-bottom: 0; }
.random-thumb { flex: 0 0 44px; width: 44px; height: 30px; overflow: hidden; border: 1px solid var(--line); }
.random-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.random-list a { color: inherit; text-decoration: none; min-width: 0; }
.random-list a b { display: block; font: 700 12px/1.4 var(--disp); color: #eafffb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.random-list a small { display: block; margin-top: 2px; font: 400 10px/1 var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.random-list a:hover b { color: var(--cy); }

/* V2.7：详情页返回情报站按钮（V2.8：改为透明描边、绝对定位最右侧） */
.news-back { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--cy); text-decoration: none; font: 700 11px/1 var(--mono); letter-spacing: 0.16em; border: 1px solid var(--line); padding: 6px 10px; background: transparent; transition: 0.2s; }
.news-back:hover { border-color: var(--cy); color: var(--cy); box-shadow: var(--glow); }
.news-body .news-tags { margin: 0 0 8px; }
.news-body h2 { margin: 0 0 6px; }
.tag-cloud .news-tag { margin-bottom: 2px; }
.intel .tag.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* V2.8：新闻卡片整卡可点；查看全部按钮 */
.news-more-row { text-align: center; margin: 26px 8px 10px; }
.news-more { display: inline-flex; align-items: center; gap: 8px; margin: 8px; border: 1px solid var(--cy-2); background: transparent; color: var(--cy); padding: 9px 18px; font: 700 11px/1 var(--mono); letter-spacing: 0.2em; cursor: pointer; transition: 0.2s; }
.news-more:hover { background: var(--cy); color: #021014; box-shadow: var(--glow); }

/* V2.8：手机端隐藏 tag cloud 与正文 SEC_0X 编号 */
@media (max-width: 767px) {
  .tag-cloud, .intel-pane .intel-block .tag-cloud { display: none; }
  .doc h2[data-sec]::before, .doc h4[data-sec]::before { display: none; }
}

/* V2.7：前台正文内的富文本元素（WYSIWYG 输出） */
.doc .rich-embed, main .rich-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 14px 0; background: #021014; }
.doc .rich-embed iframe, main .rich-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc blockquote { border-left: 2px solid var(--cy-2); margin: 12px 0; padding: 4px 14px; color: var(--soft); }
.doc pre { background: #021014; border: 1px solid var(--line); padding: 12px 14px; overflow: auto; font: 400 12px/1.7 var(--mono); color: #9fe8dd; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc td, .doc th { border: 1px solid var(--line); padding: 6px 10px; font-size: 14px; }
.doc img { max-width: 100%; height: auto; }

/* V2.8：tags 保持横排换行（图4）+ 详情页 main 定位容器（返回按钮贴右上角） */
main { position: relative; }
.tag { flex-wrap: wrap; }
.intel .tag { flex-wrap: wrap; }
.news-tag { display: inline-flex; align-items: center; }

/* V2.9：intel 面板无封面时的全息渐变占位（消除右侧空洞） */
.visual.is-empty { background: radial-gradient(120% 90% at 70% 20%, rgba(63, 242, 212, 0.14), transparent 60%), linear-gradient(160deg, rgba(63, 242, 212, 0.05), rgba(1, 10, 13, 0.9)); box-shadow: inset 0 0 0 1px rgba(63, 242, 212, 0.2); }

/* V2.10：手机端导航精简 + 新闻卡适配（返回星图/时钟隐藏，底栏 dock 前往星系） */
@media (max-width: 767px) {
  .topbar .top-meta #clock,
  .top-meta #clock,
  #clock { display: none !important; }
  .topbar .brand .back { display: none !important; }
  .news-card .news-tag { display: none !important; }
  .news-card h2 { font-size: 15px !important; line-height: 1.45 !important; letter-spacing: 0.02em !important; }
  .news-card h2 a { font-size: inherit !important; }
}

/* V2.15：详情页嵌入链接媒体容器（16:9 比例，iframe scale to fit，禁用右键，无 EMBED 角标） */
.plate.page-media-embed { position: relative; aspect-ratio: 16 / 9; }

/* V2.16：详情页顶部——面包屑路径 + 分类行 + 标题（图4） */
.news-breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 10px/1 var(--mono); letter-spacing: 0.18em; }
.news-breadcrumb a { color: var(--cy); text-decoration: none; padding: 3px 7px; border: 1px solid var(--line); background: rgba(63, 242, 212, 0.05); }
.news-breadcrumb a:hover { background: var(--cy); color: #021014; }
.news-breadcrumb .sep { color: var(--muted); }
.news-catline { margin: 10px 0 0; }
.news-catline.none a, .news-catline.none { color: var(--muted); background: rgba(63, 242, 212, 0.05); }
.news-catline a { display: inline-block; padding: 4px 12px; font: 700 11px/1.4 var(--mono); letter-spacing: 0.18em; color: #021014; background: var(--cy); border-radius: 2px; text-decoration: none; }
.news-catline a:hover { box-shadow: var(--glow); }
.news-cat a { color: inherit; text-decoration: none; }

/* V2.16：新闻分类徽标（封面左上角；PC 显示，手机端隐藏） */
.news-cat { display: inline-block; margin: 0 0 8px; padding: 3px 10px; font: 10px/1.5 var(--mono); letter-spacing: 0.14em; color: #021014; background: var(--cy); border-radius: 2px; }
.news-cover .news-cat { position: absolute; top: 10px; left: 10px; z-index: 3; margin: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
@media (max-width: 760px) {
  .news-cat { display: none; }
  .news-catbar { display: none; }
}

/* V2.15：后台分类管理 / RSS 管理样式 */
.cat-list { margin-top: 12px; display: grid; gap: 8px; }
.cat-row { display: flex; gap: 8px; align-items: center; }
.cat-row input { flex: 1; min-width: 0; }
.cat-row .ghost { flex: none; }
.rss-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.rss-table th, .rss-table td { border: 1px solid var(--line); padding: 6px 8px; font-size: 12px; text-align: left; vertical-align: middle; }
.rss-table th { background: rgba(56, 228, 210, 0.08); letter-spacing: 0.08em; font-size: 11px; }
.rss-table .rss-url { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-table .ghost { margin-right: 4px; }
.cron-line { display: block; margin: 6px 0 14px; padding: 8px 12px; border: 1px dashed var(--cy); border-radius: 4px; font: 11px/1.6 var(--mono); color: var(--cy); background: rgba(56, 228, 210, 0.05); overflow-x: auto; white-space: nowrap; }

/* V2.16：主题启用开关与分类栏（后台外观设计） */
.theme-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.theme-head .chk { display: inline-flex; align-items: center; gap: 6px; }
.theme-head label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.theme-head input[type="text"] { width: 200px; padding: 6px 9px; }
