/* ============ 全球信息监测 · 主题 ============ */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111;
  --surface: #141414;
  --surface-hover: #1e1e1e;
  --border: #2a2a2a;
  --border-strong: #444;
  --text: #e8e8e8;
  --text-secondary: #ccc;
  --text-dim: #888;
  --text-muted: #666;
  --accent: #fff;
  --panel-bg: #141414;
  --map-bg: #020a08;
  --map-grid: #0a2a20;
  --map-country: #0a2018;
  --map-stroke: #0f5040;
  --live: #44ff88;
  --critical: #ff4444;
  --high: #ff8800;
  --elevated: #ffaa00;
  --normal: #44aa44;
  --low: #3388ff;
  --info: #3b82f6;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Fira Code', 'Menlo', 'Consolas', monospace;
  --font-cjk: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

/* 背景网格与光晕 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(15, 80, 64, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(51, 136, 255, 0.08), transparent 55%),
    #0a0a0a;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 18px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 20px; color: #0a0a0a; font-weight: 700;
  background: linear-gradient(135deg, var(--live), #0fb8a0);
  box-shadow: 0 0 18px rgba(68,255,136,0.4);
}
.brand-title { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.brand-tag {
  font-size: 10px; color: #0a0a0a; background: var(--live);
  padding: 1px 5px; border-radius: 3px; margin-left: 5px; font-weight: 700;
}
.brand-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 1.5px; }

.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 6px 13px; border-radius: 5px; cursor: pointer; transition: all .15s;
}
.tab:hover { color: var(--text); background: var(--surface-hover); }
.tab.active { color: var(--live); border-color: rgba(68,255,136,0.35); background: rgba(68,255,136,0.07); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.clockbox { display: flex; align-items: baseline; gap: 7px; font-size: 12px; }
.clock-city { color: var(--text-dim); font-size: 11px; }
.clock-time { color: var(--text); font-weight: 600; letter-spacing: 0.5px; }
.dim { opacity: 0.5; }

.status-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 11px; color: var(--text-secondary);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--elevated); box-shadow: 0 0 8px currentColor; }
.led.on { background: var(--live); color: var(--live); animation: pulse 1.6s infinite; }
.led.off { background: var(--critical); color: var(--critical); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.icon-btn {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; font-size: 15px; transition: all .15s;
}
.icon-btn:hover { border-color: var(--live); color: var(--live); }
.icon-btn.spin { animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ============ 突发新闻条 ============ */
.ticker-wrap {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: rgba(255,68,68,0.05);
}
.ticker-label {
  display: flex; align-items: center;
  padding: 5px 14px; background: var(--critical); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: 1px; white-space: nowrap;
}
.ticker { flex: 1; overflow: hidden; height: 30px; display: flex; align-items: center; }
.ticker-inner { display: inline-flex; gap: 40px; white-space: nowrap; animation: scroll 100s linear infinite; will-change: transform; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { color: var(--text-secondary); font-size: 12px; }
.ticker-item b { color: var(--text); }
.ticker-item .src { color: var(--text-dim); font-size: 10px; margin-left: 6px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ 容器 ============ */
.container { max-width: 1720px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ============ 计数器 ============ */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--panel-bg); border: 1px solid var(--border); border-radius: 7px;
  padding: 13px 15px; position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--live); opacity: 0.6; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.stat-num.warn { color: var(--elevated); }
.stat-num.danger { color: var(--critical); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; font-family: var(--font-cjk); }
.stat-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; margin-top: 3px; }

/* ============ 面板通用 ============ */
.panel {
  background: var(--panel-bg); border: 1px solid var(--border); border-radius: 8px;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.panel-title .dot.live { background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 2s infinite; }
.panel-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; }
.panel-tools { display: flex; align-items: center; gap: 10px; }

.seg { display: flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.seg-btn { background: transparent; border: none; color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; cursor: pointer; }
.seg-btn.active { background: rgba(68,255,136,0.12); color: var(--live); }

.mini-select {
  background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 8px; font-family: var(--font-mono); font-size: 11px; cursor: pointer;
}

/* ============ 地图区 ============ */
.grid-map { display: grid; grid-template-columns: 1fr 420px; gap: 14px; min-height: 540px; }
.map-panel { grid-column: 1; }
.news-panel { grid-column: 2; min-height: 540px; max-height: 660px; }
.map-stage { position: relative; flex: 1; min-height: 460px; background: var(--map-bg); }
.globe-canvas, .flat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-hint {
  position: absolute; left: 14px; bottom: 12px; z-index: 5;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px;
  pointer-events: none;
}
.map-foot {
  display: flex; justify-content: space-between; padding: 8px 14px;
  border-top: 1px solid var(--border); font-size: 10px; color: var(--text-muted);
}
.map-fs-btn { font-size: 14px; }
/* 地图全屏模式 */
.map-panel.map-fullscreen {
  position: fixed; inset: 0; z-index: 999;
  width: 100vw; height: 100vh;
  border: none; border-radius: 0;
  background: var(--map-bg);
}
.map-panel.map-fullscreen .map-stage { flex: 1; min-height: 0; }
.map-panel.map-fullscreen .map-foot { display: none; }
.legend { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--text-muted); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ============ 新闻列表 ============ */
.news-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.news-item {
  display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(42,42,42,0.5);
  cursor: pointer; transition: background .12s;
}
.news-item:hover { background: var(--surface-hover); }
.news-time { color: var(--text-muted); font-size: 10px; white-space: nowrap; padding-top: 1px; min-width: 46px; }
.news-main { flex: 1; min-width: 0; }
.news-title { color: var(--text); font-size: 12.5px; font-family: var(--font-cjk); line-height: 1.45; }
.news-item:hover .news-title { color: var(--live); }
.news-meta { display: flex; gap: 8px; margin-top: 3px; font-size: 10px; color: var(--text-dim); }
.news-meta .tag { padding: 0 5px; border-radius: 3px; background: rgba(59,130,246,0.12); color: var(--info); }
.news-meta .tag.cat { background: rgba(68,255,136,0.1); color: var(--live); }

/* ============ CII 列表 ============ */
.cii-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.cii-item { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid rgba(42,42,42,0.4); }
.cii-rank { width: 20px; color: var(--text-muted); font-size: 11px; text-align: right; }
.cii-flag { font-size: 15px; }
.cii-name { width: 92px; font-family: var(--font-cjk); font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cii-bar { flex: 1; height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.cii-fill { height: 100%; border-radius: 3px; transition: width .6s ease; }
.cii-score { width: 34px; text-align: right; font-weight: 700; font-size: 12px; }
.cii-lv { width: 44px; font-size: 10px; text-align: center; padding: 1px 0; border-radius: 3px; }

/* ============ 金融雷达 ============ */
.fin-body { flex: 1; overflow-y: auto; padding: 8px 14px 14px; }
.fin-sec { margin-bottom: 12px; }
.fin-sec-title { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 6px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.fin-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(42,42,42,0.35); font-size: 12px; }
.liq-canvas { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--border); background: rgba(0,0,0,0.2); }

/* ============ 财经情报面板 ============ */
.fi-panel { grid-column: 1 / -1; }
.fi-body { display: flex; flex-direction: column; }
.fi-main { display: flex; min-height: 200px; }
.fi-flash-wrap { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-bottom: 1px solid var(--border); }
.fi-flash-label { flex: none; padding: 1px 8px; border-radius: 3px; background: rgba(234,179,8,0.15); color: #eab308; font-size: 11px; font-weight: 600; }
.fi-flash { flex: 1; overflow: hidden; height: 22px; display: flex; align-items: center; }
.fi-flash-inner { display: inline-flex; gap: 36px; white-space: nowrap; animation: scroll 220s linear infinite; will-change: transform; }
.fi-flash-inner:hover { animation-play-state: paused; }
.fi-flash-item { color: var(--text-secondary); font-size: 12px; font-family: var(--font-cjk); }
.fi-flash-item:hover { color: var(--live); }
.fi-summary { flex: 0 0 44%; padding: 12px 16px; border-right: 1px solid var(--border); }
.fi-summary-title { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 8px; }
.fi-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(42,42,42,0.35); font-size: 12px; }
.fi-item-name { color: var(--text-secondary); font-family: var(--font-cjk); min-width: 90px; }
.fi-item-price { font-weight: 600; color: var(--text); }
.fi-item-chg { min-width: 86px; text-align: right; font-size: 11px; }
.fi-chg-bar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--bg-secondary); overflow: hidden; vertical-align: middle; margin-left: 6px; }
.fi-chg-fill { height: 100%; }
.fi-list { flex: 1; padding: 4px 0; max-height: 280px; overflow-y: auto; }
.fi-list-item { display: flex; gap: 10px; padding: 8px 16px; border-bottom: 1px solid rgba(42,42,42,0.4); cursor: pointer; }
.fi-list-item:hover { background: var(--surface-hover); }
.fi-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #eab308; margin-top: 5px; box-shadow: 0 0 6px #eab308; }
.fi-title { flex: 1; font-size: 12.5px; font-family: var(--font-cjk); color: var(--text); line-height: 1.45; }
.fi-sub { display: inline-block; margin-right: 5px; padding: 0 4px; border-radius: 3px; background: rgba(234,179,8,0.14); color: #eab308; font-size: 10px; line-height: 1.6; vertical-align: 1px; }
.fi-list-item:hover .fi-title { color: var(--live); }
.fi-meta { font-size: 10px; color: var(--text-dim); margin-top: 3px; font-family: var(--font-mono); }
.fi-empty { padding: 20px 16px; color: var(--text-dim); font-size: 12px; }

/* ============ 加密货币情报面板 ============ */
.ci-panel { grid-column: 1 / -1; }
.ci-body { display: grid; grid-template-columns: 320px 1fr 1.5fr; min-height: 220px; }
.ci-col { padding: 12px 16px; border-right: 1px solid var(--border); }
.ci-col:last-child { border-right: none; }
.ci-col-title { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 8px; }
.ci-news-col { padding: 0; display: flex; flex-direction: column; }
.ci-news-col .ci-col-title { padding: 12px 16px 8px; margin-bottom: 0; }
.ci-news-list { flex: 1; overflow-y: auto; max-height: 220px; padding: 0 0 4px; }
.ci-news-item { display: flex; gap: 10px; padding: 7px 16px; border-bottom: 1px solid rgba(42,42,42,0.4); cursor: pointer; }
.ci-news-item:hover { background: var(--surface-hover); }
.ci-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #f0b90b; margin-top: 5px; box-shadow: 0 0 6px #f0b90b; }
.ci-title { flex: 1; font-size: 12px; font-family: var(--font-cjk); color: var(--text); line-height: 1.4; }
.ci-news-item:hover .ci-title { color: var(--live); }
.ci-meta { font-size: 10px; color: var(--text-dim); margin-top: 2px; font-family: var(--font-mono); }
@media (max-width: 900px) { .ci-body { grid-template-columns: 1fr; } .ci-col { border-right: none; border-bottom: 1px solid var(--border); } }
@media (max-width: 900px) { .fi-body { flex-direction: column; } .fi-summary { border-right: none; border-bottom: 1px solid var(--border); } }
.fin-name { color: var(--text-secondary); font-family: var(--font-cjk); }
.fin-name small { color: var(--text-muted); font-size: 10px; margin-left: 5px; }
.fin-price { font-weight: 600; color: var(--text); }
.fin-chg { font-size: 11px; min-width: 78px; text-align: right; }
.up { color: var(--live); }
.down { color: var(--critical); }
.flat { color: var(--text-dim); }

/* 恐惧贪婪 */
.fg-box { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.fg-num { font-size: 30px; font-weight: 700; }
.fg-label { font-size: 11px; color: var(--text-dim); }
.fg-meter { flex: 1; height: 8px; background: linear-gradient(90deg, #ff4444, #ffaa00, #44ff88); border-radius: 4px; position: relative; }
.fg-dot { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--surface); transform: translateX(-50%); }

/* ============ 时间线 ============ */
.timeline-list { flex: 1; overflow-y: auto; padding: 8px 14px; }
.tl-item { position: relative; padding: 0 0 14px 16px; border-left: 1px solid var(--border); }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before { content: ''; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.tl-item.cat-军事冲突::before { background: var(--critical); box-shadow: 0 0 8px var(--critical); }
.tl-item.cat-政局动荡::before { background: var(--high); }
.tl-item.cat-社会骚乱::before { background: var(--elevated); }
.tl-item.cat-自然灾害::before { background: var(--low); }
.tl-item.cat-地缘紧张::before { background: var(--info); }
.tl-title { font-size: 12px; color: var(--text); font-family: var(--font-cjk); line-height: 1.4; }
.tl-meta { display: flex; gap: 8px; margin-top: 3px; font-size: 10px; color: var(--text-dim); }
.tl-cat { padding: 0 5px; border-radius: 3px; font-size: 9px; }

/* ============ 地震 ============ */
.eq-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.eq-item { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid rgba(42,42,42,0.4); }
.eq-mag { width: 42px; height: 26px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.eq-mag.m25 { background: #3388ff; } .eq-mag.m35 { background: #44aa44; } .eq-mag.m45 { background: #ffaa00; } .eq-mag.m55 { background: #ff8800; } .eq-mag.m65 { background: #ff4444; }
.eq-place { flex: 1; font-family: var(--font-cjk); font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-time { font-size: 10px; color: var(--text-muted); }

/* ============ 世界时钟 ============ */
.worldclock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.wc-item { border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; }
.wc-city { font-size: 11px; color: var(--text-dim); display: flex; justify-content: space-between; }
.wc-time { font-size: 20px; font-weight: 700; letter-spacing: 1px; margin-top: 2px; }
.wc-date { font-size: 9px; color: var(--text-muted); }

/* ============ 数据源 ============ */
.sources-list { flex: 1; overflow-y: auto; padding: 8px 14px; }
.src-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(42,42,42,0.35); font-size: 12px; }
.src-name { color: var(--text-secondary); font-family: var(--font-cjk); }
.src-status { font-size: 10px; }
.src-status.ok { color: var(--live); }
.src-status.bad { color: var(--critical); }
.src-count { color: var(--text-muted); font-size: 10px; margin-left: 8px; }

/* ============ 地图悬浮提示 ============ */
.globe-tooltip {
  position: fixed; z-index: 999; pointer-events: none;
  background: rgba(10, 14, 12, 0.94); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 8px 11px; font-size: 12px; line-height: 1.6;
  color: var(--text); box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: opacity .15s; opacity: 0; max-width: 260px;
}
.globe-tooltip b { font-family: var(--font-cjk); }

/* ============ 区域新闻弹窗 ============ */
.region-modal {
  position: fixed; top: 70px; right: 16px; z-index: 1000;
  width: 380px; max-height: calc(100vh - 90px);
  display: flex; flex-direction: column;
  background: rgba(12, 16, 14, 0.97); border: 1px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  overflow: hidden;
}
.region-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: rgba(68,255,136,0.04);
}
.rm-title { font-size: 16px; font-weight: 700; font-family: var(--font-cjk); color: var(--text); }
.rm-sub { font-size: 11px; color: var(--live); margin-top: 3px; }
.rm-close {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.rm-close:hover { color: var(--critical); border-color: var(--critical); }
.rm-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.rm-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; border-bottom: 1px solid rgba(42,42,42,0.5);
  padding: 10px 16px; cursor: pointer; color: var(--text); font-family: var(--font-cjk);
}
.rm-item:hover { background: var(--surface-hover); }
.rm-item-title { font-size: 13px; line-height: 1.45; }
.rm-item:hover .rm-item-title { color: var(--live); }
.rm-item-meta { display: flex; gap: 8px; margin-top: 4px; font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); }
.rm-empty { padding: 30px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
@media (max-width: 700px) { .region-modal { left: 10px; right: 10px; width: auto; } }

/* ============ 页脚 ============ */
.footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; font-size: 10px; color: var(--text-muted); flex-wrap: wrap; }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .grid-map { grid-template-columns: 1fr; }
  .map-panel, .news-panel { grid-column: 1; }
  .news-panel { min-height: 320px; }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; flex: none; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar-right { width: 100%; justify-content: flex-end; }
}
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .worldclock { grid-template-columns: 1fr; } }

/* ============ 口令登录层 ============ */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 6, 0.88); backdrop-filter: blur(8px);
}
.auth-card {
  width: 340px; padding: 36px 30px; border-radius: 14px;
  background: #101412; border: 1px solid #2a3a30;
  box-shadow: 0 0 60px rgba(68, 255, 136, 0.12);
  text-align: center;
}
.auth-logo {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 12px;
  display: grid; place-items: center; font-size: 26px; color: #0a0a0a; font-weight: 700;
  background: linear-gradient(135deg, #44ff88, #0fb8a0);
  box-shadow: 0 0 22px rgba(68, 255, 136, 0.4);
}
.auth-title { font-size: 17px; font-weight: 700; color: #e8e8e8; letter-spacing: 1px; }
.auth-sub { font-size: 10px; color: #888; letter-spacing: 2px; margin: 4px 0 20px; }
#auth-input {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid #3a4a40;
  background: #0a0d0b; color: #e8e8e8; font-size: 14px; text-align: center; outline: none;
  letter-spacing: 2px;
}
#auth-input:focus { border-color: #44ff88; box-shadow: 0 0 10px rgba(68, 255, 136, 0.25); }
.auth-error { min-height: 18px; margin-top: 8px; font-size: 12px; color: #ff4444; }
.auth-btn {
  width: 100%; margin-top: 6px; padding: 11px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #44ff88, #0fb8a0); color: #0a0a0a;
  font-size: 14px; font-weight: 700;
}
.auth-btn:hover { filter: brightness(1.1); }
.auth-note { margin-top: 14px; font-size: 11px; color: #666; }
