/* 见微 v2 —— A 股复盘。--up 红 / --down 绿只表示涨跌；状态色 --ok/--warn/--danger；品牌色青蓝（与门户一致） */
:root {
  /* 默认深色，与门户同一套配色：暗场 + 青蓝渐变品牌色；浅色见下方 [data-theme="light"]；--pt-gold 只给门户的上证曲线 */
  --bg: #05070b; --bg-elev: #0d131f; --bg-sub: #121a29; --bg-hover: #152033;
  --text: #e8edf5; --muted: #8b97ad; --line: rgba(150, 175, 215, .13); --line-strong: rgba(150, 175, 215, .24);
  --brand: #4fc3ff; --brand-soft: rgba(79, 195, 255, .14); --on-brand: #04101f;  /* 品牌色/渐变底上的文字用深色，白字在亮青底上看不清 */
  --up: #ff5a5f; --up-soft: #3a1b1d; --down: #2fbf71; --down-soft: #15301f; --flat: #8b97ad;
  --ok: #2fb5a5; --ok-soft: rgba(47, 181, 165, .14); --warn: #f5b544; --warn-soft: rgba(245, 181, 68, .12); --danger: #ff6b5a; --danger-soft: rgba(255, 107, 90, .12);
  --ma5: #f0b72f; --ma10: #a685ff; --ma20: #5c9cff; --ma60: #ff6fc0;
  --shadow: 0 24px 64px rgba(0, 0, 0, .6);
  --bg-panel: rgba(13, 19, 31, .72);  /* 顶栏、侧栏、手机导航的半透明底 */
  --pt-cyan: #3dd5f3; --pt-blue: #4c7dff; --pt-gold: #f5c26b; --pt-amber: #f08a4b; --pt-grad: linear-gradient(100deg, var(--pt-cyan), var(--pt-blue));
  --pt-serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --radius: 10px; --row: 30px; --side-w: 156px; --top-h: 48px; --detail-w: clamp(420px, 36vw, 640px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* 浅色主题：只覆盖色板，红涨绿跌与品牌青蓝不变（加深以保证白底对比度）；门户与登录页固定深色 */
:root[data-theme="light"] {
  --bg: #f4f6fa; --bg-elev: #ffffff; --bg-sub: #edf1f7; --bg-hover: #e5ebf4; --bg-panel: rgba(255, 255, 255, .88);
  --text: #17202e; --muted: #5b6880; --line: rgba(20, 40, 80, .10); --line-strong: rgba(20, 40, 80, .18);
  --brand: #0a7fd0; --brand-soft: rgba(10, 127, 208, .10);
  --up: #e0313a; --up-soft: #fde7e8; --down: #0c9a55; --down-soft: #e1f5ea; --flat: #76839a;
  --ok: #0e8f84; --ok-soft: rgba(14, 143, 132, .10); --warn: #b87407; --warn-soft: rgba(184, 116, 7, .10); --danger: #d4352a; --danger-soft: rgba(212, 53, 42, .08);
  --ma5: #d39400; --ma10: #7b5cf0; --ma20: #2d6fdb; --ma60: #db3f97;
  --shadow: 0 16px 40px rgba(20, 40, 80, .14);
  color-scheme: light;
}
:root[data-theme="light"] body { background: var(--bg); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 13px/1.5 var(--font); color: var(--text); height: 100vh; overflow: hidden;
  background: radial-gradient(1100px 520px at 85% -12%, rgba(76, 125, 255, .09), transparent 60%), radial-gradient(900px 480px at 0% 110%, rgba(61, 213, 243, .05), transparent 60%), var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--pt-serif); font-size: 22px; margin: 0; font-weight: 500; letter-spacing: .02em; }  /* 页面标题与门户同用衬线 */
h1 small { font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 600; }
p { margin: 6px 0; }
code, kbd { font-family: var(--mono); font-size: 11px; background: var(--bg-sub); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line-strong); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--bg-elev); padding: 6px 10px; }

.icon { width: 15px; height: 15px; flex-shrink: 0; vertical-align: -3px; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.muted { color: var(--muted); } .small { font-size: 11.5px; }
.brand-text { color: var(--brand); } .danger-text { color: var(--danger); } .warn-text { color: var(--warn); } .ok-text { color: var(--ok); }
.warn-text .icon { width: 12px; height: 12px; margin-right: 3px; }

/* ---------- 应用骨架：左导航 | 主区（各自滚动）；个股详情为右侧浮层抽屉，不占布局 ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr);
  grid-template-areas: "top top" "side main"; height: 100vh; height: 100dvh; }
/* 顶栏：收起按钮 | 品牌 | 全局搜股 | 任务状态/数据日期 | 提醒 | 账户菜单 */
.top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px 0 10px; background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); position: relative; z-index: 55; }
.top .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; margin-right: 6px; flex-shrink: 0; }
.top .brand:hover { text-decoration: none; }
#top-search { flex: 0 1 320px; min-width: 0; }
#top-search .stock-query { display: flex; }
#top-search .stock-query input { width: 100%; }
#top-search .stock-query .btn { display: none; }  /* 回车提交，顶栏不放按钮 */
.top-status { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 10px 8px; background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-right: 1px solid var(--line); overflow: hidden auto; }
main { grid-area: main; }
#subnav, #tabbar { display: none; }  /* 仅手机端显示，见 760px 断点 */
.mark { width: 26px; height: 26px; border-radius: 7px; display: block; object-fit: cover; flex-shrink: 0; }
#nav { display: flex; flex-direction: column; gap: 2px; }
/* 一级菜单（分组标题）可点击折叠；收起侧栏或窄屏图标栏时标题隐藏、二级始终显示 */
.nav-sec + .nav-sec { margin-top: 4px; }
.nav-group { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; cursor: pointer; }
.nav-group:hover { color: var(--text); background: var(--bg-sub); }
.nav-group .icon { width: 13px; height: 13px; transition: transform .15s; }
.nav-sec.folded .nav-group .icon { transform: rotate(-90deg); }
.nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-sec.folded .nav-items { display: none; }
.side-mini .nav-sec.folded .nav-items { display: flex; }
#nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; font-size: 13px; }
#nav a:hover { background: var(--bg-sub); color: var(--text); text-decoration: none; }
#nav a.active { background: linear-gradient(90deg, rgba(61, 213, 243, .16), rgba(76, 125, 255, .06)); color: var(--brand); font-weight: 600; box-shadow: inset 2px 0 0 var(--pt-cyan); }
#job-chip a:hover { text-decoration: none; }
#alerts.on { color: var(--brand); }
/* 账户菜单：宽屏悬停展开，触屏/键盘点击展开（.open） */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 6px; height: 30px; max-width: 180px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.user-trigger:hover, .user-menu.open .user-trigger { background: var(--bg-sub); color: var(--text); }
.user-trigger .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 184px; flex-direction: column; gap: 1px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); }
.user-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }  /* 悬停从按钮移到菜单时不断开 */
.user-menu.open .user-pop { display: flex; }
@media (hover: hover) { .user-menu:hover .user-pop { display: flex; } }
.user-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px 8px; margin-bottom: 3px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.user-head .chip { flex: none; padding: 0 5px; line-height: 16px; font-size: 10.5px; }
.user-pop a, .user-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.user-pop a:hover, .user-pop button:hover { background: var(--bg-sub); text-decoration: none; }
.user-pop a.active { color: var(--brand); }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.page-tabs { margin: 0 0 12px; }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-code { font-family: var(--mono); font-size: 18px; letter-spacing: 2px; color: var(--brand); }
/* 登录页 */
/* ---------- 门户（未登录）：色板与全站共用 :root，这里只放门户自己的布局 ---------- */
.portal {
  --pt-w: 1160px; --pt-pad: clamp(16px, 4vw, 40px);
  color-scheme: dark; position: relative; height: 100vh; overflow: hidden auto;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65;
}
.portal main { padding: 0; overflow: visible; }  /* 应用外壳的 main 有内边距，门户里不需要 */
.portal a:hover { text-decoration: none; }
.portal .num { font-variant-numeric: tabular-nums; }
.portal h2 { font-family: var(--pt-serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: .01em; line-height: 1.2; margin: 0 0 32px; }

/* 悬浮胶囊导航 */
.pt-nav { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 28px; width: fit-content; max-width: calc(100% - 32px); margin: 14px auto 0; padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(13, 19, 31, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.pt-brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); font-size: 16px; }
.pt-brand span:last-child { color: var(--muted); font-size: 13px; }
.pt-mark { align-self: center; width: 26px; height: 26px; border-radius: 7px; display: block; object-fit: cover; }
.pt-nav nav { display: flex; gap: 26px; }
.pt-nav nav a { color: #b4c0d4; font-size: 14px; }
.pt-nav nav a:hover { color: #fff; }

/* 按钮 */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.pt-btn:hover { border-color: rgba(61, 213, 243, .6); background: rgba(61, 213, 243, .06); }
.pt-btn.primary { border: 0; background: var(--pt-grad); color: #04101f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 40px rgba(61, 200, 243, .38); }
.pt-btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 52px rgba(61, 200, 243, .55); }
.pt-btn.small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 24px rgba(61, 200, 243, .35); }

/* 首屏：居中、满一屏 */
.pt-hero { position: relative; display: grid; place-items: center; min-height: min(calc(100vh - 78px), 920px); padding: clamp(16px, 3vh, 40px) var(--pt-pad) clamp(40px, 7vh, 72px); text-align: center; overflow: hidden; }
.pt-water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s ease; }
.pt-water.on { opacity: .95; }
.pt-beams i { position: absolute; top: 5%; width: 26vw; height: 95%; filter: blur(30px); pointer-events: none; }
.pt-beams i:first-child { left: -8vw; background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(61, 213, 243, .14), transparent 70%); }
.pt-beams i:last-child { right: -8vw; background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(76, 125, 255, .16), transparent 70%); }
.pt-ghost { position: absolute; left: 0; right: 0; bottom: 4%; height: 46%; opacity: .5; pointer-events: none; will-change: transform;
  mask-image: linear-gradient(to bottom, #000 55%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.pt-ghost svg { width: 100%; height: 100%; display: block; animation: pt-wipe 2.4s .3s cubic-bezier(.3, .6, .3, 1) both; }
.pt-ghost .glow-line { filter: blur(6px); opacity: .7; }
.pt-ghost-note { position: absolute; right: var(--pt-pad); bottom: 14px; margin: 0; font-size: 11.5px; color: var(--muted); opacity: .8; }
.pt-hero-copy { position: relative; max-width: 920px; }
.pt-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: clamp(14px, 2.4vh, 26px); }
.pt-orn i { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(61, 213, 243, .6)); }
.pt-orn i:last-child { transform: scaleX(-1); }
.pt-orn b { width: 8px; height: 8px; background: var(--pt-cyan); transform: rotate(45deg); box-shadow: 0 0 14px var(--pt-cyan); }
.pt-title { margin: 0; font-family: var(--pt-serif); font-weight: 500; font-size: clamp(48px, min(9.5vw, 12.5vh), 132px); line-height: 1.06;  /* 同时受宽和高约束，矮屏不溢出 */ letter-spacing: .03em; }
.pt-title span { display: block; }
.pt-title span:first-child { background: linear-gradient(180deg, #ffffff 30%, #a9b6cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-title .glow { background: linear-gradient(100deg, #7fe6ff, var(--pt-cyan) 45%, var(--pt-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(61, 213, 243, .35)); }
.pt-title.small { font-size: clamp(40px, 6vw, 84px); }
.pt-en { margin: clamp(10px, 2vh, 22px) 0 10px; font-family: var(--pt-serif); font-style: italic; font-size: clamp(18px, 1.9vw, 25px); color: #a7b5cb; }
.pt-lede { max-width: 36em; margin: 0 auto; font-size: clamp(15px, 1.25vw, 17px); color: #b8c3d6; }
.pt-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 3.2vh, 32px); }
.pt-kpis { display: flex; justify-content: center; margin: clamp(22px, 4.4vh, 44px) 0 0; }
.pt-kpis > div { padding: 0 36px; display: flex; flex-direction: column; }
.pt-kpis > div + div { border-left: 1px solid var(--line-strong); }
.pt-kpis dd { margin: 0; font-family: var(--pt-serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; color: #eef3fa; white-space: nowrap; }
.pt-kpis dd small { font-size: .5em; margin-left: 3px; color: var(--muted); }
.pt-kpis dt { margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pt-stance { margin: clamp(14px, 3vh, 30px) 0 0; font-size: 13px; color: var(--warn); }
.pt-empty { color: var(--muted); font-size: 14px; margin: 8px 0; }
.pt-skel { display: block; height: 140px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: pt-shimmer 1.4s linear infinite; }

/* 区块通用 */
.pt-section { position: relative; max-width: calc(var(--pt-w) + 2 * var(--pt-pad)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pt-pad) 0; scroll-margin-top: 72px; }

/* 市场概况 */
.pt-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin: 0 0 22px; }
.pt-stat dt { color: var(--muted); font-size: 13px; }
.pt-stat dd { margin: 4px 0 0; font-family: var(--pt-serif); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; white-space: nowrap; }
.pt-breadth { display: flex; gap: 3px; height: 6px; margin-bottom: 36px; }
.pt-breadth i { border-radius: 3px; min-width: 2px; }
.pt-breadth .up-bar { background: var(--up); box-shadow: 0 0 12px rgba(255, 90, 95, .5); } .pt-breadth .flat-bar { background: #4a5568; } .pt-breadth .down-bar { background: var(--down); box-shadow: 0 0 12px rgba(47, 191, 113, .45); }
.pt-strips { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.pt-strips h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.pt-strips > div:last-child .pt-list { grid-template-columns: 1fr; }
.pt-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-list li span:first-child { flex: 1; min-width: 0; }
.pt-src { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; }

/* 功能 */
.pt-features h2 { text-align: center; }
.pt-bento { perspective: 1600px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.pt-glass { position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); }
.pt-glass::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(61, 213, 243, .45), transparent); opacity: .5; transition: opacity .25s; }
.pt-card { padding: 28px; isolation: isolate; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .95); }
/* 选择器提高一级，压过 .pt-reveal 的 transition；倾斜用 transform，渐显用 translate，两者互不覆盖 */
.pt-bento .pt-card { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .5s, opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.pt-card.wide { grid-column: span 2; }
.pt-card:hover { border-color: rgba(61, 213, 243, .3); box-shadow: 0 60px 110px -50px #000, 0 0 90px -30px rgba(61, 213, 243, .55); }
.pt-card:hover::before { opacity: 1; }
/* 跟随鼠标的光斑（--mx/--my 由 motion.js 的 tilt 写入）；z-index:-1 配合 isolation，盖在卡片底色上、文字之下 */
.pt-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), rgba(61, 213, 243, .2), transparent 62%); }
.pt-card:hover::after { opacity: 1; }
.pt-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(61, 213, 243, .1); color: var(--pt-cyan); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(61, 213, 243, .2); }
.pt-icon .icon { width: 20px; height: 20px; vertical-align: 0; }
.pt-card h3 { font-family: var(--pt-serif); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.pt-card p { margin: 0 0 18px; color: #b4c0d6; font-size: 14.5px; max-width: 42em; }
.pt-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-card li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* 交易日时间轴 */
.day-axis { position: relative; height: 34px; border-top: 1px solid var(--line-strong); margin-bottom: 18px; }
.day-axis.has-now { margin-top: 26px; }
.day-session { position: absolute; top: -3px; height: 5px; border-radius: 3px; background: var(--pt-grad); box-shadow: 0 0 14px rgba(61, 213, 243, .45); }
.day-tick { position: absolute; top: 8px; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day-tick::before { content: ""; position: absolute; left: 50%; top: -12px; height: 7px; border-left: 1px solid var(--line-strong); }
.day-now { position: absolute; top: -9px; width: 2px; height: 16px; margin-left: -1px; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.day-now span { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--warn); font-weight: 600; }
.day-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.day-steps time { display: block; font-size: 13px; color: var(--pt-cyan); font-variant-numeric: tabular-nums; }
.day-steps b { display: block; font-family: var(--pt-serif); font-size: 22px; font-weight: 500; margin: 2px 0 6px; }
.day-steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* 风险提示、页尾行动区与页脚 */
.pt-risk h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 30px); color: var(--warn); }
.pt-risk h2 .icon { width: 24px; height: 24px; vertical-align: 0; }
.pt-risk ul { margin: 0; padding: 20px 24px 20px 40px; border: 1px solid rgba(245, 181, 68, .25); border-radius: 16px; background: rgba(245, 181, 68, .05); color: #c9d2e3; font-size: 14.5px; }
.pt-risk li + li { margin-top: 6px; }
.pt-final { text-align: center; padding-bottom: 24px; }
.pt-final::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(720px, 90%); height: 260px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(61, 213, 243, .12), transparent 70%); filter: blur(20px); pointer-events: none; }
.pt-final .pt-lede { margin-top: 18px; }
.pt-foot { max-width: calc(var(--pt-w) + 2 * var(--pt-pad)); margin: 96px auto 0; padding: 24px var(--pt-pad) 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.pt-foot p { margin: 4px 0; }
.pt-foot b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* 独立登录页（auth-page.js + auth.js 表单）：左右分屏，左侧网格底纹 + 顶部光晕，右侧表单居中 */
.pt-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pa-side { position: relative; display: flex; align-items: center; padding: 48px clamp(32px, 4vw, 56px); overflow: hidden; background: var(--bg); border-right: 1px solid var(--line); }
.pa-grid { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 62% 8%, rgba(61, 213, 243, .14), transparent 70%),
    linear-gradient(rgba(150, 175, 215, .07) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(150, 175, 215, .07) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 55% 25%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 25%, #000 30%, transparent 85%); }
.pa-copy { position: relative; max-width: 470px; }
.pa-title { margin: 0 0 18px; font-family: var(--pt-serif); font-size: clamp(34px, 3.2vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
.pa-title .glow { background: linear-gradient(100deg, #7fe6ff, var(--pt-cyan) 45%, var(--pt-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pa-lede { margin: 0 0 40px; color: var(--muted); font-size: 15px; }
.pa-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pa-points li { display: flex; gap: 14px; align-items: flex-start; }
.pa-points b { display: block; font-weight: 600; font-size: 14.5px; color: var(--text); }
.pa-points span:not(.pa-ic) { display: block; color: var(--muted); font-size: 13px; }
.pa-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--pt-cyan); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pa-ic .icon { width: 16px; height: 16px; vertical-align: 0; }
.pa-main { position: relative; display: grid; place-items: center; padding: 72px 24px 48px; background: #0a0e16; }
.pa-back { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pa-back:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.pa-back .icon { width: 15px; height: 15px; }
.pa-box { width: min(376px, 100%); }
.pa-logo { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 36px; color: var(--text); font-size: 17px; }
.pa-logo span:last-child { color: var(--muted); font-size: 13px; }
.auth-card { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.auth-title { margin: 0; font-size: 22px; font-weight: 600; }
.auth-sub { margin: -8px 0 6px; color: var(--muted); font-size: 13.5px; }
.pt-auth .field { gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.pt-auth .field input { height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14px; background: rgba(255, 255, 255, .03); }
.pt-auth .code-row .btn { height: 40px; border-radius: 9px; }
.field-head { display: flex; justify-content: space-between; }
.field-head a { color: var(--muted); font-weight: 400; }
.field-head a:hover, .auth-foot a:hover { color: var(--text); }
.pt-auth .btn.wide-btn { height: 42px; margin-top: 4px; border: 0; border-radius: 9px; background: var(--pt-grad); color: #04101f; font-size: 14.5px; font-weight: 600; }
.pt-auth .btn.wide-btn:hover { color: #04101f; box-shadow: 0 10px 32px rgba(61, 200, 243, .35); }
.auth-foot { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-foot a { margin-left: 6px; color: var(--text); font-weight: 500; }
@media (max-width: 860px) {
  .pt-auth { grid-template-columns: minmax(0, 1fr); }
  .pa-side { display: none; }
  .pa-main { padding: 64px 16px 40px; }
}

/* 动效：首屏一次性入场 + 背景曲线展开；其余区块滚动渐显 */
.pt-hero-copy > * { animation: pt-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.pt-hero-copy > :nth-child(2) { animation-delay: .1s; } .pt-hero-copy > :nth-child(3) { animation-delay: .22s; } .pt-hero-copy > :nth-child(4) { animation-delay: .3s; }
.pt-hero-copy > :nth-child(5) { animation-delay: .38s; } .pt-hero-copy > :nth-child(6) { animation-delay: .46s; } .pt-hero-copy > :nth-child(7) { animation-delay: .54s; }
.pt-reveal { opacity: 0; translate: 0 20px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }  /* 用 translate 而非 transform，给卡片倾斜留出 transform */
.pt-reveal.in { opacity: 1; translate: none; }
@keyframes pt-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes pt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pt-shimmer { to { background-position: -200% 0; } }
@keyframes pt-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .portal *, .portal *::before { animation: none !important; transition: none !important; }
  .pt-reveal { opacity: 1; translate: none; }
  .pt-card { transform: none; }
}

@media (max-width: 960px) {
  .pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-strips { grid-template-columns: minmax(0, 1fr); }
  .pt-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-card:last-child { grid-column: span 2; }
  .day-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kpis > div { padding: 0 22px; }
}
@media (max-width: 640px) {
  .portal { font-size: 14px; }
  .pt-nav { width: calc(100% - 24px); max-width: none; gap: 12px; margin-top: 10px; top: 8px; }
  .pt-nav nav { display: none; }
  .pt-nav .pt-btn { margin-left: auto; }
  .pt-hero { min-height: 0; padding: 56px 16px 88px; }
  .pt-orn i { width: 64px; }
  .pt-title { font-size: clamp(50px, 15vw, 64px); }
  .pt-cta .pt-btn { flex: 1; }
  .pt-kpis > div { padding: 0 12px; }
  .pt-kpis dd { font-size: 26px; }
  .pt-kpis dt { font-size: 11.5px; }
  .pt-ghost-note { left: 16px; right: 16px; text-align: center; }
  .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pt-list { grid-template-columns: minmax(0, 1fr); }
  .pt-bento { grid-template-columns: minmax(0, 1fr); }
  .pt-card.wide, .pt-card:last-child { grid-column: auto; }
  .pt-card { padding: 22px; }
  .day-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pt-risk ul { padding: 16px 16px 16px 32px; }
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; }
.wide-btn { justify-content: center; height: 36px; font-size: 14px; }
.auth-msg { min-height: 18px; font-size: 12.5px; } .auth-msg.error { color: var(--danger); } .auth-msg.ok { color: var(--ok); }
.ok-banner { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.side-note { margin: auto 6px 0; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.side-note b { color: var(--warn); font-weight: 600; }
.side-note .keys { display: inline-flex; gap: 2px; flex-wrap: wrap; margin-top: 4px; }
.side-note kbd { font-size: 10px; padding: 0 3px; }
.side-mini { --side-w: 52px; }
.side-mini .nav-group, .side-mini #nav a span, .side-mini .side-note { display: none; }
.side-mini #nav a { justify-content: center; padding: 8px 0; }

main { min-width: 0; min-height: 0; overflow: auto; padding: 12px 14px 20px; }
main:focus, main:focus-visible { outline: none; }
/* 主区内的长表格在卡片里自行滚动，表头随之固定；短表格不受影响 */
main .card.flush .table-wrap { max-height: calc(100vh - 120px); }
/* 窄侧栏 + 宽主体：如涨停复盘的梯队与明细并排；空间不足时自动上下堆叠 */
.aside-split { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .aside-split { grid-template-columns: minmax(0, 1fr); } }  /* 裸 1fr 的最小宽度是内容宽度，宽表会把整页撑出横向滚动 */
.aside-split > .card { margin-bottom: 0; position: sticky; top: 0; max-height: calc(100vh - 40px); overflow: auto; }
.aside-split > div > .seg.tabs { margin-top: 0; }

/* ---------- 控件 ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-elev); cursor: pointer; white-space: nowrap; color: var(--text); font-size: 12.5px; }
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--pt-grad); border-color: transparent; color: var(--on-brand); font-weight: 600; }
.btn.primary:hover { color: var(--on-brand); box-shadow: 0 6px 24px rgba(61, 200, 243, .35); }
.btn.small { height: 26px; padding: 0 8px; font-size: 12px; }
.btn:disabled, .icon-btn:disabled { opacity: .5; cursor: progress; }
.btn.file input { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); padding: 0; }
.icon-btn:hover { background: var(--bg-sub); color: var(--text); }
input, select, textarea { height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255, 255, 255, .03); min-width: 0; }
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 2px var(--brand-soft); }
input[type=checkbox] { height: auto; accent-color: var(--brand); }
input[readonly] { background: var(--bg-sub); color: var(--muted); }
.search { width: 220px; }
label.inline { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.pill { height: 26px; padding: 0 11px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--bg-elev); cursor: pointer; font-size: 12px; color: var(--muted); }
.pill:hover { color: var(--text); border-color: var(--brand); }
.pill.on { background: var(--pt-grad); border-color: transparent; color: var(--on-brand); font-weight: 600; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--bg-elev); }
.seg a { padding: 4px 12px; color: var(--muted); font-size: 12.5px; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.seg.tabs { margin: 12px 0 8px; }
.seg small { color: var(--muted); margin-left: 3px; }

/* ---------- 标签 ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; line-height: 18px; background: var(--bg-sub); color: var(--muted); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.chip.muted { background: var(--bg-sub); color: var(--muted); }
.chip.up-chip { background: var(--up-soft); color: var(--up); }
.chip.grade-A { background: var(--pt-grad); color: var(--on-brand); font-weight: 700; }
.chip.grade-B { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.chip.grade-C { background: var(--bg-sub); color: var(--muted); }
a.chip.stock-chip { color: var(--text); background: var(--bg-sub); border: 1px solid var(--line); }
a.chip.stock-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.spinner { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 状态 ---------- */
.state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 36px 16px; color: var(--muted); text-align: center; }
.state.small { padding: 14px; }
.state.error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius); }
.state p { flex-basis: 100%; margin: 0; }
.banner { display: flex; align-items: flex-start; gap: 6px; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 10px; font-size: 12.5px; border: 1px solid transparent; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.banner.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.banner .icon { margin-top: 2px; }
.disclaimer-banner { display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 10px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); font-size: 13px; }
.disclaimer { color: var(--warn); }
.note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 6px; }
.note.danger { color: var(--danger); font-weight: 600; }
.note.warn { color: var(--warn); }
.data-date { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.data-date b { color: var(--text); font-size: 14px; }

/* ---------- 布局 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px -18px rgba(0, 0, 0, .8); }
.card.flush { padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.card.flush > .card-head { padding: 10px 12px; margin: 0; border-bottom: 1px solid var(--line); }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary b::before { content: "▸ "; color: var(--muted); }
details.card[open] > summary b::before { content: "▾ "; }
details.card:not([open]) > summary { border-bottom: 0; }
.more { display: inline-flex; align-items: center; font-size: 12px; }
.pad { padding: 8px 12px; }
.grid-review { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr) minmax(220px, .9fr); gap: 12px; align-items: start; }
.grid-review > .card, .grid-review .col > .card { margin-bottom: 0; }
.grid-review .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid-3 { margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.summary-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.summary-row.five { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.contents { display: contents; }  /* 实时刷新只替换其中的汇总卡，仍参与外层网格布局 */
.acct-tabs { margin: 0 0 6px; flex-wrap: wrap; }
.acct-tabs .chip { padding: 0 5px; line-height: 16px; font-size: 10.5px; }
.fee-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sum { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sum > span { color: var(--muted); font-size: 12px; }
.sum > b { font-size: 18px; font-weight: 650; }
.sum > small { color: var(--muted); font-size: 11.5px; }

/* ---------- 复盘 ---------- */
.regime-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.regime-score { font-size: 54px; font-weight: 750; line-height: 1; letter-spacing: -1px; }
.regime.ok .regime-score { color: var(--ok); } .regime.brand .regime-score { color: var(--brand); }
.regime.warn .regime-score { color: var(--warn); } .regime.danger .regime-score { color: var(--danger); }
.regime-level { font-size: 16px; padding: 3px 12px; margin-bottom: 6px; font-weight: 700; border-radius: 12px; }
.parts { display: grid; gap: 6px; margin: 8px 0; }
.part { display: grid; grid-template-columns: 64px 90px 56px 1fr; align-items: center; gap: 8px; font-size: 12.5px; }
.part span { color: var(--muted); }
.part b { text-align: right; } .part small { color: var(--muted); font-weight: 400; }
.part .bar { width: 100%; }
.part small.muted { font-size: 11.5px; }
.regime-parts .part { grid-template-columns: 64px 1fr 60px; font-size: 12px; }
.bar { height: 6px; background: var(--bg-sub); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.index-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.index-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.index-card > span:first-child { color: var(--muted); }
.index-card b { font-size: 16px; }
.breadth-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 10px; background: var(--bg-sub); }
.breadth-bar i { display: block; height: 100%; }
.up-bg { background: var(--up); } .down-bg { background: var(--down); } .flat-bg { background: var(--line-strong); }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.stat-row > div { display: flex; flex-direction: column; min-width: 54px; }
.stat-row span { color: var(--muted); font-size: 11.5px; }
.stat-row b { font-size: 16px; font-weight: 650; }
.sub-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.ladder-row { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: start; }
.lbc { font-weight: 700; color: var(--up); padding-top: 2px; }
.lbc small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ladder-stocks { display: flex; flex-wrap: wrap; gap: 4px; }
.job-card .card-head { justify-content: flex-start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.step { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; min-width: 0; }
.step-label { font-weight: 600; white-space: nowrap; }
.step-msg { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.failed .step-msg { color: var(--danger); white-space: normal; }
.step.partial .step-msg { color: var(--warn); white-space: normal; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; max-width: 100%; }
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
table.grid th { position: sticky; top: 0; z-index: 1; background: var(--bg-sub); color: var(--muted); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); user-select: none; }
table.grid th.sortable { cursor: pointer; }
table.grid th.sortable:hover, table.grid th.sorted { color: var(--text); }
table.grid th .arrow { font-style: normal; font-size: 9px; margin-left: 2px; color: var(--brand); }
table.grid td { padding: 4px 8px; height: var(--row); border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid.dense td { padding: 3px 8px; height: 26px; }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
table.grid td.wrap { white-space: normal; min-width: 180px; max-width: 360px; line-height: 1.45; }
table.grid td.wrap > div + div { margin-top: 2px; }
table.grid td.reasons { font-size: 12px; color: var(--muted); }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid tbody tr:hover > td { background: var(--bg-hover); }
table.grid tbody tr.cursor > td { background: var(--brand-soft); }
table.grid tbody tr.cursor > td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
table.grid tr.expanded > td { background: var(--brand-soft); font-weight: 600; }
table.grid tr.expand-row > td { padding: 0 0 0 24px; background: var(--bg-sub); }
table.grid tr.lvl-3 > td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
table.grid tr.lvl-2 > td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.empty-row td { text-align: center; color: var(--muted); padding: 28px 8px !important; white-space: normal; }
.sub-table { border-left: 2px solid var(--brand); background: var(--bg-elev); }
.s-name { font-weight: 600; margin-right: 5px; }
.s-code { color: var(--muted); font-size: 11px; font-family: var(--mono); margin-left: 4px; }
.stock-col .s-code { margin-left: 0; }
.star-col { width: 28px; padding-right: 0 !important; }
.star { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--line-strong); display: inline-grid; vertical-align: middle; margin-left: 2px; }
.star .icon { width: 14px; height: 14px; }
.star:hover { color: var(--warn); }
.star.on { color: var(--warn); }
.star.on .icon, .star-btn.on .icon { fill: currentColor; }
.star-btn.on { color: var(--warn); border-color: var(--warn); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); min-height: 36px; }
.pager { display: flex; align-items: center; gap: 6px; }
.score { display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.score .bar { width: 46px; }

/* ---------- 右侧个股抽屉：宽屏浮在主区之上（不遮罩，左侧表格仍可点选/j k 切换）；窄屏全屏遮罩 ---------- */
.drawer { position: fixed; top: var(--top-h); right: 0; bottom: 0; z-index: 50; width: var(--detail-w); max-width: calc(100vw - var(--side-w)); border-left: 1px solid var(--line); background: var(--bg-elev); box-shadow: -12px 0 32px rgba(15, 23, 42, .14); animation: slide .16s ease-out; }
.drawer-panel { height: 100%; overflow-y: auto; }
.detail-resize { position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 5; }
.detail-resize:hover, .resizing .detail-resize { background: var(--brand); opacity: .4; }
.resizing { user-select: none; cursor: col-resize; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 16px; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.drawer-head h2 small { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 400; margin-left: 4px; }
.drawer-head .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.drawer-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.drawer-pos { color: var(--muted); font-size: 12px; margin-right: 2px; }
.drawer-content { padding: 12px 16px 24px; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.price-line .big { font-size: 26px; font-weight: 700; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.kv { background: var(--bg-elev); padding: 5px 8px; display: flex; flex-direction: column; min-width: 0; }
.kv-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 买卖点查询输入框（ui/stock-query.js）：顶栏全局搜股、量化测算共用 */
.stock-query { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.stock-query input { width: 230px; padding-left: 28px; }
.stock-query .sq-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; pointer-events: none; }
.stock-query .sq-ic .icon { vertical-align: 0; }

/* 能量：分数 + 0–100 横条；迷你走势线（ui/spark.js），中线为 50 分 */
.energy { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.energy i { width: 46px; height: 4px; border-radius: 2px; background: var(--bg-sub); position: relative; overflow: hidden; }
.energy i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pt-grad); border-radius: inherit; }
.spark { display: block; overflow: visible; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.spark circle { fill: var(--brand); }
.spark .spark-mid { stroke: var(--line-strong); stroke-dasharray: 2 3; }
.energy-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.energy-head .energy b { font-size: 22px; font-family: var(--pt-serif); font-weight: 500; }
.energy-head .energy i { width: 90px; height: 6px; border-radius: 3px; }
.energy-spark { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.kv span { color: var(--muted); font-size: 11px; }
.kv b { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-sec { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.d-sec h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-sec p { font-size: 12.5px; }
.list { margin: 6px 0; padding-left: 18px; font-size: 12.5px; }
.list li { margin: 2px 0; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* ---------- K 线 ---------- */
.kline { position: relative; user-select: none; }
.k-read { font-size: 11.5px; min-height: 34px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.5; }
.k-read b { color: var(--text); }
.ma-tag { margin-left: 4px; }
.k-stage { position: relative; height: 340px; }
.k-stage canvas { position: absolute; inset: 0; display: block; }
.k-top { cursor: crosshair; touch-action: none; }
.k-hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.k-tools { display: inline-flex; gap: 2px; flex-shrink: 0; }
.k-tools .icon-btn { width: 26px; height: 24px; font-size: 15px; line-height: 1; border: 1px solid var(--line); }
.k-top.dragging { cursor: grabbing; }
.five-host .m-stage { height: 260px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.form-grid.three { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.field input, .field select { width: 100%; color: var(--text); }
.field small { font-size: 11px; }
.field.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text); align-self: end; min-height: 30px; }
.field.check input { width: auto; }
.field.wide, .form-actions.wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: 130px; }
.chart-box { height: 260px; position: relative; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend .btn { margin-left: auto; }
.lg::before { content: ""; display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; background: var(--muted); }
.lg.brand::before { background: var(--brand); }

/* ---------- 提示 ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { padding: 8px 16px; border-radius: 6px; background: var(--text); color: var(--bg-elev); box-shadow: var(--shadow); font-size: 13px; max-width: 90vw; transition: opacity .3s; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; }

/* ---------- 响应式：笔记本分屏 ---------- */
@media (max-width: 1280px) {
  .grid-review { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr); }
  .grid-review > .plan-count { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --side-w: 52px; }
  .nav-group, #nav a span, #data-date, .side-note, #side-toggle { display: none; }
  .nav-sec.folded .nav-items { display: flex; }
  #nav a { justify-content: center; padding: 8px 0; }
  /* 顶部让出顶栏高度：顶栏层级更高（55），inset: 0 时抽屉头的股票名与关闭按钮会被盖住 */
  .drawer { position: fixed; inset: var(--top-h) 0 0 0; z-index: 50; width: auto; max-width: none; height: auto; border: 0; box-shadow: none; animation: none; background: rgba(10, 15, 25, .28); display: flex; justify-content: flex-end; }
  .drawer-panel { width: min(760px, 100vw); background: var(--bg-elev); box-shadow: var(--shadow); animation: slide .16s ease-out; }
  .detail-resize { display: none; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .grid-review, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > :first-child { grid-column: auto; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .search { width: 100%; }
  .toolbar-right { width: 100%; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-stage { height: 280px; }
  .regime-score { font-size: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  main { padding: 10px 10px 20px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top-h) auto minmax(0, 1fr) auto; grid-template-areas: "top" "subnav" "main" "tabbar"; }
  .side, .brand-name { display: none; }
  .top { gap: 6px; padding: 0 8px; }
  #top-search { flex: 1 1 auto; }
  .user-trigger .label, .user-trigger .icon:last-child { display: none; }
  #subnav { grid-area: subnav; display: flex; gap: 4px; overflow-x: auto; padding: 6px 10px; background: var(--bg-panel); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  #subnav::-webkit-scrollbar { display: none; }
  #subnav a { flex-shrink: 0; padding: 5px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; white-space: nowrap; }
  #subnav a:hover { text-decoration: none; }
  #subnav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  #tabbar { grid-area: tabbar; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  #tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; color: var(--muted); font-size: 11px; }
  #tabbar a:hover { text-decoration: none; }
  #tabbar a .icon { width: 20px; height: 20px; }
  #tabbar a.active { color: var(--brand); font-weight: 600; }
}

/* ---------- 打印（明日计划）---------- */
@media print {
  :root { --bg: #fff; --bg-elev: #fff; --bg-sub: #f3f3f3; --text: #000; --muted: #555; --line: #ccc; }
  .side, .top, #subnav, #tabbar, .no-print, .drawer, .toasts, .star, .icon-btn, .presets, #rv-job { display: none !important; }
  body { background: #fff; font-size: 11px; height: auto; overflow: visible; }
  .app { display: block; height: auto; }
  main { overflow: visible; padding: 0; }
  .card { border: 0; padding: 0; break-inside: avoid; }
  details.card { display: block; }
  details.card > *:not(summary) { display: block !important; }
  .table-wrap { overflow: visible; }
  table.grid { font-size: 10.5px; white-space: normal; }
  table.grid th { position: static; }
  .table-foot .pager { display: none; }
  .disclaimer-banner { border: 2px solid #000; color: #000; background: #fff; }
}

/* 综合分分项 */
.parts-line { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; }
.rule-cell small { display: block; }

/* 详情栏：规则趋势 */
.trend-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.trend-svg path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.trend-svg path.score { stroke: var(--brand); } .trend-svg path.sector { stroke: var(--warn); stroke-dasharray: 3 2; }
.trend-svg .mid { stroke: var(--line); vector-effect: non-scaling-stroke; }
.trend-svg circle { fill: var(--bg-elev); stroke: var(--brand); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.trend-svg circle.buy, .trend-svg circle.watch { fill: var(--brand); }
.trend-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-bottom: 2px; }
.lg.warn::before { background: var(--warn); }

/* 市场地图 */
.map-card { overflow: hidden; }
.tm-stage { position: relative; height: calc(100vh - 150px); min-height: 420px; }
.tm-stage canvas { display: block; }
.tm-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 9px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.map-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.lg-scale { width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--down), var(--bg-sub), var(--up)); }
#mp-sum { margin-left: 8px; }

/* 条件选股 */
.cond-grid { display: grid; grid-template-columns: 110px 1fr 14px 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.cond-grid small { color: var(--muted); }
.cond-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: var(--radius); margin-bottom: 10px; }
.btn.active { border-color: var(--brand); color: var(--brand); }
.cond-pill { display: inline-flex; align-items: center; gap: 4px; line-height: 24px; }
.cond-pill .icon { width: 12px; height: 12px; }
.pill-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 13px; opacity: .6; }
.pill-x:hover { opacity: 1; }

/* 量化测算 */
/* 左右各半：左 K 线与筹码；右 买卖点卡片在上，支撑压力与能量并排在下 */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.point-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.point-cards .sum { background: var(--bg-sub); padding: 8px 10px; }
.point-cards .sum b { font-size: 16px; }
.calc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.calc-pair > .card { margin-bottom: 0; }
@media (max-width: 1360px) { .calc-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .point-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 手机：筹码摘要改为 3 列紧凑卡片、隐藏说明文字，让买卖点进入首屏 */
  .view-calc .summary-row.five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .view-calc .summary-row.five .sum { padding: 8px; }
  .view-calc .summary-row.five .sum b { font-size: 15px; }
  .view-calc .summary-row.five .sum small { display: none; }
}
@keyframes flash-card { from { box-shadow: 0 0 0 2px var(--brand); } to { box-shadow: 0 0 0 2px transparent; } }
.card.flash { animation: flash-card 1s ease-out; }
.calc-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.calc-side > .card { margin-bottom: 0; }
.calc-side .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-side .kv-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* 能量 6 项排 2 行 */
@media (max-width: 1100px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } .calc-side { order: -1; } }  /* 单列时买卖点排在 K 线前面 */
.calc-grid > .card { margin-bottom: 12px; }
.calc-grid .k-stage { height: 300px; }
.lv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lv-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lv-list li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }  /* 价格与来源同一行，压缩高度 */
.lv-list li .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt { margin-top: 14px; }
.kv b small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.t-form { margin-bottom: 6px; }
.t-steps { margin: 10px 0; padding-left: 20px; font-size: 12.5px; line-height: 1.8; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .t-grid { grid-template-columns: minmax(0, 1fr); } }
.t-col h3 { margin-bottom: 2px; }
.t-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-verdict { padding: 8px 10px; border-radius: var(--radius); background: var(--bg-sub); font-size: 12.5px; }
.t-verdict.ok { background: var(--ok-soft); color: var(--ok); } .t-verdict.bad { background: var(--danger-soft); color: var(--danger); }
.calc-mini .kv-grid { margin: 6px 0; }

/* 盘感训练 */
.train-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .train-grid { grid-template-columns: minmax(0, 1fr); } }
.train-grid > .card { margin-bottom: 12px; }
.train-grid .k-stage { height: 460px; }
.train-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.train-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.train-actions .btn { justify-content: center; height: 36px; }
.train-actions kbd { margin-left: 4px; }
.train-msg { min-height: 18px; }
.train-trades { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.train-result { padding: 10px 12px; border-radius: var(--radius); margin: 10px 0; font-size: 12.5px; line-height: 1.7; }
.train-result.ok { background: var(--ok-soft); color: var(--ok); } .train-result.warn { background: var(--warn-soft); color: var(--warn); }

/* 账户诊断 */
.diag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; }
@media (max-width: 980px) { .diag-grid { grid-template-columns: minmax(0, 1fr); } }
.diag-row { display: grid; grid-template-columns: 64px 1fr 150px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.diag-row > span:first-child { color: var(--muted); }
.diag-row b { text-align: right; font-weight: 600; }
.diag-row b small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.bar.warn i { background: var(--warn); } .bar.danger i { background: var(--danger); }
.diag-side { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }

/* 弹窗（原生 dialog） */
.modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(10, 15, 25, .38); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.modal-body { padding: 14px 16px 16px; }
.modal .form-actions { margin-top: 4px; }

/* 盘中：左持仓+AI、右异动+候选池 */
.live-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; }
@media (max-width: 1200px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.ai-ask { display: flex; gap: 8px; margin-bottom: 6px; }
.ai-ask input { flex: 1; min-width: 0; }
.ai-out { white-space: pre-wrap; line-height: 1.65; font-size: 13px; margin: 10px 0 6px; padding: 10px 12px; background: var(--bg-sub); border-radius: 6px; }

/* 个股分时 + 五档 */
.live-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: start; }
@media (max-width: 520px) { .live-wrap { grid-template-columns: minmax(0, 1fr); } }
.m-stage { height: 220px; }
.m-read { height: 18px; white-space: nowrap; overflow: hidden; }
.m-read .avg-key { color: var(--warn); }
.chart-tabs { margin: 4px 0 8px; }
.seg a[role=tab]:not([href]) { cursor: pointer; user-select: none; }
.live-time { margin-bottom: 2px; }
table.depth { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--mono); }
table.depth td { padding: 1px 4px; position: relative; }
table.depth td.num { text-align: right; }
table.depth .d-sep td { border-top: 1px solid var(--line); padding: 0; height: 3px; }
.d-bar { position: absolute; right: 0; top: 3px; bottom: 3px; opacity: .14; pointer-events: none; }
.d-bar.ask { background: var(--down); }
.d-bar.bid { background: var(--up); }
.hint-col { min-width: 180px; max-width: 260px; }
.wl-sum { margin: 0 0 8px; }
/* 自选分组：各组同列同宽，便于上下对照 */
.wl-group table { table-layout: fixed; width: 100%; min-width: 980px; }
.wl-group th:nth-child(1) { width: 34px; }
.wl-group th:nth-child(2) { width: 170px; }
.wl-group th:nth-child(3) { width: 96px; }
.wl-group th:nth-child(4) { width: 250px; }
.wl-group th:nth-child(5) { width: 170px; }
.wl-group td { overflow: hidden; text-overflow: ellipsis; }
