/* ── 财经简报 ────────────────────────────────────────── */
:root {
  --bg: #f3f5f8;
  --bg-soft: #eaeef3;
  --card: #ffffff;
  --card-2: #fafbfd;
  --line: #e3e8ef;
  --line-soft: #eef2f7;
  --text: #14181f;
  --text-2: #4a5566;
  --text-3: #8b96a8;
  --accent: #e0355a;
  --accent-soft: #fde8ed;
  --amber: #e8963c;
  --teal: #159a8c;
  --slate: #8fa0b5;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 14px 40px rgba(16, 24, 40, .10);
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-soft: #10141b;
  --card: #151a22;
  --card-2: #12171e;
  --line: #232b36;
  --line-soft: #1b222c;
  --text: #e9edf4;
  --text-2: #a6b1c2;
  --text-3: #6d7a8c;
  --accent: #ff4d70;
  --accent-soft: #33131c;
  --amber: #f0a94e;
  --teal: #2ec4b6;
  --slate: #7d8ea3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  /* 正文字号档位：设置面板里切换 */
  --fs-title: 15px;
  --fs-desc: 12.5px;
  --fs-body: 15px;
  --fs-pick: 14px;
  --fs-text: 14px;
}
html[data-fs="sm"] { --fs-title: 14px; --fs-desc: 12px; --fs-body: 14px; --fs-pick: 13px; --fs-text: 13px; }
html[data-fs="lg"] { --fs-title: 16.5px; --fs-desc: 14px; --fs-body: 16px; --fs-pick: 15.5px; --fs-text: 15.5px; }
html[data-fs="xl"] { --fs-title: 18.5px; --fs-desc: 15.5px; --fs-body: 18px; --fs-pick: 17px; --fs-text: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(24px + var(--safe-b));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(224, 53, 90, .10), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(21, 154, 140, .09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── 顶栏 ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 780px; margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #e0355a, #b31d47 60%, #7d1030);
  box-shadow: 0 4px 12px rgba(224, 53, 90, .32);
}
.brand-text h1 {
  margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .4px; line-height: 1.2;
}
.brand-text p {
  margin: 1px 0 0; font-size: 11.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; transition: .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

.ticker {
  max-width: 780px; margin: 0 auto; padding: 0 16px 9px;
  font-size: 11.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(21, 154, 140, .6); animation: pulse 2.4s infinite;
}
.ticker.offline { color: var(--accent); font-weight: 600; }
.ticker.offline .dot-live { background: var(--accent); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 154, 140, .55); }
  70% { box-shadow: 0 0 0 7px rgba(21, 154, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 154, 140, 0); }
}

/* ── 布局 ─────────────────────────────────────────── */
.wrap {
  max-width: 780px; margin: 0 auto; padding: 14px 16px 0;
  position: relative; z-index: 1;
}

.section-head {
  display: flex; align-items: baseline; gap: 10px; margin: 4px 2px 10px;
}
.section-head h2 {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  position: relative; padding-left: 11px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #ff9b52);
}
.section-hint { font-size: 11.5px; color: var(--text-3); }

/* ── 今日必读 ─────────────────────────────────────── */
.picks { margin-bottom: 18px; }
.pick-list { display: grid; gap: 10px; }

.pick {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 15px 13px 17px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.pick::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), #f8a73c);
}
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pick:hover .pick-title { color: var(--accent); }
.pick-title {
  font-size: var(--fs-pick); font-weight: 700; line-height: 1.42; letter-spacing: -.1px;
  transition: color .18s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-desc {
  margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-meta {
  margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-3);
}

/* ── 徽章 / 分数 ───────────────────────────────────── */
.src-tag {
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: var(--bg-soft); border-radius: 6px; padding: 2px 7px; letter-spacing: .2px;
}
.cat-tag {
  font-size: 11px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.score {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.score-bar {
  width: 34px; height: 4px; border-radius: 3px; background: var(--line);
  overflow: hidden; position: relative;
}
.score-bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: 3px;
  background: linear-gradient(90deg, #f7b955, var(--accent));
}
.score.high { color: var(--accent); }
.score.mid { color: var(--amber); }
.score.low { color: var(--slate); }

.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: .6; }

/* ── 手机扫码弹层 ─────────────────────────────────── */
.qr-wrap {
  display: grid; place-items: center; padding: 20px 16px 8px;
}
.qr-img {
  width: 220px; height: 220px; border-radius: 14px; background: #fff;
  padding: 10px; box-shadow: 0 4px 18px rgba(16,24,40,.10);
}
.qr-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.qr-link {
  margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-2); word-break: break-all;
  font-family: ui-monospace, Consolas, monospace; text-align: center;
}
.qr-btns { display: flex; gap: 8px; padding: 0 16px; }
.qr-btns .share-btn-lg { margin: 0; }
.share-btn-lg.ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); font-weight: 600;
}
.qr-note {
  padding: 14px 18px 24px; font-size: 10.5px; color: var(--text-3);
  text-align: center; line-height: 1.6;
}

/* ── 周报 ─────────────────────────────────────────── */
.weekly-view { margin-bottom: 18px; }
.wk-head {
  background: linear-gradient(135deg, #e0355a, #7d1030);
  border-radius: 16px; padding: 18px 18px 16px; color: #fff; margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(224, 53, 90, .22);
}
.wk-title { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.wk-range { font-size: 12px; opacity: .85; margin-top: 3px; }
.wk-stats {
  display: flex; gap: 14px; margin-top: 12px; font-size: 11.5px; opacity: .92;
  flex-wrap: wrap;
}
.wk-stats b { font-size: 15px; font-weight: 800; display: block; line-height: 1.2; }

.wk-section { margin-bottom: 16px; }
.wk-review {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.85; color: var(--text);
}
.wk-review-label {
  font-size: 10.5px; font-weight: 800; color: var(--accent);
  letter-spacing: .5px; margin-bottom: 8px;
}

.wk-event {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--shadow);
}
.wk-event-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.wk-event-rank {
  font-size: 11px; font-weight: 800; color: #fff; background: var(--accent);
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  flex: none;
}
.wk-event-name { font-size: 15px; font-weight: 700; flex: 1; }
.wk-event-meta { font-size: 10.5px; color: var(--text-3); }
.wk-tl { margin-top: 7px; padding-left: 4px; }
.wk-tl-item {
  display: flex; gap: 7px; padding: 4px 0; font-size: 11.5px; color: var(--text-2);
  text-decoration: none; border-top: 1px dashed var(--line-soft);
}
.wk-tl-item:first-child { border-top: 0; }
.wk-tl-time { flex: none; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wk-tl-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
.wk-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 9px; box-shadow: var(--shadow);
}
.wk-cell-name { font-size: 10px; color: var(--text-3); }
.wk-cell-val { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
.wk-cell-pct { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-cell.up .wk-cell-pct { color: var(--accent); }
.wk-cell.down .wk-cell-pct { color: #12a06a; }

.wk-policy {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.wk-pol-item {
  display: block; padding: 10px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.5;
}
.wk-pol-item:last-child { border-bottom: 0; }
.wk-pol-item:hover { background: var(--bg-soft); }
.wk-pol-org { color: var(--accent); font-weight: 700; margin-right: 6px; }

/* ── AI 解析区块 ─────────────────────────────────── */
.analysis {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 13px; padding: 13px 14px 6px; margin: 12px 14px 4px;
}
.analysis-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
}
.analysis-badge {
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #e0355a, #b31d47);
  padding: 2px 8px; border-radius: 5px; letter-spacing: .3px;
}
.analysis-model { font-size: 10px; color: var(--text-3); margin-left: auto; }
.an-block { margin-bottom: 12px; }
.an-label {
  font-size: 11px; font-weight: 800; color: var(--accent);
  letter-spacing: .4px; margin-bottom: 4px;
}
.an-text { font-size: 13px; line-height: 1.75; color: var(--text); }
.an-block.is-main .an-text { font-weight: 500; }
.an-block.is-outlook .an-text {
  color: var(--text); font-weight: 550;
  border-left: 2px solid var(--accent); padding-left: 9px;
}
.an-list { margin: 0; padding-left: 16px; }
.an-list li {
  font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin-bottom: 3px;
}
.an-keywords { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 10px; }
.kw-chip {
  font-size: 10.5px; color: var(--text-2); background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 7px;
}
.doc-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 12px; color: var(--text-3); font-size: 11px; font-weight: 700;
}
.doc-divider::before, .doc-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line-soft);
}
.doc-title-row { display: flex; align-items: flex-start; gap: 7px; }
.doc-badge {
  flex: none; font-size: 9px; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 4px; padding: 1px 5px; margin-top: 3px;
}
.doc-topic {
  color: var(--accent); font-weight: 700;
}

/* ── 政策子切换 ───────────────────────────────────── */
.sub-switch {
  display: flex; gap: 6px; margin: 0 0 12px;
}
.sub-switch button {
  flex: 1; border: 1px solid var(--line); background: var(--card);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-3); padding: 7px 4px; border-radius: 9px; cursor: pointer;
}
.sub-switch button[aria-pressed="true"] {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* 原文列表 */
.doc-item {
  display: block; padding: 11px 13px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.doc-item:hover { border-color: var(--accent); }
.doc-title { font-size: 13.5px; font-weight: 650; line-height: 1.45; margin-bottom: 5px; }
.doc-meta {
  display: flex; gap: 8px; font-size: 10.5px; color: var(--text-3);
}
.doc-org {
  font-weight: 700; color: var(--accent);
}
.doc-body {
  font-size: 13px; line-height: 1.85; color: var(--text-2);
  white-space: pre-wrap; padding: 4px 2px 20px;
}
.doc-body p { margin: 0 0 12px; }
.doc-full-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}

/* ── 关键人物 ─────────────────────────────────────── */
.figures-sec { margin-bottom: 16px; }
.figure-list { display: grid; gap: 9px; }
.figure-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px 10px; box-shadow: var(--shadow);
}
.figure-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px;
}
.figure-name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.figure-meta { font-size: 11px; color: var(--text-3); margin-left: auto; }
.figure-row {
  display: flex; gap: 7px; padding: 5px 0; text-decoration: none; color: inherit;
  border-top: 1px dashed var(--line-soft);
}
.figure-row:first-of-type { border-top: 0; }
.figure-tag {
  flex: none; font-size: 9.5px; font-weight: 700; border-radius: 4px;
  padding: 1px 5px; height: 15px; line-height: 13px; margin-top: 2px;
}
.figure-tag.act { color: #b45309; background: #fef3c7; }
.figure-tag.say { color: #1d4ed8; background: #dbeafe; }
.figure-tag.out { color: #047857; background: #d1fae5; }
[data-theme="dark"] .figure-tag.act { background: #3a2a10; color: #fbbf24; }
[data-theme="dark"] .figure-tag.say { background: #16243d; color: #93c5fd; }
[data-theme="dark"] .figure-tag.out { background: #0f2d22; color: #6ee7b7; }
.figure-title {
  font-size: 12.5px; line-height: 1.5; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.figure-row:hover .figure-title { color: var(--accent); }

/* ── 全网热搜 ─────────────────────────────────────── */
.trending-sec { margin-bottom: 16px; }
.trending-list {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.trend-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 13px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line-soft);
}
.trend-item:last-child { border-bottom: 0; }
.trend-item:hover { background: var(--bg-soft); }
.trend-rank {
  flex: none; width: 16px; font-size: 11px; font-weight: 700;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.trend-item:nth-child(1) .trend-rank,
.trend-item:nth-child(2) .trend-rank,
.trend-item:nth-child(3) .trend-rank { color: var(--accent); }
.trend-title {
  flex: 1; min-width: 0; font-size: 13px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trend-item.is-rel .trend-title { font-weight: 650; }
.trend-hot {
  flex: none; font-size: 10.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.trend-badge {
  flex: none; font-size: 9px; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 4px; padding: 0 4px; line-height: 1.5;
}
.trend-also {
  flex: none; font-size: 9px; font-weight: 700; color: #8b5cf6;
  background: rgba(139, 92, 246, .12);
  border-radius: 4px; padding: 0 4px; line-height: 1.5;
}

/* ── 今日焦点事件 ─────────────────────────────────── */
.events { margin-bottom: 18px; }
.event-list { display: grid; gap: 10px; }

.event-card {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.event-card.is-s { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.event-card.is-s::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #f8a73c);
}

.event-head {
  padding: 13px 15px 11px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
}
.event-card.has-cover .event-head { padding-bottom: 9px; }
.event-cover {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block;
  background: var(--bg-soft);
}
.event-cover-wrap { position: relative; }
.event-card.is-hero .event-cover { aspect-ratio: 16 / 9; }
.event-card.is-hero .event-head { padding-top: 11px; }
.event-card.is-hero .event-name { font-size: 18px; letter-spacing: -.3px; }
.event-card.is-hero .event-latest { font-size: 13px; -webkit-line-clamp: 2; }
.event-card.is-hero .event-rank {
  background: var(--accent); color: #fff; width: 24px; height: 24px;
}
.event-cover-wrap .badge-live {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(0, 0, 0, .55); color: #fff; border-color: transparent;
  backdrop-filter: blur(6px);
}
.heat-bar {
  margin-top: 8px; height: 3px; border-radius: 2px; background: var(--line);
  overflow: hidden;
}
.heat-bar i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #f7b955, var(--accent));
}
.event-rank {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--bg-soft); color: var(--text-2); margin-top: 1px;
}
.is-s .event-rank { background: var(--accent); color: #fff; }
.event-main { flex: 1; min-width: 0; }
.event-name {
  font-size: 15.5px; font-weight: 700; letter-spacing: -.1px; line-height: 1.35;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.badge-s {
  font-size: 10px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 1px 6px; border-radius: 5px; letter-spacing: .5px;
}
.badge-live {
  font-size: 10px; font-weight: 600; color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  padding: 1px 6px; border-radius: 5px;
}
.event-meta {
  margin-top: 4px; font-size: 11.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.event-latest {
  margin-top: 7px; font-size: 12.5px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-toggle {
  flex: none; color: var(--text-3); font-size: 12px; margin-top: 3px;
  transition: transform .2s;
}
.event-more {
  padding: 8px 15px 11px; font-size: 12px; font-weight: 600;
  color: var(--accent); cursor: pointer; border-top: 1px solid var(--line-soft);
}
.event-more:hover { color: #ff6b8a; }
.event-card.open .event-toggle { transform: rotate(180deg); }

.event-timeline {
  display: none; padding: 2px 15px 14px 15px;
  border-top: 1px solid var(--line-soft); margin-top: 2px;
}
.event-card.open .event-timeline { display: block; }
.tl-item {
  position: relative; padding: 9px 0 9px 18px; text-decoration: none; color: inherit;
  display: block; border-bottom: 1px dashed var(--line-soft);
}
.tl-item:last-child { border-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 3px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.tl-item::after {
  content: ""; position: absolute; left: 5.5px; top: 21px; bottom: -9px;
  width: 1px; background: var(--line);
}
.tl-item:last-child::after { display: none; }
.tl-time {
  font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
  display: flex; gap: 6px; align-items: center;
}
.tl-title { font-size: 13px; color: var(--text); line-height: 1.45; margin-top: 2px; }
.tl-item:hover .tl-title { color: var(--accent); }

.tl-more {
  padding: 10px 0 4px 18px; font-size: 12px; font-weight: 600;
  color: var(--accent); cursor: pointer;
}

/* ── 分享卡片 ─────────────────────────────────────── */
.modal-share { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.share-btn-lg {
  width: 100%; border: 0; border-radius: 11px; padding: 11px;
  background: linear-gradient(135deg, #e0355a, #b31d47); color: #fff;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.share-btn-lg:active { transform: scale(.98); }
.share-body { max-height: 92vh; }
.share-preview {
  width: 100%; display: block; border-radius: 12px; margin: 12px 0;
  background: var(--bg-soft);
}
.share-download {
  display: block; text-align: center; margin: 0 16px 20px;
  padding: 11px; border-radius: 11px; background: var(--bg-soft);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}

/* ── 事件详情弹层 ─────────────────────────────────── */
.event-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end;
  background: rgba(8, 10, 14, .55); backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-body {
  width: 100%; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  animation: slideUp .24s cubic-bezier(.2, .8, .2, 1);
  max-width: 780px; margin: 0 auto;
}
@keyframes slideUp { from { transform: translateY(40px) } to { transform: translateY(0) } }
.modal-head {
  position: sticky; top: 0; background: var(--card); z-index: 2;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; flex: 1; line-height: 1.35; }
.modal-close {
  flex: none; border: 0; background: var(--bg-soft); color: var(--text-2);
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px;
  cursor: pointer; line-height: 1;
}
.modal-meta {
  padding: 10px 16px; font-size: 12px; color: var(--text-3);
  display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft);
}
.modal-timeline { padding: 6px 16px 20px; }

/* ── 政策专题 ─────────────────────────────────────── */
.policy-view { margin-bottom: 18px; }
.agency-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 9px; overflow: hidden; box-shadow: var(--shadow);
}
.agency-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.agency-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.agency-name { font-size: 14.5px; font-weight: 700; }
.agency-count {
  font-size: 11px; color: var(--text-3); margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.agency-doc {
  font-size: 10px; color: #fff; background: var(--accent);
  padding: 1px 6px; border-radius: 5px; font-weight: 700;
}
.agency-items { padding: 4px 0; }
.agency-items.collapsed { display: none; }
.policy-item {
  display: block; padding: 9px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px dashed var(--line-soft);
}
.policy-item:last-child { border-bottom: 0; }
.policy-item:hover { background: var(--bg-soft); }
.policy-title { font-size: 13px; line-height: 1.5; color: var(--text); }
.policy-meta { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.policy-item.is-doc .policy-title { font-weight: 650; }
.policy-item.is-doc .policy-title::before {
  content: "📄"; margin-right: 5px; font-size: 11px;
}

/* ── 时间范围切换 ─────────────────────────────────── */
.range-switch {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 14px;
  background: var(--bg-soft); border-radius: 12px;
  border: 1px solid var(--line-soft);
}
.range-switch button {
  flex: 1; border: 0; background: transparent; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  padding: 8px 4px; border-radius: 9px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.range-switch button:hover { color: var(--text-2); }
.range-switch button[aria-pressed="true"] {
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow);
}

/* ── 今日一句话 ───────────────────────────────────── */
.brief {
  position: relative; margin: 0 0 14px; padding: 13px 15px 12px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(224, 53, 90, .10), rgba(248, 167, 60, .08));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
}
.brief::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), #f8a73c);
}
.brief-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 5px;
}
.brief-line {
  font-size: var(--fs-desc); font-weight: 650; line-height: 1.55; color: var(--text);
  letter-spacing: -.1px;
}

/* ── 金属价格（横向滚动，首屏可见）───────────────── */
.metals-sec { margin-bottom: 14px; }
.metals-sec .section-head { margin-bottom: 7px; }
.metals {
  display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 6px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.metals::-webkit-scrollbar { display: none; }
.metal {
  flex: none; width: 112px; padding: 8px 10px 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  scroll-snap-align: start;
}
.metal .mn { font-size: 10.5px; color: var(--text-3); display: flex; justify-content: space-between; }
.metal .mp {
  font-size: 15px; font-weight: 700; letter-spacing: -.4px; margin-top: 1px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.metal .mc { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metal.up .mc { color: var(--accent); }
.metal.down .mc { color: #12a06a; }
.metal.flat .mc { color: var(--text-3); }
.metal .mu { font-size: 9px; color: var(--text-3); font-weight: 400; }
.metal-spark { width: 100%; height: 18px; margin: 3px 0 1px; display: block; opacity: .9; }
.metal-spark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.metal.up .metal-spark path { stroke: var(--accent); }
.metal.down .metal-spark path { stroke: #12a06a; }
.metal.flat .metal-spark path { stroke: var(--slate); }

/* 要点句 + 事实标签 */
.desc.point { color: var(--text-2); }
.facts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.fact-chip {
  font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 5px; padding: 1px 6px; line-height: 1.6;
}
[data-theme="dark"] .fact-chip {
  background: rgba(255, 77, 112, .12);
}

/* 无图卡片：文字占满，不加占位块，更清爽 */
.card.no-thumb .title { font-size: var(--fs-title); }
.card.no-thumb .desc { -webkit-line-clamp: 2; }

/* ── 下拉刷新 ─────────────────────────────────────── */
.ptr {
  position: fixed; left: 50%; top: 96px; transform: translate(-50%, -46px);
  display: flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--card); color: var(--text-2); border: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 40; pointer-events: none;
  opacity: 0; transition: opacity .18s, transform .18s;
}
.ptr.show { opacity: 1; }
.ptr-ico { display: inline-block; transition: transform .2s; font-size: 13px; }
.ptr.ready .ptr-ico { transform: rotate(180deg); color: var(--accent); }
.ptr.loading .ptr-ico { animation: spin 1s linear infinite; }
.ptr.loading .ptr-txt { color: var(--accent); }

/* ── 行情条 ───────────────────────────────────────── */
.market { margin: 2px 0 16px; }
.market-scroll {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 9px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.market-scroll::-webkit-scrollbar { display: none; }
.mcard {
  flex: none; width: 128px; padding: 10px 11px 9px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); scroll-snap-align: start;
}
.mcard .mname { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mcard .mprice {
  font-size: 17px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.mcard .mpct {
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 3px;
}
.mcard.up .mpct { color: var(--accent); }
.mcard.down .mpct { color: #12a06a; }
.mcard.flat .mpct { color: var(--text-3); }
.mspark { position: absolute; right: 7px; bottom: 8px; width: 50px; height: 20px; opacity: .85; }
.mspark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mcard.up .mspark path { stroke: var(--accent); }
.mcard.down .mspark path { stroke: #12a06a; }

/* ── 卡片配图 ─────────────────────────────────────── */
.card-media { display: flex; gap: 12px; align-items: flex-start; }
.card-main { flex: 1; min-width: 0; }
.thumb {
  width: 104px; height: 104px; flex: none; border-radius: 12px; object-fit: cover;
  background: var(--bg-soft); display: block;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .10);
  transition: transform .2s, box-shadow .2s;
}
.card:hover .thumb { transform: scale(1.02); box-shadow: 0 4px 16px rgba(16, 24, 40, .16); }
.thumb-ph {
  display: grid; place-items: center; font-size: 30px; line-height: 1;
  border: 1px solid var(--line-soft);
}
.pick-cover {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; object-fit: cover;
  display: block; margin-bottom: 11px; background: var(--bg-soft);
}
@media (max-width: 400px) {
  .thumb { width: 92px; height: 92px; }
}

/* 大图卡：有图的头条/必读，图占满宽度 */
.hero-media {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 13px; margin-bottom: 10px; background: var(--bg-soft);
}

/* ── 公网地址条 ───────────────────────────────────── */
.share {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(21, 154, 140, .12), rgba(47, 127, 212, .10));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 13px; padding: 9px 11px; margin: 0 0 14px;
}
.share-ico { font-size: 18px; }
.share-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.share-txt span { font-size: 10.5px; color: var(--text-3); }
.share-txt code {
  font-size: 11.5px; color: var(--text-2); font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-btn {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  font-size: 11.5px; font-family: inherit; padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.share-btn:active { transform: scale(.95); }

/* ── 概览数字 ─────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 6px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line-soft);
}
.stat b {
  display: block; font-size: 19px; font-weight: 700; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat span { font-size: 11px; color: var(--text-3); }

/* ── 控件 ─────────────────────────────────────────── */
.controls { margin-bottom: 12px; }

.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; height: 42px; color: var(--text-3);
  transition: border-color .18s, box-shadow .18s;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.search input {
  flex: 1; border: 0; background: transparent; outline: none; color: var(--text);
  font-size: 14px; font-family: inherit; min-width: 0;
}
.search input::placeholder { color: var(--text-3); }
.mini-x {
  border: 0; background: var(--bg-soft); color: var(--text-3); border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; cursor: pointer; line-height: 1;
}

.tabs {
  display: flex; gap: 7px; overflow-x: auto; padding: 11px 2px 3px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid var(--line); background: var(--card);
  color: var(--text-2); font-size: 12.5px; font-weight: 600; font-family: inherit;
  padding: 6px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  transition: .16s ease; display: inline-flex; align-items: center; gap: 5px;
}
.tab:hover { border-color: var(--text-3); color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--text); color: var(--bg); border-color: var(--text);
  box-shadow: 0 3px 10px rgba(20, 24, 31, .18);
}
.tab .n { font-size: 10.5px; opacity: .6; font-variant-numeric: tabular-nums; }

.switches { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 8px; }
.chip {
  border: 1px dashed var(--line); background: transparent; color: var(--text-3);
  font-size: 12px; font-family: inherit; padding: 5px 11px; border-radius: 20px;
  cursor: pointer; transition: .16s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text-2); border-color: var(--text-3); }
.chip[aria-pressed="true"] {
  border-style: solid; border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft); font-weight: 600;
}
.chip-ghost, .chip.ghost { border-style: solid; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ── 列表 ─────────────────────────────────────────── */
.feed { display: grid; gap: 2px; }

.day-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 4px 9px; font-size: 11.5px; color: var(--text-3);
  font-weight: 600; letter-spacing: 1px;
}
.day-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.card {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 14px; margin-bottom: 8px;
  transition: border-color .18s, transform .16s, box-shadow .18s, background .2s;
  cursor: pointer; overflow: hidden;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.card:hover .title { color: var(--accent); }
.card.read { opacity: .58; background: var(--card-2); }
.card.read:hover { opacity: .85; }
.card.unread::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2.5px;
  border-radius: 0 2px 2px 0; background: var(--accent); opacity: .85;
}

.card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.card-head .time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.star {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 0 2px 4px; transition: .15s;
}
.star:hover { color: var(--amber); transform: scale(1.15); }
.star.on { color: var(--amber); }

.title {
  font-size: var(--fs-title); font-weight: 650; line-height: 1.46; color: var(--text);
  letter-spacing: -.1px; transition: color .16s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.desc {
  margin-top: 5px; font-size: var(--fs-desc); color: var(--text-2); line-height: 1.58;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 11px; color: var(--text-3); flex-wrap: wrap;
}
.card-foot .also { color: var(--text-3); opacity: .85; }
.open-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); }

/* ── 骨架屏 ───────────────────────────────────────── */
.skel {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 14px; margin-bottom: 8px;
}
.skel span {
  display: block; height: 11px; border-radius: 6px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--bg-soft) 37%, var(--line-soft) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ── 加载更多 ─────────────────────────────────────── */
.load-more {
  text-align: center; padding: 18px 12px 26px; font-size: 12px; color: var(--text-3);
  letter-spacing: .5px;
}

/* ── 空态 ─────────────────────────────────────────── */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty-ico { font-size: 34px; margin-bottom: 8px; opacity: .8; }

/* ── 信源 ─────────────────────────────────────────── */
.sources {
  margin-top: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 14px; overflow: hidden;
}
.sources summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; color: var(--text-2);
}
.sources summary::-webkit-details-marker { display: none; }
.sources[open] summary .chev { transform: rotate(90deg); }
.sources .chev { transition: transform .2s; color: var(--text-3); }
.source-list { padding: 2px 0 10px; display: grid; gap: 6px; }
.source-row {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2);
  padding: 5px 8px; border-radius: 8px; background: var(--bg-soft);
}
.source-row .ok { color: var(--teal); }
.source-row .err { color: var(--accent); }
.source-row .meta { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11px; }
.source-note { font-size: 11px; color: var(--text-3); margin: 2px 0 12px; line-height: 1.6; }

.foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-3); padding: 18px 4px 6px;
}

/* ── toast ────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translate(-50%, 14px);
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: .28s cubic-bezier(.2, .8, .2, 1); z-index: 60; pointer-events: none;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 响应式 ───────────────────────────────────────── */
@media (min-width: 720px) {
  .pick-list { grid-template-columns: 1fr 1fr; }
  .pick-list .pick:first-child { grid-column: 1 / -1; }
  .pick-list .pick:first-child .pick-title { font-size: 19px; -webkit-line-clamp: 3; }
  .title { font-size: 15.5px; }
}
@media (max-width: 400px) {
  .stats { padding: 11px 2px; }
  .stat b { font-size: 17px; }
  .pick-title { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── 国际局势 ─────────────────────────────────────── */
.geo-view { padding: 0 0 12px; }
.geo-card {
  background: var(--card); border-radius: var(--r-lg); margin: 0 0 14px;
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line);
}
.geo-top {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 15px 12px;
  background: linear-gradient(135deg, rgba(90,103,216,.10), rgba(90,103,216,.02));
  border-bottom: 1px solid var(--line);
}
.geo-ico { font-size: 19px; line-height: 1.2; flex: none; }
.geo-tt { flex: 1; min-width: 0; }
.geo-name { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-bottom: 3px; }
.geo-headline { font-size: 16px; font-weight: 700; line-height: 1.42; color: var(--text); }
.geo-count {
  flex: none; font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--chip); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.geo-na {
  margin: 12px 15px 0; font-size: 12.5px; color: var(--muted);
  background: var(--chip); border-radius: var(--r-sm); padding: 8px 11px;
}
.geo-block { padding: 12px 15px 0; }
.geo-block:last-of-type { padding-bottom: 2px; }
.geo-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 5px; display: flex; align-items: center; gap: 5px;
}
.geo-label::before {
  content: ''; width: 3px; height: 11px; border-radius: 2px; background: var(--accent);
  opacity: .75;
}
.geo-text { font-size: var(--fs-text); line-height: 1.72; color: var(--text); }

.geo-chips { display: flex; flex-direction: column; gap: 6px; }
.geo-chip {
  font-size: 13px; line-height: 1.55; padding: 7px 11px; border-radius: 8px;
  border-left: 3px solid var(--line);
  background: var(--chip); color: var(--text);
}
.geo-chip.up { border-left-color: #d64545; }
.geo-chip.down { border-left-color: #2f9e6b; }
.geo-chip.flat { border-left-color: #d09b2c; }

.geo-list { margin: 0; padding-left: 18px; }
.geo-list li { font-size: 13.5px; line-height: 1.7; color: var(--text); margin-bottom: 3px; }

.geo-src { border-top: 1px solid var(--line); margin-top: 12px; }
.geo-src summary {
  padding: 10px 15px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; list-style: none;
}
.geo-src summary::-webkit-details-marker { display: none; }
.geo-src summary::after { content: ' ▾'; }
.geo-src[open] summary::after { content: ' ▴'; }
.geo-src-row {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 15px;
  text-decoration: none; border-top: 1px dashed var(--line);
}
.geo-src-src { flex: none; font-size: 11px; color: var(--muted); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-src-title { flex: 1; font-size: 13px; line-height: 1.55; color: var(--text); }
.geo-src-row:active .geo-src-title { color: var(--accent); }

/* ── 国际局势 · 相关板块 ─────────────────────────────── */
.geo-sector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.geo-sector {
  border-left: 3px solid var(--line);
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  background: rgba(127, 127, 127, .06);
}
.geo-sector.up { border-left-color: #d64545; }
.geo-sector.down { border-left-color: #2f9e6b; }
.geo-sector.flat { border-left-color: #d09b2c; }
.geo-sector-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.geo-sector-name {
  font-weight: 700;
  font-size: 14px;
}
.geo-sector-dir {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.geo-sector-dir.up { color: #d64545; }
.geo-sector-dir.down { color: #2f9e6b; }
.geo-sector-dir.flat { color: #d09b2c; }
.geo-sector-why {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  opacity: .78;
}
.geo-sector-stocks {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.geo-stock {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(127, 127, 127, .14);
}

/* ── 全局搜索 ─────────────────────────────────────────── */
body.search-open { overflow: hidden; }
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg, Canvas);
  display: flex;
  flex-direction: column;
}
.search-layer[hidden] { display: none; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg, Canvas);
  flex: none;
}
.search-ico { opacity: .5; flex: none; }
#searchInput {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 16px;
  padding: 8px 0;
  font-family: inherit;
}
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-decoration { display: none; }
.search-clear {
  flex: none;
  width: 22px;
  height: 22px;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: rgba(127, 127, 127, .25);
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}
.search-cancel {
  flex: none;
  border: none;
  background: transparent;
  color: var(--accent, #c0392b);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 2px 6px 8px;
}
.search-meta {
  flex: none;
  padding: 7px 14px;
  font-size: 11.5px;
  opacity: .58;
  border-bottom: 1px solid var(--line);
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-meta:empty { border-bottom: none; min-height: 0; padding: 0; }
.search-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 60px;
}
.search-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.search-item:last-child { border-bottom: none; }
.search-item:active { background: rgba(127, 127, 127, .07); }
.search-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  opacity: .6;
  margin-bottom: 5px;
}
.search-item-kind {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(127, 127, 127, .16);
  font-size: 10.5px;
}
.search-item-title {
  font-size: 14.5px;
  line-height: 1.52;
  font-weight: 600;
  word-break: break-word;
}
.search-item-desc {
  font-size: 12.5px;
  line-height: 1.62;
  opacity: .7;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-item mark {
  background: rgba(230, 180, 40, .45);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.search-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 80px;
  text-align: center;
  opacity: .55;
  font-size: 13.5px;
}
.search-empty[hidden] { display: none; }
.search-tips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.search-tip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  cursor: pointer;
  opacity: .9;
}
.search-tip:active { background: rgba(127, 127, 127, .12); }

/* ── 显示设置面板（主题 / 字号） ─────────────────────── */
.set-layer {
  position: fixed; inset: 0; z-index: 96;
  background: rgba(8, 12, 18, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
.set-layer[hidden] { display: none; }
.set-sheet {
  width: 100%; max-width: 560px;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(22px + var(--safe-b));
  box-shadow: var(--shadow-lg);
  animation: setUp .2s cubic-bezier(.22, .8, .3, 1);
}
@keyframes setUp {
  from { transform: translateY(28px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}
.set-head { display: flex; align-items: center; margin-bottom: 16px; }
.set-head h3 {
  margin: 0; font-size: 16px; font-weight: 700; flex: 1;
  color: var(--text); letter-spacing: -.2px;
}
.set-close {
  border: none; background: var(--bg-soft); color: var(--text-2);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 19px; line-height: 1; cursor: pointer; padding: 0;
}
.set-group { margin-bottom: 16px; }
.set-label {
  font-size: 12px; font-weight: 650; color: var(--text-3);
  letter-spacing: .3px; margin-bottom: 8px;
}
.set-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.set-opts button {
  flex: 1 1 auto; min-width: 66px;
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card-2);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s; font-family: inherit;
}
.set-opts button:hover { border-color: var(--slate); }
.set-opts button.on {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent); font-weight: 700;
}
.set-note {
  margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-3);
}
/* ── 我的关注 ─────────────────────────────────────────── */
.watch-input { display: flex; gap: 8px; margin-bottom: 10px; }
.watch-input input {
  flex: 1; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card-2); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
}
.watch-input input:focus { border-color: var(--accent); }
.watch-input button {
  flex: none; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.watch-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.watch-chips:empty { display: none; }
.watch-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.watch-chip button {
  border: none; background: none; color: var(--text-3);
  font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer;
}
.watch-chip button:hover { color: var(--accent); }
/* ── 监管标记 ─────────────────────────────────────────── */
.reg-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 4px; background: rgba(224, 53, 90, .12);
  color: var(--accent); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0; flex: none;
}