/* 布局：手机单列 App 形态——内容区 + 底部五个图标标签；宽屏卡片多列。
   价格红涨绿跌；证伪信号用琥珀/蓝/紫红，和涨跌色分开。所有颜色走变量，深色模式只换变量。 */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --ink: #16202c; --muted: #5b6676; --line: #e1e5ec; --accent: #2a4a7c; --accent-ink: #ffffff;
  --up: #c42f2a; --down: #157a47; --up-bg: rgba(196, 47, 42, 0.14); --down-bg: rgba(21, 122, 71, 0.14);
  --sig-idle: #8691a1; --sig-progress: #a8701a; --sig-bull: #2662a8; --sig-bear: #93285f;
  --alert-bg: #fbf1e3; --hero: #e9eef6; --shadow: 0 8px 30px rgba(16, 24, 40, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  --tabbar: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318; --surface: #181e26; --ink: #e5e9ef; --muted: #98a3b2; --line: #28303b; --accent: #8eb0e8; --accent-ink: #0f1318;
    --up: #f0665e; --down: #46c07f; --up-bg: rgba(240, 102, 94, 0.18); --down-bg: rgba(70, 192, 127, 0.18);
    --sig-idle: #6e7987; --sig-progress: #e0a445; --sig-bull: #6aa6ec; --sig-bear: #d57aae;
    --alert-bg: #2a2216; --hero: #1b2532; --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { overscroll-behavior-y: none; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
}
body.locked { overflow: hidden; }
#app { max-width: 1100px; margin: 0 auto; display: grid; gap: 12px; transition: transform .15s ease-out; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 0.8rem; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
h3 { font-size: 0.98rem; }
p { margin: 0; }

/* 按钮与按压反馈 */
button, .btn-link { font: inherit; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
  background: var(--surface); color: var(--ink); -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform .08s, opacity .08s; }
button:active, .tap a:active, .row-link:active, .chip:active, #tabs a:active { transform: scale(0.97); opacity: 0.85; }
button:disabled { opacity: 0.5; }
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; width: 100%; }
.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 7px 12px; border-radius: 10px; }
.ghost.small { padding: 5px 12px; font-size: 0.82rem; }
.ghost.block { width: 100%; padding: 12px; }
.icon-btn { background: transparent; color: var(--muted); padding: 6px 10px; font-size: 0.82rem; border-radius: 8px; }
.danger { color: var(--up) !important; border-color: var(--up) !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-link { background: var(--accent); color: var(--accent-ink); }

/* 底部标签栏 */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line);
  padding: 4px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px)); }
#tabs[hidden] { display: none; }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; height: var(--tabbar); justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 0.68rem; -webkit-user-select: none; user-select: none; }
#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tabs a.active { color: var(--accent); font-weight: 600; }
#tabs a.active svg { stroke-width: 2.2; }
body.reading #tabs { display: none; }
body.reading { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* 顶部细条（只有报告详情、改密页用） */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: grid; grid-template-columns: 5em 1fr 5em; align-items: center; gap: 6px;
  margin: -8px calc(-1 * max(14px, env(safe-area-inset-left, 0px))) 0; padding: 8px max(14px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.bar span { text-align: center; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { color: var(--accent); text-decoration: none; font-size: 1rem; padding: 6px 0; }
.topline { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.warn { background: var(--alert-bg); border-radius: 12px; padding: 8px 12px; font-size: 0.85rem; }
#net { position: sticky; top: 0; z-index: 40; background: var(--sig-progress); color: #fff; text-align: center; font-size: 0.82rem; padding: 6px; border-radius: 10px; margin-bottom: 8px; }
#net[hidden] { display: none; }

/* 持仓头卡 */
.hero { background: var(--hero); border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-name { font-weight: 600; }
.status { font-size: 0.75rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.status.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-price { font-size: 2.3rem; font-weight: 600; line-height: 1.1; border-radius: 8px; justify-self: start; padding: 0 4px; margin-left: -4px; }
.hero-price small { font-size: 1rem; margin-left: 8px; font-weight: 500; }
.hero-pnl { display: flex; align-items: baseline; gap: 8px; font-size: 1.25rem; font-weight: 600; border-radius: 8px; justify-self: start; padding: 0 4px; margin-left: -4px; }
.hero-pnl span { font-family: var(--font); font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.hero-pnl small { font-size: 0.9rem; }
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin-top: 6px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.hero-grid span { display: block; font-family: var(--font); font-size: 0.7rem; color: var(--muted); }
.hero-grid b { font-weight: 600; font-size: 0.98rem; }
.flash-up { animation: flashUp 0.9s ease-out; } .flash-down { animation: flashDown 0.9s ease-out; }
@keyframes flashUp { 0% { background: var(--up-bg); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--down-bg); } 100% { background: transparent; } }

.chip { display: inline-block; font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; color: inherit; text-decoration: none; background: var(--surface); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.alerts { background: var(--alert-bg); border-radius: 14px; padding: 10px 14px; }
.alerts strong { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--sig-progress); }
.alerts ul { margin: 4px 0 0; padding-left: 1.1em; font-size: 0.9rem; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }
.card, .panel { background: var(--surface); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.card { display: grid; gap: 8px; align-content: start; }
.card header, .panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card h2 { font-size: 1.08rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1.6rem; font-weight: 600; border-radius: 8px; padding: 0 4px; margin-left: -4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.78rem; }
.spark { width: 100%; height: 52px; display: block; }
.verdict { font-weight: 600; }
.question { color: var(--muted); font-size: 0.88rem; }
.question b { color: var(--ink); font-weight: 500; }
details { border-top: 1px solid var(--line); padding-top: 8px; }
summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); list-style: none; display: flex; justify-content: space-between; padding: 4px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; transform: rotate(90deg); transition: transform .15s; }
details[open] summary::after { transform: rotate(-90deg); }
summary em { font-style: normal; color: var(--sig-progress); margin-left: auto; margin-right: 8px; }
.signals { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.signals li { display: grid; grid-template-columns: 4.6em 1fr; gap: 2px 10px; align-items: baseline; font-size: 0.9rem; }
.signals .note { grid-column: 2; color: var(--muted); font-size: 0.78rem; }
.pill { font-size: 0.7rem; border-radius: 5px; padding: 1px 0; text-align: center; color: #fff; font-weight: 500; }
.s-idle { background: var(--sig-idle); } .s-progress { background: var(--sig-progress); } .s-bull { background: var(--sig-bull); } .s-bear { background: var(--sig-bear); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 6px 0; }
.metric span { display: block; font-size: 0.72rem; color: var(--muted); }
.metric b { font-size: 0.98rem; }
.metric small { display: block; font-size: 0.72rem; color: var(--muted); }
.row-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 10px 0 2px; color: var(--accent); text-decoration: none; font-size: 0.9rem; }

.panel h3 { margin-bottom: 8px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.events li { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; font-size: 0.9rem; }
.events .when { color: var(--accent); font-weight: 600; }
.events small { display: block; color: var(--muted); font-size: 0.75rem; }
.macro-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 0.9rem; }
.macro-row:last-child { border-bottom: 0; }
.footnote { font-size: 0.72rem; color: var(--muted); padding: 0 4px; }
.empty { background: var(--surface); border-radius: 16px; padding: 28px 18px; color: var(--muted); text-align: center; }
.empty h2 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }

/* 列表（交易、报告、我的） */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
.list li:last-child { border-bottom: 0; }
.list li.tap { padding: 0; }
.list li.tap a { display: flex; align-items: center; gap: 10px; padding: 11px 0; width: 100%; color: inherit; text-decoration: none; }
.li-main { flex: 1; min-width: 0; }
.li-main small { display: block; color: var(--muted); font-size: 0.76rem; }
.li-side { text-align: right; }
.li-side small { display: block; color: var(--muted); font-size: 0.76rem; }
.chev { color: var(--muted); font-size: 1.2rem; }

/* 持仓页 */
.pnl-big { display: flex; align-items: baseline; gap: 8px; font-size: 1.7rem; font-weight: 600; margin: 4px 0 8px; border-radius: 8px; }
.pnl-big span { font-family: var(--font); font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.pnl-big small { font-size: 1rem; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.kv span { display: block; font-family: var(--font); font-size: 0.72rem; color: var(--muted); }
.explain { font-size: 0.86rem; margin-top: 10px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }

/* 悬浮加号 */
.fab { position: fixed; z-index: 25; right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 1.7rem; line-height: 1; padding: 0; box-shadow: var(--shadow); }

/* 底部抽屉 */
#sheet { position: fixed; inset: 0; z-index: 50; }
#sheet .backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity .2s; }
#sheet .panel-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow);
  padding: 6px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
#sheet.open .backdrop { opacity: 1; }
#sheet.open .panel-sheet { transform: translateY(0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 8px; }
#sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#sheet h2 { font-size: 1.05rem; }

/* 表单：16px 字号避免 iPhone 聚焦时自动放大 */
.form { display: grid; gap: 6px; }
.form label { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form .primary { margin-top: 12px; }
.err { color: var(--up); min-height: 1.2em; font-size: 0.85rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label { display: block; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { background: transparent; padding: 9px; color: var(--muted); border-radius: 10px; }
.seg button.on.buy { background: var(--up); color: #fff; font-weight: 600; }
.seg button.on.sell { background: var(--down); color: #fff; font-weight: 600; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stepper input { border: 0; border-radius: 0; text-align: center; padding: 11px 4px; }
.stepper button { background: transparent; padding: 0; border-radius: 0; color: var(--accent); font-size: 1.1rem; }
.amount { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }

/* 报告 */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.doc-meta { padding: 2px 4px; }
.doc { background: var(--surface); border-radius: 16px; padding: 16px; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
.doc h2 { font-size: 1.25rem; margin: 6px 0 10px; } .doc h3 { font-size: 1.06rem; margin: 20px 0 8px; } .doc h4, .doc h5 { margin: 16px 0 6px; }
.doc p, .doc li { line-height: 1.8; margin: 8px 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc blockquote { margin: 10px 0; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.doc pre { overflow-x: auto; background: var(--bg); padding: 10px; border-radius: 8px; font-size: 0.8rem; }
.doc code { font-family: var(--mono); font-size: 0.85em; background: var(--bg); padding: 0 4px; border-radius: 4px; }
.doc a, .mdlink { color: var(--accent); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; min-width: 4.5em; }
.table-wrap th { color: var(--muted); font-weight: 500; white-space: nowrap; background: var(--bg); }

/* 日志 */
.intro { padding: 0 4px; }
.entry { display: grid; gap: 4px; }
.entry header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.entry p { font-size: 0.9rem; }
.entry .label { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 4px; }
.entry .review { background: var(--bg); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }
.entry .row { margin-top: 6px; }

/* 下拉刷新 */
#ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) - 36px); z-index: 35; transform: translate(-50%, 0);
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; pointer-events: none; }
#ptr span { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; }
#ptr.ready span { border-color: var(--accent); }
#ptr.spin { transform: translate(-50%, 60px) !important; transition: transform .2s; }
#ptr.spin span { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton { display: grid; gap: 12px; }
.skeleton i { display: block; height: 120px; border-radius: 16px; background: linear-gradient(90deg, var(--surface) 25%, var(--hero) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton i.tall { height: 200px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 登录 */
.auth { max-width: 380px; width: 100%; margin: 10vh auto 0; display: grid; gap: 6px; background: var(--surface); border-radius: 20px; padding: 26px 22px; }
.auth img { border-radius: 14px; justify-self: center; margin-bottom: 4px; }
.auth h1 { font-size: 1.3rem; margin-bottom: 8px; text-align: center; }
.auth label { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.auth .primary { margin-top: 14px; }

/* 提示条 */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(16px); opacity: 0;
  display: flex; gap: 12px; align-items: center; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 0.9rem;
  transition: all .2s; pointer-events: none; max-width: calc(100vw - 32px); z-index: 60; box-shadow: var(--shadow); }
#toast span { white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast button { background: transparent; color: #8eb0e8; padding: 0; font-weight: 600; white-space: nowrap; }
@media (prefers-color-scheme: dark) { #toast button { color: #2a4a7c; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 行情详情（K 线） */
a.hero { color: inherit; text-decoration: none; }
a.hero:active { transform: scale(0.99); }
.hero-more { justify-self: end; font-size: 0.78rem; color: var(--accent); }
a.price-row { color: inherit; text-decoration: none; }
a.price-row .chev { align-self: center; }
.q-head { display: grid; gap: 4px; }
.q-price { font-size: 2.2rem; font-weight: 600; line-height: 1.15; justify-self: start; border-radius: 8px; padding: 0 4px; margin-left: -4px; }
.q-price small { font-size: 1rem; margin-left: 8px; }
.q-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; margin-top: 8px; background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.q-stats span { display: block; font-family: var(--font); font-size: 0.68rem; color: var(--muted); }
.q-stats b { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.periods { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-radius: 12px; padding: 3px; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 46px); z-index: 15; }
.periods.inds { grid-template-columns: repeat(3, 1fr); position: static; }
.periods[hidden] { display: none; }
.periods button { background: transparent; padding: 8px 0; font-size: 0.88rem; color: var(--muted); border-radius: 9px; }
.periods button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.legend { font-size: 0.72rem; line-height: 1.55; min-height: 4.8em; background: var(--surface); border-radius: 12px; padding: 6px 10px; overflow-wrap: anywhere; }
.legend i { font-style: normal; margin-right: 6px; }
.legend .ev { color: var(--sig-progress); }
.legend b { font-weight: 600; margin-right: 4px; }
.chart { height: min(62vh, 520px); min-height: 360px; background: var(--surface); border-radius: 14px; padding: 4px 0 0; overflow: hidden; touch-action: pan-y; }
.chart .empty { margin: 40px 16px; }
.chart-tip i { font-style: normal; }

/* ---------- 市场情绪雷达 ---------- */
.lv1 { color: var(--down); } .lv2 { color: color-mix(in srgb, var(--down) 70%, var(--muted)); } .lv3 { color: var(--muted); }
.lv4 { color: color-mix(in srgb, var(--up) 70%, var(--muted)); } .lv5 { color: var(--up); }
.sbar-t i.lv1 { background: var(--down); } .sbar-t i.lv2 { background: color-mix(in srgb, var(--down) 55%, var(--line)); } .sbar-t i.lv3 { background: var(--muted); }
.sbar-t i.lv4 { background: color-mix(in srgb, var(--up) 55%, var(--line)); } .sbar-t i.lv5 { background: var(--up); }
.senti-card { display: grid; grid-template-columns: 1fr 34% auto; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 12px 14px; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.senti-card .spark { height: 40px; }
.senti-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.senti-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.senti-num b { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.senti-dir { font-weight: 600; }
.warn-t { font-style: normal; color: var(--sig-progress); font-weight: 600; }
.senti-head { display: flex; flex-direction: column; gap: 8px; }
.senti-big { display: flex; align-items: baseline; gap: 8px; }
.senti-big b { font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.senti-big em { font-style: normal; font-weight: 700; font-size: 1.2rem; }
.senti-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; }
.senti-hist { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.senti-hist span { display: block; font-size: 0.72rem; color: var(--muted); }
.senti-hist b { font-size: 1.15rem; }
.stage { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 0.92rem; }
.stage b { font-size: 1.05rem; }
.stage small { color: var(--muted); margin-left: auto; }
.cycle { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.72rem; }
.cycle li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.cycle li.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.senti-chart { height: min(46vh, 380px); }
.sbar { display: grid; grid-template-columns: 7.8em 1fr 2.2em; align-items: center; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.sbar:last-of-type { border-bottom: 0; }
.sbar-n .w { font-style: normal; color: var(--muted); font-size: 0.7rem; margin-left: 3px; }
.sbar-t { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.sbar-t i { display: block; height: 100%; border-radius: 4px; }
.sbar b { text-align: right; }
.sbar small { grid-column: 1 / -1; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.facts { margin: 0; padding-left: 1.2em; font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }
.alerts p { margin: 2px 0 6px; font-size: 0.9rem; }

/* ---------- 戴维斯效应 ---------- */
.grade { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 6px; font-size: 0.8rem; color: #fff; font-weight: 700; }
.grade.big { min-width: 2.4em; height: 2.4em; font-size: 1.5rem; border-radius: 12px; }
.gA { background: var(--up); } .gB { background: color-mix(in srgb, var(--up) 60%, var(--muted)); } .gC { background: var(--muted); }
.gD { background: color-mix(in srgb, var(--down) 60%, var(--muted)); } .gE { background: var(--down); }
.davis-head { display: flex; flex-direction: column; gap: 10px; }
.dv-top { display: flex; align-items: center; gap: 12px; }
.dv-top h2 { margin: 0; font-size: 1.15rem; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qd { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; color: var(--muted); }
.qd span { font-size: 0.7rem; } .qd b { font-size: 0.85rem; }
.qd.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.qa { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; margin: 0 0 10px; }
.dec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.dec span { width: 3.4em; color: var(--muted); font-size: 0.8rem; } .dec i { font-style: normal; color: var(--muted); }

/* ---------- 施洛斯价值池 ---------- */
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 12px 14px; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.row-card span { display: flex; flex-direction: column; gap: 2px; } .row-card small { color: var(--muted); font-size: 0.78rem; }
.sec-t { margin: 6px 4px 0; font-size: 0.95rem; }
.pool { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.pool header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pool header .pill { margin-left: auto; }
.pool-grid, .levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pool-grid span, .levels span { display: block; font-size: 0.68rem; color: var(--muted); } .pool-grid b, .levels b { font-size: 0.95rem; }
.levels { border-top: 1px solid var(--line); padding-top: 8px; } .levels small { display: block; font-size: 0.62rem; color: var(--muted); }
.p3 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; } .p3.mines { color: var(--muted); }
.p3 i { font-style: normal; font-weight: 700; margin-right: 3px; } .p3 .ok { color: var(--down); } .p3 .no { color: var(--up); } .p3 .q { color: var(--sig-progress); }
.chips.rules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* ---------- 总览里的标的行 / 选股页 ---------- */
.trows { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.trow { display: grid; grid-template-columns: 1fr auto auto 12px; align-items: center; gap: 14px; padding: 13px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow-n, .trow-p { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trow-n small, .trow-p small { font-size: 0.74rem; color: var(--muted); }
.trow-p { align-items: flex-end; } .trow-p b { font-size: 1.05rem; }
.trow-p small.up { color: var(--up); } .trow-p small.down { color: var(--down); }
.me-link { color: var(--accent); text-decoration: none; padding: 4px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; align-items: center; }
.filters .chip { padding: 5px 12px; font-size: 0.8rem; }
.filters select { width: auto; padding: 6px 30px 6px 12px; font-size: 14px; border-radius: 999px; }
#fq { margin-bottom: 6px; }
.inpool { font-style: normal; font-size: 0.68rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; }
.pool-act { display: flex; gap: 8px; } .pool-act button { flex: 1; font-size: 0.85rem; }
.pool-grid small { display: block; font-size: 0.7rem; }
#sheet h4 { margin: 12px 0 4px; font-size: 0.85rem; color: var(--muted); }
.picks li { gap: 10px; }
.picks .rank { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; flex: none; }
.picks .score { font-size: 1rem; color: var(--accent); }
.picks .risk { color: var(--sig-progress); }
h4.sub { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.page-t { margin: 4px 4px 0; font-size: 1.25rem; }
.zone { font-style: normal; color: var(--up); font-weight: 600; }
.zone.sell { color: var(--down); }
.noggt { font-style: normal; font-size: 0.68rem; color: var(--up); border: 1px solid var(--up); border-radius: 999px; padding: 0 6px; }

/* ======================================================================
   电脑版（≥ 1024px）：左侧竖向导航 + 内容两栏。手机端完全不受影响。
   ====================================================================== */
.side-only { display: none !important; }
.two-col, .col-main, .col-side { display: grid; gap: 12px; align-content: start; min-width: 0; }

/* ---------- 交易跟踪提示 ---------- */
.track { border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.track small { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.track.buy { background: var(--down-bg); } .track.buy b { color: var(--down); }
.track.sell { background: var(--up-bg); } .track.sell b { color: var(--up); }
.hold { display: flex; gap: 14px; font-size: 0.85rem; align-items: baseline; flex-wrap: wrap; }
.primary-lite { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 7px 12px; font-size: 0.85rem; font-weight: 600; flex: 2; }
.small-btn { font-size: 0.85rem; padding: 9px 12px; color: var(--muted); }

/* ---------- 只剩施洛斯选股一个页面：手机不要底部标签栏 ---------- */
/* 原“仅手机” */
  #tabs, body.reading #tabs { display: none !important; }
  body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ph-r { display: flex; align-items: center; gap: 14px; }
.share-btn { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--accent); padding: 4px 2px; font-size: 0.85rem; }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-wrap { max-height: 56vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 12px; background: var(--bg); }
.shot-wrap img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; }
.shot-head { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px 2px; }
.shot-head b { font-size: 1.15rem; } .shot-head span { font-size: 0.72rem; color: var(--muted); }
#shotSave { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: 1; }
.about { display: flex; flex-direction: column; gap: 8px; }
.about-top { display: flex; gap: 10px; align-items: center; }
.about-top small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.about-badge { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }
.about p { margin: 0; line-height: 1.6; }

/* ======================================================================
   设计 v2（2026-10-23）：施洛斯选股的手机端 + 电脑版统一装修。
   原则：看着简单、用着简单；顶部不占高度；数字对齐好读；不加装饰。
   ====================================================================== */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --ink: #141a22; --muted: #687280; --line: #e7e9ee; --accent: #1f3b63; --accent-ink: #ffffff;
  --accent-soft: #e8eef7; --buy: #0f7a4a; --buy-bg: #e3f3ea; --sell: #b8322b; --sell-bg: #fbe9e7; --idle-bg: #eef0f3; --warn: #9a6512;
  --radius: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 16px rgba(16, 24, 40, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #171c23; --ink: #e7ebf0; --muted: #98a2b0; --line: #262d37; --accent: #9dbbe8; --accent-ink: #0e1116;
    --accent-soft: #1d2735; --buy: #4cc58a; --buy-bg: rgba(76, 197, 138, 0.14); --sell: #f07a72; --sell-bg: rgba(240, 122, 114, 0.14);
    --idle-bg: #222933; --warn: #e2ad5b; --shadow: none;
  }
}
body { font-size: 15px; letter-spacing: 0.01em; }
.num { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
#app { gap: 14px; }

/* 吸顶标题栏：一行，48px */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: calc(-1 * max(8px, env(safe-area-inset-top, 0px))) -14px 0; padding: calc(max(8px, env(safe-area-inset-top, 0px)) + 4px) 14px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
.topbar h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.tb-r { display: flex; align-items: center; gap: 4px; }
.tb-r .share-btn, .me-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--accent); background: transparent; font-size: 0.85rem; text-decoration: none; }
.tb-r .share-btn:hover, .me-btn:hover { background: var(--accent-soft); }
.me-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 施洛斯简介：默认一行，点开看全文 */
.intro { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; border: 0; }
.intro summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.intro summary::-webkit-details-marker { display: none; }
.intro summary::after { content: '›'; margin-left: auto; color: var(--muted); font-size: 1.2rem; transition: transform .2s; }
.intro[open] summary::after { transform: rotate(90deg); }
.intro-t { display: flex; flex-direction: column; min-width: 0; }
.intro-t b { font-size: 0.92rem; } .intro-t small { color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-badge { width: 34px; height: 34px; font-size: 0.78rem; background: var(--accent); }
.intro-body { padding: 0 14px 14px; display: grid; gap: 8px; font-size: 0.88rem; line-height: 1.7; }

/* 筛选漏斗：一行四个数 */
.funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px 8px; text-align: center; row-gap: 4px; }
.funnel div b { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.funnel div span { font-size: 0.72rem; color: var(--muted); }
.funnel div:last-of-type b { color: var(--accent); }
.funnel i { font-style: normal; color: var(--line); font-size: 1.3rem; }
.funnel small { grid-column: 1 / -1; font-size: 0.7rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }

/* 区块 */
.block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 10px; border: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sec-h h3 { font-size: 1.02rem; font-weight: 700; } .sec-h h3 small { font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.sec-meta { font-size: 0.74rem; color: var(--muted); }
.sec-sub { font-size: 0.76rem; color: var(--muted); line-height: 1.6; margin: 2px 0 6px; }
.link-btn { background: none; padding: 2px 0; color: var(--accent); font-size: 0.82rem; border-radius: 0; }
.danger-t { color: var(--sell); }
.empty-t { color: var(--muted); font-size: 0.86rem; padding: 10px 0; }

/* 股票行（手机：小卡片） */
.stocks { list-style: none; margin: 0; padding: 0; }
.stock { display: grid; grid-template-columns: 26px repeat(4, minmax(0, 1fr)) auto; column-gap: 8px; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; }
.stock:last-child { border-bottom: 0; }
.stock.head { display: none; }
.stock .s-rank { grid-column: 1; grid-row: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--idle-bg); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.stock:nth-child(-n+4) .s-rank { background: var(--accent); color: var(--accent-ink); }
.stock .s-name { grid-column: 2 / 6; grid-row: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.s-name b { font-size: 0.98rem; font-weight: 650; } .s-name small { color: var(--muted); font-size: 0.74rem; }
.stock .s-score, .stock .s-cap { grid-column: 6; grid-row: 1; justify-self: end; }
.s-score { font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.s-cap { font-size: 0.8rem; color: var(--muted); } .s-cap i { font-style: normal; font-size: 0.7rem; margin-left: 1px; }
.stock .s-zone { grid-column: 2 / 7; grid-row: 2; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stock .m1 { grid-column: 2; } .stock .m2 { grid-column: 3; } .stock .m3 { grid-column: 4; } .stock .m4 { grid-column: 5; }
.stock .s-m { grid-row: 3; font-size: 0.92rem; font-weight: 600; }
.s-m i { display: block; font-style: normal; font-size: 0.68rem; color: var(--muted); font-weight: 400; }
.stock .s-risk { grid-column: 2 / 7; grid-row: 4; font-size: 0.76rem; color: var(--warn); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock .s-risk::before { content: '⚠ '; }
.stock.norank { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.stock.norank .s-name { grid-column: 1 / 5; } .stock.norank .s-cap { grid-column: 5; } .stock.norank .s-zone { grid-column: 1 / 6; }
.stock.norank .m1 { grid-column: 1; } .stock.norank .m2 { grid-column: 2; } .stock.norank .m3 { grid-column: 3; } .stock.norank .m4 { grid-column: 4; }
.zpill { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--idle-bg); color: var(--muted); white-space: nowrap; }
.zpill.z-buy { background: var(--buy-bg); color: var(--buy); } .zpill.z-sell { background: var(--sell-bg); color: var(--sell); }
.zpill.z-pool { background: var(--accent-soft); color: var(--accent); }
.zpill.big { font-size: 0.8rem; padding: 3px 10px; justify-self: start; }
.s-bad { font-style: normal; font-size: 0.7rem; color: var(--sell); } .s-wait { font-style: normal; font-size: 0.7rem; color: var(--muted); }

/* 筛选栏：吸顶（在区块内滚动时跟着） */
.fbar { position: sticky; top: calc(max(8px, env(safe-area-inset-top, 0px)) + 48px); z-index: 10; background: var(--surface); padding: 6px 0 8px; margin: 0 0 2px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--idle-bg); border-radius: 10px; padding: 3px; gap: 3px; }
.seg3 button { background: transparent; padding: 7px 0; font-size: 0.85rem; color: var(--muted); border-radius: 8px; }
.seg3 button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.fbar .filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.fbar .filters::-webkit-scrollbar { display: none; }
.fbar .chip { flex: none; padding: 5px 12px; font-size: 0.8rem; border-radius: 999px; }
.fbar .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fbar select { flex: none; width: auto; padding: 5px 30px 5px 12px; font-size: 0.8rem; border-radius: 999px; background-color: var(--surface); }
#fq { padding: 9px 12px; font-size: 16px; border-radius: 10px; background: var(--bg); margin: 0; }

/* 观察池卡片 */
.pool { background: transparent; box-shadow: none; padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 10px; }
.pool:last-child { border-bottom: 0; }
.pool header { justify-content: space-between; flex-wrap: nowrap; align-items: flex-start; }
.pool-px { text-align: right; } .pool-px b { font-size: 1.25rem; font-weight: 700; display: block; line-height: 1.2; } .pool-px small { font-size: 0.78rem; }
.levels { background: var(--bg); border: 0; border-radius: 12px; padding: 10px 6px; }
.levels b { font-size: 0.98rem; }
.pool details { border-top: 0; padding-top: 0; }
.pool details summary { font-size: 0.8rem; color: var(--accent); }
.pool-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* 弹窗里的股票详情 */
#sheet .pool-grid { background: var(--bg); border-radius: 12px; padding: 10px 6px; }
#sheet h4 { margin: 14px 0 6px; font-size: 0.8rem; letter-spacing: 0.04em; }
.p3 { gap: 6px 14px; }
.footnote { text-align: center; padding: 6px 12px 0; }

/* ---------- 电脑版（≥1024px） ---------- */
/* 修：横向滚动的筛选条把网格撑宽 */
#app { grid-template-columns: minmax(0, 1fr); }
#app > *, .col-main, .col-side, .block, .fbar, .fbar .filters { min-width: 0; }
.stock { row-gap: 3px; padding: 10px 0; }
.stock .s-zone { margin-bottom: 2px; }
.zpill.big { width: fit-content; }
.pool .s-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.block > details:first-child { border-top: 0; padding-top: 0; }
.block > details summary { font-weight: 600; font-size: 0.92rem; }
/* 刷新按钮：只在电脑版显示（手机用下拉刷新） */
.refresh-btn { display: none; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--accent); background: transparent; font-size: 0.85rem; }
.refresh-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-btn:hover { background: var(--accent-soft); }
.refresh-btn.spinning svg { animation: spin .8s linear infinite; }
.std { font-size: 0.78rem; color: var(--muted); line-height: 1.7; margin: 0 0 6px; } .std b { color: var(--ink); font-weight: 600; }
/* ---------- 价值陷阱提示 ---------- */
.zpill.z-trap-h { background: var(--sell-bg); color: var(--sell); }
.zpill.z-trap-m { background: #fdf3e1; color: var(--warn); }
.zpill.z-ind { background: var(--idle-bg); color: var(--muted); font-weight: 500; }
@media (prefers-color-scheme: dark) { .zpill.z-trap-m { background: rgba(226, 173, 91, 0.14); } }
.stock .s-trap { grid-column: 2 / 7; grid-row: 4; margin: 2px 0 0; padding: 0 0 0 1.1em; font-size: 0.76rem; color: var(--sell); line-height: 1.55; }
.stock.norank .s-trap { grid-column: 1 / 6; }
.trap-block h4.sub { margin-top: 12px; }
.trap-h { color: var(--sell); } .trap-m { color: var(--warn); }
/* PB 档次、3 年低点 */
.zpill.z-tier { background: var(--accent-soft); color: var(--accent); }
.zpill.z-tier.t-1 { background: var(--accent); color: var(--accent-ink); }
.zpill.z-tier.t-4 { background: var(--idle-bg); color: var(--muted); }
.zpill.z-low3 { background: var(--buy-bg); color: var(--buy); font-weight: 500; }

/* ======================================================================
   设计 v3 · iOS 风格（手机端，按 iPhone 15 Pro Max 430×932pt 调）
   参照 iOS 系统 App：分组卡片、大标题导航、系统色、圆体数字、发丝分隔线。电脑版不受影响。
   ====================================================================== */
.navbar { display: none; }
/* 原“仅手机” */
  :root {
    --bg: #f2f2f7; --surface: #ffffff; --ink: #000000; --muted: rgba(60, 60, 67, 0.6); --line: rgba(60, 60, 67, 0.18);
    --accent: #007aff; --accent-ink: #ffffff; --accent-soft: rgba(0, 122, 255, 0.12);
    --buy: #248a3d; --buy-bg: rgba(52, 199, 89, 0.15); --sell: #d70015; --sell-bg: rgba(255, 59, 48, 0.12); --idle-bg: rgba(118, 118, 128, 0.12);
    --warn: #c93400; --up: #ff3b30; --down: #34c759; --radius: 12px; --shadow: none;
    --fill: rgba(118, 118, 128, 0.12); --round: ui-rounded, -apple-system, "SF Pro Rounded", "PingFang SC", sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #000000; --surface: #1c1c1e; --ink: #ffffff; --muted: rgba(235, 235, 245, 0.6); --line: rgba(84, 84, 88, 0.6);
      --accent: #0a84ff; --accent-soft: rgba(10, 132, 255, 0.18); --buy: #30d158; --buy-bg: rgba(48, 209, 88, 0.18);
      --sell: #ff6961; --sell-bg: rgba(255, 69, 58, 0.18); --idle-bg: rgba(118, 118, 128, 0.24); --warn: #ffb340; --fill: rgba(118, 118, 128, 0.24);
      --up: #ff453a; --down: #30d158;
    }
  }
  body { font: 17px/1.45 -apple-system, "SF Pro Text", "PingFang SC", sans-serif; letter-spacing: -0.01em;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  #app { gap: 22px; padding-top: env(safe-area-inset-top, 0px); }
  .num { font-family: var(--round); font-variant-numeric: tabular-nums; }

  /* 大标题 + 滚动后出现的毛玻璃小标题栏 */
  .topbar { position: static; margin: 0; padding: 6px 0 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: flex-end; }
  .topbar h1 { font-size: 34px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; }
  .tb-r { gap: 2px; padding-bottom: 4px; }
  .tb-r .share-btn span { display: none; }
  .tb-r .share-btn, .me-btn, .nb-r .share-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: var(--fill); color: var(--accent); }
  .tb-r .share-btn svg, .nb-r .share-btn svg { width: 19px; height: 19px; }
  .me-btn svg { width: 21px; height: 21px; }
  .navbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 40; align-items: center; justify-content: center;
    height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0;
    background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 0.5px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
  body.nav-compact .navbar { opacity: 1; transform: none; pointer-events: auto; }
  .nb-t { font-size: 17px; font-weight: 600; }
  .nb-r { position: absolute; right: 12px; bottom: 4px; display: flex; gap: 6px; }
  .nb-r .share-btn span { display: none; }
  .nb-r .share-btn, .nb-r .me-btn { width: 34px; height: 34px; }

  /* 分组：标题在卡片外，内容在白色圆角卡片里 */
  .block, .intro, .funnel { box-shadow: none; }
  .block { background: transparent; padding: 0; }
  .sec-h { padding: 0 4px; margin-bottom: 6px; align-items: baseline; }
  .sec-h h3 { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
  .sec-h h3 small { font-size: 15px; font-weight: 500; font-family: var(--round); }
  .sec-sub { font-size: 13px; line-height: 1.5; padding: 6px 4px 0; margin: 0; }
  .stocks { background: var(--surface); border-radius: var(--radius); padding-left: 16px; overflow: hidden; }
  .stock { padding: 12px 16px 12px 0; border-bottom: 0.5px solid var(--line); column-gap: 10px; row-gap: 5px; }
  .stock:last-child { border-bottom: 0; }
  .stock:active { background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .stock .s-rank { display: none; }
  .s-name b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
  .s-name small { font-size: 13px; }
  .stock .s-m { font-size: 17px; font-weight: 600; font-family: var(--round); }
  .s-m i { font-size: 12px; color: var(--muted); font-family: -apple-system, "PingFang SC", sans-serif; margin-bottom: 1px; }
  .s-cap { font-size: 13px; font-family: var(--round); }
  .zpill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; letter-spacing: 0; }
  .stock .s-trap { font-size: 13px; line-height: 1.5; padding-left: 1.05em; }
  h4.sub { font-size: 13px; font-weight: 400; color: var(--muted); text-transform: none; padding: 14px 4px 6px; margin: 0; }

  /* 施洛斯简介：一行卡片 */
  .intro { border-radius: var(--radius); }
  .intro summary { padding: 11px 14px; min-height: 60px; }
  .intro-t b { font-size: 17px; font-weight: 600; } .intro-t small { font-size: 13px; }
  .about-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; background: linear-gradient(160deg, #1f3b63, #3a6ea5); color: #fff; letter-spacing: 0.02em; }
  .intro-body { font-size: 15px; padding: 0 16px 16px; }

  /* 筛选漏斗：像“健康”App 的摘要 */
  .funnel { border-radius: var(--radius); padding: 14px 8px 10px; }
  .funnel div b { font-size: 26px; font-weight: 700; font-family: var(--round); letter-spacing: -0.01em; }
  .funnel div span { font-size: 12px; }
  .funnel i { color: var(--muted); opacity: 0.35; }
  .funnel small { font-size: 12px; border-top: 0.5px solid var(--line); }

  /* 筛选栏：iOS 分段控件 + 胶囊按钮 + 搜索框 */
  .fbar { top: calc(44px + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    margin: 0 -16px 8px; padding: 8px 16px 10px; border-bottom: 0; gap: 10px; }
  .seg3 { background: var(--fill); border-radius: 9px; padding: 2px; gap: 0; }
  .seg3 button { font-size: 13px; font-weight: 500; padding: 6px 0; border-radius: 7px; color: var(--ink); }
  .seg3 button.on { background: var(--surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }
  .fbar .chip { font-size: 14px; padding: 6px 13px; border: 0; background: var(--fill); color: var(--ink); font-weight: 500; }
  .fbar .chip.active { background: var(--accent); color: #fff; }
  .fbar select { font-size: 14px; padding: 6px 28px 6px 13px; border: 0; background-color: var(--fill); color: var(--ink); }
  #fq { font-size: 17px; padding: 8px 12px 8px 34px; border: 0; border-radius: 10px; background: var(--fill) no-repeat 10px 50% / 16px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>"); }

  /* 观察池卡片 */
  .pool { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; border: 0; margin-top: 0; }
  .pool + .pool { margin-top: 10px; }
  .pool-px b { font-size: 24px; font-family: var(--round); }
  .levels { background: var(--fill); border-radius: 10px; }
  .levels b { font-size: 17px; font-family: var(--round); } .levels span { font-size: 11px; }
  .pool details summary, .link-btn { font-size: 15px; color: var(--accent); }

  /* 规则卡片、链接 */
  .block > details { background: var(--surface); border-radius: var(--radius); padding: 13px 16px; }
  .block > details summary { font-size: 17px; font-weight: 400; }
  .row-link { background: var(--surface); border-radius: var(--radius); padding: 13px 16px; border-top: 0; margin-top: 10px; font-size: 17px; }
  .footnote { font-size: 12px; line-height: 1.6; color: var(--muted); padding: 0 8px; }
  .empty-t { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; }

  /* 底部弹窗：iOS 页面式 sheet */
  #sheet .backdrop { background: rgba(0, 0, 0, 0.32); }
  #sheet .panel-sheet { border-radius: 14px 14px 0 0; background: var(--bg); padding: 6px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 94vh; }
  #sheet .grab { width: 36px; height: 5px; background: rgba(60, 60, 67, 0.3); margin: 4px auto 10px; }
  #sheet header h2 { font-size: 17px; font-weight: 600; }
  #sheet .close { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--fill); color: var(--muted); font-size: 13px; }
  #sheet .pool-grid { background: var(--surface); border-radius: var(--radius); padding: 12px 6px; }
  #sheet .pool-grid b { font-family: var(--round); font-size: 18px; }
  #sheet h4 { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin: 18px 4px 6px; }
  #sheet .p3, #sheet .facts, #sheet .levels { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; }
  #sheet .facts { padding-left: 30px; }
  #sheet .primary { border-radius: 14px; padding: 15px; font-size: 17px; font-weight: 600; background: var(--accent); margin-top: 16px; }

  /* 提示浮层：毛玻璃胶囊 */
  #toast { background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--ink); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }


/* 性能（10-23）：手机上滚动卡顿的主要来源是两层叠在一起的毛玻璃（顶部小标题栏 + 吸顶筛选栏），
   每滚一帧都要重新模糊下面的内容。筛选栏改成实底，只留小标题栏的毛玻璃；屏幕外的股票行跳过绘制。 */
/* 原“仅手机” */
  .fbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  #plist .stock:not(.head), #tlist .stock { content-visibility: auto; contain-intrinsic-size: auto 104px; }
  #toast { transition: opacity .2s, transform .2s; }


/* 紧凑（10-23 海东：上下间距挤一些）：只收手机端的留白，结构和配色不变 */
/* 原“仅手机” */
  #app { gap: 12px; }
  .topbar { padding-top: 2px; }
  .topbar h1 { font-size: 30px; }
  .tb-r .share-btn, .tb-r .me-btn { width: 34px; height: 34px; }
  .intro summary { padding: 7px 12px; min-height: 0; gap: 10px; }
  .about-badge { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
  .intro-t b { font-size: 16px; } .intro-t small { font-size: 12px; }
  .funnel { padding: 8px 6px 6px; row-gap: 4px; }
  .funnel div b { font-size: 22px; line-height: 1.15; }
  .funnel small { padding-top: 5px; margin-top: 2px; }
  .sec-h { margin-bottom: 2px; }
  .sec-h h3 { font-size: 19px; }
  .sec-sub { padding-top: 4px; font-size: 12px; }
  .fbar { padding: 4px 16px 6px; gap: 6px; margin-bottom: 4px; }
  .seg3 button { padding: 4px 0; }
  .fbar .chip, .fbar select { padding-top: 4px; padding-bottom: 4px; }
  #fq { padding-top: 6px; padding-bottom: 6px; font-size: 16px; }
  .stock { padding: 8px 14px 8px 0; row-gap: 3px; }
  .stock .s-zone { margin-bottom: 0; }
  .s-name b { font-size: 16px; }
  .stock .s-m { font-size: 15px; white-space: nowrap; }
  .s-m i { display: inline; font-size: 11px; margin: 0 3px 0 0; }
  .zpill { padding: 1px 6px; font-size: 11px; }
  h4.sub { padding: 8px 4px 4px; }
  .block > details, .row-link { padding: 10px 14px; }
  .row-link { margin-top: 8px; }
  #sheet h4 { margin: 12px 4px 4px; }
  #sheet .p3, #sheet .facts, #sheet .levels { padding: 9px 12px; }
  #plist .stock:not(.head), #tlist .stock { contain-intrinsic-size: auto 84px; }

/* 筛选项一屏放下（10-23）：四个筛选排成一行，不用再横向滑 */
/* 原“仅手机” */
  .fbar .filters { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; overflow: visible; flex-wrap: nowrap; }
  .fbar .filters .chip { font-size: 13px; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  .fbar .filters select { width: 100%; min-width: 0; font-size: 13px; padding-left: 10px; padding-right: 22px; background-position: right 7px center; text-overflow: ellipsis; }

/* 弹窗左上角“‹ 返回”（10-23 海东要求），iOS 导航栏样式：返回在左、标题居中 */
#sheet header { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; gap: 4px; }
#sheet header h2 { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sheet .sheet-back { justify-self: start; display: inline-flex; align-items: center; gap: 3px; width: auto; height: 34px; padding: 0 8px 0 0; margin-left: -4px;
  background: none; border: 0; border-radius: 0; color: var(--accent); font-size: 17px; font-weight: 400; cursor: pointer; }
#sheet .sheet-back svg { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* 股票行两行排版（10-23 海东：再压缩）：第一行 名称·代码·标签，第二行 四个指标 + 市值；行业放进详情页 */
.s-pills { display: none; }
/* 原“仅手机” */
  .stock.norank { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; row-gap: 2px; padding-top: 7px; padding-bottom: 7px; }
  .stock .s-zone { display: none; }
  .stock .s-name { grid-row: 1; grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
  .stock .s-name b { flex: none; white-space: nowrap; }
  .stock .s-name small { flex: none; white-space: nowrap; }
  .stock .s-ind { display: none; }
  .s-pills { display: flex; gap: 4px; min-width: 0; overflow: hidden; margin-left: 2px; }
  .s-pills .zpill { flex: none; padding: 0 5px; line-height: 17px; }
  .s-pills .s-bad, .s-pills .s-wait { font-size: 11px; white-space: nowrap; }
  .stock .s-m { grid-row: 2; }
  .stock.norank .s-cap { grid-row: 2; grid-column: 5; align-self: center; }
  .stock .s-trap { grid-row: 3; }
  #plist .stock:not(.head), #tlist .stock { contain-intrinsic-size: auto 58px; }

/* 详情页：按规则算的价位紧跟在现价下面，方便对比（10-23） */
#sheet .pool-grid + .levels { margin-top: 8px; }
/* 原“仅手机” */ #sheet .pool-grid + .levels b { font-size: 18px; } 
/* 标签靠右对齐（10-23 海东：放到最后面才整齐） */
/* 原“仅手机” */ .s-pills { margin-left: auto; justify-content: flex-end; flex-shrink: 1; } 
/* 原“仅手机” */ .stock.norank .s-name { grid-column: 1 / -1; } 
/* 我的持仓（10-23）：提醒要醒目——红：到了卖出规则线或不符合最新标准；橙：需要注意；蓝：一般提示 */
.sec-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hold-badge { background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.holds { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius, 12px); overflow: hidden; }
.hold { padding: 9px 14px; border-bottom: 0.5px solid var(--line); cursor: pointer; border-left: 4px solid transparent; }
.hold:last-child { border-bottom: 0; }
.hold.lv-red { border-left-color: #ff3b30; background: color-mix(in srgb, #ff3b30 7%, var(--surface)); }
.hold.lv-orange { border-left-color: #ff9500; background: color-mix(in srgb, #ff9500 7%, var(--surface)); }
.h-top { display: flex; align-items: baseline; gap: 6px; }
.h-top b { font-size: 16px; } .h-top small { color: var(--muted); font-size: 12px; }
.h-px { margin-left: auto; font-weight: 700; font-size: 16px; } .h-px small { font-size: 12px; font-weight: 500; margin-left: 5px; }
.h-mid { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.h-mid b { margin-left: auto; font-size: 15px; } .h-mid b + span { min-width: 4.5em; text-align: right; }
.h-alert { display: flex; gap: 6px; margin: 5px 0 0; font-size: 13px; line-height: 1.45; font-weight: 600; }
.h-alert i { font-style: normal; flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; margin-top: 1px; }
.h-alert.a-red { color: #d70015; } .h-alert.a-red i { background: #ff3b30; }
.h-alert.a-orange { color: #c93400; } .h-alert.a-orange i { background: #ff9500; }
.h-alert.a-blue { color: var(--muted); font-weight: 400; } .h-alert.a-blue i { background: #8e8e93; }
.alerts li.a-red { color: #d70015; font-weight: 600; } .alerts li.a-orange { color: #c93400; font-weight: 600; }
.zpill.z-held { background: #ff9500; color: #fff; }
.trows { list-style: none; padding: 0; margin: 0; }
.trow { display: grid; grid-template-columns: 6.5em 3em 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; font-size: 14px; border-bottom: 0.5px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.tform { display: grid; gap: 12px; }
.tform label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.tform input { font-size: 17px; padding: 10px 12px; border-radius: 10px; border: 0; background: var(--surface); color: var(--ink); }
#sheet .pool-act { margin-top: 14px; } #sheet .pool-act .primary { margin-top: 0; }
#sheet .biz { background: var(--surface); border-radius: var(--radius, 12px); padding: 9px 12px; margin: 0; font-size: 14px; line-height: 1.6; }
/* 已实际买入的股票：在名单里排最前，橙色竖条 + 淡底区分 */
.stock.held { background: color-mix(in srgb, #ff9500 8%, var(--surface)); box-shadow: inset 4px 0 0 #ff9500; }
/* 原“仅手机” */ .stocks .stock.held { margin-left: -16px; padding-left: 16px; } 
/* 记买卖：按“手”加减（10-23） */
.lots { display: grid; gap: 4px; }
.lots-l { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 52px 1fr auto 52px; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 6px; }
.stepper button { height: 44px; border: 0; border-radius: 10px; background: var(--fill, #e9e9ee); color: var(--accent); font-size: 26px; font-weight: 500; line-height: 1; padding: 0; cursor: pointer; }
.stepper button:active { opacity: 0.6; }
.stepper input { text-align: center; font-size: 22px; font-weight: 700; border: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; padding: 4px 0; font-family: var(--round, inherit); }
.stepper span { font-size: 15px; color: var(--muted); }
/* 已买入：名单里标“持有”（固定在最右，其他行留同宽空位保证对齐）、市值位换盈亏、重要提醒一行 */
.zpill.z-held { background: #ff9500; color: #fff; }
.zpill.z-held.ph { visibility: hidden; }
.stock .s-alert { grid-column: 1 / -1; grid-row: 3; margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.stock .s-alert.a-red { color: #d70015; } .stock .s-alert.a-orange { color: #c93400; }
.stock b.s-cap { font-size: 14px; font-weight: 700; }
/* 已持有：卖出计划 */
.sellplan { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius, 12px); overflow: hidden; }
.sellplan li { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 8px; align-items: baseline; padding: 9px 12px; border-bottom: 0.5px solid var(--line); font-size: 14px; }
.sellplan li:last-child { border-bottom: 0; }
.sellplan b { font-size: 17px; } .sellplan em { font-style: normal; color: var(--muted); font-size: 13px; }
.sellplan li.hit { background: color-mix(in srgb, #ff3b30 8%, var(--surface)); } .sellplan li.hit em { color: #d70015; font-weight: 700; }
.stock .s-alert.a-next { color: var(--muted); font-weight: 500; }
/* 名单行显示现价（10-23 海东：股价没显示）：按今天涨跌着色，小字是涨跌幅 */
.stock .s-m.m0 small { font-size: 0.72em; font-weight: 500; margin-left: 3px; }
.stock .s-m.m0.up { color: var(--up, #e5322d); } .stock .s-m.m0.down { color: var(--down, #12a150); }
.stock .s-m.m0.flat { color: var(--ink); }
/* 原“仅手机” */
  .stock.norank { grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)) auto; column-gap: 6px; }
  .stock.norank .m0 { grid-column: 1; } .stock.norank .m1 { grid-column: 2; } .stock.norank .m2 { grid-column: 3; } .stock.norank .m3 { grid-column: 4; } .stock.norank .m4 { grid-column: 5; }
  .stock.norank .s-cap { grid-column: 6; }
  .stock .s-m.m0 { grid-row: 2; }
  .stock .s-m.m0 i { display: none; }
  .stock .s-m { font-size: 14.5px; }

/* 原“仅手机” */
  .stock.norank { grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr)); }
  .stock.norank .s-cap { display: none; }
  .stock .s-alert b { font-weight: 700; }

/* 原“仅手机” */
  .stock.norank { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); column-gap: 4px; }
  .s-m i { margin-right: 2px; }

/* 筛选按钮 + 筛选弹窗（10-23） */
#screen .sec-h { display: flex; align-items: center; gap: 8px; }
#screen .sec-h h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fmenu { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--fill, #e9e9ee); color: var(--accent); font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.fmenu svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fbadge { background: var(--accent); color: #fff; font-size: 11px; min-width: 17px; height: 17px; line-height: 17px; border-radius: 999px; text-align: center; padding: 0 4px; }
.fbadge[hidden] { display: none; }
.fsheet .seg3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.fchips { display: flex; gap: 8px; }
.fchips .chip { font-size: 15px; padding: 8px 14px; border: 0; background: var(--surface); color: var(--ink); border-radius: 999px; }
.fchips .chip.active { background: var(--accent); color: #fff; }
.fsheet select { width: 100%; font-size: 16px; padding: 11px 12px; border: 0; border-radius: 12px; background-color: var(--surface); color: var(--ink); }
.fsorts { display: grid; background: var(--surface); border-radius: var(--radius, 12px); overflow: hidden; }
.fsorts button { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 0; border-bottom: 0.5px solid var(--line); background: none; padding: 11px 14px; font-size: 16px; color: var(--ink); cursor: pointer; }
.fsorts button:last-child { border-bottom: 0; }
.fsorts button.on { color: var(--accent); font-weight: 600; } .fsorts i { font-style: normal; }
.fsheet .pool-act { margin-top: 16px; }
.fsheet #hadd { margin-top: 10px; }
/* 重要提醒弹窗（iOS alert 样式） */
#apop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.apop-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.apop { position: relative; width: min(340px, 100%); max-height: 80vh; overflow: auto; background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); text-align: center; animation: apop-in .2s ease-out; }
@keyframes apop-in { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.apop h2 { font-size: 17px; font-weight: 700; margin: 18px 16px 8px; }
.apop ul { list-style: none; margin: 0; padding: 0 14px; text-align: left; }
.apop li { padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; cursor: pointer; }
.apop li.a-red { background: color-mix(in srgb, #ff3b30 10%, var(--surface)); } .apop li.a-orange { background: color-mix(in srgb, #ff9500 10%, var(--surface)); }
.apop li b { font-size: 15px; } .apop li .num { color: var(--muted); font-size: 13px; }
.apop li p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.apop li.a-red p { color: #d70015; } .apop li.a-orange p { color: #c93400; }
.apop-note { font-size: 12px; color: var(--muted); margin: 4px 16px 12px; }
.apop-btns { border-top: 0.5px solid var(--line); }
.apop-btns button { width: 100%; border: 0; background: none; color: var(--accent); font-size: 17px; font-weight: 600; padding: 13px; cursor: pointer; }
/* 规则来源分组（10-23） */
h4.rg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; }
h4.rg small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: var(--muted); }
.rtag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; color: #fff; }
.rt-施洛斯 { background: #1f3b63; } .rt-资料 { background: #8e8e93; } .rt-后加 { background: #ff9500; }
/* 首页不显示工具名（10-23 海东）：顶部只留右上角的分享、我的 */
/* 原“仅手机” */
  .topbar { justify-content: flex-end; min-height: 0; padding-top: 4px; }
  .topbar .tb-r { padding-bottom: 0; }

/* 三页 + 底部标签栏（10-23 海东：内容太多，分页展示：持有 / 选股 / 更多） */
#app[data-pg="held"] .pg:not(.pg-held), #app[data-pg="pick"] .pg:not(.pg-pick), #app[data-pg="more"] .pg:not(.pg-more) { display: none; }
#app:not([data-pg]) .pg:not(.pg-held) { display: none; }
.pg { display: grid; gap: 12px; min-width: 0; }
/* 原“仅手机” */
  #tabs { display: flex !important; background: color-mix(in srgb, var(--surface) 97%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0.5px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  #tabs[hidden], body.reading #tabs, body[data-view="auth"] #tabs { display: none !important; }
  #tabs a { color: var(--muted); font-size: 10.5px; height: 50px; }
  #tabs a.active { color: var(--accent); }
  body { padding-bottom: calc(50px + 20px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(50px + 16px + env(safe-area-inset-bottom, 0px)); }

/* 持有页里全是已持有的：不再重复“持有”标签和橙色底 */
#hlist .zpill.z-held { display: none; }
#hlist .stock.held { background: none; box-shadow: none; margin-left: 0; padding-left: 0; }
/* 分页容器的列不能被内容撑宽（窄屏时漏斗、长段落会横向溢出） */
.pg { grid-template-columns: minmax(0, 1fr); }
.pg > * { min-width: 0; }
/* 窄屏（< 400px，如内置浏览器、小屏手机）：现价旁的涨跌幅不显示（现价已按涨跌着色），指标间留出空隙 */
@media (max-width: 399px) {
  .stock .s-m.m0 small { display: none; }
  .stock.norank { column-gap: 8px; grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 1fr)); }
  .stock .s-m { font-size: 14px; }
  .s-m i { font-size: 10.5px; }
}
/* 五个指标按内容长短分配列宽（股息、距低带 % 最长），窄屏也放得下且上下对齐 */
/* 原“仅手机” */
  .stock.norank { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.85fr) minmax(0, 1.2fr) minmax(0, 1.25fr); column-gap: 6px; }

@media (max-width: 399px) {
  .stock.norank { column-gap: 4px; }
  .stock .s-m { font-size: 13.5px; }
}
@media (min-width: 400px) {
  .stock.norank { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.2fr); }
}
/* 左上角菜单按钮：不单独占行，和每页第一行并排（10-23） */
.menu-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fill, #e9e9ee); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.toprow { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.sec-h > .menu-btn { margin-right: 4px; }
/* 原“仅手机” */
  .navbar, .topbar { display: none !important; }
  #app { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* 菜单页：iOS 分组列表 */
.menu-list { list-style: none; margin: 0 0 14px; padding: 0; background: var(--surface); border-radius: var(--radius, 12px); overflow: hidden; }
.menu-list li + li { border-top: 0.5px solid var(--line); }
.menu-list a, .menu-list button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; width: 100%; padding: 13px 16px; border: 0; background: none;
  color: var(--ink); text-decoration: none; font-size: 17px; text-align: left; cursor: pointer; }
.menu-list small { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
.menu-list i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--muted); font-size: 20px; }
/* 原“仅手机” */ .fbar { top: env(safe-area-inset-top, 0px); } 
/* 白名单、邀请、iPhone 添加到桌面（10-23） */
.install-steps { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; text-align: left; }
.ios-ico { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth.welcome { text-align: center; } .auth.welcome h3 { margin: 18px 0 4px; font-size: 17px; }
.auth.welcome .primary.block { display: block; margin-top: 18px; text-align: center; padding: 14px; border-radius: 14px; text-decoration: none; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 0.5px solid var(--line); }
.flist li:last-child { border-bottom: 0; }
.flist b { display: block; font-size: 15px; word-break: break-all; } .flist small { color: var(--muted); font-size: 12.5px; }
.fbtns { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.linkbox { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 13px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.fnote { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.msgbox { white-space: pre-wrap; background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; user-select: all; -webkit-user-select: all; font-family: inherit; }
#sheet .primary.block { width: 100%; margin-top: 10px; }
/* 施洛斯简介副标题完整显示（10-23 海东：被截断了），放不下就换行 */
.intro-t small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
.intro-t b { color: var(--ink); }
.fresh { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
/* 菜单按钮去掉灰色圆底，像 iOS 导航栏的图标按钮一样轻（10-23 海东：缺少美感） */
.menu-btn { background: none; width: 30px; height: 36px; border-radius: 8px; color: var(--ink); justify-items: start; }
.menu-btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
.menu-btn:active { background: var(--fill, #e9e9ee); }
.toprow { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.sec-h > .menu-btn { width: 26px; margin-right: 6px; }
/* 标题行：菜单按钮 + 标题靠左，右边按钮（筛选等）靠右 */
.sec-h > .menu-btn ~ h3 { margin-right: auto; }

/* “我的”标签页（10-23）：顶部账号，下面是分组菜单 */
.me-head { display: flex; align-items: center; gap: 12px; padding: 8px 4px 2px; }
.me-ava { width: 52px; height: 52px; border-radius: 50%; background: var(--fill, #e9e9ee); color: var(--accent); display: grid; place-items: center; flex: none; }
.me-ava svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.me-head b { display: block; font-size: 18px; word-break: break-all; } .me-head small { color: var(--muted); font-size: 13px; }
#app > .menu-list { margin: 0; }
/* 持有页分组标题（10-23 海东：“已持有”这一行丑）：iOS 设置页式的灰色小字，和卡片内文字左对齐；右边是需要注意的提醒数 */
.ghead { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 16px 6px; font-size: 13px; color: var(--muted); }
.ghead span { font-weight: 600; letter-spacing: 0.02em; } .ghead b { font-weight: 500; }
.ghead em { font-style: normal; font-weight: 600; color: #d70015; }
.ghead em:empty { display: none; }
/* 提示行一行放下 */
.stock .s-alert.a-next { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock .s-alert .gap { color: var(--muted); font-weight: 400; }
/* 左右滑动切页（10-23）：四页都在 DOM 里，拖动时把相邻页摆在旁边（.peek）跟着一起移动 */
#app { position: relative; transition: none; }
#app[data-pg="me"] .pg:not(.pg-me) { display: none; }
#app[data-pg="home"] .pg:not(.pg-home) { display: none; }  /* 10-23 补：之前首页下面会接着显示其它四页 */
#app .pg.peek { display: grid !important; position: absolute; width: 100%; pointer-events: none; }
html, body { overflow-x: clip; }
.pg-me { gap: 14px; }
/* ===== 两层分类（10-23，学雪球）：页头 = 搜索框 + 提醒铃铛 + 顶部标签；左右滑切顶部标签 ===== */
.phead { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: 0 -16px; padding: calc(env(safe-area-inset-top, 0px) + 6px) 16px 0; }
.gbar { display: flex; align-items: center; gap: 10px; }
.gsearch { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 19px; background: var(--fill, #e9e9ee); color: var(--muted); font-size: 15px; text-align: left; cursor: pointer; }
.gsearch svg, .gbell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gbell { position: relative; width: 38px; height: 38px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.gbell svg { width: 23px; height: 23px; }
.gbadge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-weight: 700; }
.gbadge[hidden] { display: none; }
.subtabs { display: flex; align-items: center; gap: 4px; margin-top: 6px; border-bottom: 0.5px solid var(--line); }
.st-scroll { flex: 1; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.st-scroll::-webkit-scrollbar { display: none; }
.subtabs [data-sub] { flex: none; position: relative; border: 0; background: none; padding: 8px 0 10px; font-size: 16px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.subtabs [data-sub].on { color: var(--ink); font-weight: 700; }
.subtabs [data-sub].on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--accent); }
.st-n { font-size: 11px; margin-left: 2px; color: var(--muted); font-weight: 500; vertical-align: 1px; }
.st-n:empty { display: none; }
.st-filter { position: relative; flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.st-filter svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.st-filter .fbadge { position: absolute; top: 3px; right: 1px; }
.spanes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.spanes > .sp { display: none; min-width: 0; }
.spanes > .sp.on { display: grid; gap: 12px; }
.spanes > .sp.peek { display: grid !important; gap: 12px; position: absolute; top: 0; width: 100%; pointer-events: none; }
.pg-held, .pg-pick, .pg-more { gap: 10px; }
.rcard h4 { margin: 0 0 6px; font-size: 16px; }
.about-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.about-h b { display: block; font-size: 17px; } .about-h small { color: var(--muted); font-size: 13px; }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 0.5px solid var(--line); cursor: pointer; }
.alist li:last-child { border-bottom: 0; }
.alist li > i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #8e8e93; }
.alist li.a-red > i { background: #ff3b30; } .alist li.a-orange > i { background: #ff9500; }
.alist b { font-size: 15px; } .alist p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.alist li.a-red p { color: #d70015; font-weight: 600; } .alist li.a-orange p { color: #c93400; font-weight: 600; }
#sq { width: 100%; font-size: 17px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); margin-bottom: 10px; }
.sres-x { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
/* 原“仅手机” */ body[data-view="pick"] #app { padding-top: 0; } 
.st-scroll { gap: 15px; } .subtabs [data-sub] { font-size: 15px; }
/* ===== 首页（10-23） ===== */
.pg-home { gap: 10px; }
.pg-home .phead { padding-bottom: 8px; }
.hm-today { display: grid; gap: 10px; }
.hm-idx { display: flex; align-items: baseline; gap: 8px; }
.hm-idx span { font-size: 14px; color: var(--muted); } .hm-idx b { font-size: 26px; font-weight: 700; font-family: var(--round, inherit); } .hm-idx em { font-style: normal; font-size: 15px; font-weight: 600; }
.hm-stat { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: var(--bg); border-radius: 12px; padding: 8px 0; }
.hm-stat b { display: block; font-size: 20px; font-weight: 700; } .hm-stat span { font-size: 12px; color: var(--muted); }
.hm-note { margin: 0; font-size: 12px; color: var(--muted); }
.hm-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.hm-h h3 { margin: 0; font-size: 17px; }
.hm-more { font-size: 14px; color: var(--accent); text-decoration: none; }
.hm-hold { list-style: none; margin: 0; padding: 0; }
.hm-hold li { display: grid; grid-template-columns: minmax(0, 1fr) 6.2em 4.6em 4.4em; gap: 6px; align-items: baseline; padding: 9px 0; border-bottom: 0.5px solid var(--line); cursor: pointer; font-size: 15px; }
.hm-hold li:last-child { border-bottom: 0; }
.hm-hold b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-hold span { text-align: right; font-weight: 600; } .hm-hold small { font-size: 11px; margin-left: 3px; font-weight: 500; }
.hm-hold .hm-gap { color: var(--muted); font-weight: 500; font-size: 13px; }
.hm-legend { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); text-align: right; }
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li + li { border-top: 0.5px solid var(--line); }
.nlist a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.nlist b { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; }
.nlist small { font-size: 12px; color: var(--muted); } .nlist em { font-style: normal; color: var(--accent); }
.nsec .hm-h span { font-size: 14px; font-weight: 600; }
.pg-home .alist li { padding: 9px 0; }
/* 首页简化（10-23）：持仓行有红/橙提醒时左侧一道色条 */
.hm-hold li.a-red { box-shadow: inset 3px 0 0 #ff3b30; padding-left: 8px; } .hm-hold li.a-orange { box-shadow: inset 3px 0 0 #ff9500; padding-left: 8px; }
.intro-body .hm-more { display: inline-block; margin-top: 6px; }
/* 首页“持仓企业年报”（10-23）：每只一行摘要，点开近 5 年 */
.anns { display: grid; }
.ann { border-bottom: 0.5px solid var(--line); }
.ann:last-child { border-bottom: 0; }
.ann summary { list-style: none; cursor: pointer; padding: 10px 0; display: grid; gap: 3px; }
.ann summary::-webkit-details-marker { display: none; }
.ann-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ann-t b { font-size: 16px; } .ann-t small { font-size: 12px; color: var(--muted); }
.ann-s { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink); }
.ann em { font-style: normal; font-size: 11.5px; margin-left: 3px; }
.ann-tb { width: 100%; border-collapse: collapse; font-size: 13px; margin: 2px 0 6px; }
.ann-tb th { font-weight: 500; color: var(--muted); font-size: 11.5px; text-align: right; padding: 4px 0; }
.ann-tb th:first-child, .ann-tb td:first-child { text-align: left; }
.ann-tb td { text-align: right; padding: 5px 0; border-top: 0.5px solid var(--line); white-space: nowrap; }
.ann-tb td em { display: block; margin: 0; }
.ann-x { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.hm-h .hint { font-size: 12px; }
/* 年报卡片：白底分组、名字用正文色、去掉通用折叠框的小箭头，改成右侧一个淡箭头 */
.anns { background: var(--surface); border-radius: var(--radius, 12px); padding: 0 14px; }
.ann summary { color: var(--ink); position: relative; padding-right: 18px; }
.ann summary::after { content: '›' !important; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0 !important; width: auto !important; height: auto !important;
  color: var(--muted); font-size: 18px; transition: transform .15s; }
.ann[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.ann summary::before { display: none !important; }

/* ======================================================================
   电脑版（10-23 海东：参考雪球网页版单独设计；只借鉴布局和样式，不加没有的内容）
   顶部固定白色导航栏；内容居中两栏：左边主内容 + 右边 320px 小模块；股票详情从右侧滑出
   ====================================================================== */
.d-only, .side { display: none; }
/* ===== 心路历程（10-23，参照雪球发帖框） ===== */
.notes-sec { display: grid; gap: 10px; }
.composer { background: var(--surface); border-radius: 12px; padding: 10px 12px 8px; display: grid; gap: 6px; }
.composer textarea { width: 100%; border: 0; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.55; color: var(--ink); min-height: 44px; outline: none; padding: 0; }
.cbar { display: flex; align-items: center; gap: 8px; }
.cstock { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px 2px; cursor: pointer; }
.cstock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ctag { flex: 1; min-width: 0; }
.chip-s { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 6px; padding: 2px 6px; }
.chip-s button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.cpost { margin-left: auto; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; padding: 7px 18px; cursor: pointer; }
.cpost:disabled { background: color-mix(in srgb, var(--accent) 35%, #fff); cursor: default; }
.notes { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 12px; }
.notes li { padding: 11px 14px; border-bottom: 0.5px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.nh { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ntag { border: 0; background: none; color: var(--accent); font-size: 13px; padding: 0; cursor: pointer; }
.nmore { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; letter-spacing: 1px; padding: 0 2px; cursor: pointer; }
.nb { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.65; color: var(--ink); }
.snotes { display: grid; gap: 8px; margin-top: 6px; }
.snotes .composer, .snotes .notes { background: var(--surface); }
#nsq { width: 100%; font-size: 16px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
#nedit { width: 100%; font: inherit; font-size: 16px; line-height: 1.6; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--surface); }

/* ======================================================================
   电脑版 v2（10-23 海东：完全照雪球网页版的布局）：蓝色顶栏；三栏 = 左栏（头像、记一笔、导航）+ 中间 + 右栏
   ====================================================================== */
.lnav, .dhome-wrap { display: none; }
/* ===== 【ChatGPT V2】10-23：来源标签、三套估值表、待核验列表 ===== */
.rt-ChatGPT { background: #10a37f; }
small.rtag, span.rtag { display: inline-block; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 6px; vertical-align: 2px; }
.vtbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 2px; }
.vtbl th, .vtbl td { padding: 6px 4px; text-align: right; border-bottom: 0.5px solid var(--line); white-space: nowrap; }
.vtbl th { font-size: 12px; color: var(--muted, #8e8e93); font-weight: 500; }
.vtbl th:first-child, .vtbl td:first-child { text-align: left; }
.vtbl td small { color: var(--muted, #8e8e93); font-size: 11px; }
.plist-pend { list-style: none; margin: 0; padding: 0; }
.plist-pend > li { padding: 10px 2px; border-bottom: 0.5px solid var(--line); cursor: pointer; }
.plist-pend > li > div { display: flex; align-items: baseline; gap: 6px; }
.plist-pend > li > div span { margin-left: auto; font-size: 14px; }
.plist-pend .facts { margin: 4px 0 0; }
#sheet .vtbl { background: var(--surface); border-radius: var(--radius, 12px); overflow: hidden; }
#sheet .vtbl th:first-child, #sheet .vtbl td:first-child { padding-left: 12px; }
#sheet .vtbl th:last-child, #sheet .vtbl td:last-child { padding-right: 12px; }
#sheet .vtbl tr:last-child td { border-bottom: 0; }
/* 10-23 海东：手机端首页不要心路历程模块（电脑首页保留，同一块内容） */
/* 原“仅手机” */ .pg-home > .notes-sec { display: none; } 
/* ===== 手机首页 v4（10-23 晚海东：重做、不看年报）：需要处理 / 今日筛选 / 施洛斯顺序前 5 / 简介 ===== */
.hm-todo, .hm-fun, .hm-top, .hm-none { background: var(--surface); border-radius: 12px; }
.hm-none { margin: 0; padding: 13px 14px; font-size: 15px; color: var(--muted); }
.hm-none .ok { color: #34c759; font-style: normal; font-weight: 700; margin-right: 4px; }
.hm-todo { list-style: none; margin: 0; padding: 2px 14px; }
.hm-todo li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 0.5px solid var(--line); cursor: pointer; }
.hm-todo li:last-child { border-bottom: 0; }
.hm-todo li > i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #8e8e93; }
.hm-todo li.a-red > i { background: #ff3b30; } .hm-todo li.a-orange > i { background: #ff9500; }
.hm-todo li b { font-size: 15px; } .hm-todo li p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.hm-todo li.a-red p { color: #d70015; } .hm-todo li.a-orange p { color: #c93400; }
.hm-fun { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; }
.hm-fun > div { flex: 1; text-align: center; min-width: 0; }
.hm-fun > div b { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
.hm-fun > div span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hm-fun > div.on b { color: var(--accent); }
.hm-fun > i { font-style: normal; color: #c7c7cc; font-size: 15px; }
.hm-diff { margin: 8px 2px 0; font-size: 14px; line-height: 1.5; }
.hm-diff span { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 5px; margin-right: 6px; }
.hm-diff span.up { color: #d70015; background: rgba(255, 59, 48, 0.1); } .hm-diff span.down { color: #248a3d; background: rgba(52, 199, 89, 0.12); }
.hm-sec > .hm-more { display: inline-block; margin: 8px 2px 0; }
.hm-top { list-style: none; margin: 0; padding: 0 14px; }
.hm-top li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--line); cursor: pointer; }
.hm-top li:last-child { border-bottom: 0; }
.hm-top li > em { flex: none; width: 18px; font-style: normal; font-weight: 700; color: var(--muted); text-align: center; }
.hm-top li:nth-child(-n+3) > em { color: #ff9500; }
.hm-top li > div { flex: 1; min-width: 0; }
.hm-top li > div b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-top li > div small { font-size: 12px; color: var(--muted); }
.hm-top .hm-px { flex: none; width: 4.6em; text-align: right; }
.hm-top .hm-px b { display: block; font-size: 16px; } .hm-top .hm-px small { font-size: 12px; color: var(--muted); }
.pg-home > .intro { margin-bottom: 2px; }
/* ===== 10-23 晚海东：不要电脑版，电脑上也显示手机版——居中成一条手机宽度（480px） ===== */
@media (min-width: 520px) {
  html { background: color-mix(in srgb, var(--bg) 88%, #000); }
  body { max-width: 480px; margin-left: auto; margin-right: auto; min-height: 100vh; background: var(--bg); box-shadow: 0 0 0 0.5px var(--line); }
  #tabs, .navbar, #sheet .panel-sheet { left: calc(50% - 240px); right: calc(50% - 240px); }
  .fab { right: calc(50% - 240px + 18px); }
}
/* ===== 手机首页 v5（10-23 晚海东：三块统一）：同一种卡片，标题在卡片里；颜色只用在圆点、小标签和大数字 ===== */
.pg-home { gap: 12px; }
.hcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px 12px; }
.hc-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; }
.hc-h h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.hc-h > span, .hc-h > a { font-size: 13px; color: var(--muted); text-decoration: none; }
.hc-h > a i, .hc-more i { font-style: normal; margin-left: 2px; color: #c7c7cc; }
.hc-hero { display: flex; align-items: baseline; gap: 6px; }
.hc-hero b { font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--accent); letter-spacing: -0.02em; }
.hc-hero span { font-size: 16px; font-weight: 600; }
.hc-fun { margin: 4px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-fun i { font-style: normal; color: #c7c7cc; margin: 0 6px; }
.hc-list { margin: 10px -14px 0; border-top: 0.5px solid var(--line); }
.hc-row { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 0.5px solid var(--line); color: var(--ink); text-decoration: none; cursor: pointer; min-width: 0; }
.hc-row:last-child { border-bottom: 0; }
.hc-tag { flex: none; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.hc-row.up .hc-tag { color: #d70015; background: rgba(255, 59, 48, 0.1); }
.hc-row.down .hc-tag { color: #248a3d; background: rgba(52, 199, 89, 0.12); }
.hc-row.pend .hc-tag { color: #c93400; background: rgba(255, 149, 0, 0.12); }
.hc-row > b { flex: none; font-size: 15px; min-width: 1.6em; }
.hc-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-chev { flex: none; font-style: normal; color: #c7c7cc; font-size: 17px; transition: transform 0.2s; }
div.hc-row.open { align-items: flex-start; }
div.hc-row.open .hc-txt { white-space: normal; line-height: 1.5; }
div.hc-row.open .hc-chev { transform: rotate(90deg); }
.hc-foot { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.hc-todo { list-style: none; margin: 0 -14px; padding: 0; }
.hc-todo li { display: flex; gap: 10px; padding: 10px 14px; border-top: 0.5px solid var(--line); cursor: pointer; }
.hc-todo li:first-child { border-top: 0; }
.hc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #8e8e93; }
.hc-todo li.a-red .hc-dot { background: #ff3b30; } .hc-todo li.a-orange .hc-dot { background: #ff9500; }
.hc-todo li > div { flex: 1; min-width: 0; }
.hc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.hc-name b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-pill { flex: none; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.hc-todo li.a-red .hc-pill { color: #d70015; background: rgba(255, 59, 48, 0.1); }
.hc-todo li.a-orange .hc-pill { color: #c93400; background: rgba(255, 149, 0, 0.12); }
.hc-desc { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-more { display: block; margin: 4px -14px -12px; padding: 11px 14px; border-top: 0.5px solid var(--line); font-size: 14px; color: var(--accent); text-decoration: none; }
.hc-ok, .hc-empty { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.hc-ok i { font-style: normal; color: #34c759; font-weight: 700; margin-right: 6px; }
.pg-home > .intro .intro-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pg-home > .intro .intro-t { min-width: 0; }
.hc-tag { min-width: 3.9em; text-align: center; box-sizing: border-box; }
/* ===== 【后加·Claude 7 条】10-24：留意标签、PB 低位、行业分布 ===== */
.zpill.z-watch { color: #c93400; background: rgba(255, 149, 0, 0.12); }
.zpill.z-pbl { color: #0a7d55; background: rgba(52, 199, 89, 0.12); }
.secbar { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 10px; }
.secbar-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.secbar-h b { font-size: 14px; } .secbar-h .muted { font-size: 12px; color: var(--muted); }
.secbar p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.secbar .hint { font-size: 12px; }
/* 【后加】AI 颠覆风险标签（10-24） */
.zpill.z-ai { color: #6e3fc9; background: rgba(140, 90, 230, 0.12); }
.zpill.z-ai.hi { color: #fff; background: #8e5be8; }
/* ===== 攻守策“攻”模块（10-24，彼得·林奇） ===== */
#app[data-pg="gong"] .pg:not(.pg-gong) { display: none; }
#app:not([data-pg="gong"]) .pg-gong { display: none; }
.modseg { display: flex; gap: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 9px; padding: 2px; margin: 8px 0 2px; }
.modseg a { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.modseg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.zpill.z-cat { color: #b4530a; background: rgba(255, 149, 0, 0.12); }
.rtag.rt-gong { background: #e8590c; } .rtag.rt-shou { background: #1f3b63; }
.hc-duo { display: flex; gap: 10px; }
.hc-duo .hc-hero { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 10px; padding: 8px 12px; }
.hc-duo .hc-hero small { flex-basis: 100%; font-size: 12px; color: var(--muted); font-weight: 600; }
.hc-duo .hc-hero b { font-size: 34px; }
.hc-duo .hc-hero.gong { background: rgba(232, 89, 12, 0.07); } .hc-duo .hc-hero.gong b { color: #e8590c; }
.seg2 { display: flex; gap: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 9px; padding: 2px; margin: 4px 0 8px; }
.seg2 button { flex: 1; border: 0; background: none; padding: 7px 0; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg2 button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
/* ===== 手机首页 v6（10-24 海东：按攻守策整体重做） ===== */
.ms-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-tile { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 12px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.ms-tile.shou { background: rgba(31, 59, 99, 0.07); } .ms-tile.gong { background: rgba(232, 89, 12, 0.08); }
.ms-badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ms-tile.shou .ms-badge { background: linear-gradient(160deg, #2d4f80, #1f3b63); } .ms-tile.gong .ms-badge { background: linear-gradient(160deg, #f57c2b, #d9480f); }
.ms-tile b { font-size: 15px; } .ms-tile small { font-size: 12px; color: var(--muted); }
.ms-n { margin-top: 6px; font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.ms-n i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.ms-tile.shou .ms-n { color: #1f3b63; } .ms-tile.gong .ms-n { color: #d9480f; }
.ms-about { display: flex; align-items: center; gap: 14px; margin: 10px 2px 0; font-size: 13px; }
.ms-about a { color: var(--accent); text-decoration: none; } .ms-about span { margin-left: auto; color: var(--muted); font-size: 12px; }
.hc-list.flush { margin-top: 2px; border-top: 0; }
.hc-row.gong .hc-tag { color: #b4530a; background: rgba(255, 149, 0, 0.12); }
.hc-tag { min-width: 5.6em; }
.hc-mod { flex: none; font-size: 11px; font-weight: 700; color: #1f3b63; background: rgba(31, 59, 99, 0.09); padding: 1px 5px; border-radius: 5px; margin-left: 6px; }
.hc-mod.gong { color: #d9480f; background: rgba(232, 89, 12, 0.1); }
.hc-name .hc-pill { margin-left: auto; }
@media (prefers-color-scheme: dark) { .ms-tile.shou .ms-n { color: #9dbbe8; } .ms-tile.gong .ms-n { color: #ff9a5a; } }
/* ===== 首页 v7（10-24）：攻守策主卡 ===== */
.gs-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gs-brand img { border-radius: 10px; flex: none; }
.gs-brand h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.06em; }
.gs-brand p { margin: 1px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.gs-date { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--muted); }
.ms-badge { font-size: 15px; }
.ms-n i { font-size: 12px; }
.gs-origin { margin: 10px -14px -12px; border-top: 0.5px solid var(--line); }
.gs-origin summary { list-style: none; display: flex; align-items: center; padding: 11px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gs-origin summary::-webkit-details-marker { display: none; }
.gs-origin summary i { margin-left: auto; font-style: normal; color: #c7c7cc; font-size: 17px; transition: transform 0.2s; }
.gs-origin[open] summary i { transform: rotate(90deg); }
.gs-origin p { margin: 0 14px 10px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.gs-origin p b { color: var(--accent); }
.gs-links { display: flex; gap: 14px; padding-bottom: 4px; }
.gs-links a { font-size: 13px; color: var(--accent); text-decoration: none; }
/* ===== 首页 v8（10-24 海东：对齐、清爽、极简；“攻守策”标题单独设计） ===== */
.pg-home { gap: 12px; }
.gs-hero { padding: 6px 4px 4px; }
.gs-hero h1 { margin: 0; font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif; font-size: 34px; font-weight: 900; letter-spacing: 0.2em; line-height: 1.15; color: var(--ink); }
.gs-hero p { margin: 6px 0 0; font-size: 12.5px; letter-spacing: 0.32em; color: var(--muted); }
.gs-hero p i { font-style: normal; margin: 0 0.15em 0 -0.1em; color: #c7c7cc; }
.gs-hero::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; margin-top: 12px; background: linear-gradient(90deg, #1f3b63 50%, #e8590c 50%); }
/* 守、攻的小标：同一种样式，全首页通用 */
.mk { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-right: 6px; border-radius: 5px; font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 1; }
.mk.s { color: #1f3b63; background: rgba(31, 59, 99, 0.1); }
.mk.g { color: #c2410c; background: rgba(232, 89, 12, 0.11); }
/* 守攻卡：一张白卡两栏，颜色只在小标和大数字 */
.hcard.duo { padding: 0; overflow: hidden; }
.duo-cols { display: grid; grid-template-columns: 1fr 1fr; }
.duo-col { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 13px; color: var(--ink); text-decoration: none; min-width: 0; }
.duo-col + .duo-col { border-left: 0.5px solid var(--line); }
.duo-k { display: flex; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.duo-d { padding-left: 24px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.duo-n { margin-top: 10px; padding-left: 24px; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.duo-n small { margin-left: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.duo-n.s { color: #1f3b63; } .duo-n.g { color: #d9480f; }
.duo-more { border-top: 0.5px solid var(--line); }
.duo-more summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.duo-more summary::-webkit-details-marker { display: none; }
.duo-more summary::after { content: none !important; }
.duo-more summary em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.duo-more summary i { font-style: normal; font-size: 17px; color: #c7c7cc; transition: transform 0.2s; }
.duo-more[open] summary i { transform: rotate(90deg); }
.duo-more p { margin: 0 14px 10px; font-size: 14px; line-height: 1.65; }
.duo-more p b { margin-right: 6px; font-weight: 700; }
.duo-links { display: flex; gap: 16px; padding-bottom: 4px; font-size: 13px; }
.duo-links a { color: var(--accent); text-decoration: none; }
/* 今日变化：固定列宽，所有数字、名单对成一列；不用彩色底 */
.tl { margin: 0 -14px; }
.tl-row { display: grid; grid-template-columns: 6.6em 2.2em minmax(0, 1fr) 12px; align-items: center; column-gap: 8px; padding: 11px 14px; border-top: 0.5px solid var(--line); color: var(--ink); text-decoration: none; cursor: pointer; }
.tl-row:first-child { border-top: 0; }
.tl-k { display: flex; align-items: center; font-size: 14px; white-space: nowrap; }
.tl-n { font-size: 15px; text-align: right; }
.tl-t { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-c { font-style: normal; font-size: 17px; color: #c7c7cc; text-align: right; transition: transform 0.2s; }
div.tl-row.open { align-items: start; }
div.tl-row.open .tl-t { white-space: normal; line-height: 1.55; }
div.tl-row.open .tl-c { transform: rotate(90deg); }
/* 需要处理：小标 + 名字 + 右侧短标签；说明和名字左对齐 */
.td { list-style: none; margin: 0 -14px; padding: 0; }
.td li { padding: 11px 14px; border-top: 0.5px solid var(--line); cursor: pointer; }
.td li:first-child { border-top: 0; }
.td-h { display: flex; align-items: center; margin: 0; min-width: 0; }
.td-h b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-p { margin-left: auto; flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.td li.a-red .td-p { color: #d70015; background: rgba(255, 59, 48, 0.09); }
.td li.a-orange .td-p { color: #b45309; background: rgba(255, 149, 0, 0.12); }
.td-d { margin: 4px 0 0 24px; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .mk.s { color: #9dbbe8; background: rgba(157, 187, 232, 0.15); } .duo-n.s { color: #9dbbe8; }
  .mk.g { color: #ff9a5a; } .duo-n.g { color: #ff9a5a; }
  .gs-hero::after { background: linear-gradient(90deg, #9dbbe8 50%, #ff9a5a 50%); }
}
.gs-hero p i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #c7c7cc; margin: 0 0.75em 0 0.4em; vertical-align: 3px; }
.tl-row { grid-template-columns: 6em 2em minmax(0, 1fr) 12px; }
/* 攻守交叉体检（10-24）：标签用对方模块的颜色 */
.zpill.z-xg { color: #c2410c; background: rgba(232, 89, 12, 0.11); }
.zpill.z-xs { color: #1f3b63; background: rgba(31, 59, 99, 0.1); }
.tl-row.both .tl-k .mk + .mk { margin-left: -2px; }
#sheet .p3 em { font-style: normal; font-size: 12px; }
@media (prefers-color-scheme: dark) { .zpill.z-xs { color: #9dbbe8; background: rgba(157, 187, 232, 0.15); } .zpill.z-xg { color: #ff9a5a; } }
.tl-row { grid-template-columns: 6.5em 2em minmax(0, 1fr) 12px; }
/* ===== 股票行 v2（10-24 海东：对齐、清爽）：三行，数字固定列宽，信号一行小字 ===== */
.stocks .sr { list-style: none; padding: 11px 14px 11px 0; border-bottom: 0.5px solid var(--line); cursor: pointer; }
.stocks .sr:last-child { border-bottom: 0; }
.stocks .sr.held { margin-left: -16px; padding-left: 16px; background: rgba(31, 59, 99, 0.035); }
.sr-1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sr-n { min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-c { flex: none; font-size: 12px; color: var(--muted); }
.sr-h { flex: none; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; background: #48484a; }
.sr-tag { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.sr-tag.s { color: #1f3b63; background: rgba(31, 59, 99, 0.08); }
.sr-tag.g { color: #c2410c; background: rgba(232, 89, 12, 0.1); }
.sr-2 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; column-gap: 6px; align-items: baseline; margin-top: 5px; }
.sr-2 > span { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sr-2 i { margin-right: 3px; font-size: 11px; font-style: normal; font-weight: 400; color: var(--muted); }
.sr-p small { margin-left: 4px; font-size: 11.5px; font-weight: 500; }
.sr-3 { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-3 em { font-style: normal; }
.sr-3 i { margin: 0 5px; font-style: normal; color: #c7c7cc; }
.sr-3 em.w { color: #b45309; }
.sr-3 em.r { color: #d70015; font-weight: 600; }
.sr-3 em.xg { color: #c2410c; font-weight: 600; }
.sr-3 em.xs { color: #1f3b63; font-weight: 600; }
.sr-3 em.up { color: var(--up); } .sr-3 em.down { color: var(--down); }
.sr-f { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* 提醒记录：和首页“需要处理”同一套 */
.td.tdcard { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.td li.a-blue .td-p { color: var(--muted); background: rgba(120, 120, 128, 0.12); }
.td.tdcard .td-d { display: block; -webkit-line-clamp: unset; }
/* 行业分布、林奇漏斗：压成一行，点开看 */
.fold { margin: 0 0 10px; background: var(--surface); border-radius: var(--radius); }
.fold summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 13.5px; cursor: pointer; min-width: 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: none !important; }
.fold summary b { flex: none; font-size: 14px; }
.fold summary span { min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold summary em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: #b45309; }
.fold summary i { flex: none; margin-left: auto; font-style: normal; font-size: 17px; color: #c7c7cc; transition: transform 0.2s; }
.fold[open] summary i { transform: rotate(90deg); }
.fold ol, .fold .fold-b { margin: 0; padding: 0 14px 12px; list-style: none; font-size: 13.5px; }
.fold ol li { display: grid; grid-template-columns: minmax(0, 1fr) 3em; padding: 5px 0; border-top: 0.5px solid var(--line); }
.fold ol li b { text-align: right; font-weight: 600; }
.fold ol li:last-child b { color: #d9480f; }
@media (prefers-color-scheme: dark) {
  .sr-tag.s, .sr-3 em.xs { color: #9dbbe8; } .sr-tag.s { background: rgba(157, 187, 232, 0.15); }
  .stocks .sr.held { background: rgba(157, 187, 232, 0.06); }
}
/* ===== 规则页（10-24 美化）：白卡片、一条一行细线分隔、关键词加粗，来源只在分组标题 ===== */
.pg-more .rcard { background: var(--surface); border-radius: var(--radius); padding: 12px 14px 4px; margin: 0 0 12px; }
.pg-more .rcard h4 { display: flex; align-items: center; margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.pg-more .rcard h4.rg { gap: 6px; }
.pg-more .rcard h4 small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.pg-more .rcard > p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.pg-more .rcard .facts { list-style: none; margin: 0; padding: 0; background: none; }
.pg-more .rcard .facts li { position: static; padding: 9px 0; border-top: 0.5px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink); }
.pg-more .rcard .facts li::before { content: none; display: none; }
.pg-more .rcard .facts li:first-child { border-top: 0; }
.pg-more .rcard .facts li b { font-weight: 700; }
.pg-more > .spanes .hint, .pg-more .hint { padding: 0 4px; }
.pg-more .rcard .facts li { margin: 0; }

/* 美化第 3 步（10-24）：详情页的条目和规则页同一套——白卡片、无圆点、细线分行 */
#sheet .facts { list-style: none; padding: 2px 14px; gap: 0; }
#sheet .facts li { position: static; margin: 0; padding: 9px 0; border-top: 0.5px solid var(--line); font-size: 14px; line-height: 1.6; }
#sheet .facts li::before { content: none; display: none; }
#sheet .facts li:first-child { border-top: 0; }
#sheet .p3 { line-height: 1.9; font-size: 14px; }
#sheet h4 .mk, #sheet h4 .rtag { vertical-align: 1px; margin: 0 2px; }
#sheet h4 + p.small { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; margin: 0; font-size: 14px; line-height: 1.6; }
#sheet h4 + p.small + .facts { margin-top: 8px; }
#sheet .sellplan + p.small { margin: 6px 4px 0; line-height: 1.6; }
#sheet .sellplan + p.small + p.small { margin: 2px 4px 0; line-height: 1.6; }
/* 已买入但不在今天名单里：灰色状态标签，和档位标签并排（10-24 海东：“不在名单”提示不能丢） */
.sr-tag.o { color: var(--muted); background: var(--fill); }
.sr-tag + .sr-tag { margin-left: 6px; }
.sr-3 + .sr-3 { margin-top: 3px; }
/* 规则每条的来源（林奇 / 后加 / ChatGPT）：灰色小字，留着方便回滚，不抢正文（10-24 海东：标签不能丢） */
.facts small.src { margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--fill); white-space: nowrap; }
/* 列宽重分：“税后息”标签放回后不截断（PB、PE 数字短，让出宽度） */
.sr-2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.15fr); column-gap: 4px; }
/* 数字列改成“小标签在上、数字在下”：放得下“税后息”，各列上下对齐（10-24） */
.sr-2 { grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); column-gap: 6px; align-items: end; }
.sr-2 i { display: block; margin: 0 0 1px; line-height: 1.2; }
.sr-2 > span { line-height: 1.25; }
.sr-2 .sr-p i.up { color: var(--up); } .sr-2 .sr-p i.down { color: var(--down); }
/* 10-24 攻降为参考：首页守攻卡下面一行参考链接；攻页顶部一句灰字说明 */
.duo-ref { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-top: 0.5px solid var(--line); font-size: 13.5px; color: var(--muted); text-decoration: none; }
.duo-ref i:last-child { margin-left: auto; font-style: normal; color: #c7c7cc; }
.ref-note { margin: 0 4px 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ===== 名称模块（10-24 晚海东：去掉“攻守策”，口号即名称，单独设计放最上面） =====
   深蓝底卡片；上联“以守为本”宋体大字靠左、配白底守印，下联“以攻求进”小一号靠右、配橙底攻印（守为主、攻为参考）；
   右侧一个极淡的“守”字做水印；最下一行细线隔开的定位小字。 */
.brand { position: relative; overflow: hidden; margin: 2px 0 14px; padding: 20px 20px 14px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2f5689 0%, #1f3b63 55%, #172d4c 100%); box-shadow: 0 6px 20px rgba(23, 45, 76, 0.18); }
.brand-wm { position: absolute; right: -6px; top: -18px; font-style: normal; font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-weight: 900;
  font-size: 148px; line-height: 1; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.brand p { position: relative; margin: 0; }
.brand b { font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif; font-weight: 900; }
.brand-l1 { display: flex; align-items: center; gap: 10px; }
.brand-l1 b { font-size: 32px; letter-spacing: 0.16em; line-height: 1.2; }
.brand-l2 { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px !important; }
.brand-l2 b { font-size: 21px; letter-spacing: 0.3em; margin-right: -0.3em; color: #ffc49e; }
.brand .seal { flex: none; display: inline-grid; place-items: center; border-radius: 6px; font-family: "Songti SC", "STSong", serif; font-weight: 900; line-height: 1; }
.brand .seal.s { width: 30px; height: 30px; font-size: 18px; color: #1f3b63; background: #fff; }
.brand .seal.g { width: 22px; height: 22px; font-size: 13px; color: #fff; background: #e8590c; }
.brand-sub { margin-top: 14px !important; padding-top: 10px; border-top: 0.5px solid rgba(255, 255, 255, 0.16); font-size: 11.5px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.66); }
.brand-sub i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); margin: 0 0.6em; vertical-align: 3px; }
.auth h1.auth-name { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-weight: 900; letter-spacing: 0.12em; }
/* 名称模块底行：宁缺毋滥 + 海东的解读（10-24 晚） */
.brand-sub b { margin-right: 0.8em; padding: 1px 6px; border-radius: 4px; font-family: inherit; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; color: #1f3b63; background: rgba(255, 255, 255, 0.85); }
/* 10-24 晚：首页名称模块在最上面（让出刘海/状态栏），搜索栏在它下面、不吸顶 */
.pg-home .brand { margin-top: calc(env(safe-area-inset-top, 0px) + 10px); }
.pg-home .phead { position: static; padding: 0 16px 12px; }
/* 与施洛斯原版的差异（10-24 晚）：每项两行对照，施洛斯灰、我们正文色；骨架一行、说明一行灰字 */
.sdiff .facts li b { display: block; margin-bottom: 2px; }
.sdiff .df-a, .sdiff .df-b { display: block; }
.sdiff .df-a { color: var(--muted); }
.sdiff .df-keep { color: var(--ink); }
.sdiff .df-note { color: var(--muted); font-size: 12.5px; }

/* ===== 三层判断（10-24 晚）：财务初筛 / 业务复核 / 估值复核 三行，各自结论；下面买入提示；两个可展开详情 ===== */
.tl3 { margin: 12px 0 4px; padding: 4px 14px; border-radius: var(--radius); background: var(--surface); }
.tl3-r { display: grid; grid-template-columns: 4.6em auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; padding: 9px 0; border-top: 0.5px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.tl3-r:first-child { border-top: 0; }
.tl3-k { color: var(--muted); }
.tl3-v { padding: 1px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tl3-v.ok { color: #1a7f37; background: rgba(26, 127, 55, 0.1); }
.tl3-v.w { color: #b45309; background: rgba(180, 83, 9, 0.1); }
.tl3-v.r { color: #d70015; background: rgba(215, 0, 21, 0.08); }
.tl3-v.n { color: var(--muted); background: var(--fill); }
.tl3-t { color: var(--ink); font-size: 12.5px; }
.tl3-buy { margin: 0; padding: 9px 0 10px; border-top: 0.5px solid var(--line); font-size: 13px; line-height: 1.5; }
.tl3-buy.ok { color: #1a7f37; } .tl3-buy.n { color: var(--muted); }
#sheet .dc-fold { margin-top: 8px; }
#sheet .dc-fold h5 { margin: 12px 4px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
#sheet .facts.ev li .ev-m { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ev-k { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: 10.5px; font-weight: 600; }
.ev-k.f { color: #1f3b63; background: rgba(31, 59, 99, 0.08); } .ev-k.g { color: #b45309; background: rgba(180, 83, 9, 0.08); }
#sheet .facts li.lv-r { color: #d70015; } #sheet .facts li.lv-w { color: #8a4b08; }
#sheet .facts li .lvt { margin: 0 6px; font-style: normal; font-size: 11px; color: var(--muted); }
#sheet .facts li b + .lvt { margin-left: 6px; }
.vt { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 12.5px; }
.vt th, .vt td { padding: 7px 8px; border-top: 0.5px solid var(--line); text-align: right; vertical-align: top; }
.vt th { color: var(--muted); font-weight: 500; border-top: 0; }
.vt td:first-child, .vt th:first-child { text-align: left; }
.vt td small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.4; font-family: -apple-system, "PingFang SC", sans-serif; }
.vt tr.sum td { font-weight: 700; }
.vt tr.neg td { color: var(--muted); }

/* 方法论（10-24 晚）：0–7 步闭环，每步“问题 + 做法”；决策行；持仓页组合卡片 */
.method .msteps { list-style: none; margin: 8px 0 6px; padding: 0; }
.method .msteps li { padding: 10px 0; border-top: 0.5px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.method .msteps li:first-child { border-top: 0; }
.method .msteps b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.method .ms-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: #1f3b63; }
.method .ms-w { display: block; margin: 3px 0 2px 28px; color: #1f3b63; font-weight: 600; }
.method .ms-h { display: block; margin-left: 28px; color: var(--muted); font-size: 12.5px; }
.tl3-d { border-top: 0.5px solid var(--line); }
.pfcard { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); }
.pf-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pf-h b { font-size: 15px; } .pf-h span { color: var(--muted); font-size: 13px; }
.pf-l { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.pf-k { display: inline-block; min-width: 4.5em; color: var(--muted); }
.pf-w { color: #b45309; }
.pf-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }

/* 立体方法论图（10-24 晚）：首页“我的选股方法论”卡片 + 方法论页 */
.mcard { padding-bottom: 0; }
.mc-h { display: flex; align-items: baseline; gap: 8px; padding: 13px 14px 2px; color: var(--ink); text-decoration: none; }
.mc-h b { font-size: 15px; } .mc-h span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.mc-h i { margin-left: auto; font-style: normal; color: #c7c7cc; }
.mfig { display: block; width: 100%; height: auto; margin: 2px 0 0; }
.mfig .mf-n { font-size: 12.5px; font-weight: 700; fill: #1c1c1e; }
.mfig .mf-i { font-size: 11px; fill: #1f3b63; }
.mfig .mf-v { font-size: 11px; fill: #6e6e73; }
.mfig .mf-v.hot { fill: #d9480f; font-weight: 700; }
.mfig .mf-loop { font-size: 10px; fill: #d9480f; letter-spacing: 0.06em; }
.mfig .mf-src { font-size: 10.5px; fill: #8e8e93; letter-spacing: 0.04em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mfig .mf-n { fill: #f2f2f7; } :root:not([data-theme="light"]) .mfig .mf-i { fill: #9dbbe8; } }
.method .m-one { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.7; font-weight: 600; color: var(--ink); }
.method .m-creed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.method .m-creed span { padding: 8px 10px; border-radius: 10px; background: var(--fill); font-size: 12px; line-height: 1.5; color: var(--muted); }
.method .m-creed b { display: block; font-size: 13.5px; color: #1f3b63; }
.mfig .mf-t { font-size: 10.5px; font-weight: 400; fill: #8e8e93; }
/* 三层全过（10-24 晚 Hayden）：列表第一行绿色标签；详情页三层结论上方一条绿色横幅 */
.sr-tag.ok { color: #fff; background: #1a7f37; }
.tl3-all { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #1a7f37; background: rgba(26, 127, 55, 0.1); }
.tl3-all i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; color: #fff; background: #1a7f37; }
/* 段永平五问（10-24 晚） */
#sheet .facts.duan li { display: grid; grid-template-columns: 6.5em auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
#sheet .facts.duan li em { font-style: normal; }
#sheet .facts.duan li span { color: var(--muted); font-size: 12.5px; }
.method .ms-by { display: block; margin: 4px 0 0 28px; font-size: 11.5px; color: #8a6d1f; }
/* 市场温度（10-24 晚，马克斯，只作提示） */
.tl-row.temp .tl-t em { margin-right: 6px; padding: 0 6px; border-radius: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; }
.tl-row.temp .tp-h { color: #c2410c; background: rgba(232, 89, 12, 0.1); }
.tl-row.temp .tp-c { color: #1f3b63; background: rgba(31, 59, 99, 0.08); }
.tl-row.temp .tp-n { color: var(--muted); background: var(--fill); }
#sheet p.death { margin: 8px 4px 0; padding: 8px 10px; border-radius: 8px; background: rgba(215, 0, 21, 0.05); color: var(--ink); } #sheet p.death b { display: block; font-size: 12px; color: #b42318; margin-bottom: 2px; }
/* 10-24 深夜：去掉搜索框；铃铛在顶部标签行最右、首页在名称模块右上角 */
.subtabs .st-bell { flex: none; width: 34px; height: 34px; margin-left: 2px; }
.subtabs .st-bell svg { width: 21px; height: 21px; }
.brand .brand-bell { position: absolute; top: 10px; right: 10px; z-index: 2; color: #fff; }
.brand .brand-bell svg { width: 22px; height: 22px; }
.brand-l1 { padding-right: 34px; }

/* 10-25 改名 Hayden 港股通选股策略：英文名一行小字，工具名大字，信条“宁缺毋滥 · 多多益善”降为第二行 */
.brand-ey { font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 4px !important; }
.brand-l1 b { font-size: 29px; letter-spacing: 0.1em; }
.brand-l2 { justify-content: flex-start; gap: 7px; margin-top: 10px !important; }
.brand-l2 b { font-size: 16px; letter-spacing: 0.22em; margin-right: -0.22em; color: #ffc49e; }
.brand-l2 i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 196, 158, 0.6); margin: 0 4px; }
.brand-l2 .seal.s { width: 22px; height: 22px; font-size: 13px; }

/* 10-25 总纲（ChatGPT 建议 6） */
.m-gang { margin: 10px 0 !important; padding: 10px 12px; border-radius: 10px; background: var(--fill, rgba(31, 59, 99, 0.06)); font-size: 13.5px; line-height: 1.6; }
.m-gang b { margin-right: 0.6em; color: var(--brand, #1f3b63); }
.m-gang em { font-style: normal; font-weight: 600; }

/* 10-25 股票详情页右上角分享按钮 */
#sheet header .sheet-share { justify-self: end; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--blue, #007aff); cursor: pointer; }
#sheet header .sheet-share svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#sheet .pool-act a.primary, #sheet .pool-act a.ghost { text-decoration: none; text-align: center; }

/* 10-25 “我的”里的开关：分享图片隐藏持仓信息 */
.menu-list .me-tog { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 16px; cursor: pointer; }
.menu-list .me-tog span { grid-column: 1; }
.menu-list .me-tog small { grid-column: 1; color: var(--muted); font-size: 12px; }
.menu-list .me-tog input { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; accent-color: var(--blue, #007aff); }
.menu-list .me-tog input { -webkit-appearance: none; appearance: none; position: relative; width: 51px; height: 31px; margin: 0; border: 0; border-radius: 16px; background: rgba(120, 120, 128, 0.32); transition: background 0.2s; cursor: pointer; }
.menu-list .me-tog input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.menu-list .me-tog input:checked { background: #34c759; }
.menu-list .me-tog input:checked::before { transform: translateX(20px); }

/* 10-25 卖出四级 */
.exit4 { list-style: none; margin: 0 0 8px; padding: 0; background: var(--surface, #fff); border-radius: 12px; }
.exit4 li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 8px; padding: 10px 12px; border-bottom: 0.5px solid var(--line, rgba(0,0,0,0.08)); font-size: 13px; }
.exit4 li:last-child { border-bottom: 0; }
.exit4 li > b { white-space: nowrap; }
.exit4 li > span { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.exit4 .rtag { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: rgba(0,122,255,0.1); color: #007aff; }

.exit4 em.tl3-v { font-style: normal; }
.snap-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin: 6px 0 12px; }
.snap-add textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 0.5px solid var(--line, rgba(0,0,0,0.12)); background: var(--surface, #fff); }
.facts.snap li b { margin-right: 0.5em; }

/* 10-25 单只评估 */
.evres .evh { margin: 10px 0 6px; } .evres .evh p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.evres .ev-g { margin: 8px 0 2px !important; }
.evl li { display: grid; grid-template-columns: 18px auto 1fr; gap: 6px; align-items: baseline; }
.evl li span { color: var(--muted); text-align: right; }
.evl i { font-style: normal; font-weight: 700; } .evl i.ok { color: #34c759; } .evl i.no { color: #ff3b30; } .evl i.unk { color: #ff9500; }
.evwait { padding: 10px 0; }

/* 备案号（合规展示，2026-11-07 lianjiankeneng.ltd 接入） */
#beian { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 10px; line-height: 1.4; z-index: 4; }
#beian a { color: inherit; text-decoration: none; opacity: .55; }
#tabs:not([hidden]) ~ #beian { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
