/* Yanflows 手机前端。颜色跟 logo（暖米白底 + 橙色强调 + 圆角卡片），字体 / 圆角来自已确认的设计稿。 */
:root {
  /* 2026-11-30 配色跟 Yanflows logo（火焰：深红 → 橙 → 金）：暖米白底、深暖棕字、橙色做强调；
     涨跌照旧「赚绿亏红」，不跟品牌色走（不然「亏损」和「品牌色」分不清）。变量名沿用原来的（mint / teal = 品牌浅底 / 品牌色）。 */
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --ink: #2B1A12;
  --muted: #7A6253;
  --line: #EEE2D6;
  --soft: #F6EDE4;
  --mint: #FFE8D4;
  --mint-ink: #9A3412;
  --teal: #C2410C;
  --teal-2: #7C4A2D;
  --up-bg: #DDF4E4; --up-ink: #166534; --up: #15803D;
  --dn-bg: #FDE4E2; --dn-ink: #9F1D1D; --dn: #D92D20;
  --nu-bg: #F6EDE4; --nu-ink: #7A6253;
  --nav: #2B1A12; --nav-on: #FFB547; --nav-off: #C9B3A5;
  --amber-bg: #FFF1D6; --amber-ink: #7A4F00;
  --violet-bg: #EEE7FF; --violet-ink: #4C3BA8;
  --sky-bg: #E3EEF9; --sky-ink: #1E4E7A;
  --shadow: 0 1px 2px rgba(43,26,18,.04), 0 6px 18px rgba(43,26,18,.06);
  --sans: 'Noto Sans SC', 'Outfit', system-ui, -apple-system, 'PingFang SC', sans-serif;
  --display: 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --overlay: rgba(43,26,18,.38);
  --shadow-lg: 0 10px 30px rgba(43,26,18,.18);
  --shadow-md: 0 8px 24px rgba(43,26,18,.16);
  --skel-1: #F3EBE3; --skel-2: #FAF5F0;
  --fresh-1: #FFE3A3; --fresh-2: #FFF3D2; --fresh-line: #F5A83D; --flash: #C26A00;
  --on-ink: #FFFFFF;
  --brand-1: #D7261E; --brand-2: #F26A1B; --brand-3: #FFB547;   /* logo 的三段颜色：按钮、大图渐变用 */
  --btn-bg: linear-gradient(135deg, #E2530F, #B8320A); --btn-ink: #FFFFFF;   /* 主按钮（白字够对比） */
  color-scheme: light;
}
/* 暗色（「我的 → 外观」选深色，或跟随系统时系统是深色）：深炭棕底、浅暖字，橙 / 绿 / 红提亮一档保证对比度 */
:root[data-theme="dark"] {
  --bg: #15100D;
  --card: #201813;
  --ink: #F3E9E1;
  --muted: #B39D8F;
  --line: #3A2C24;
  --soft: #2A201A;
  --mint: #45220F;
  --mint-ink: #FFB98A;
  --teal: #FF8A3D;
  --teal-2: #E2B89C;
  --up-bg: #12341F; --up-ink: #8FE3AE; --up: #3DD68C;
  --dn-bg: #43191A; --dn-ink: #FFAFA8; --dn: #FF6B5E;
  --nu-bg: #2A201A; --nu-ink: #B39D8F;
  --nav: #231A15; --nav-on: #FFB547; --nav-off: #9C8576;
  --amber-bg: #3A2F15; --amber-ink: #F3C870;
  --violet-bg: #2A2548; --violet-ink: #C0B6FF;
  --sky-bg: #172C41; --sky-ink: #9FCAF2;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.25);
  --overlay: rgba(0,0,0,.6);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.55), inset 0 0 0 1px #3A2C24;
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --skel-1: #221A15; --skel-2: #2D231D;
  --fresh-1: #4A3A10; --fresh-2: #2C2416; --fresh-line: #C9932A; --flash: #F3C870;
  --on-ink: #15100D;
  --brand-1: #FF5A4E; --brand-2: #FF8A3D; --brand-3: #FFC266;
  --btn-bg: linear-gradient(135deg, #FFA04D, #FF6A3D); --btn-ink: #1A0E08;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
#view { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); outline: none; }

/* ---------- top bar ---------- */
.top { padding: calc(18px + env(safe-area-inset-top)) 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .kicker { font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.top h1 { margin: 2px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.top .acts { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.icon-btn svg, .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- chips ---------- */
.chips { padding: 0 20px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.chip.on { background: var(--teal); color: var(--on-ink); border-color: var(--teal); }
.chip.mono { font-family: var(--display); }

/* ---------- cards / lists ---------- */
.section-h { padding: 6px 20px 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-h b { font-size: 15px; }
.section-h span, .section-h a { font-size: 12px; color: var(--muted); text-decoration: none; }
.section-h a { color: var(--teal); font-size: 13px; }
.list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.pad { padding: 14px 16px; }
.box { margin: 0 20px 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.disp { font-family: var(--display); }
.up { color: var(--up); } .dn { color: var(--dn); }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }

.sig { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tile { width: 42px; height: 42px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; }
.sig .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sig .l1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
.sig .l1 .coin { flex: none; }
.sig .coin { font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig .l2 { display: flex; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.sig .alias { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.sig .right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.sig .amt { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.b-up { background: var(--up-bg); color: var(--up-ink); }
.b-dn { background: var(--dn-bg); color: var(--dn-ink); }
.b-nu { background: var(--nu-bg); color: var(--nu-ink); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-featured { background: var(--mint); color: var(--mint-ink); }
.p-scalp { background: var(--amber-bg); color: var(--amber-ink); }
.p-hf { background: var(--sky-bg); color: var(--sky-ink); }
.p-martin { background: var(--dn-bg); color: var(--dn-ink); }
.p-other { background: var(--soft); color: var(--muted); }
.tag-late { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--muted); }

/* hero (共识最强) */
.hero { margin: 0 20px 14px; padding: 16px; border-radius: 22px; background: var(--mint); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.hero.dn { background: var(--dn-bg); }
.hero .h1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 8px; }
.hero.dn .dot { background: var(--dn); }
.hero .lbl { font-size: 13px; font-weight: 500; color: var(--mint-ink); }
.hero.dn .lbl { color: var(--dn-ink); }
.hero .h2 { display: flex; align-items: baseline; gap: 10px; }
.hero .big { font-family: var(--display); font-size: 30px; font-weight: 700; }
.hero .dir { font-size: 15px; font-weight: 700; color: var(--teal); }
.hero.dn .dir { color: var(--dn); }
.hero .px { margin-left: auto; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.hero .h3 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hero .al { padding: 4px 9px; border-radius: 8px; background: var(--card); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.hero .sum { margin-left: auto; font-size: 12px; color: var(--teal-2); }

/* bars */
.bar { flex: 1; height: 10px; border-radius: 5px; background: var(--dn-bg); overflow: hidden; }
.bar > i { display: block; height: 10px; background: var(--teal); border-radius: 5px; }
.bar.thin { height: 6px; background: var(--soft); } .bar.thin > i { height: 6px; }
.cons-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; text-decoration: none; color: var(--ink); }
.cons-row + .cons-row { border-top: 1px solid var(--soft); }
.cons-row .c { font-family: var(--display); font-weight: 700; width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cons-row .t { font-family: var(--mono); font-size: 12px; font-weight: 600; width: 64px; text-align: right; }

/* discover tiles */
.tiles { padding: 0 20px 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles a { text-decoration: none; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.tiles a b { font-size: 15px; } .tiles a span { font-size: 12px; opacity: .85; }
.t-mint { background: var(--mint); color: var(--mint-ink); }
.t-amber { background: var(--amber-bg); color: var(--amber-ink); }
.t-violet { background: var(--violet-bg); color: var(--violet-ink); }
.t-sky { background: var(--sky-bg); color: var(--sky-ink); }
.search { margin: 0 20px 14px; height: 48px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: var(--ink); min-width: 0; }

/* rows: rank / wallets */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.row .rk { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--nav-off); width: 22px; text-align: center; flex: none; }
.row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .mid .a { font-family: var(--mono); font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .mid .s { font-size: 12px; color: var(--muted); }
.row .v { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; flex: none; }
.row .v small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

/* wallet detail */
.wd-head { padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.wd-head .t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wd-head .alias { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.curve { margin: 0 20px; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.curve .h { display: flex; justify-content: space-between; align-items: center; }
.seg { display: flex; gap: 4px; }
.seg button { height: 28px; padding: 0 10px; border-radius: 8px; border: none; background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--teal); color: var(--on-ink); }
.curve .total { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.curve svg { width: 100%; height: 110px; display: block; }
.stats { margin: 14px 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats > div { background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-family: var(--display); font-size: 21px; font-weight: 700; }
.pos { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pos .c { font-family: var(--display); font-weight: 700; width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos .p { font-family: var(--mono); font-size: 13px; font-weight: 600; width: 64px; text-align: right; }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: 15px; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--teal); }
.btn { height: 48px; border-radius: 14px; border: none; background: var(--btn-bg); color: var(--btn-ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; text-decoration: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { height: 36px; border-radius: 12px; font-size: 13px; padding: 0 12px; }
.btn.danger { background: var(--dn-bg); color: var(--dn-ink); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 4px; }
.seg-tabs button { height: 40px; border: none; border-radius: 11px; background: transparent; font-size: 14px; color: var(--muted); }
.seg-tabs button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.seg-tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.err { color: var(--dn-ink); font-size: 13px; min-height: 18px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--soft); }
.quota { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.quota > i { display: block; height: 8px; background: var(--teal); }
.code { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: .08em; }
.note { margin: 0 20px 14px; padding: 14px 16px; border-radius: 18px; background: var(--soft); font-size: 13px; color: var(--muted); line-height: 1.6; }

/* bottom nav (fixed) */
#tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(452px, calc(100% - 28px)); height: 64px; border-radius: 22px; background: var(--nav); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 10; box-shadow: var(--shadow-lg); }
#tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--nav-off); text-decoration: none; font-size: 11px; height: 100%; justify-content: center; }
#tabs a.on { color: var(--nav-on); }
#tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* toast + sheet */
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; max-width: calc(100% - 40px); }
#toast.show { opacity: 1; }
#sheet { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
#sheet[hidden] { display: none; }
#sheet .panel { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
#sheet .panel h2 { margin: 0; font-size: 18px; }

.loader { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.skel { height: 70px; border-radius: 18px; background: linear-gradient(90deg, var(--skel-1) 0%, var(--skel-2) 50%, var(--skel-1) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } #toast { transition: none; } }

/* 评价星级 */
.stars { display: flex; gap: 4px; }
.star { border: none; background: none; font-size: 26px; line-height: 1; color: var(--line); padding: 0 2px; cursor: pointer; }
.star.on { color: #E0A100; }
.ad { border: 1px dashed var(--line); }
/* 实时行情：价格变动闪一下 */
@keyframes tick-up { from { background: var(--up-bg); } to { background: transparent; } }
@keyframes tick-dn { from { background: var(--dn-bg); } to { background: transparent; } }
.tick-up { animation: tick-up .8s ease-out; border-radius: 4px; }
.tick-dn { animation: tick-dn .8s ease-out; border-radius: 4px; }

/* 信号列表：共振提醒混排、新信号闪一下、往下翻时的「N 条新信号」提示 */
.sig.res { box-shadow: inset 4px 0 0 var(--teal), var(--shadow); background: linear-gradient(90deg, var(--mint) 0, var(--card) 55%); }
.sig.res.dn { box-shadow: inset 4px 0 0 var(--dn), var(--shadow); background: linear-gradient(90deg, var(--dn-bg) 0, var(--card) 55%); }
.res-badge { background: var(--ink); color: var(--on-ink); }
.sig.fresh { animation: sig-in .38s cubic-bezier(.2,.9,.3,1.2), sig-fresh 3.5s ease-out; }
@keyframes sig-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sig-fresh { 0% { background-color: var(--fresh-1); } 60% { background-color: var(--fresh-2); } 100% { background-color: var(--card); } }
.sig.res.fresh { animation: none; outline: 2px solid var(--fresh-line); outline-offset: -2px; }
.new-pill { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40; border: 0; border-radius: 999px; padding: 8px 16px;
  background: var(--ink); color: var(--on-ink); font: 600 13px var(--sans); box-shadow: var(--shadow-md); cursor: pointer; }
.new-pill[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sig.fresh { animation: none; outline: 2px solid var(--fresh-line); outline-offset: -2px; } }

/* 按品种筛选：大类 + 按持仓人数排的品种 */
.coin-picks { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.coin-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.coin-pick.on { border-color: var(--teal); background: var(--mint); }
.coin-pick .nm { font-family: var(--display); font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-pick .hd { font-size: 12px; color: var(--muted); white-space: nowrap; }
.coin-pick.idle .nm, .coin-pick.idle .tile { opacity: .55; }
.coin-pick .n { font-family: var(--mono); font-size: 13px; min-width: 44px; text-align: right; }
#cgrp { grid-template-columns: repeat(4, 1fr); }
#cgrp button { font-size: 13px; padding: 0 2px; }
.pager-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 20px; }
.det .pager-row { margin: 8px 0 0; }

/* 品种最佳 → 一个钱包：买卖点 K 线 + 成绩（2026-11-11） */
.chip.on-soft { background: var(--soft); border-color: transparent; font-weight: 600; }
.chip.on-soft .ico { width: 16px; height: 16px; }
.chip-sep { flex: 0 0 1px; height: 20px; background: var(--line); align-self: center; margin: 0 2px; }
.tbox, .kvs, .trips, .trades { margin: 0 20px 12px; }
.tbox { padding: 10px 6px 12px; }
.tchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.tchart .g { stroke: var(--line); stroke-width: 1; }
.tchart .ax { font-size: 9.5px; fill: var(--muted); font-family: var(--mono); }
.tchart .cu { stroke: var(--up); } .tchart .cd { stroke: var(--dn); }
.tchart .bu { fill: var(--up-bg); stroke: var(--up); } .tchart .bd { fill: var(--dn-bg); stroke: var(--dn); }
.tchart .mk { stroke-width: 1.4; fill: var(--card); cursor: pointer; }
.tchart .mb { stroke: var(--up); } .tchart .ms { stroke: var(--dn); }
.tchart .mb.mo { fill: var(--up); } .tchart .ms.mo { fill: var(--dn); }
.tchart .msel { stroke: var(--ink); stroke-width: 2; }
.tleg { padding: 6px 6px 0; }
#tsel { padding: 6px 6px 0; min-height: 20px; }
.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); overflow: hidden; }
.kvs .kv { background: var(--card); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kvs .kv span { font-size: 12px; color: var(--muted); }
.kvs .kv b { font-size: 15px; font-family: var(--mono); }
.trips { padding: 4px 0; }
.trip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.trip:last-child { border-bottom: none; }
.trip .s { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.trip b { font-family: var(--mono); font-size: 14px; }
.p-up { background: var(--up-bg); color: var(--up-ink); } .p-dn { background: var(--dn-bg); color: var(--dn-ink); }
.trades { padding: 4px 0; display: flex; flex-direction: column; }
.trade { display: grid; grid-template-columns: 52px 1fr 1fr auto; gap: 8px; align-items: center; padding: 10px 14px; border: none; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 13px; color: var(--ink); }
.trade:last-child { border-bottom: none; }
.trade.on { background: var(--soft); }
.trade .muted { font-size: 12px; }
.basis-tabs { margin: 4px 20px 12px; }

/* 实时信号连接状态（2026-11-11） */
.live { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px; background: var(--soft); color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live em { font-style: normal; }
.live.on { background: var(--up-bg); color: var(--up-ink); }
.live.on i { background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: live-ping 1.8s ease-out infinite; }
.live.wait { background: var(--amber-bg); color: var(--amber-ink); }
.live.wait i { background: var(--amber-ink); }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(194,65,12,.5); } 70% { box-shadow: 0 0 0 7px rgba(194,65,12,0); } 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0); } }
@media (prefers-reduced-motion: reduce) { .live.on i { animation: none; } .sig.fresh { animation: none; } }

/* 共振提醒里的 K 线（2026-11-11） */
.akl { margin: 0 -6px 10px; }
.akl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 6px; }
.akl-iv { display: inline-flex; gap: 4px; }
.akl-iv button { height: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-family: var(--mono); color: var(--muted); }
.akl-iv button.on { background: var(--teal); color: var(--on-ink); border-color: var(--teal); }
.akl-pts { display: flex; flex-direction: column; padding: 4px 6px 0; }
.akl-pts button { display: grid; grid-template-columns: 18px 1fr auto auto auto; gap: 8px; align-items: center; padding: 7px 4px; border: none; border-bottom: 1px solid var(--line); background: transparent; font-size: 12px; text-align: left; color: var(--ink); }
.akl-pts button.on { background: var(--soft); }
.akl-pts button:last-child { border-bottom: none; }
.tchart .mkline { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; opacity: .55; }
.tchart .mklab { fill: var(--ink); }

/* 关注：自选品种（2026-11-11） */
.follow-tabs { margin: 0 20px 14px; }
.follow-tabs a { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; color: var(--muted); text-decoration: none; }
.follow-tabs a.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.wrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.wrow .wmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wrow .wmid b { font-size: 16px; }
.wspark { width: 72px; height: 28px; flex: 0 0 72px; }
.wpx { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 92px; }
.wpx b { font-size: 15px; padding: 1px 4px; border-radius: 6px; }
.wpx b.tick-up { animation: tick-up .9s ease-out; } .wpx b.tick-dn { animation: tick-dn .9s ease-out; }
.wchg { font-size: 12px; font-family: var(--mono); font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--soft); }
.wchg.up { background: var(--up-bg); color: var(--up-ink); } .wchg.dn { background: var(--dn-bg); color: var(--dn-ink); }
.wedit { display: flex; gap: 6px; }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.icon-btn.sm.dn { color: var(--dn); }
.icon-btn.sm:disabled { opacity: .35; }
.sheet-links { display: flex; flex-direction: column; gap: 10px; }
.sheet-links .btn { width: 100%; justify-content: center; }

/* 信号合并：一组 = 一行 + 展开的每一笔 */
.sig-g { display: flex; flex-direction: column; gap: 6px; }
.sig .l3 b { font-weight: 600; }
.sig .l3 .up { color: var(--up); } .sig .l3 .dn { color: var(--dn); }
.sg-tog { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; font-size: 12px; padding: 2px 9px; cursor: pointer; font-family: var(--mono); }
.sig-sub { padding: 6px 14px; margin-left: 18px; }
.sig-sub .r { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sig-sub .r:last-child { border-bottom: 0; }
.sig-sub .r .mono:nth-child(3) { color: var(--muted); text-align: right; }

/* 仓位变化：之前 → 之后 */
.sig .l4 { gap: 10px; }
.pchg { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; }
.pchg i { font-style: normal; color: var(--muted); }
.pchg .up { color: var(--up); } .pchg .dn { color: var(--dn); } .pchg .flat { color: var(--muted); }
.pchg b { font-weight: 700; }
.sig-sub .r .pc { grid-column: 1 / -1; margin-top: -2px; }
/* 实时接到已有的一组上：这一行跳一下，金额闪一下，「N 笔」旁边飘 +1 */
.sig.bump { animation: sig-bump .6s cubic-bezier(.2,.9,.3,1.4), sig-fresh 2.5s ease-out; }
@keyframes sig-bump { 0% { transform: scale(1); } 30% { transform: scale(1.025); box-shadow: 0 6px 22px rgba(245,184,61,.35); } 100% { transform: none; } }
.sig.bump .amt { animation: amt-flash 1.2s ease-out; }
@keyframes amt-flash { 0% { color: var(--flash); text-shadow: 0 0 10px rgba(245,184,61,.7); } 100% { color: inherit; text-shadow: none; } }
.sg-tog { position: relative; }
.sg-tog .plus { position: absolute; right: -6px; top: -10px; font-size: 11px; font-weight: 700; color: var(--flash); pointer-events: none;
  animation: plus-up 1.4s ease-out forwards; }
@keyframes plus-up { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .sig.bump, .sig.bump .amt, .sg-tog .plus { animation: none; } }

/* 钱包详情：账户 */
.acc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.acc-t { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-t span { font-size: 12px; color: var(--muted); }
.acc-t b { font-family: var(--mono); font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-t i { font-style: normal; font-size: 12px; color: var(--muted); font-family: var(--mono); line-height: 1.5; }
.acc-mode { font-style: normal; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--up-ink, var(--up)); background: var(--up-bg); border-radius: 999px; padding: 2px 8px; }
/* 当前持仓：浮盈金额 + 百分比 */
.pos .pv { display: flex; flex-direction: column; align-items: flex-end; min-width: 76px; }
.pos .pv b { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.pos .pv .p { width: auto; font-size: 11px; font-weight: 500; }
/* 品种统计 · K线复盘 */
.cst { padding: 0; cursor: pointer; overflow: hidden; }
.cst-r { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cst-r .mid { flex: 1; min-width: 0; }
.cst-r .l1 { display: flex; align-items: center; gap: 6px; }
.cst-r .l2 { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cst-r .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cst-r .amt { font-family: var(--mono); font-size: 15px; }
.cst .kbtn { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.cst.open .kbtn { background: var(--ink); color: var(--card); border-color: var(--ink); }
.cst-k { border-top: 1px dashed var(--line); padding: 8px 10px 12px; cursor: default; }
.ck-info { padding: 4px 4px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
/* 钱包页 K 线复盘：按 K 线汇总的买卖点、悬停浮框、底部「其他钱包新开还持仓」 */
.ck-wrap { position: relative; }
.ck-tip { position: absolute; top: 6px; z-index: 5; max-width: min(340px, 92%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 0 6px 20px rgba(0, 0, 0, .14); font-size: 12px; line-height: 1.55; pointer-events: none; }
.ck-tip .mono { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-tip-h { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.ck-tip .ck-tip-k { white-space: normal; color: var(--muted); }
.tchart .ck-n { font-size: 9.5px; font-family: var(--mono); fill: var(--ink); font-weight: 600; pointer-events: none; }
.tchart .ck-hl { stroke: var(--ink); stroke-width: 1; opacity: .35; stroke-dasharray: 3 3; pointer-events: none; }
.tchart .ck-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.tchart .ck-nowt { fill: var(--ink); font-weight: 600; }
.tchart .ck-ol { fill: var(--up); opacity: .75; } .tchart .ck-os { fill: var(--dn); opacity: .75; }
.ck-wrap .tchart .mk { pointer-events: none; cursor: default; }
/* 品种 K 线页 */
.kl-card { padding: 8px 8px 6px; }
.kl-card .ck-wrap { cursor: crosshair; }
.kl-px { font-size: 20px; }
/* K 线下面的三个入口：一行小按钮（以前是 .sheet-links 竖排 + flex-basis 160px，每个撑成 160px 高的大空块） */
.kl-links { margin: 12px 20px 4px; display: flex; gap: 8px; }
.kl-links a { flex: 1 1 0; min-width: 0; text-align: center; padding: 9px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--ink); font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-links a:hover { border-color: var(--muted); }
/* K 线缩放 / 拖动 */
.kl-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 6px; min-height: 28px; }
.kl-tools #klrange { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-zoom { display: inline-flex; gap: 4px; flex: none; }
.kl-zoom button { height: 28px; min-width: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 13px; cursor: pointer; }
.kl-zoom button:hover { border-color: var(--muted); }
.kl-pan { touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* 竖着滑照样滚页面，横着拖 / 两指缩放给 K 线 */
.kl-card .ck-wrap.kl-pan { cursor: grab; }
.kl-card .ck-wrap.kl-pan:active { cursor: grabbing; }
.chip-lbl { align-self: center; flex: none; font-size: 12px; color: var(--muted); padding-right: 2px; white-space: nowrap; }
.ck-tip .ck-tip-s { color: var(--muted); font-size: 11px; }
.cst-k .akl-h { flex-wrap: wrap; }
.cst-k .akl-iv button { white-space: nowrap; }
.cst-more { align-self: center; margin: 2px auto 0; }
#raMore { display: flex; margin: 6px auto 0; }
.pos .c { display: flex; flex-direction: column; line-height: 1.2; }
.pos .c i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cst-pl b { font-family: var(--mono); font-weight: 600; }

/* 详情页底部：上一个 / 下一个（从列表点进来时） */
#navbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 40px));
  height: 44px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; z-index: 9; font-size: 14px; }
#navbar a, #navbar .off { padding: 0 14px; height: 100%; display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
#navbar a:last-child, #navbar .off:last-child { justify-content: flex-end; }
#navbar .off { color: var(--line); font-weight: 500; }
#navbar .pos { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding: 0 6px; }
#navbar a, #navbar .off, #navbar .pos { overflow: hidden; white-space: nowrap; }
body.has-navbar #view { padding-bottom: 150px; }
.opens-h { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 2px; }
.opens-h b { font-size: 14px; }
.opens-h span { font-size: 12px; color: var(--muted); }

/* 电脑版专用的元素（侧边栏里的品牌、子菜单、语言 / 配色），手机版不显示；电脑版的样式在 pc.css */
html:not(.pc) .pc-only { display: none !important; }
.pc-cols, .pc-a, .pc-b, .pc-grid2 { min-width: 0; }
/* 当前持仓：条下面写什么时候开的仓 */
.pos .pm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pos .pm .bar { flex: none; width: 100%; }
.pos .pm em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 日报 v2 */
.b-amber { background: var(--amber-bg); color: var(--amber-ink); }
.p-super { background: var(--violet-bg); color: var(--violet-ink); text-decoration: none; margin-left: 6px; }
.dr-scnote { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--violet-bg); color: var(--ink); line-height: 1.55; }
.dr-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 20px 12px; }
.dr-hero { display: flex; flex-direction: column; gap: 10px; }
.dr-label { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.dr-headline { font-size: 14px; line-height: 1.6; }
.dr-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dr-tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); text-decoration: none; white-space: nowrap; }
.dr-tag.dn { background: var(--dn-bg); color: var(--dn-ink); }
.dr-tag.up { background: var(--up-bg); color: var(--up-ink); }
.dr-tag.amber { background: var(--amber-bg); color: var(--amber-ink); }
.dr-tag.sky { background: var(--sky-bg); color: var(--sky-ink); }
.dr-mkt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dr-mkt > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--soft); min-width: 0; }
.dr-mkt span { font-size: 12px; color: var(--muted); }
.dr-mkt b { font-family: var(--mono); font-size: 16px; }
.dr-mkt i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-no { color: var(--teal); margin-right: 6px; }
.dr-rule { margin: 0 20px 8px; line-height: 1.6; }
.dr-venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0 20px 14px; }
.dr-venue { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dr-vh { display: flex; justify-content: space-between; align-items: center; }
.dr-vk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dr-vk > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dr-vk span, .dr-vk i { font-size: 11px; color: var(--muted); font-style: normal; white-space: nowrap; }
.dr-vk b { font-family: var(--mono); font-size: 15px; }
.dr-flow { line-height: 1.5; }
.dr-tops .kv { padding: 6px 0; font-size: 13px; }
.dr-vt { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--sky-bg); color: var(--sky-ink); white-space: nowrap; }
.dr-vt.lighter { background: var(--violet-bg); color: var(--violet-ink); }
.dr-vt.pacifica { background: var(--mint); color: var(--mint-ink); }
.dr-vt.jupiter { background: var(--amber-bg); color: var(--amber-ink); }
.dr-row { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.dr-r1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dr-r2 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.dr-w { font-weight: 600; color: var(--ink); text-decoration: none; }
.dr-coin { font-weight: 700; color: var(--ink); text-decoration: none; }
.dr-amt { margin-left: auto; font-family: var(--mono); }
.dr-sub { margin: 0 20px 6px; font-size: 12px; font-weight: 700; }
.dr-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dr-tbl th { font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.dr-tbl td { padding: 8px 6px; text-align: right; white-space: nowrap; font-family: var(--mono); border-bottom: 1px solid var(--soft); }
.dr-tbl .l { text-align: left; font-family: var(--sans); }
.dr-hist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dr-hist a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: 12px; }
.dr-arc { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.dr-arc .dr-tags { margin-left: auto; }
.dr-hl { color: var(--muted); line-height: 1.5; }
.dr-rep { text-decoration: none; color: inherit; align-items: center; }
@media (max-width: 520px) { .dr-mkt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dr-arc .dr-tags { margin-left: 0; } }
/* 全体钱包温度 / 行情分类 */
.dr-breadth { display: flex; flex-direction: column; gap: 10px; }
.dr-bk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dr-bk > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--soft); min-width: 0; }
.dr-bk span, .dr-bk i { font-size: 11px; color: var(--muted); font-style: normal; white-space: nowrap; }
.dr-bk b { font-family: var(--mono); font-size: 18px; }
.dr-bk.sm b { font-size: 15px; }
.dr-sub2 { font-size: 12px; font-weight: 700; margin-top: 2px; }
.dr-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--soft); gap: 2px; }
.dr-bar i { display: block; height: 100%; }
.dr-bar .w { background: var(--up-ink); }
.dr-bar .l { background: var(--dn-ink); }
.dr-bar .f { background: var(--line); }
.dr-mini { width: 90px; margin: 4px 0 0 auto; }
.dr-mini .dr-bar { height: 5px; }
.dr-cmp i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.seg-tabs a { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; color: var(--muted); text-decoration: none; text-align: center; padding: 0 6px; }
.seg-tabs a.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
@media (max-width: 520px) { .dr-bk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dr-sm { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.chip.dim { opacity: .45; }
.dr-banner { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.dr-banner .dr-tags { margin-left: auto; }
.dr-bk-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--teal); }
.dr-bk-links span { cursor: pointer; }
.seg-mini { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-mini button { border: none; background: transparent; font-size: 12px; padding: 4px 10px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.seg-mini button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
/* 首页 4 大阵地 */
.vz { display: flex; flex-direction: column; gap: 12px; }
.vz-tabs { overflow-x: auto; max-width: 100%; }
.vz-tabs button { font-size: 13px; padding: 6px 12px; white-space: nowrap; }
.vz-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vz-head b { font-family: var(--mono); font-size: 26px; }
.vz-head a { margin-left: auto; color: var(--teal); text-decoration: none; }
.vz-venues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vz-venues button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); text-align: left; }
.vz-venues button b { font-family: var(--mono); font-size: 18px; }
.vz-venues button i { font-style: normal; font-size: 11px; color: var(--muted); }
.vz-wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vz-win { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); min-width: 0; }
.vz-wh { font-size: 12px; font-weight: 700; }
.vz-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vz-k > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vz-k span, .vz-k i { font-size: 11px; color: var(--muted); font-style: normal; white-space: nowrap; }
.vz-k b { font-family: var(--mono); font-size: 15px; }
.vz-cmp summary { cursor: pointer; font-size: 13px; color: var(--teal); }
.vz-cmp table { margin-top: 8px; }
.vz-cmp td.vz-txt { white-space: normal; min-width: 180px; font-size: 12px; line-height: 1.5; vertical-align: top; }
.vz-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.vz-prof > div { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.vz-prof span { font-size: 12px; font-weight: 700; }
.vz-prof p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink); }
@media (max-width: 720px) { .vz-wins { grid-template-columns: 1fr; } .vz-venues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vz-tabs button { font-size: 12px; padding: 6px 7px; } .vz-head b { font-size: 22px; } }

/* 同一栏几个页面的切换条（手机；PC 用侧栏） */
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 20px 14px; padding: 4px; border-radius: 14px; background: var(--soft); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
/* 服务端给搜索引擎 / 不跑 JS 的预览程序先放的内容（JS 一跑就换成正式页面） */
.ssr { padding: calc(20px + env(safe-area-inset-top)) 20px 120px; max-width: 880px; margin: 0 auto; color: var(--ink); line-height: 1.7; }
.ssr h1 { font-size: 24px; margin: 0 0 8px; }
.ssr p { color: var(--muted); margin: 0 0 14px; }
.ssr ol, .ssr ul { padding-left: 20px; }
.ssr a { color: var(--teal); }
.chips.kl-tight { padding-bottom: 8px; }

/* 钱包页「账户」里的统计期间资金 */
.acc-period { margin: 8px 20px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 13px; }
.acc-period .ap-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.acc-period .ap-h span { color: var(--muted); font-size: 12px; }
.acc-period .ap-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.acc-period .ap-row span { display: flex; flex-direction: column; min-width: 72px; }
.acc-period .ap-row i { font-style: normal; color: var(--muted); font-size: 12px; }
.acc-period .ap-row b { font-variant-numeric: tabular-nums; font-size: 15px; }
.acc-period .ap-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.acc-period .ap-warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--dn) 10%, transparent); color: var(--dn); font-size: 12px; line-height: 1.6; }
/* 账户：交易风格（多空、哪边赚钱、什么行情赚钱） */
.acc-style { margin: 0 20px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 13px; }
.acc-style .as-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acc-style .as-h b { margin-right: 4px; font-size: 14px; }
.acc-style .as-sum { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.acc-style .as-note { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cst-gap { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--dn-bg); color: var(--dn-ink); font-size: 12px; line-height: 1.6; }
.cst-gap .muted { color: inherit; opacity: .75; }

/* 语言切换（2026-11-27 多语言）：开着的语言一格一个 */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; background: var(--soft); border-radius: 14px; padding: 4px; }
.lang-grid button { height: 38px; border: none; border-radius: 11px; background: transparent; font-size: 14px; color: var(--muted); }
.lang-grid button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }

/* 筛选栏（2026-11-27，和盈亏排行一样）：主维度一排 chip，其余条件 = 带标签的下拉 + 勾选；手机一行左右滑，电脑换行 */
.fbar { padding: 0 20px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fbar::-webkit-scrollbar { display: none; }
.fbar + .section-h, .fbar + .note, .fbar + .box, .fbar + .list { margin-top: 4px; }
html.pc .fbar { flex-wrap: wrap; overflow: visible; }
.fsel { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink); }
.fsel i { font-style: normal; color: var(--muted); padding-left: 12px; white-space: nowrap; }
.fsel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; height: 32px; padding: 0 26px 0 6px; cursor: pointer; max-width: 220px; field-sizing: content; }
.fsel select:focus-visible { outline: none; }
.fsel:focus-within { border-color: var(--teal); }
.fsel select { color: var(--ink); }
.fsel::after { content: ''; position: absolute; right: 12px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.fchk { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.fchk input { margin: 0; pointer-events: none; accent-color: var(--ink); }
.fchk.on { background: var(--mint); color: var(--mint-ink); border-color: transparent; font-weight: 600; }
.fchk.on input { accent-color: var(--teal); }
.fchk.x { color: var(--muted); }
.fchk .ico { width: 15px; height: 15px; }
.fbar .chip-sep { flex: 0 0 1px; }
/* 勾选面板（交易风格这类多选）：一组一行标题 + 一排勾选 */
.fsheet h3 { font-size: 14px; margin: 14px 0 6px; }
.fsheet h3 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.fsheet .fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.fsheet .fopts label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; cursor: pointer; white-space: nowrap; }
.fsheet .fopts label:has(input:checked) { background: var(--mint); color: var(--mint-ink); border-color: transparent; font-weight: 600; }
.fsheet .fopts input { margin: 0; accent-color: var(--ink); }
