:root,body {
  color-scheme: dark;
  --bg: #080c16; --panel: #111827f5; --panel-2: #1a2436;
  --line: #94a8c321; --line-strong: #94a8c347; --text: #eaf0fa; --muted: #9eacc2;
  --accent: #78ffe1; --accent-2: #bc9dff; --accent-strong: #78ffe1; --accent-strong-hover: #b4fff0;
  --ok: #68e9c7; --warn: #edc681; --err: #ff8bb3;
  --ok-text: #a3f7dc; --warn-text: #ffdfa4; --err-text: #ffafc9;
  --accent-soft: #68ffe210; --ok-soft: #68e9c710; --warn-soft: #edc68110; --err-soft: #ff8bb310;
  --radius: 16px;
}
html { min-height: 100%; background: #040a13; }
body { min-height: 100vh; background: transparent; isolation: isolate; }
h1,h2,.brand { font-family: "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: .02em; }
.sidebar { background: #081421f2; border-color: #78ffe12b; }
.brand { color: #8cffe3; text-shadow: 0 0 12px #68ffe24a; }
.topbar { background: #081421ed; backdrop-filter: none; }
.workspace { background: linear-gradient(90deg,#040a1366,#040a1320); }
.workspace main { position: relative; z-index: 2; }
.page-hero { text-shadow: 0 2px 10px #020813; }
.card { box-shadow: 0 8px 30px #0002; }
.signal-word { width: auto; max-width: 100%; color: inherit; }
h1 .signal-word,h2 .signal-word { color: #9effeb; }
.signal-line { max-width: 100%; }
.signal-interactive { display: inline-block; vertical-align: middle; }
.signal-interactive .signal-word,.signal-interactive .signal-word::before,.signal-interactive .signal-word::after { animation: none; }
.signal-interactive .signal-word { text-shadow: none; }
.signal-line.is-glitching .signal-word { animation: signal-hover 600ms steps(1,end) 1; }
.signal-line.is-glitching .signal-word::before { animation: signal-hover-top 600ms steps(1,end) 1; }
.signal-line.is-glitching .signal-word::after { animation: signal-hover-bottom 600ms steps(1,end) 1; }
#city-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0; }
html[data-render="live"] #city-canvas { opacity: .38; }
html[data-render="fallback"] #city-canvas { display: none; }
.fallback-scene { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 55% 38%,#182a48,#030813 75%); }
.fallback-city { width: 100%; height: 100%; }
.fallback-buildings--far { fill: #103349; }
.fallback-buildings--near { fill: #081b2b; }
.fallback-signals { fill: #78e8dc; }
html[data-render="live"] .fallback-scene { display: none; }
.fx-toggle { background: #07111d; color: #aaffeb; border: 1px solid #68ffe250; font: 11px Consolas,monospace; padding: 8px 10px; }
.fx-toggle:hover { background: #102b33; color: #c0fff0; }
.fx-toggle kbd { margin-left: 5px; color: #97adba; }
@media(max-width:680px) {
  .fx-toggle { padding: 6px; min-height: 34px; flex-shrink: 0; }
  .fx-toggle kbd { display: none; }
  .breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Shared workspace rhythm: typography, space and contrast carry the hierarchy. */
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.65; }
h1,h2,h3 { letter-spacing: -.025em; }
h1,.page-hero h1 { font-size:32px; line-height:1.3; font-weight:700; margin:0 0 10px; }
h2 { font-size:17px; font-weight:650; }
h1 .signal-word,h2 .signal-word { color:#e8f5f4; text-shadow:-.018em 0 #68ffe245,.018em 0 #b58cff40; }
.sidebar { background:#0c1220f5; border-right:1px solid var(--line); padding:27px 16px 18px; }
.brand { gap:11px; padding:0 8px 25px; letter-spacing:.035em; font-size:14px; color:#effaf7; text-shadow:none; }
.brand-mark { flex-shrink:0; width:34px; height:36px; border-radius:10px; clip-path:none; border-color:#78ffe13b; background:linear-gradient(135deg,#78ffe123,#8d80ff12); }
.brand small { font-family:inherit; font-size:11px; line-height:1.6; letter-spacing:.04em; margin-top:3px; color:#8796ae; }
.nav-scroll { scrollbar-width:thin; scrollbar-color:#40506966 transparent; }
.nav-caption { padding:20px 12px 10px; font-family:inherit; font-size:10px; line-height:1.5; letter-spacing:.11em; color:#74859e; }
.nav-link { padding:10px 12px; gap:11px; margin:2px 0; font-size:13px; font-weight:500; border-radius:9px; }
.nav-link:hover { background:#a1b4d00a; }
.nav-link.active { border-color:#78ffe121; background:linear-gradient(100deg,#78ffe115,#78ffe105); box-shadow:inset 2px 0 #78ffe1; }
.nav-icon { width:17px; height:17px; opacity:.8; }
.sidebar-footer { padding:19px 8px 0; font-family:inherit; font-size:12px; line-height:1.7; color:#b6c4d6; letter-spacing:0; }
.sidebar-footer small { display:block; font-size:9px; color:#6e809b; letter-spacing:.12em; margin-top:5px; }
.workspace { background:linear-gradient(180deg,#080c1655,#080c1699); }
.topbar { height:70px; padding:0 36px; background:#0b1120f5; border-bottom:1px solid var(--line); backdrop-filter:none; }
.breadcrumb { color:#7f91aa; font-size:12px; }
.breadcrumb span { color:#c6d3e4; }
.avatar { color:#b9a7ff; border-color:#b9a7ff2a; background:#b9a7ff0b; border-radius:50%; }
.top-user { font-size:12px; }
.top-user small { margin-top:3px; color:#8193ab; }
.workspace main,.workspace main.wide { max-width:1480px; padding:36px 36px 64px; }
.page-hero,.gateway-head { margin-bottom:28px; gap:20px; align-items:center; justify-content:space-between; }
.page-hero .sub,.gateway-head .sub { max-width:740px; font-size:13px; line-height:1.8; margin:0; }
.eyebrow { font-family:inherit; font-size:10px; line-height:1.6; letter-spacing:.18em; color:#8fa9bf; margin-bottom:12px; }
.hero-index { font-size:10px; letter-spacing:.05em; border-color:var(--line); color:#91a3bb; background:#10192a; }
.card { padding:26px; margin-bottom:22px; background:var(--panel); border-color:var(--line); box-shadow:0 10px 40px #00000014,inset 0 1px #ffffff03; }
.card-head { gap:16px; margin-bottom:24px; }
.card h2:first-child { margin-top:0; }
.sub,.small-note { color:var(--muted); }
.small-note { font-size:12px; line-height:1.7; }
button,.button-link { min-height:38px; padding:8px 15px; border-radius:9px; font-size:12px; line-height:1.6; font-weight:600; }
button:hover { transform:none; }
button:not(.secondary):not(.danger):not(.fx-toggle):not(.geo-button):not(.menu-overlay) { box-shadow:0 2px 8px #00000012; }
button.secondary,.button-link { background:#182234; color:#c6d3e4; border-color:#91a8c52b; }
button.secondary:hover,.button-link:hover { background:#223046; border-color:#91a8c55b; color:#f0f5ff; }
.primary-link,.primary-link:hover { color:#08231e; background:var(--accent); border-color:var(--accent); }
button.danger { background:#ff8bb30a; border-color:#ff8bb32b; color:#ffacc6; }
button.danger:hover { background:#ff8bb31a; border-color:#ff8bb35b; }
button.small { min-height:32px; font-size:12px; padding:5px 10px; }
button:disabled { cursor:not-allowed; opacity:.45; box-shadow:none; }
.fx-toggle { min-height:32px; border-radius:8px; font-size:10px; letter-spacing:.03em; background:#78ffe107; border-color:#78ffe126; }
.fx-toggle kbd { font-size:9px; }
input[type=text],input[type=search],input[type=email],input[type=password],input[type=number],input[type=date],select,textarea { background:#0c1422; border-color:#8cabc333; min-height:42px; border-radius:9px; padding:10px 12px; font-size:13px; transition:border-color .15s,box-shadow .15s; }
input::placeholder,textarea::placeholder { color:#667993; }
input:focus,select:focus,textarea:focus { outline:none; border-color:#78ffe184; box-shadow:0 0 0 3px #78ffe10d; }
label { font-size:12px; color:#b7c5d7; margin:19px 0 8px; }
input[type=checkbox] { accent-color:#78ffe1; width:16px; height:16px; vertical-align:middle; }
input[type=file] { max-width:100%; font-family:inherit; font-size:12px; line-height:1.8; color:var(--muted); padding:10px!important; background:#0c1422; border:1px solid var(--line); border-radius:9px; }
input::file-selector-button { padding:7px 11px; margin-right:12px; border:1px solid var(--line-strong); border-radius:6px; background:#1c2a3f; color:#d8e5f2; cursor:pointer; }
.toolbar { padding:18px 20px; background:#111a29f5; border-radius:12px; gap:14px; }
.toolbar .field label { margin-bottom:7px; }
.presets { gap:5px; }
.presets a { font-size:11px; padding:6px 10px; border-radius:7px; border-color:transparent; background:#ffffff04; }
.presets a.on { border-color:#78ffe130; }
.table-wrap { border-color:var(--line); border-radius:12px; scrollbar-width:thin; scrollbar-color:#405069 #101827; }
table { font-size:13px; }
th { background:#172131; padding:14px 16px; font-size:11px; font-weight:500; color:#94a6bd; letter-spacing:.02em; }
td { padding:16px; border-color:#93a9c416; line-height:1.65; }
td small { color:var(--muted); }
tbody tr:hover { background:#8fabc807; }
.actions { gap:7px; min-width:230px; max-width:330px; }
.actions button { min-height:30px; padding:4px 8px; font-size:11px; white-space:nowrap; }
form.inline.category-form { gap:7px; min-width:170px; }
#main-content > .button-link { margin-bottom:14px; }
form.inline.category-form select { min-width:105px; min-height:34px; padding:5px 9px; font-size:12px; }
.badge { padding:3px 8px; border-radius:6px; font-size:10px; font-weight:500; line-height:1.6; border-color:#94a8c32b; }
.badge.active { border-color:#68e9c72f; }
.badge.disabled { border-color:#edc68136; }
.tiles { gap:16px; }
.tile { background:linear-gradient(135deg,#152333f5,#101726f5); border-color:var(--line); padding:22px; border-radius:14px; }
.tile::after { width:26px; height:2px; opacity:.7; }
.tile .k { font-size:12px; }
.tile .v { font:600 30px/1.4 -apple-system,"Segoe UI",sans-serif; letter-spacing:-.04em; font-variant-numeric:tabular-nums; margin:14px 0 9px; }
.tile .h { color:#879ab3; font-size:11px; }
.analytics-grid { gap:22px; }
.chart-tabs button { min-height:30px; font-size:11px; border-radius:6px; }
.flash { padding:15px 18px; border-radius:11px; font-size:13px; line-height:1.7; }
.flash.ok { border-color:#68e9c736; }.flash.warn { border-color:#edc68136; }.flash.err { border-color:#ff8bb336; }
.empty-state { padding:48px 20px; color:#8fa1b9; font-size:13px; }
.empty-state strong { font-size:18px; font-weight:600; }
.secret { padding:18px; border-style:solid; border-color:var(--line); line-height:1.8; background:#0b1322; }
.pagination { padding-top:8px; color:#91a3bc; }
.announcement-banner { background:#bca0ff0b; border-color:#bca0ff24; padding:14px 18px; }
.announcement-dialog { border-color:#93a9c440; background:#111827; box-shadow:0 30px 100px #0008; }
.announcement-dialog::backdrop,.usage-detail-dialog::backdrop { backdrop-filter:none; background:#030712ca; }
/* Bulletin cards and editor use the same components as the rest of the portal. */
.bulletin-overview { display:flex; gap:32px; align-items:center; padding:0 0 22px; margin-bottom:26px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.bulletin-overview b { color:#d8e5f6; font-size:22px; font-weight:600; margin-right:8px; font-variant-numeric:tabular-nums; }
.bulletin-feed { max-width:1120px; }
.announcement { padding:28px 30px; border-left-width:2px; }
.announcement h2 { font-size:23px; line-height:1.5; margin:18px 0 0; }
.announcement-meta { gap:8px; margin-bottom:0; }
.announcement-meta time { margin-left:auto; font-size:11px; font-variant-numeric:tabular-nums; color:#879ab2; }
.announcement-body { color:#bac8dc; font-size:14px; line-height:1.95; margin:18px 0 24px; }
.announcement-body:empty { display:none; }
.announcement-footer { display:flex; gap:16px; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:20px; margin-top:24px; color:#95a8bf; font-size:10px; letter-spacing:.04em; }
.announcement-footer .muted { margin-left:8px; }
.pinned-badge { color:#c2b1ff; border-color:#c2b1ff30; background:#c2b1ff08; }
.announcement-image { max-height:500px; border:1px solid var(--line); border-radius:12px; }
.bulletin-empty { padding:70px 20px; text-align:center; }
.empty-orbit { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 22px; border:1px solid #78ffe12a; border-radius:20px; background:linear-gradient(135deg,#78ffe111,#ac91ff11); color:#93f6de; font-size:28px; }
.bulletin-empty .button-link { margin-top:12px; }
.announcement-edit { grid-template-columns:minmax(0,1fr) 310px; gap:24px; align-items:start; }
.notice-compose { min-width:0; }
.section-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:24px; }
.section-number { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; font-size:11px; color:#91d5cd; background:#78ffe108; border:1px solid #78ffe11e; border-radius:9px; font-variant-numeric:tabular-nums; }
.section-heading h2 { margin:0 0 4px; font-size:16px; line-height:1.5; }
.section-heading .sub { margin:0; font-size:12px; }
.announcement-edit textarea { min-height:260px; line-height:1.85; }
.field-count { float:right; color:#758ba5; font-size:11px; }
.optional-label { font-size:10px; margin-left:7px; color:#758ba5; }
.notice-publish { position:sticky; top:94px; padding:24px; }
.pin-setting { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 0; margin:18px 0 0; border-top:1px solid var(--line); }
.pin-setting strong { color:#dce8f5; font-weight:500; }
.pin-setting small { display:block; color:#7e94ad; font-size:11px; margin-top:4px; }
.pin-setting input { flex-shrink:0; width:18px; height:18px; }
.publish-note { display:flex; gap:10px; color:#91a7c0; font-size:12px; padding:14px; background:#8198e60a; border:1px solid #8198e618; border-radius:10px; margin:4px 0 22px; }
.publish-note>span { color:#b6a6f5; }.publish-note p { margin:0; line-height:1.8; }
.notice-save { width:100%; display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }
.attachment-section { margin-top:24px; border-top:1px solid var(--line); padding-top:6px; }
.upload-zone { display:flex; flex-direction:column; align-items:center; text-align:center; padding:25px 20px 20px; background:#78ffe103; border:1px dashed #87a4bc55; border-radius:12px; }
.upload-zone>svg { width:28px; height:28px; stroke:#8dc9cd; fill:none; stroke-width:1.25; margin-bottom:12px; }
.upload-zone strong { font-size:13px; font-weight:500; color:#c7d8e9; }.upload-zone p { font-size:11px; color:#8298b3; margin:6px 0 16px; }
.upload-zone input[type=file] { width:100%; max-width:380px; }
.attachment-list { list-style:none; padding:0; margin:18px 0; display:grid; gap:10px; }
.attachment-item { display:flex; align-items:center; gap:14px; min-width:0; border:1px solid #90a9c329; border-radius:10px; background:#0b1423; }
.attachment-link { display:flex; flex:1; align-items:center; gap:14px; padding:15px; min-width:0; color:#d1e1f2; }
.attachment-link:hover { text-decoration:none; background:#78ffe106; border-radius:10px; }
.attachment-link>svg { width:26px; height:26px; flex-shrink:0; stroke:#8dc9cd; stroke-width:1.4; fill:none; }
.attachment-info { flex:1; min-width:0; }.attachment-info strong { display:block; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.attachment-info small { display:block; margin-top:3px; color:#8296b1; font-size:11px; }
.attachment-download { flex-shrink:0; font-size:11px; color:#83d7c9; }
.attachment-remove { display:flex; align-items:center; gap:6px; margin:0 15px 0 0; font-size:11px; white-space:nowrap; color:#a4b5ca; }
.attachment-item.is-removing .attachment-info { text-decoration:line-through; opacity:.45; }
.pending-file { padding:14px 16px; justify-content:space-between; }.pending-file strong { font-size:12px; font-weight:500; overflow-wrap:anywhere; }.pending-file small { flex-shrink:0; color:#8cacc0; font-size:11px; }
#notice-popup-attachments .attachment-link { justify-content:space-between; overflow-wrap:anywhere; font-size:13px; }
#notice-popup-attachments small { color:#78ffe1; flex-shrink:0; }
/* 附件图片预览：缩略图只在服务端确认真实栅格图后渲染，下载入口始终保留。 */
.attachment-thumb { width:54px; height:54px; flex-shrink:0; object-fit:cover; border-radius:8px; border:1px solid #90a9c333; background:#050a12; }
.attachment-item>.attachment-download-link { padding:15px 12px; text-decoration:none; }
.attachment-item>.attachment-download-link:hover { color:#b7ffee; }
.attachment-preview-dialog { width:min(920px,calc(100vw - 32px)); }
.attachment-preview-dialog .announcement-image { width:auto; margin:14px auto; background:#050a12; }
.attachment-preview-dialog .eyebrow { margin:0 0 4px; }
#attachment-preview-error:empty { display:none; }
@media(max-width:680px) { .attachment-thumb { width:44px; height:44px; } .attachment-item>.attachment-download-link { padding:12px 8px; } .attachment-preview-dialog { padding:18px; } .attachment-item:has(.attachment-thumb) { flex-wrap:wrap; justify-content:flex-end; gap:0; } .attachment-item:has(.attachment-thumb) .attachment-link { flex:1 1 100%; } }
@media(min-width:1600px) { .workspace main { padding-top:42px; } }
@media(max-width:1150px) { .workspace main,.workspace main.wide { padding:28px 24px 48px; }.topbar { padding-inline:24px; }.announcement-edit { grid-template-columns:minmax(0,1fr) 280px; }.tile { padding:18px; }.tile .v { font-size:27px; } }
@media(max-width:900px) { .sidebar { width:240px; }.topbar { height:64px; }.announcement-edit { grid-template-columns:1fr; }.notice-publish { position:static; }.page-hero { flex-wrap:wrap; }.card { padding:22px; } }
@media(max-width:680px) {
  .workspace main,.workspace main.wide { padding:26px 16px 40px; }.topbar { padding-inline:16px; gap:10px; }
  h1,.page-hero h1 { font-size:26px; }.page-hero,.gateway-head { margin-bottom:23px; gap:16px; }
  .eyebrow { font-size:9px; }.card { padding:20px; border-radius:13px; }.card.narrow { margin:24px auto; }
  .tiles { gap:10px; }.tile { padding:16px; }.tile .v { font-size:25px; }.tile .h { font-size:10px; }
  .bulletin-overview { gap:18px; font-size:10px; padding-bottom:18px; margin-bottom:22px; }.bulletin-overview b { display:block; font-size:23px; margin-bottom:3px; }
  .announcement { padding:22px 18px; }.announcement h2 { font-size:20px; }.announcement-meta time { width:100%; margin:4px 0 0; font-size:10px; }
  .announcement-footer { gap:12px; flex-wrap:wrap; }.announcement-footer>span { font-size:9px; }
  .attachment-link { gap:10px; padding:12px; }.attachment-link>svg { width:22px; }.attachment-info strong { font-size:12px; }.attachment-download { font-size:10px; }
  .attachment-item:has(.attachment-remove) { flex-wrap:wrap; gap:0; }.attachment-remove { margin:0 12px 12px auto; }
  .announcement-edit textarea { min-height:220px; }.upload-zone { padding:20px 12px; }.section-heading { gap:11px; }
}
