:root {
  --bg: #0d1014;
  --side: #11151a;
  --panel: #151a20;
  --card: #1b2027;
  --card2: #1f252d;
  --line: #242a33;
  --line2: #2e3540;
  --line3: #39414d;
  --text: #e9ecef;
  --text2: #c9d0d8;
  --muted: #a3acb8;
  --faint: #7d8794;
  --gold: #e2b34c;
  --gold-hi: #f2cc77;
  --on-gold: #17130a;
  --green: #6fd0a2;
  --green-bg: rgba(87, 192, 143, 0.14);
  --blue: #8db8ff;
  --blue-bg: rgba(116, 169, 255, 0.14);
  --orange: #f5a967;
  --orange-bg: rgba(240, 149, 74, 0.14);
  --red: #f27466;
  --red-bg: rgba(242, 116, 102, 0.14);
  --gold-bg: rgba(226, 179, 76, 0.14);
  --hover: rgba(255, 255, 255, 0.045);
  --gold-fill: #e2b34c;
  --gold-fill-hi: #f2cc77;
  --hover-soft: rgba(255, 255, 255, 0.025);
  --glass: rgba(13, 16, 20, 0.92);
  --btn-hover: #1e242c;
  --chip: #242a33;
  --seg-on: #2b323c;
  --seg-shadow: none;
  --focus: #5a6575;
  --log-bg: #0a0c0f;
  --log-text: #cfd6de;
  --toast: #222831;
  --me: #2b3440;
  --impact-text: #c3d8ff;
  --why-text: #efd79c;
  --card-hover: #171c23;
  --bar: #6b7582;
  --pop: #1a1f26;
  --shadow: rgba(0, 0, 0, 0.5);
  --scrim: rgba(0, 0, 0, 0.5);
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  color-scheme: dark;
}
/* 浅色：设置里选“浅色”，或者选“跟随系统”而系统是浅色 */
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --side: #fbfbfc;
  --panel: #ffffff;
  --card: #f2f4f6;
  --card2: #e9ecf0;
  --line: #e2e5ea;
  --line2: #d3d8de;
  --line3: #bcc3cc;
  --text: #161a1f;
  --text2: #343c45;
  --muted: #59646f;
  --faint: #737e8a;
  --gold: #8f6100;
  --gold-hi: #6f4b00;
  --gold-fill: #e2b34c;
  --gold-fill-hi: #ecc163;
  --on-gold: #17130a;
  --green: #0f7d4b;
  --green-bg: rgba(15, 125, 75, 0.1);
  --blue: #2160cc;
  --blue-bg: rgba(33, 96, 204, 0.09);
  --orange: #ad5106;
  --orange-bg: rgba(173, 81, 6, 0.1);
  --red: #c4362a;
  --red-bg: rgba(196, 54, 42, 0.09);
  --gold-bg: rgba(201, 140, 10, 0.13);
  --hover: rgba(15, 25, 40, 0.05);
  --hover-soft: rgba(15, 25, 40, 0.03);
  --glass: rgba(244, 245, 247, 0.92);
  --btn-hover: #eef0f3;
  --chip: #e9ecf0;
  --seg-on: #ffffff;
  --seg-shadow: 0 1px 2px rgba(15, 25, 40, 0.14);
  --focus: #8a96a3;
  --log-bg: #f6f7f9;
  --log-text: #2b333c;
  --toast: #ffffff;
  --me: #e3ecf8;
  --impact-text: #1d4a96;
  --why-text: #6b4800;
  --card-hover: #f8f9fa;
  --bar: #a3acb7;
  --pop: #ffffff;
  --shadow: rgba(20, 30, 45, 0.14);
  --scrim: rgba(15, 20, 30, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #f4f5f7;
    --side: #fbfbfc;
    --panel: #ffffff;
    --card: #f2f4f6;
    --card2: #e9ecf0;
    --line: #e2e5ea;
    --line2: #d3d8de;
    --line3: #bcc3cc;
    --text: #161a1f;
    --text2: #343c45;
    --muted: #59646f;
    --faint: #737e8a;
    --gold: #8f6100;
    --gold-hi: #6f4b00;
    --gold-fill: #e2b34c;
    --gold-fill-hi: #ecc163;
    --on-gold: #17130a;
    --green: #0f7d4b;
    --green-bg: rgba(15, 125, 75, 0.1);
    --blue: #2160cc;
    --blue-bg: rgba(33, 96, 204, 0.09);
    --orange: #ad5106;
    --orange-bg: rgba(173, 81, 6, 0.1);
    --red: #c4362a;
    --red-bg: rgba(196, 54, 42, 0.09);
    --gold-bg: rgba(201, 140, 10, 0.13);
    --hover: rgba(15, 25, 40, 0.05);
    --hover-soft: rgba(15, 25, 40, 0.03);
    --glass: rgba(244, 245, 247, 0.92);
    --btn-hover: #eef0f3;
    --chip: #e9ecf0;
    --seg-on: #ffffff;
    --seg-shadow: 0 1px 2px rgba(15, 25, 40, 0.14);
    --focus: #8a96a3;
    --log-bg: #f6f7f9;
    --log-text: #2b333c;
    --toast: #ffffff;
    --me: #e3ecf8;
    --impact-text: #1d4a96;
    --why-text: #6b4800;
    --card-hover: #f8f9fa;
    --bar: #a3acb7;
    --pop: #ffffff;
    --shadow: rgba(20, 30, 45, 0.14);
    --scrim: rgba(15, 20, 30, 0.35);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
/* 根字号：以前是 15px，2026-10-18 老冉要“放大一点点”改成 16px；设置里选“大一点”是 17px。其余字号都用 rem 跟着走 */
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-size="large"] { font-size: 17px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; }
body { font-size: 1rem; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
h1 { font-size: 1.7333rem; font-weight: 900; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.8667rem; }
.tiny { font-size: 0.8rem; }
.sr { position: absolute; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.clamp2, .clamp3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }

/* ---------- 布局：左边菜单 + 右边内容；手机上菜单收进左上角 ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.main { min-width: 0; padding: 32px 40px 80px; }
.wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.topbar, .scrim { display: none; }

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 6px; text-decoration: none; color: var(--text); }
.brand svg { flex: none; }
.brand b { font-size: 1.0667rem; font-weight: 900; display: block; }
.brand span span { font-size: 0.8rem; color: var(--faint); }
.brand:hover { color: var(--text); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .side-foot a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--text2); font-size: 0.9667rem; }
.nav a > svg, .side-foot a > svg { flex: none; color: var(--faint); }
.nav a > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover, .side-foot a:hover { background: var(--hover); color: var(--text); }
.nav a.on, .side-foot a.on { background: var(--gold-bg); color: var(--gold); font-weight: 700; }
.nav a.on > svg, .nav a.in > svg, .side-foot a.on > svg { color: var(--gold); }
.nav a.in { color: var(--text); font-weight: 700; }
.navlabel { font-size: 0.8rem; font-weight: 600; color: var(--faint); padding: 16px 10px 6px; letter-spacing: 0.06em; }
.proj { display: flex; align-items: center; gap: 2px; }
.proj > a { flex: 1; min-width: 0; }
.proj small { font-size: 0.7667rem; font-weight: 400; color: var(--faint); margin-left: 7px; }
.caret { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.caret:hover { background: var(--hover); color: var(--text); }
.caret svg { transition: transform 0.15s; }
.caret[aria-expanded="false"] svg { transform: rotate(-90deg); }
.subnav { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 19px; padding-left: 10px; border-left: 1px solid var(--line2); }
.subnav a { min-height: 34px; font-size: 0.9333rem; }
.soonrow { display: flex; gap: 6px; padding: 0 6px; }
.soonrow span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line2); color: var(--faint); font-size: 0.8667rem; cursor: default; }
.soonrow svg { width: 15px; height: 15px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-foot a { flex: 1; }
.iconbtn { flex: none; position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.iconbtn:disabled { opacity: 0.5; cursor: progress; }
.nav a .badge { flex: none; font-style: normal; font-size: 0.7333rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dot-red { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

@media (max-width: 899px) {
  .shell { display: block; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 4px; height: 56px; padding: 0 8px; background: var(--glass); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .topbar .brand { padding: 0 4px; }
  .topbar .brand svg { width: 28px; height: 28px; }
  .side { position: fixed; z-index: 46; left: 0; top: 0; bottom: 0; width: 272px; max-width: 86vw; height: 100%; transform: translateX(-105%); visibility: hidden; transition: transform 0.2s ease, visibility 0s 0.2s; }
  .side.open { transform: none; visibility: visible; transition: transform 0.2s ease; box-shadow: 24px 0 60px var(--shadow); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: var(--scrim); }
  .main { padding: 20px 16px 64px; }
  .wrap { gap: 22px; }
  h1 { font-size: 1.5333rem; }
}
@media (prefers-reduced-motion: reduce) { .side, .side.open { transition: none; } }

/* ---------- 手机（2026-10-19）：底部栏目、每栏顶上的子页面、刘海和底部横条的安全区、输入框不放大、按钮点得准 ---------- */
.tabbar, .subtabs { display: none; }
.pagekey { display: contents; }
@media (max-width: 899px) {
  .topbar { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); }
  .side { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .main { padding: 16px max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .tabbar { display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.7333rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar button svg { width: 22px; height: 22px; }
  .tabbar button.on { color: var(--gold); }
  .tabbar em { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-size: 0.6667rem; font-weight: 700; line-height: 18px; text-align: center; }
  .tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .subtabs { display: flex; gap: 8px; overflow-x: auto; margin: -4px -16px 0; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--text2); text-decoration: none; font-size: 0.9333rem; font-weight: 600; white-space: nowrap; }
  .subtabs a.on { background: var(--gold-bg); color: var(--gold); }
  .subtabs em { font-style: normal; font-size: 0.7333rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
  /* 小肥：手机上从底部栏打开，铺满屏幕 */
  .xf-bubble { display: none; }
  .xf-panel.sheet { border-radius: 0; border: 0; box-shadow: none; z-index: 60; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .xf-close { min-width: 44px; min-height: 40px; }
  .xf-chat, .xf-news { overscroll-behavior: contain; }
  /* 苹果手机：输入框的字小于 16px 时，一点输入框整页就会放大 */
  input, select, textarea { font-size: max(16px, 1rem) !important; }
  .iconbtn { width: 42px; height: 42px; }
  /* 提示条、按钮大小、首页列表这些要盖过后面的通用样式，写在文件最后的“手机微调” */
}

/* ---------- 页头 ---------- */
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.kicker { font-size: 0.8333rem; font-weight: 600; color: var(--faint); letter-spacing: 0.04em; }
.phead .sub { color: var(--muted); font-size: 0.9333rem; line-height: 1.6; }
.phead-act { gap: 8px; }
.foot-note { font-size: 0.8333rem; color: var(--faint); text-align: center; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- 通用组件 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .grow { flex: 999 1 560px; min-width: 0; }
.split > .aside { flex: 1 1 330px; min-width: 0; }
@media (min-width: 1100px) { .split > .aside.sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line3); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; font-size: 0.9333rem; }
.btn:hover:not(:disabled) { background: var(--btn-hover); color: var(--text); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--on-gold); font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: var(--gold-fill-hi); color: var(--on-gold); }
.btn.danger { color: var(--orange); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 0.8667rem; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 1.0667rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* 正在做的步骤：按钮换成“正在制作中…”，看得清楚，不能再点 */
.btn.working, .btn.working:disabled { opacity: 1; cursor: progress; color: var(--gold); border-color: var(--gold); background: var(--gold-bg); font-weight: 600; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { opacity: 0.5; cursor: progress; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--chip); color: var(--text2); white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.gold { background: var(--gold-bg); color: var(--gold); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.plain { font-weight: 500; }
.chip.tiny { height: 20px; padding: 0 7px; font-size: 0.7333rem; }
.chip .spin { width: 10px; height: 10px; }

/* 分段按钮（几个选项选一个） */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; flex: none; max-width: 100%; overflow-x: auto; }
.seg button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 0.9333rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--seg-on); box-shadow: var(--seg-shadow); color: var(--text); }
.seg.look button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.seg.look svg { width: 15px; height: 15px; }
.seg.sm button { min-height: 26px; padding: 0 10px; font-size: 0.8333rem; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8667rem; color: var(--text2); min-width: 0; }
label.field > span.lab { display: flex; justify-content: space-between; gap: 10px; }
input[type="text"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="month"], input[type="number"], select, textarea {
  min-height: 44px; background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 0 12px; font-size: 1rem; width: 100%;
}
textarea { padding: 10px 12px; line-height: 1.7; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
select.pill { width: auto; min-height: 36px; border-radius: 999px; padding: 0 12px 0 14px; font-size: 0.9333rem; }
select.pill.sm { min-height: 28px; padding: 0 8px 0 10px; font-size: 0.8333rem; }

.empty { border: 1px dashed var(--line3); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 0.9333rem; line-height: 1.7; }
.note { padding: 10px 12px; border-radius: 8px; font-size: 0.8667rem; line-height: 1.6; }
.note.warn { background: var(--orange-bg); color: var(--orange); }
.note.info { background: var(--blue-bg); color: var(--blue); }
.note.ok { background: var(--green-bg); color: var(--green); }
.err { color: var(--red); font-size: 0.9333rem; }
.gold-t { color: var(--gold); }
.up { color: var(--red); }
.down { color: var(--green); }
.cheap { color: var(--gold); font-weight: 700; }
.rich { color: var(--orange); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; font: 700 0.8rem var(--mono); background: var(--red); color: #fff; vertical-align: 2px; }
.count.plain { background: var(--card2); color: var(--muted); }
.kv { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); }
.kv b { color: var(--text); }

/* 收起来的说明（“怎么看 / 怎么运作”） */
.helpbox { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9333rem; line-height: 1.75; color: var(--text2); }
.helpbox b { color: var(--text); margin-right: 10px; }
details.fold { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
details.fold > summary { cursor: pointer; color: var(--text2); font-size: 0.9333rem; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--faint); transition: transform 0.15s; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold[open] > summary { margin-bottom: 4px; }
details summary { cursor: pointer; color: var(--muted); }
/* 能折起来的大卡片：小三角和标题在同一行（以前标题是块元素时，三角会单独占一行） */
details.panel > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; color: var(--text); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "▸"; color: var(--faint); transition: transform 0.15s; flex: none; }
details.panel[open] > summary::before { transform: rotate(90deg); }

/* ---------- 首页 ---------- */
.hello h1 { font-size: 2rem; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.card-head h2 { font-size: 1.0667rem; display: flex; align-items: center; gap: 10px; }
.card-head > a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8667rem; color: var(--muted); text-decoration: none; }
.card-head > a svg { width: 14px; height: 14px; }
.card-head > a:hover { color: var(--gold); }
.ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--card2); color: var(--muted); }
.ic svg { width: 16px; height: 16px; }
.ic.gold { background: var(--gold-bg); color: var(--gold); }
.ic.blue { background: var(--blue-bg); color: var(--blue); }
.ic.red { background: var(--red-bg); color: var(--red); }
.ic.orange { background: var(--orange-bg); color: var(--orange); }
.ic.green { background: var(--green-bg); color: var(--green); }
.lrows { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: var(--text); min-width: 0; }
.lrow:hover { background: var(--hover); color: var(--text); }
.lrow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9667rem; }
.lrow .go { flex: none; font-size: 0.8667rem; color: var(--gold); }
.lrow .when { flex: none; width: 62px; font-size: 0.8667rem; color: var(--green); font-weight: 700; }
.lrow .chip { flex: none; }
.lrow .cat { width: 74px; }
.stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8667rem; color: var(--muted); }
.stats b { font: 700 1.1333rem var(--mono); color: var(--text); margin-right: 5px; }
/* 要闻分类：小圆点 + 名字 */
.cat { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 0.8333rem; color: var(--muted); white-space: nowrap; }
.cat::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.cat.gold::before { background: var(--gold); }
.cat.blue::before { background: var(--blue); }
.cat.orange::before { background: var(--orange); }
.cat.green::before { background: var(--green); }
.cat.red::before { background: var(--red); }

/* ---------- 老冉讲钱看板 ---------- */
.todo { flex: 1 1 300px; max-width: 520px; }
.board { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.lane { flex: 1 1 210px; min-width: 0; background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lane h3 { display: flex; justify-content: space-between; padding: 2px 4px; font-size: 0.9333rem; }
.ecard { background: var(--card); border: 1px solid var(--line2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
a.ecard:hover { border-color: var(--line3); color: var(--text); }
.ecard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.ecard b { font-size: 0.9333rem; line-height: 1.5; }

/* ---------- 一期 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-bottom-color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid transparent; }
.step.stale { border-color: rgba(240, 149, 74, 0.5); }
.dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 600 0.8667rem var(--mono); }
.dot.done { background: var(--green); color: var(--bg); }
.dot.todo { border: 2px solid var(--line3); color: var(--muted); }
.dot.stale { border: 2px solid var(--orange); color: var(--orange); }
.log { background: var(--log-bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 0.8333rem/1.6 var(--mono); color: var(--log-text); white-space: pre-wrap; word-break: break-all; max-height: 360px; overflow-y: auto; margin: 0; }
video { width: 100%; border-radius: 10px; background: #000; display: block; max-height: 70vh; }
.comment { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--card); font-size: 0.9333rem; line-height: 1.6; }
.comment.done { opacity: 0.6; }
/* 结构导演：这一期怎么讲 */
.plan { display: flex; flex-direction: column; gap: 6px; font-size: 0.9333rem; line-height: 1.6; }
.plan-row { display: flex; gap: 12px; }
.plan-k { flex: none; width: 3em; color: var(--muted); font-size: 0.8667rem; padding-top: 1px; }
.plan-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.plan-parts li { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--card); line-height: 1.55; }
.plan-i { flex: none; color: var(--gold); font-weight: 700; padding-top: 1px; }
.plan-take { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; }

/* ---------- 文案编辑 ---------- */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--glass); backdrop-filter: blur(6px); padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { .toolbar { top: calc(56px + env(safe-area-inset-top)); } }
.chapter { font-size: 0.9333rem; font-weight: 700; color: var(--gold); padding: 10px 2px 0; }
.beat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.beat.edited { border-color: var(--gold); }
.beat.new { border-color: var(--blue); }
.beat.deleted { opacity: 0.55; border-style: dashed; }
.beat.focus { box-shadow: 0 0 0 1px rgba(226, 179, 76, 0.35); }
.beat .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.beat .id { font: 600 0.9333rem var(--mono); }
.beat textarea { font-size: 1.0667rem; min-height: 64px; }
.beat .tags { font-size: 0.8rem; color: var(--muted); }
.refs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; font-size: 0.8rem; background: var(--green-bg); color: var(--green); border: 0; cursor: pointer; }
.ref .x { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ref .x:hover { background: var(--hover); }
.fact { padding: 12px; border-radius: 10px; background: var(--card); display: flex; flex-direction: column; gap: 6px; font-size: 0.8667rem; line-height: 1.6; }
.fact.hl { outline: 1px solid var(--green); }

/* ---------- 发布 ---------- */
.copybox { position: relative; }
.copybox pre { margin: 0; white-space: pre-wrap; background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 12px; font: 0.9333rem/1.7 var(--sans); max-height: 320px; overflow-y: auto; }
.plat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.plat.on { border-color: var(--green); }
.covers { display: flex; flex-wrap: wrap; gap: 10px; }
.covers { align-items: flex-start; }
.covers img { width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; border: 2px solid transparent; }
.covers img.v { width: auto; height: 124px; aspect-ratio: 9 / 16; }
.covers a.main img { border-color: var(--gold); }
.covers:not(:has(a.main)) a:first-child img { border-color: var(--gold); }

/* ---------- 登录 ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.gate .card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--toast); border: 1px solid var(--line3); border-radius: 10px; padding: 12px 16px; max-width: 420px; font-size: 0.9333rem; box-shadow: 0 10px 30px var(--shadow); }
.toast.bad { border-color: var(--red); }

/* ---------- 小肥 ---------- */
.xf-bubble { position: fixed; z-index: 40; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 8px 24px var(--shadow); }
.xf-bubble:active { cursor: grabbing; }
.xf-bubble svg { display: block; pointer-events: none; }
.xf-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.xf-dot.small { position: static; display: inline-block; width: 8px; height: 8px; border: 0; margin-left: 6px; vertical-align: middle; }
.xf-panel { position: fixed; z-index: 41; background: var(--panel); border: 1px solid var(--line3); border-radius: 16px; box-shadow: 0 20px 60px var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.xf-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 14px; }
.xf-head b { font-size: 1.0667rem; }
.xf-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.xf-tabs button { flex: 1; min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 700; font-size: 0.9333rem; cursor: pointer; }
.xf-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.xf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.xf-chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.xf-brief { background: var(--gold-bg); border: 1px solid rgba(226, 179, 76, 0.35); border-radius: 12px; padding: 12px; font-size: 0.9333rem; line-height: 1.7; }
.xf-brief ul, .xf-msg ul { margin: 6px 0 0; padding-left: 18px; }
.xf-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 0.9333rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.xf-msg p { margin: 0 0 6px; }
.xf-msg p:last-child { margin-bottom: 0; }
.xf-msg.her { background: var(--card); align-self: flex-start; white-space: normal; }
.xf-msg.me { background: var(--me); align-self: flex-end; }
.xf-msg.error { color: var(--orange); }
.xf-learned { margin-top: 6px; font-size: 0.8rem; color: var(--green); }
.xf-src { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.xf-input { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.xf-input textarea { min-height: 52px; font-size: 0.9333rem; }
.xf-news { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.xf-mem { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 10px; background: var(--card); font-size: 0.9333rem; line-height: 1.6; }

/* ---------- 投资 · 行情小方块 ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.tiles.fill { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tile { background: var(--card); border-radius: 10px; padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile .n { font-size: 0.8333rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font: 600 1.1333rem/1.35 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .c { font: 600 0.8667rem var(--mono); color: var(--muted); }
.tile.up .c { color: var(--red); }
.tile.down .c { color: var(--green); }
@media (max-width: 560px) {
  .tiles, .tiles.fill { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 8px 9px; }
  .tile .n { font-size: 0.7667rem; }
  .tile .v { font-size: 0.9333rem; }
  .tile .c { font-size: 0.8rem; }
  .detail .tiles, .tiles.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.wide .tile .v { font-size: 1.0667rem; }
}

/* ---------- 投资 · 要闻（默认只看标题，点开看影响） ---------- */
.nlist { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nitem + .nitem { border-top: 1px solid var(--line); }
.nitem.open { background: var(--hover-soft); }
.nhead { width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr) 22px; column-gap: 14px; row-gap: 2px; align-items: start; text-align: left; padding: 14px 18px; background: none; border: 0; color: var(--text); cursor: pointer; }
.nhead:hover { background: var(--hover-soft); }
.nhead .cat { grid-row: 1 / span 2; padding-top: 3px; }
.ntitle { font-weight: 700; font-size: 1.0333rem; line-height: 1.55; }
.nsum { grid-column: 2; font-size: 0.9333rem; line-height: 1.65; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.nitem.open .nsum { display: block; color: var(--text2); }
.nchev { grid-column: 3; grid-row: 1; display: flex; padding-top: 3px; color: var(--faint); }
.nchev svg { transition: transform 0.15s; }
.nitem.open .nchev svg { transform: rotate(180deg); }
.nbody { padding: 0 18px 16px calc(18px + 84px + 14px); display: flex; flex-direction: column; gap: 8px; font-size: 0.9333rem; line-height: 1.7; }
.impact, .why { padding: 8px 12px; border-radius: 8px; }
.impact { background: var(--blue-bg); color: var(--impact-text); }
.why { background: var(--gold-bg); color: var(--why-text); }
.impact b, .why b { font-size: 0.8333rem; margin-right: 10px; }
.impact b { color: var(--blue); }
.why b { color: var(--gold); }
@media (max-width: 640px) {
  .nhead { grid-template-columns: minmax(0, 1fr) 22px; padding: 12px 14px; }
  .nhead .cat { grid-row: auto; grid-column: 1; padding: 0 0 2px; }
  .ntitle, .nsum { grid-column: 1; }
  .nchev { grid-column: 2; }
  .nbody { padding: 0 14px 14px; }
}

/* ---------- 投资 · 研究报告 ---------- */
.qform { display: flex; flex-direction: column; gap: 10px; }
.qbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; }
.qbar:focus-within { border-color: var(--focus); }
.qbar input { flex: 1 1 240px; width: auto; border: 0; background: transparent; min-height: 40px; font-size: 1.0333rem; }
.qbar input:focus-visible { outline: none; }
.qbar .btn { flex: none; }
.rgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); min-height: 170px; }
.rcard:hover { border-color: var(--line3); background: var(--card-hover); color: var(--text); }
.rcard h3 { font-size: 1.0667rem; line-height: 1.5; }

.rlayout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.rmain { max-width: 780px; }
.rmain h1 { font-size: 1.7333rem; line-height: 1.4; }
.back { align-self: flex-start; text-decoration: none; color: var(--muted); }
.tldr { background: var(--gold-bg); border: 1px solid rgba(226, 179, 76, 0.3); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.tldr .kicker { color: var(--gold); }
.tldr p { font-size: 1.1rem; font-weight: 700; line-height: 1.75; color: var(--text); }
.rsec { scroll-margin-top: 16px; }
.rsec h2 { font-size: 1.2667rem; display: flex; align-items: baseline; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.secno { font: 700 0.8667rem var(--mono); color: var(--gold); }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 48px); overflow-y: auto; padding-top: 38px; }
.toc nav button { text-align: left; background: none; border: 0; border-left: 2px solid var(--line2); padding: 6px 10px; color: var(--muted); font-size: 0.8667rem; line-height: 1.5; cursor: pointer; }
.toc nav button:hover { color: var(--text); }
.toc nav button.on { color: var(--gold); border-left-color: var(--gold); font-weight: 600; }
.toc .btn { justify-content: flex-start; }
@media (max-width: 1199px) {
  .rlayout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rmain { max-width: none; }
  .toc { position: static; order: -1; padding: 0; max-height: none; }
  .toc > .kicker, .toc nav { display: none; }
  .toc > .col { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin-top: 0 !important; }
}
@media (max-width: 899px) { .rsec { scroll-margin-top: calc(72px + env(safe-area-inset-top)); } }

.doc { display: flex; flex-direction: column; gap: 10px; font-size: 1rem; line-height: 1.85; color: var(--text2); }
.doc h3 { color: var(--text); font-size: 1rem; margin-top: 4px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.doc b { color: var(--text); }
.doc blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--gold); background: var(--gold-bg); border-radius: 0 8px 8px 0; }
.doc li > ul, .doc li > ol { margin-top: 4px; }
.doc li > p { margin-top: 2px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.55; }
.doc th, .doc td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: var(--card); color: var(--text); font-weight: 700; white-space: nowrap; }
.doc td { font-variant-numeric: tabular-nums; }
.doc td.nw, .doc th.nw { white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
sup.cite { font-size: 0.7333rem; line-height: 0; margin-left: 1px; }
sup.cite a { text-decoration: none; padding: 0 1px; }
.sources { margin: 8px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8667rem; line-height: 1.6; word-break: break-all; }
.sources li.flash { background: var(--gold-bg); border-radius: 4px; }
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chart figcaption { font-weight: 700; font-size: 0.9333rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--line3); stroke-width: 1; }
/* 图表按实际宽度画，这里的字号就是屏幕上的字号（2026-10-18 调大：坐标轴 13px） */
.chart .axis { fill: var(--muted); font-size: 0.8125rem; font-family: var(--mono); }
.chart .val { fill: var(--text2); font-size: 0.75rem; font-family: var(--mono); }
.chart .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 投资 · 板块扫描 ---------- */
.pbar { display: inline-block; width: 60px; height: 6px; border-radius: 999px; background: var(--line2); overflow: hidden; vertical-align: middle; margin-right: 8px; flex: none; }
.pbar i { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.pbar.cheap i { background: var(--gold-fill); }
.pbar.rich i { background: var(--orange); }
.barcell { display: inline-flex; align-items: center; }
.scards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.scard h3 { font-size: 1.0667rem; flex: 1; min-width: 0; }
.rank { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 700 0.8667rem var(--mono); background: var(--gold-bg); color: var(--gold); }
.bignum { display: flex; flex-direction: column; }
.bignum b { font-size: 1.8667rem; line-height: 1.2; }
.barrow { display: flex; align-items: center; gap: 10px; font-size: 0.8667rem; color: var(--muted); }
.barrow > span:first-child { width: 76px; flex: none; }
.barrow .pbar { flex: 1; width: auto; }
.detail { border-color: rgba(226, 179, 76, 0.45); }
.detail .tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.detail .tile .v { font-size: 1rem; }
table.sectors { border-collapse: collapse; width: 100%; }
table.sectors th, table.sectors td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 0.9rem; }
table.sectors td:nth-child(2), table.sectors th:nth-child(2) { text-align: left; }
table.sectors th { background: var(--card); font-weight: 700; color: var(--text2); cursor: pointer; user-select: none; }
table.sectors th.on { color: var(--gold); }
table.sectors tbody tr { cursor: pointer; }
table.sectors tbody tr:hover td { background: var(--card); }
table.sectors tbody tr.sel td { background: var(--gold-bg); }
table.sectors tbody tr:last-child td { border-bottom: 0; }

/* ---------- 投资 · 关注清单 ---------- */
.alist { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.arow { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.arow + .arow { border-top: 1px solid var(--line); }
.arow.read { opacity: 0.6; }
.arow > .chip { flex: none; margin-top: 1px; }
.amain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 0.9667rem; line-height: 1.6; }
.atitle { margin-left: 10px; color: var(--text2); }
.aact { flex: none; display: flex; align-items: center; gap: 6px; }
.summary { background: var(--card); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
@media (max-width: 640px) { .arow { flex-wrap: wrap; } .aact { width: 100%; justify-content: flex-end; } }
.watch-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wcard h3 { font-size: 1.1333rem; }
.wstat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 0.8667rem; color: var(--muted); background: var(--card); border-radius: 10px; padding: 9px 12px; }
.wstat b { color: var(--text); font-size: 1.0667rem; }
.wstat b small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.wstat em { font-style: normal; font-family: var(--mono); font-weight: 600; color: var(--text2); }
.wstat em.up { color: var(--red); }
.wstat em.down { color: var(--green); }
.wstat em.cheap { color: var(--gold); }
.wstat em.rich { color: var(--orange); }
.wnext { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--text2); line-height: 1.6; }
.wnext svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--faint); }
.wnext b { margin-right: 6px; color: var(--text); }
.wmore { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wcard .more { align-self: flex-start; color: var(--muted); text-decoration: none; font-size: 0.8667rem; padding: 2px 0; }
.wcard .more:hover { color: var(--gold); }
.note-q { color: var(--text2); border-left: 3px solid var(--gold); padding-left: 10px; line-height: 1.7; }
/* 自选解读 */
.igrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.icard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.icard h3 { font-size: 1.1333rem; }
.icard h3 a { color: var(--text); text-decoration: none; }
.icard h3 a:hover { color: var(--gold); }
.icard em, .tile em { font-style: normal; font-family: var(--mono); font-weight: 600; color: var(--text2); }
.icard em.up, .tile em.up { color: var(--red); }
.icard em.down, .tile em.down { color: var(--green); }
.ione { font-size: 0.9667rem; line-height: 1.7; color: var(--text); border-left: 3px solid var(--gold); padding-left: 10px; }
.iask { background: var(--gold-bg); border-radius: 14px; padding: 0 18px 16px; }
.iask h2 { border-top: none; }
ul.plain { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; line-height: 1.6; }

/* ---------- 投资 · 市场温度 ---------- */
.temps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.temp { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.temp > b { font-size: 1.4667rem; line-height: 1.25; }
.temp > b small { font-size: 0.8667rem; color: var(--muted); font-weight: 400; }
.temp .barrow > span:first-child { width: 80px; }
@media (max-width: 560px) {
  .temps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .temp { padding: 10px 12px; gap: 4px; }
  .temp > b { font-size: 1.2rem; }
  .temp .barrow > span:first-child, .temp > p { display: none; }
}
.hometemp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.hometemp .barrow { text-decoration: none; color: var(--text2); min-width: 210px; flex: 0 1 260px; }
.hometemp .barrow > span:first-child { width: 72px; }
.lrow .when.late { color: var(--orange); }

/* ---------- 投资 · 基金体检 ---------- */
.suggest { position: absolute; z-index: 20; top: 64px; left: 0; right: 0; background: var(--pop); border: 1px solid var(--line3); border-radius: 12px; box-shadow: 0 16px 40px var(--shadow); overflow: hidden; max-height: 420px; overflow-y: auto; }
.suggest button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; text-align: left; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.suggest button:hover { background: var(--hover); }
.suggest button .tiny { grid-column: 1 / -1; }
.fgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.fcard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.fcard > a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.fcard > a:hover { color: var(--text); background: var(--card-hover); border-radius: 14px; }
.fcard h3 { font-size: 1rem; line-height: 1.5; padding-right: 22px; }
.fcard .iconbtn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; font-size: 1.2rem; }
.tile .s { font-size: 0.7667rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fgrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.fbox { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fbox h3 { font-size: 0.9333rem; }
.fbox .barrow > span:first-child { width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbox .barrow .mono { width: 52px; text-align: right; flex: none; }

/* ---------- 老冉讲钱 · 热点雷达 ---------- */
.hgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hcard.weak { border-style: dashed; }
.hcard h3 { font-size: 1.1rem; line-height: 1.5; }
.hcard .more { color: var(--muted); text-decoration: none; }
.hcard .more:hover { color: var(--gold); }
.hcard .btn svg { width: 14px; height: 14px; }
.learn { font-size: 0.9333rem; line-height: 1.7; padding: 8px 12px; border-radius: 8px; background: var(--gold-bg); color: var(--why-text); }
.learn b { color: var(--gold); font-size: 0.8333rem; margin-right: 10px; }
.dots { display: inline-flex; align-items: center; gap: 3px; }
.dots .tiny { margin-right: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.dots i.on { background: var(--gold-fill); }
ol.plain { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.65; }

/* ---------- 投资 · 决策日记 ---------- */
.jcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jcard.due { border-color: rgba(226, 179, 76, 0.5); }
.jcard.closed { opacity: 0.7; }
.jcard h3 { font-size: 1.0667rem; }
.jcard .more { align-self: flex-start; color: var(--muted); text-decoration: none; font-size: 0.8667rem; padding: 2px 0; }
.jcard .more:hover { color: var(--gold); }
.lab { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--faint); margin-right: 10px; }
.review { background: var(--card); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
fieldset.checks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.checks legend { padding: 0 6px; color: var(--text2); }
fieldset.checks label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9333rem; line-height: 1.5; cursor: pointer; }
fieldset.checks input { margin-top: 2px; flex: none; }

/* ---------- 思考 ---------- */
.tcap textarea { font-size: 1.0333rem; min-height: 96px; }
.tprompt { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9333rem; line-height: 1.6; color: var(--text2); text-decoration: none; }
.tprompt svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold); }
a.tprompt:hover { color: var(--gold); }
.recbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); }
.recbar.done { background: var(--card); }
.recbar audio { height: 36px; max-width: 100%; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: 0.25; } }
.upbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.upbar > span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upbar .track { flex: 1; min-width: 60px; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.upbar .track i { display: block; height: 100%; background: var(--gold-fill); transition: width 0.2s; }
.tchip { border: 0; cursor: pointer; }
.tday { font-size: 0.9333rem; color: var(--muted); font-weight: 700; }
.tlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; text-decoration: none; color: var(--text); }
.tcard:hover { border-color: var(--line3); color: var(--text); }
.tcard h3 { font-size: 1.0667rem; line-height: 1.5; }
.tkind { display: inline-flex; align-items: center; gap: 3px; }
.tkind svg { width: 13px; height: 13px; }
.ttext { font-size: 0.9333rem; line-height: 1.7; color: var(--text2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tai { font-size: 0.8667rem; line-height: 1.6; color: var(--text2); background: var(--card); border-radius: 8px; padding: 6px 10px; }
.tai b { color: var(--gold); font-size: 0.7667rem; margin-right: 8px; }
.tmine { white-space: pre-wrap; line-height: 1.85; font-size: 1.0333rem; color: var(--text); background: var(--card); border-radius: 12px; padding: 12px 16px; }
.taudio { width: 100%; }
.tscript { display: flex; flex-direction: column; gap: 8px; line-height: 1.8; color: var(--text2); padding-top: 6px; }
.tscript .ts { border: 0; background: var(--card2); color: var(--gold); border-radius: 6px; padding: 0 6px; margin-right: 8px; font-size: 0.8rem; cursor: pointer; }
.tscript .ts:hover { background: var(--gold-bg); }
.tsec { display: flex; flex-direction: column; gap: 6px; }
.tsec > h3 { font-size: 1.0333rem; color: var(--text); padding-top: 10px; border-top: 1px solid var(--line); }
.tsec.iask > h3 { border-top: 0; padding-top: 14px; }
.tsec.iask ol { margin: 0; padding-left: 22px; line-height: 1.8; }
.tsub { font-size: 1.1333rem; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 14px; line-height: 1.75; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--gold-bg); color: var(--text); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; white-space: normal; }
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.pcard { gap: 10px; }
.pcard h2 { font-size: 1.0667rem; }
.pitems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pitems > li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pitems > li:last-child { border-bottom: 0; padding-bottom: 0; }
.pitems p { line-height: 1.7; }
.pmeta { gap: 8px; }
.pmeta .linkbtn { color: var(--muted); text-decoration: none; }
.pmeta .linkbtn:hover { color: var(--gold); }
.pev summary { color: var(--muted); }
.pev[open] { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; }
.pev a { color: var(--text2); text-decoration: none; }
.pev a:hover { color: var(--gold); }

/* ---------- 首页列表的小样式 ---------- */
.lrow .go.done { color: var(--muted); }
.who-m { display: none; }
.more-link { align-self: flex-start; font-size: 0.8667rem; color: var(--gold); text-decoration: none; padding: 4px 0; }
.more-link:hover { color: var(--gold); text-decoration: underline; }

/* ---------- 手机微调（2026-10-19）：要盖过上面的通用样式，所以放在文件最后 ---------- */
@media (max-width: 899px) {
  .toast { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; }
  .btn.sm { min-height: 38px; }
  .seg.sm button { min-height: 34px; }

  /* 首页：问候小一点，卡片紧凑一点，卡片底部的提示句不显示 */
  .hello h1 { font-size: 1.6rem; }
  .home-grid { gap: 12px; }
  .card { padding: 14px 16px; gap: 6px; border-radius: 16px; }
  .card-head h2 { font-size: 1.0333rem; gap: 9px; }
  .ic { width: 28px; height: 28px; }
  .cardnote { display: none; }

  /* 列表每一行：标题占一整行，状态放在下面一行小字，右边是要做的事（老冉 10-19 截图：挤成一行时标题被挤成“EP04…”，看着乱） */
  .lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 3px; min-height: 0; margin: 0; padding: 11px 0; border-radius: 0; }
  .lrow:hover { background: none; }
  .lrows > .lrow + .lrow { border-top: 1px solid var(--line); }
  .lrow .t { grid-column: 1; grid-row: 1; font-size: 0.9667rem; line-height: 1.5; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lrow .chip, .lrow .cat, .lrow .when { grid-column: 1; grid-row: 2; justify-self: start; width: auto; }
  .lrow .chip { height: auto; padding: 0; background: none; font-size: 0.8rem; font-weight: 600; }
  .lrow .cat, .lrow .when { font-size: 0.8rem; }
  /* 右边只留一个“›”（整行都能点；要做什么看下面那行状态就知道），标题能占满一行 */
  .lrow .go { grid-column: 2; grid-row: 1 / span 2; font-size: 0; color: var(--faint); }
  .lrow .go:not(.done)::after { content: "›"; font-size: 1.5rem; line-height: 1; }
  .lrow .go.done { grid-row: 2; font-size: 0.8rem; color: var(--muted); }
  /* 日程：从哪来（比如“AI × 电力”）挪到日期那一行 */
  .who-d { display: none; }
  .who-m { display: inline; color: var(--muted); font-weight: 400; }

  /* 卡片底部的数字：几项平均分开，数字在上、说明在下，不再折成两行 */
  .stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-top: 6px; padding-top: 12px; text-align: center; }
  .stats > span, .stats > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 0.7667rem; line-height: 1.4; }
  .stats b { margin: 0; font-size: 1.1333rem; }
  .stats > a { color: var(--gold); text-decoration: none; }
}

/* ---------- 分享研究报告（2026-10-19）：报告页上的分享框 + 朋友打开的分享页 ---------- */
.sharebox { border-color: rgba(226, 179, 76, 0.45); gap: 12px; }
.sharebox h2 { font-size: 1.1333rem; }
.sharelink { width: 100%; font-size: 0.9rem; color: var(--text); }
.sharenotes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; line-height: 1.6; }
.danger-t { color: var(--orange); }
.sharepage { min-height: 100vh; }
.sharebar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sharebar .brand { padding: 0; }
.sharemain { max-width: 1200px; margin: 0 auto; padding: 28px 40px 80px; }
.sharefoot { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8667rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 899px) {
  .sharebar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .sharemain { padding: 18px max(16px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
}
