/* 应用外壳 + 通用组件（组件类名与设计稿保持一致，便于对照验收） */

/* 每屏一个独立容器（路由每次渲染重建，避免事件监听残留） */
#app > .view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

#app {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 90px -40px #000;
}
@media (min-width: 520px) {
  body { padding: 0; }
  #app { height: 100dvh; border-radius: 0; }
}
@media (min-width: 900px) {
  body { background: radial-gradient(80% 60% at 50% 0%, #12161d 0%, #05070A 60%); }
  #app { margin-top: 0; }
}

/* 页面骨架 */
.scr { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.tb { flex: none; height: 50px; display: flex; align-items: center; padding: 0 12px 0 8px; gap: 2px; }
.tb > i { width: 24px; height: 24px; color: var(--text); }
.tb > b { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.tb > span { min-width: 58px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); font-weight: 700; }
.tb > span i { width: 15px; height: 15px; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 22px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.dock { flex: none; padding: 10px 16px calc(16px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--panel); }

/* 底部导航 */
.nav { flex: none; height: calc(64px + var(--safe-bottom)); padding: 7px 6px var(--safe-bottom); display: flex; border-top: 1px solid var(--line); background: var(--panel); position: relative; z-index: 4; }
.nv { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--dim); font-weight: 700; }
.nv i { width: 23px; height: 23px; }
.nv.on { color: var(--text); }
.nv.on svg { stroke: var(--gold); }
.nv .dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 6px; height: 6px; border-radius: 50%; background: var(--up); }

i[data-i] { display: inline-flex; width: 20px; height: 20px; flex: none; }
i[data-i] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 首页头部 */
.hd { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #FFD166, #E0A32E); display: flex; align-items: center; justify-content: center; color: #221900; }
.logo i { width: 20px; height: 20px; }
.logo svg { stroke-width: 2.2; }
.bn { font-weight: 700; font-size: 14.5px; letter-spacing: .2px; }
.ex-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #A9C9BB; margin-top: 1px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--down); animation: pu 2.2s infinite; }
.pulse.warn { background: var(--amber); animation: none; }
.pulse.off { background: var(--dim); animation: none; }
@keyframes pu { 0% { box-shadow: 0 0 0 0 rgba(31,191,117,.55); } 70% { box-shadow: 0 0 0 6px rgba(31,191,117,0); } 100% { box-shadow: 0 0 0 0 rgba(31,191,117,0); } }
.hd-r { display: flex; align-items: center; gap: 10px; }
.ib { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.ib svg { width: 18px; height: 18px; }
.ib b { position: absolute; top: -2px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--up); color: #fff; font-family: var(--fn); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--bg); }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #C9D3DF; }
.av.lg { width: 52px; height: 52px; font-size: 17px; }

/* 净值卡 */
.hero { padding-top: 2px; }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 9px; padding: 2px; }
.seg b { font-size: 11px; font-weight: 400; color: var(--muted); padding: 4px 10px; border-radius: 7px; }
.seg b.on { background: var(--surface2); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.seg.w { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.06); border-radius: 11px; padding: 3px; }
.seg.w b { text-align: center; padding: 5px 0; }
.seg.big { display: grid; grid-template-columns: 1fr 1fr; flex: none; background: rgba(255,255,255,.06); border-radius: 11px; padding: 3px; }
.seg.big b { text-align: center; padding: 7px 0; border-radius: 8px; font-size: 13px; }
.seg.big b.on { background: var(--surface2); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.eq { font-size: 34px; font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--fn); font-weight: 600; font-size: 13px; padding: 4px 9px; border-radius: 8px; margin-left: 10px; }
.delta.up { background: rgba(240,84,94,.13); }
.delta.down { background: rgba(31,191,117,.13); }
.delta i { font-size: 8px; font-style: normal; }
.delta em { font-style: normal; opacity: .85; font-weight: 400; }
.stale { display: none; font-size: 10.5px; color: var(--amber); margin-left: 8px; padding: 3px 8px; border-radius: 7px; background: rgba(240,169,59,.12); }
.stale.on { display: inline-block; }
.chart { margin: 6px -16px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.1fr; padding: 9px 0 10px; border-bottom: 1px solid var(--line); }
.stats > div { padding: 0 12px; border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; border: 0; }
.stats span { display: block; font-size: 10.5px; color: var(--dim); margin-bottom: 3px; }
.stats span em { font-style: normal; color: var(--text); font-family: var(--fn); font-weight: 600; }
.stats b { font-size: 14px; font-weight: 600; }
.meter { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.09); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 2px; background: var(--down); transition: width .4s; }
.meter.gd i { background: var(--gold); }
.meter.warn i { background: var(--amber); }
.meter.bad i { background: var(--up); }

/* 卡片与列表 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.card.flush { padding: 0 14px; }
.card.pad0 { padding: 0; overflow: hidden; }
.ch { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.ch em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.link { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.link i { width: 14px; height: 14px; }
.sum3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.sum3 > div { border-left: 1px solid var(--line); padding-left: 14px; }
.sum3 > div:first-child { border: 0; padding-left: 0; }
.sum3 span { display: block; font-size: 10.5px; color: var(--dim); }
.sum3 b { font-size: 18px; font-weight: 600; }

.qx { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.qx a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.qi { width: 36px; height: 36px; border-radius: 13px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: #C9D3DF; }
.qi.gd { background: rgba(245,185,64,.15); color: var(--gold); }
.qi i { width: 19px; height: 19px; }

.dir { font-size: 10.5px; font-weight: 700; padding: 1.5px 6px; border-radius: 5px; }
.dir.b { background: rgba(240,84,94,.14); color: var(--up); }
.dir.s { background: rgba(31,191,117,.14); color: var(--down); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 2.5px 8px; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; }
.tag i { width: 12px; height: 12px; }
.tag.ok { background: rgba(31,191,117,.14); color: #4ED39A; }
.tag.wait { background: rgba(240,169,59,.15); color: var(--amber); }
.tag.run { background: rgba(91,157,255,.15); color: #8DBBFF; }
.tag.on { background: rgba(245,185,64,.15); color: var(--gold); }
.tag.red { background: rgba(240,84,94,.16); color: #FF7B82; }

.lrow { display: flex; align-items: center; gap: 11px; padding: 10px 0; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow .mid { flex: 1; min-width: 0; }
.lrow .mid b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lrow .mid > span { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .rt { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; flex: none; }
.lrow .rt > div { text-align: right; }
.lrow .rt b { display: block; font-size: 14.5px; font-weight: 600; }
.lrow .rt span { display: block; font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.lrow > i { width: 16px; height: 16px; color: var(--dim); flex: none; }
.lrow.wrap .mid > span { white-space: normal; line-height: 1.45; }
/* 说明类文字（如"先完成课程 X 再回来领取"）：单行省略会把条件截掉，允许折两行 */
.lrow .mid > span.hint { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; margin-top: 4px; }
.lrow.more { margin: 0; padding: 9px 2px 0; border-top: 1px solid var(--line); color: var(--muted); }
.avc { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--surface2); color: #C9D3DF; border: 1px solid var(--line2); }
.avc.gd { background: rgba(245,185,64,.16); color: var(--gold); border-color: rgba(245,185,64,.3); }
.avc.lg { width: 52px; height: 52px; font-size: 17px; }
.sym { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10.5px; letter-spacing: .3px; background: var(--surface2); border: 1px solid var(--line2); color: #C9D3DF; }

/* 交易页 */
.pt { height: 44px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.pt h2 { font-size: 20px; font-weight: 700; }
.sym-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; }
.sym-pick em { font-style: normal; font-size: 11px; color: var(--dim); font-weight: 400; }
.sym-pick i { width: 16px; height: 16px; color: var(--muted); }
.px { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 2px; }
.px-v { font-size: 30px; font-weight: 600; line-height: 1.1; display: block; }
.px-d { font-size: 12.5px; font-weight: 600; margin-top: 3px; display: block; }
.ba { display: flex; gap: 14px; font-size: 11px; color: var(--dim); }
.ba b { font-family: var(--fn); font-weight: 600; margin-left: 4px; }
.tf { display: flex; align-items: center; gap: 2px; margin: 0 -16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tf b { font-size: 12px; font-weight: 400; color: var(--muted); padding: 5px 9px 7px; position: relative; }
.tf b.on { color: var(--text); font-weight: 700; }
.tf b.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--gold); border-radius: 1px; }
.tf span { margin-left: auto; font-size: 10px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.tf i { width: 12px; height: 2px; border-radius: 1px; display: inline-block; }
.ma5 { background: var(--gold); } .ma20 { background: var(--info); }
.kchart { margin: 0 -16px; display: flex; flex-direction: column; }
.kx { display: flex; justify-content: space-between; padding: 2px 52px 0 4px; font-size: 9.5px; color: var(--dim); font-family: var(--fn); }
.psum { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11.5px; color: var(--muted); }
.psum b { font-family: var(--fn); font-weight: 600; color: var(--text); margin-left: 4px; }
.pos { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.pos + .pos { border-top: 1px solid var(--line); }
.pos .r1 { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.pos .r2 { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.pos .r2 span { font-family: var(--fn); color: var(--muted); }
.pos .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pos .rt b { font-size: 15px; font-weight: 600; }
.pos .rt em { font-style: normal; font-family: var(--fn); font-size: 11px; font-weight: 600; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bs button { height: 48px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff; }
.bs .buy { background: var(--up); }
.bs .sell { background: var(--down); }

/* 策略 */
.sw-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 5px 6px 5px 11px; border-radius: 20px; background: rgba(245,185,64,.13); color: var(--gold); }
.sw-pill.off { background: rgba(255,255,255,.07); color: var(--muted); }
.tgl { width: 38px; height: 22px; border-radius: 11px; background: var(--gold); position: relative; flex: none; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tgl.off { background: #3A4656; }
.tgl.off::after { transform: translateX(-16px); }
.stg { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; }
.stg.off { opacity: .55; }
.tile { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; flex: none; color: #B9C4D2; }
.tile.gd { background: rgba(245,185,64,.16); color: var(--gold); }
.tile.g { background: rgba(31,191,117,.14); color: var(--down); }
.tile i { width: 20px; height: 20px; }
.stg .mid { flex: 1; min-width: 0; }
.stg .r1 { font-weight: 700; font-size: 14px; }
.stg .r1 em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--dim); margin-left: 5px; }
.stg .r2 { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.note { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); border-radius: 14px; padding: 10px 13px; }
.note i { width: 16px; height: 16px; color: var(--gold); flex: none; }
.note.info { background: rgba(91,157,255,.08); border: 1px solid rgba(91,157,255,.28); }
.note.info i { color: var(--info); }
.note.card { border: 1px solid var(--line); background: var(--surface); }
.note.warn { background: rgba(240,169,59,.1); border: 1px solid rgba(240,169,59,.3); }
.note.warn i { color: var(--amber); }

/* 执行点 */
.hero-x { padding: 14px; }
.x-top { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.ring b span { font-size: 8.5px; color: var(--dim); font-family: var(--fn); margin-top: 1px; }
.x-info { flex: 1; }
.x-info .r1 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; }
.x-info .r2 { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kv3 { display: flex; gap: 18px; margin-top: 10px; }
.kv3 span { display: block; font-size: 10px; color: var(--dim); }
.kv3 b { font-size: 14px; font-weight: 600; }
.kv3 small { font-size: 9.5px; color: var(--dim); margin-left: 1px; }
.up7 { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 13px; }
.up7 i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(240,84,94,.78); }
.up7 i.w { background: rgba(31,191,117,.78); }
.up7.neutral i, .up7.neutral i.w { background: rgba(245,185,64,.55); }
.x-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.seat { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(120deg, rgba(245,185,64,.16), rgba(245,185,64,.04) 55%, var(--surface)); border-color: rgba(245,185,64,.32); }
.seat b { display: block; font-size: 14px; margin: 2px 0; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow > div { flex: 1; }
.mrow b { display: block; font-size: 13.5px; }
.mrow span:not(.tile):not(.tag) { display: block; font-size: 11px; color: var(--dim); margin-top: 1px; }
.mrow > i { width: 16px; height: 16px; color: var(--dim); }
.ttl { padding: 2px 4px; }
.tl { padding: 2px 4px 0 6px; }
.ti { display: flex; gap: 12px; position: relative; padding-bottom: 15px; }
.ti::before { content: ""; position: absolute; left: 5.5px; top: 14px; bottom: 0; width: 1px; background: var(--line2); }
.ti:last-child { padding-bottom: 0; }
.ti:last-child::before { display: none; }
.ti .dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--dim); margin-top: 3px; flex: none; background: var(--bg); z-index: 1; }
.ti .dot.ok { border-color: var(--down); }
.ti .dot.wn { border-color: var(--amber); }
.ti .dot.er { border-color: var(--up); }
.ti b { display: block; font-size: 13px; }
.ti span { display: block; font-size: 11px; color: var(--dim); margin-top: 1px; }
.banner { border-radius: 16px; padding: 12px 14px; background: rgba(240,169,59,.1); border: 1px solid rgba(240,169,59,.35); }
.banner .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #FFC56B; }
.banner .t i { width: 17px; height: 17px; }
.banner p { font-size: 11.5px; color: #C9B48C; margin-top: 5px; line-height: 1.55; }
.banner .meter { background: rgba(240,169,59,.18); margin-top: 10px; }
.banner .meter i { background: var(--amber); }
.banner .cap { color: #9E8659; margin-top: 6px; display: block; text-align: right; font-family: var(--fn); }

/* 我的 */
.prof { display: flex; align-items: center; gap: 12px; height: 58px; }
.prof > div { flex: 1; }
.prof b { display: flex; align-items: center; gap: 7px; font-size: 17px; }
.lvl { font-size: 10px; font-weight: 700; color: var(--gold); background: rgba(245,185,64,.15); padding: 2px 7px; border-radius: 6px; }
.prof > i { width: 16px; height: 16px; color: var(--dim); }
.mcard { position: relative; overflow: hidden; border-radius: 18px; padding: 15px 16px 14px; border: 1px solid rgba(245,185,64,.34); background: linear-gradient(135deg, #2B2412 0%, #1A1D26 58%, #151A22 100%); }
.mcard::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(245,185,64,.28), rgba(245,185,64,0) 68%); }
.mcard .cap { color: #B9A77A; }
.mcard .row.base { margin-top: 6px; }
.mcard .row.base > b { font-size: 30px; font-weight: 600; }
.mcard small { font-size: 12px; color: #B9A77A; margin-left: 3px; font-family: var(--f); font-weight: 400; }
.mrow3 { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 13px; border-top: 1px solid rgba(245,185,64,.2); padding-top: 11px; }
.mrow3 > div { border-left: 1px solid rgba(255,255,255,.08); padding-left: 14px; }
.mrow3 > div:first-child { border: 0; padding-left: 0; }
.mrow3 span { display: block; font-size: 10.5px; color: #9E9273; }
.mrow3 b { font-size: 16px; font-weight: 600; }

/* 按钮 */
.cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff; }
.cta.buy { background: var(--up); }
.cta.red { background: var(--up); }
.cta.sell { background: var(--down); }
.cta.gold { background: var(--gold); color: #1A1400; }
.cta.ghost { background: var(--surface2); color: var(--text); font-weight: 400; }
.cta.dis { background: var(--surface2); color: var(--dim); pointer-events: none; }
.cta i { width: 18px; height: 18px; margin-right: 6px; }
.cta + .cta { margin-top: 8px; }
.btn { height: 38px; padding: 0 16px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; }
.btn.gold { background: var(--gold); color: #1A1400; }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); font-weight: 400; }
.btn.dark { background: var(--surface2); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn.dis { opacity: .45; pointer-events: none; }

/* 表单 */
.field { margin-top: 14px; }
.field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field > label em { font-style: normal; color: var(--dim); margin-left: 6px; }
.fbox { display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); padding: 0 14px; transition: border-color .2s; }
.fbox:focus-within { border-color: rgba(245,185,64,.5); }
.fbox > i { width: 18px; height: 18px; color: var(--dim); }
.fbox b { font-size: 15px; font-weight: 600; }
/* 16px：低于这个值 iOS Safari 聚焦时会自动放大整页 */
.fbox input { flex: 1; min-width: 0; background: none; font-size: 16px; color: var(--text); }
.fbox input::placeholder { color: var(--dim); font-weight: 400; font-size: 14px; }
.fbox .tag { margin-left: auto; }
.fbox.err { border-color: rgba(240,84,94,.55); }
.fhint { font-size: 11px; color: var(--dim); margin-top: 6px; }
.fhint.err { color: #FF7B82; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 12px; padding: 6px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.chip.on { background: var(--text); color: #0B0E13; border-color: var(--text); }
.field .chips { margin: 0; flex-wrap: wrap; overflow: visible; gap: 7px; }
.field .chip { font-weight: 400; padding: 6px 12px; }
.ta { min-height: 92px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text); width: 100%; resize: vertical; }
.steps { display: flex; margin: 12px 0 8px; }
.steps > div { flex: 1; text-align: center; position: relative; }
.steps > div:not(:first-child)::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line2); }
.steps i { position: relative; z-index: 1; display: block; width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 6px; border: 2px solid var(--line2); color: var(--dim); font-size: 12px; font-weight: 700; line-height: 22px; font-family: var(--fn); font-style: normal; }
.steps .done i { background: var(--down); border-color: var(--down); color: #04150C; }
.steps .on i { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(245,185,64,.14); }
.steps span { font-size: 10.5px; color: var(--dim); }
.steps .on span { color: var(--text); }
.steps .done span { color: var(--muted); }
.lg { display: flex; gap: 10px; padding: 6px 0; font-family: var(--fn); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.lg:first-of-type { border-top: 0; }
.lg b { color: var(--dim); font-weight: 400; flex: none; }
.lg.ok { color: var(--down); }
.lg.err { color: #FF7B82; }
.chk { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 3px 14px; }
.chk > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 12.5px; border-top: 1px solid var(--line); }
.chk > div:first-child { border-top: 0; }
.chk i { width: 15px; height: 15px; color: var(--down); flex: none; }
.chk b { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--muted); }
.chk b.w { color: var(--amber); }
.para { font-size: 12.5px; line-height: 1.7; color: #C9D3DF; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv2 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; }
.kv2 span { font-size: 10.5px; color: var(--dim); display: block; }
.kv2 b { font-size: 14px; font-weight: 600; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.plan > div { background: var(--surface2); border-radius: 11px; padding: 9px 12px; }
.plan span { font-size: 10.5px; color: var(--dim); display: block; }
.plan b { font-size: 15px; font-weight: 600; }

/* 参数滑杆 */
.pset { padding: 11px 0; border-top: 1px solid var(--line); }
.pset:first-child { border-top: 0; padding-top: 2px; }
.pset .r1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; }
.pset .r1 b { font-size: 15px; font-weight: 600; }
.pset .r1 b.x { color: #FF7B82; }
.range { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin: 14px 2px 8px; }
.range i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--gold); }
.range b { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.range .fl { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--info); border-radius: 1px; }
.slider { -webkit-appearance: none; width: 100%; height: 22px; background: none; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }

/* 拦截原因 */
.why { display: flex; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.why i { width: 15px; height: 15px; color: #FF7B82; flex: none; margin-top: 2px; }
.why.prm i { color: var(--amber); }
.why b { display: block; font-size: 12.5px; color: var(--text); }
.why em { display: inline-block; font-style: normal; font-family: var(--fn); font-size: 10px; color: var(--dim); margin-top: 4px; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; }
.risk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px 13px; }
.rrow { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.rrow b { font-family: var(--fn); font-weight: 600; color: var(--text); }
.rrow b em { font-style: normal; color: var(--dim); font-weight: 400; }
.risk.blk { border-color: rgba(240,84,94,.4); }

/* 日历 / 资讯 */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dy { text-align: center; padding: 7px 0 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.dy span { font-size: 10px; color: var(--dim); display: block; }
.dy b { font-family: var(--fn); font-size: 15px; }
.dy.on { background: var(--gold); border-color: var(--gold); }
.dy.on span { color: #6A5200; }
.dy.on b { color: #1A1400; }
.ev { display: grid; grid-template-columns: 34px 40px 1fr 74px; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev > span { font-family: var(--fn); font-size: 12px; color: var(--text); }
.cur { font-size: 10.5px; font-weight: 700; padding: 2.5px 0; border-radius: 6px; background: var(--surface2); color: #C9D3DF; text-align: center; }
.ev .tt b { display: block; font-size: 12.5px; line-height: 1.4; }
.imp { display: flex; gap: 2px; margin-top: 4px; }
.imp i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.14); }
.imp i.on { background: var(--gold); }
.val { text-align: right; font-family: var(--fn); font-size: 10px; color: var(--dim); line-height: 1.5; }
.val b { color: var(--text); font-weight: 600; margin-left: 3px; }
.feat { display: flex; gap: 12px; align-items: center; }
.feat .tt { flex: 1; }
.feat .tt b { font-size: 15px; line-height: 1.45; display: block; }
.thumb { width: 96px; height: 68px; border-radius: 10px; flex: none; background: radial-gradient(80% 90% at 30% 20%, rgba(245,185,64,.5), transparent 60%), linear-gradient(135deg, #2A3548, #12181F); }
.nw { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.nw:first-child { border-top: 0; }
.nw .tt { flex: 1; min-width: 0; }
.nw .tt b { font-size: 13px; line-height: 1.45; display: block; }
.nw .tt span { font-size: 10.5px; color: var(--dim); display: block; margin-top: 4px; }
.nw .thumb { width: 66px; height: 46px; }

/* 雷达 / 代码块 / 套餐 / 充值 */
.bx { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bx i { width: 3.5px; border-radius: 1px; background: rgba(255,255,255,.12); }
.bx i.on { background: var(--up); }
.pr { margin-top: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 1.6; color: #B9C4D2; white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.pl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); position: relative; }
.pl:first-child { border-top: 0; }
.pl .mid { flex: 1; }
.pl .mid b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pl .mid > span { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; }
.pl .rt b { font-size: 20px; font-weight: 600; }
.pl .rt span { font-size: 10.5px; color: var(--dim); margin-left: 2px; }
.pl.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--gold); }
.pl.on { background: linear-gradient(90deg, rgba(245,185,64,.08), transparent 70%); }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amt { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 6px 9px; text-align: center; }
.amt b { display: block; font-size: 15px; font-weight: 600; }
.amt span { font-size: 10px; color: var(--dim); }
.amt.on { border-color: var(--gold); background: rgba(245,185,64,.1); }
.amt.on span { color: var(--gold); }
.pay { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.pay:first-child { border-top: 0; }
.pay b { flex: 1; font-size: 13.5px; }
.pic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.rad { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; }
.rad.on { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 48%); }
.mc2 { position: relative; overflow: hidden; border-radius: 18px; padding: 15px 16px; border: 1px solid rgba(245,185,64,.34); background: linear-gradient(135deg, #2B2412, #1A1D26 60%, #151A22); }
.mc2 .cap { color: #B9A77A; }
.mc2 .big { font-size: 24px; font-weight: 700; margin: 4px 0 8px; }
.mc2 .row { font-size: 11.5px; color: #C9BC98; }

/* 登录 */
.login { background: radial-gradient(120% 55% at 50% 0%, rgba(245,185,64,.22), transparent 62%), var(--bg); }
.lgn { padding: 0 26px; gap: 0; }
.logo.xl { width: 64px; height: 64px; border-radius: 20px; margin-top: 48px; }
.logo.xl i { width: 32px; height: 32px; }
.lt1 { font-size: 30px; font-weight: 700; letter-spacing: .5px; margin-top: 18px; }
.lt2 { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.lgn .row { margin-top: 14px; font-size: 12px; color: var(--muted); }
.bio { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.bio > div { flex: 1; }
.bio b { display: block; font-size: 13.5px; }
.bio span { display: block; font-size: 11px; color: var(--dim); }
.ob { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.ob:first-child { border-top: 0; padding-top: 4px; }
.ob .n { width: 44px; height: 44px; border-radius: 14px; flex: none; background: rgba(245,185,64,.15); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--fn); font-weight: 700; font-size: 17px; }
.ob b { display: block; font-size: 15px; }
.ob p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.ob .tag { margin-top: 7px; }

/* 空状态 */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 24px; text-align: center; }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--dim); }
.empty .ico i { width: 26px; height: 26px; }
.empty b { font-size: 15px; }
.empty p { font-size: 12px; color: var(--dim); line-height: 1.6; max-width: 240px; }

/* 抽屉 / 弹层 */
.sheet-mask { position: absolute; inset: 0; z-index: 40; background: rgba(4,6,10,.62); display: flex; align-items: flex-end; animation: fade .18s ease; }
.sheet { width: 100%; background: #12171F; border-radius: 26px 26px 0 0; border-top: 1px solid var(--line2); padding: 10px 20px calc(24px + var(--safe-bottom)); box-shadow: 0 -24px 60px rgba(0,0,0,.55); animation: up .24s cubic-bezier(.22,.9,.3,1); max-height: 88%; overflow-y: auto; }
.grip { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 0 auto 14px; }
.sh-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sh-hd > b { font-size: 16px; }
.sh-hd .cap { margin-left: 6px; }
.sh-hd > i { color: var(--dim); width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); width: min(430px, 100%);
  /* 底部弹出：顶部放不下——会正好压住净值曲线和周期切换 */
  bottom: calc(76px + var(--safe-bottom)); top: auto;
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 88%; padding: 10px 14px; border-radius: 12px; background: rgba(24,31,41,.96); border: 1px solid var(--line2); font-size: 12.5px; color: var(--text); box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: toastin .2s ease; display: flex; gap: 8px; align-items: flex-start; }
.toast i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.toast.ok i { color: var(--down); }
.toast.err i { color: var(--up); }
.toast.warn i { color: var(--amber); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }   /* 自下而上，与底部位置一致 */

/* 加载骨架 */
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; color: var(--dim); font-size: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 图表内联 SVG */
svg.chart-svg { display: block; width: 100%; }
/* 图表价格气泡：默认必须不可见。它是 JS 动态 append 的，
   若初始 opacity 为 1 就会停在容器左上角露一个空胶囊。 */
.tip { position: absolute; left: 8px; top: 4px; opacity: 0; transition: opacity .12s; padding: 4px 8px;
       border-radius: 7px; background: rgba(12,16,22,.95); border: 1px solid var(--line2);
       font-family: var(--fn); font-size: 10.5px; color: var(--text); pointer-events: none; white-space: nowrap; }

/* K 线全屏页（drawer 式头图 + OHLC 摘要） */
.fhd { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; }
.fhd > a { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.fhd > a i { width: 22px; height: 22px; color: var(--text); }
.fhd > b { flex: 1; font-size: 16px; font-weight: 700; }
.fhd > span { font-family: var(--fn); font-size: 13px; color: var(--muted); }
.oh { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 14px 10px; }
.oh span { font-size: 10px; color: var(--dim); display: block; }
.oh span b { display: block; font-family: var(--fn); font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.tools { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 0 8px; }
/* min-width:0 是关键：flex 项默认 min-width:auto，横向滚动的 chip 条不肯缩，
   会直接溢出盖到右侧图例上（周期条压住 MA5 的元凶）。 */
.tools .chips { flex: 1; min-width: 0; margin: 0; padding: 0; }
.mleg { flex: none; display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--dim); white-space: nowrap; }
.mleg span { display: inline-flex; align-items: center; gap: 3px; }
.mleg span::before { content: ""; width: 8px; height: 2px; border-radius: 1px; background: currentColor; opacity: .8; }
.mleg span:last-child::before { display: none; }

/* K 线全屏：图表吃掉剩余高度，不再靠固定 330px 留出空带 */
.klf .fhd { padding: 6px 14px 4px; gap: 8px; }
.klf .fhd > span.num { font-size: 15px; font-weight: 700; color: var(--text); }
.klf .fhd > .hd-src { flex: none; display: flex; align-items: center; font-family: inherit; }
.klf-q { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px 8px; font-size: 11px; color: var(--dim); }
.klf-q > span { display: inline-flex; align-items: center; gap: 4px; }
.klf-q > span:first-child { margin-right: auto; font-size: 12px; }
.klf-q b { font-family: var(--fn); font-size: 12.5px; font-weight: 600; }
.klf .oh { padding: 0 14px 8px; }
.klf-tools { flex: none; padding: 0 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.klf-tools .chips { margin: 0; padding: 0; gap: 6px; min-width: 0; }
.klf-tools .chip { padding: 5px 12px; font-size: 11.5px; }
.klf-leg { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 7px 2px 3px; font-size: 9.5px; color: var(--dim); }
.klf-chart { flex: 1; min-height: 150px; position: relative; padding: 0 14px; }
.klf-chart > div { height: 100%; }
.klf-chart svg.chart-svg { height: 100%; }
.klf .kx { flex: none; padding: 5px 14px 6px; }
.klf .dock { padding: 8px 14px calc(10px + var(--safe-bottom)); background: transparent; }
.klf .dock .bs button { height: 44px; font-size: 15px; }

/* 启动闪屏（main.js 接管前） */
.boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(70% 50% at 50% 22%, #12161D 0%, #05070A 70%); }
.boot-logo { width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(245,185,64,.22), rgba(245,185,64,.05)); border: 1px solid rgba(245,185,64,.28); color: var(--gold); }
.boot-logo svg { width: 30px; height: 30px; }
.boot-name { margin-top: 12px; font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.boot-sub { font-size: 11.5px; color: var(--dim); }
.boot-bar { margin-top: 22px; width: 92px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--gold); animation: bootslide 1.1s ease-in-out infinite; }
@keyframes bootslide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
.noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* 策略卡：运行条 + 键值行（srow 同时用于竞技场规则清单） */
.bars9 { display: flex; gap: 3px; margin: 3px 0 9px; }
.bars9 i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface2); }
.bars9 i.on { background: var(--gold); }
.srow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12px; color: var(--muted); }
.srow + .srow { border-top: 1px solid var(--line); }
.srow b { font-family: var(--fn); font-size: 13.5px; font-weight: 600; color: var(--text); }

/* 下单弹层：方向分段 / 手数步进 / 快捷手数 */
.dir-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dir-seg b { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.dir-seg b.on.b { background: var(--up); border-color: var(--up); color: #fff; }
.dir-seg b.on.s { background: var(--down); border-color: var(--down); color: #fff; }
.lb { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 700; margin: 14px 0 7px; }
.lb em { font-weight: 400; font-size: 10.5px; }
.lot { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px; }
.lot .stp { height: 44px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-size: 19px; font-weight: 600; line-height: 1; }
.lot .stp:active { background: var(--surface2); }
.lot b { text-align: center; font-family: var(--fn); font-size: 22px; font-weight: 600; }
.pre { display: flex; gap: 6px; }
.pre b { flex: 1; padding: 7px 0; text-align: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--fn); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pre b.on { background: rgba(245,185,64,.15); border-color: rgba(245,185,64,.45); color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 暂停自动交易 */
.pause { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 2px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-size: 13px; font-weight: 700; }
.pause i { width: 15px; height: 15px; color: var(--gold); }
.pause:active { background: var(--surface2); }

/* 弹层内容容器 */
.sh-body { display: flex; flex-direction: column; }
.sh-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* 滚动区子项禁止被压缩：.scroll 是 flex 列，内容超出视口时
   带 overflow:hidden 的卡片（.mcard 等）会被压成一条细线。 */
.scroll > * { flex: none; }

/* 通用工具类 */
.stack { display: flex; flex-direction: column; gap: 10px; }
.hide { display: none !important; }

/* ── 触摸热区 ──────────────────────────────────────────
   手指不是鼠标：视觉上再小的文字按钮，命中区也要 >= 34px 高，
   否则窄屏（375/360）上很容易点空。热区靠 padding 撑，不改变字号。 */
.tb > span > .gold-t,
.tb .gold-t {
  display: inline-flex; align-items: center; justify-content: flex-end;
  min-height: 34px; padding: 0 4px; margin: -6px 0;
}
.sym-pick { min-height: 34px; padding: 2px 0; }
.tf b { display: inline-flex; align-items: center; min-height: 34px; padding-top: 0; padding-bottom: 0; }
.tf b.on::after { bottom: 0; }
/* 分段控件（今日/7日/30日、持仓/挂单/成交）给足高度 */
.seg { min-height: 34px; }
.seg b { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; }

/* 窄屏剩余三处：容器本身带 data-act，撑到 34 才有稳定手感 */
.sw-pill { min-height: 34px; }
.chips { min-height: 34px; align-items: center; }
.chips > b, .chips > a { min-height: 32px; display: inline-flex; align-items: center; }
.tf { min-height: 36px; }

/* ── 设计稿 v0.3 收口：行内走势、空图表位、滑杆填充 ─────────────
   .sp 是设计稿里列表行右侧的迷你曲线（策略贡献、社区收益、AI 记录），
   只是折线，不带网格与填充，宽度固定 46 以免行高被撑开。 */
.sp { display: inline-flex; width: 46px; height: 22px; flex: none; }
.sp svg { width: 100%; height: 100%; display: block; }

/* 未绑定时不留一块空黑：虚线框 + 一行说明，高度与真实曲线一致，
   绑定后不会发生布局跳动。 */
.chart.empty {
  height: 68px; margin: 8px 0 0; border: 1px dashed var(--line2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--dim);
}
.chart.empty i { width: 15px; height: 15px; }

/* 原生 range 轨道默认是纯灰条，设计稿要求「已选段金色」。
   用 --p（当前值百分比）做分段渐变，Chromium / Firefox 都能吃到。 */
.slider { --p: 0%; }
.slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(255,255,255,.1) var(--p) 100%);
}
.slider::-moz-range-track {
  background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(255,255,255,.1) var(--p) 100%);
}

/* 会员卡三格里的套餐名可能很长（「V2 会员 · 试用」），单行截断不换行 */
.mrow3 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }

/* 日历条里跨月的两天（本周属于上/下月）弱化，避免误读成本周日期 */
.dy.out span, .dy.out b { opacity: .42; }

/* ── 实时行情角标（交易页 / K 线页）─────────────────────────
   真实源才写「实时」，券商没有该品种（如本机没有美原油）时写「演示」，
   避免用户把模拟价当成交价。 */
.pt-r { display: flex; align-items: center; gap: 10px; }
.src-pill { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px;
  border-radius: 10px; font-size: 9.5px; font-weight: 600; letter-spacing: .2px; }
.src-pill i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.src-pill.live { color: #35C48E; background: rgba(31,191,117,.12); }
.src-pill.live i { background: #35C48E; animation: srcPulse 2.4s ease-in-out infinite; }
.src-pill.mock { color: var(--amber); background: rgba(240,169,59,.12); }
.src-pill.mock i { background: var(--amber); }
@keyframes srcPulse { 50% { opacity: .3; } }

/* 长按看盘：竖直游标 + 顶部 OHLC 条 */
.kchart { position: relative; }
.kl-cursor { position: absolute; top: 0; bottom: 14px; width: 1px; background: rgba(255,255,255,.26);
  opacity: 0; transition: opacity .12s; pointer-events: none; }
.kl-tip { position: absolute; left: 6px; top: 2px; display: flex; gap: 7px; align-items: baseline;
  padding: 2px 7px; border-radius: 6px; background: rgba(10,14,20,.92);
  border: 1px solid var(--line2); font-family: var(--fn); font-size: 9.5px; color: var(--muted);
  opacity: 0; transition: opacity .12s; pointer-events: none; }
.kl-tip b { font-size: 11.5px; }

/* ── 手工下单：与电脑版右侧面板同构 ────────────────────────── */
.ob { display: flex; flex-direction: column; gap: 9px; }
.ob-hd { display: flex; align-items: center; justify-content: space-between; }
.ob-bar { background: var(--gold); color: #1A1405; font-weight: 700; font-size: 11.5px;
  border-radius: 5px; padding: 3px 10px; }
.ob-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #35C48E; }
.ob-live i { width: 6px; height: 6px; border-radius: 50%; background: #1F7A4D; }

.ob-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ob-q { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 10px;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); }
.ob-q span { font-size: 10.5px; font-weight: 600; }
.ob-q span em { font-style: normal; font-size: 8.5px; color: var(--dim); margin-left: 3px; letter-spacing: .4px; }
.ob-q.s span { color: #35C48E; }
.ob-q.b span { color: #F0726A; }
.ob-q b { font-size: 14px; font-weight: 600; }
.ob-q.s.on { background: #123C2E; border-color: #16A97A; }
.ob-q.b.on { background: #35181B; border-color: #E1493F; }

.ob-dir { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ob-dir > b { flex: none; }
.ob-dir > b { font-size: 21px; font-weight: 700; line-height: 1.1; }
.ob-align { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ob-align > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ob-align b { display: inline; font-size: 12.5px; color: var(--text); }
.ob-align em { font-style: normal; font-size: 9.5px; color: var(--dim); }
.ob .dim { font-size: 10.5px; color: var(--dim); }

.ob-row { display: grid; grid-template-columns: 30px 1fr 34px 34px; align-items: center; gap: 6px; }
.ob-lb { font-size: 10.5px; color: var(--dim); }
.ob-step { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; height: 33px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; }
.ob-step button { height: 31px; font-size: 17px; line-height: 1; color: var(--text); }
.ob-step button:active { background: var(--surface2); }
.ob-step b { text-align: center; font-size: 14px; font-weight: 600; }
.ob-mini { height: 33px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--line2); font-size: 11px; font-weight: 600; color: var(--muted); }
.ob-mini:active { background: var(--surface2); }

.ob-sl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.ob-sl label { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--dim); }
.ob-sl label em { font-style: normal; color: var(--muted); }
.ob-link { margin-left: auto; font-size: 9.5px; color: var(--gold); padding: 0 2px; }
.ob-in { display: flex; align-items: center; height: 34px; padding: 0 9px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; }
.ob-in input { width: 100%; font-family: var(--fn); font-size: 16px; font-weight: 600; }
.ob-in input::placeholder { color: var(--dim); font-weight: 400; font-size: 13px; }

.ob-risk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted); }
.ob-risk > span { white-space: nowrap; }
.ob-risk b, .ob-risk em { display: inline; }
.ob-risk b { font-size: 11.5px; color: var(--text); }
.ob-risk em { font-style: normal; color: var(--dim); }
.ob-warn { color: var(--amber); }

.ob-tiers { display: flex; flex-direction: column; gap: 5px; padding: 6px 8px;
  border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.ob-th { display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; color: var(--muted); }
.ob-tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ob-tg > div { display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 3px 5px; border-radius: 5px; background: #121A26; border: 1px solid #2A3B57; }
.ob-tg b { font-size: 10.5px; }
.ob-tg span { font-size: 10px; }
.ob-tg em { font-style: normal; font-size: 9px; color: var(--dim); }
.ob-tg.on > div { border-color: #3C5372; background: #16202E; }
.ob-tg.on > div b { color: var(--gold); }

/* 「启动 AI 接管交易」：真实开关（随单提交 ai.enabled），不是装饰按钮 */
.ob-ai { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line2);
  font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ob-ai i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); flex: none; }
.ob-ai:active { transform: scale(.97); }
.ob-ai.on { background: #2C1417; border-color: #8A363B; color: #F58C84; }
.ob-ai.on i { background: #F0726A; box-shadow: 0 0 0 3px rgba(240,114,106,.18); }

.ob-note { font-size: 10px; line-height: 1.5; padding: 5px 8px; border-radius: 0 6px 6px 0; }
.ob-note.warn { background: rgba(240,169,59,.1); border-left: 2px solid var(--amber); color: var(--amber); }
.ob-note.ok { background: rgba(53,196,142,.09); border-left: 2px solid #35C48E; color: #4FD3A0; }

/* 周期共振：对应电脑版「多空日历」右栏那块四周期面板，视觉与口径都照电脑版：
   金色标题条（标题 + 摘要）→ 圆徽章周期行（波幅/强度 + 方向 + 多空占比条）
   → 底部「结论 = AI 决策」+ 依据（几多几空几观）+ 决策置信度。
   结论不按票数自算：电脑版 MarketResonance 已把这条写死，手机端不许再分叉。 */
.card.res { padding: 0; overflow: hidden; }
.res-hd { position: relative; display: block; padding: 6px 12px 5px; min-height: 40px; background: linear-gradient(180deg, #F8CC44, #EDB108); }
.res-hd > b { display: block; font-size: 12.5px; font-weight: 700; color: #1A1405; letter-spacing: .2px; }
.res-sub { display: block; margin-top: 2px; font-size: 10px; color: rgba(26, 20, 5, .68); font-variant-numeric: tabular-nums; }
.res-cv { position: absolute; top: 11px; right: 11px; width: 14px; height: 14px; color: rgba(26, 20, 5, .62); transition: transform .18s ease; }
.card.res.col .res-cv { transform: rotate(-90deg); }
.card.res.col #t-resb { display: none; }

.res-list { padding: 4px 12px 0; }
.res-row { padding: 4px 0; border-top: 1px solid var(--line); }
.res-row:first-child { border-top: 0; padding-top: 3px; }
.res-top { display: flex; align-items: center; gap: 6px; }
/* 圆徽章：多/空/观，跟电脑版 TfBadgeStyle 一致（底色淡染 + 文字同色描边） */
.res-bd { width: 20px; height: 20px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; border: 1px solid transparent; }
.res-bd.up { color: #F0545E; background: rgba(229, 72, 77, .15); border-color: rgba(229, 72, 77, .34); }
.res-bd.down { color: #35C48E; background: rgba(37, 179, 107, .15); border-color: rgba(37, 179, 107, .34); }
.res-bd.flat { color: #8D99A9; background: rgba(155, 168, 190, .12); border-color: rgba(155, 168, 190, .28); }
.res-tf { flex: none; font-family: var(--fn); font-size: 11px; font-weight: 700; }
.res-meta { flex: 1; min-width: 0; font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-meta b { font-size: 11px; color: var(--muted); }
.res-side { flex: none; font-size: 11px; font-weight: 700; }
.res-side.up { color: var(--up); }
.res-side.down { color: var(--down); }
.res-side.flat { color: var(--dim); }

.res-bar { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 9.5px; }
.res-bar > span:first-child { width: 42px; flex: none; }
.res-bar > span:last-child { width: 42px; flex: none; text-align: right; }
.res-bar .flat { color: var(--dim); }
.res-track { flex: 1; height: 3px; border-radius: 2px; overflow: hidden; display: flex; background: var(--surface2); }
.res-track i { display: block; height: 100%; }
.res-track i.up { background: var(--up); }
.res-track i.down { background: var(--down); }
/* 观望：条子整段染灰，避免「观望 52%」看起来像强烈偏多 */
.res-track.flat i.flat { background: #2B3546; }

/* 底部结论行：左「结论」（只认 AI 决策）｜右「依据 + 决策置信度」 */
.res-ft { display: flex; align-items: center; gap: 6px; padding: 5px 12px 6px; border-top: 1px solid var(--line); }
.res-concl { flex: none; font-size: 14px; font-weight: 700; line-height: 1.1; }
.res-concl.up { color: var(--up); }
.res-concl.down { color: var(--down); }
.res-concl.flat { color: var(--dim); }
.res-basis { margin-left: auto; min-width: 0; font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-conf { flex: none; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(233, 238, 248, .18); }
.res-conf.up { color: var(--up); }
.res-conf.down { color: var(--down); }
.res-conf.flat { color: var(--muted); }
.res-empty { padding: 2px 12px 12px; font-size: 11px; color: var(--dim); line-height: 1.6; }

/* ── 总览：对标首页（引擎状态） ─────────────────────────────
   结构见 docs/mobile-design-spec.md §4.4。背景只服务标题区，
   到卡片区必须收成纯 --bg，否则面层压在蓝光上会发脏。 */
.ov { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: -12px; }

.ov-bg { position: absolute; left: -16px; right: -16px; top: -4px; height: 392px; overflow: hidden; pointer-events: none; z-index: 0; }
.ov-bg img { position: absolute; top: -142px; right: -152px; width: 566px; max-width: none; height: auto; opacity: .86; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(112% 104% at 76% 24%, #000 30%, rgba(0,0,0,.62) 58%, transparent 82%);
          mask-image: radial-gradient(112% 104% at 76% 24%, #000 30%, rgba(0,0,0,.62) 58%, transparent 82%); }
.ov-bg::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,13,0) 0%, rgba(7,9,13,.20) 34%, rgba(7,9,13,.68) 68%, var(--bg) 94%),
    linear-gradient(100deg, rgba(7,9,13,.94) 0%, rgba(7,9,13,.72) 34%, rgba(7,9,13,.24) 58%, transparent 78%),
    radial-gradient(62% 34% at 94% 20%, rgba(7,9,13,.72), rgba(7,9,13,.28) 58%, transparent 78%); }
.ov > * { position: relative; z-index: 1; }
/* 必须显式写回 absolute：上面 `.ov > *` 与 `.ov-bg` 同权重，
   否则背景层会回到文档流里，把整页内容顶下 392px。 */
.ov > .ov-bg { position: absolute; z-index: 0; }

.ov-svg { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ov-svg svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ov-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 0; }
.ov-hd h1 { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.7px; color: #F5F8FC; }
.ov-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #B6C2D0; }
.ov-meta .pulse { width: 6px; height: 6px; }
.ov-hint { font-size: 10.5px; color: #6B7686; margin-top: 2px; }

.ov-acct { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ov-acct-l { font-size: 10.5px; color: var(--dim); }
.ov-acct-l b { font-size: 13px; font-weight: 800; color: #F5F8FC; letter-spacing: .02em; }
.ov-acct-r { font-family: var(--fn); font-size: 9.5px; color: #8E9AAE; text-shadow: 0 1px 6px rgba(0,0,0,.95); flex: none; }
.ov-eq { display: flex; align-items: baseline; gap: 6px; margin-top: -3px; }
.ov-eq-n { font-size: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.ov-eq-c { font-size: 9.5px; color: var(--dim); }
.ov-eq-d { margin-left: auto; font-family: var(--fn); font-size: 11px; color: var(--muted); text-shadow: 0 1px 6px rgba(0,0,0,.9); }

.ov-steps { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: start; padding-top: 0; }
.ov-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ov-step-ic { width: 31px; height: 31px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; color: #8FA0B4; }
.ov-step-ic .ov-svg { width: 16px; height: 16px; }
.ov-step b { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.ov-step em { display: flex; align-items: center; gap: 3px; font-style: normal; font-size: 9.5px; color: var(--dim); line-height: 1.2; max-width: 100%; }
.ov-step em .ov-svg { width: 9px; height: 9px; }
.ov-step.ok .ov-step-ic { border-color: rgba(245,185,64,.5); color: var(--gold); background: rgba(245,185,64,.07); }
.ov-step.wait .ov-step-ic { border-color: rgba(240,169,59,.42); color: var(--amber); }
.ov-step.wait em { color: var(--amber); }
.ov-step.off em { color: var(--dim); }
.ov-link { height: 1px; margin-top: 15px; border-top: 1px dashed rgba(255,255,255,.26); position: relative; }
.ov-link::after { content: ""; position: absolute; right: 1px; top: -3px; width: 5px; height: 5px; border-top: 1px solid rgba(255,255,255,.48); border-right: 1px solid rgba(255,255,255,.48); transform: rotate(45deg); }

.ov-cta { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; border-radius: 13px;
  background: linear-gradient(180deg, #F9C95F 0%, #F2B335 100%); color: #241A00; font-size: 15px; font-weight: 800;
  letter-spacing: .03em; box-shadow: 0 10px 22px rgba(245,185,64,.16); }
.ov-cta .ov-svg { width: 19px; height: 19px; }
.ov-cta:active { transform: scale(.99); }
.ov-more { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 10.5px; color: var(--muted); }
.ov-more b { font-family: var(--fn); font-size: 11px; color: var(--text); }
.ov-more i { width: 13px; height: 13px; }

.ov-hr { height: 1px; background: rgba(255,255,255,.07); margin: 1px 0; }

.ov-card { background: rgba(19,25,33,.9); padding: 10px 14px 11px; }
.ov-ch-t { display: flex; align-items: center; gap: 7px; }
.ov-ch-t .ov-svg { width: 16px; height: 16px; color: var(--gold); }
.ov-tag { font-size: 9.5px; color: var(--muted); border: 1px solid var(--line2); border-radius: 7px; padding: 2px 7px; font-weight: 400; }
.ov-tag.ok { color: var(--gold); border-color: rgba(245,185,64,.4); background: rgba(245,185,64,.09); }
.ov-sub { font-size: 10.5px; color: var(--dim); margin-top: 4px; }
.ov-in { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ov-in-i { width: 30px; height: 30px; border-radius: 9px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex: none; }
.ov-in-i .ov-svg { width: 15px; height: 15px; }
.ov-in-i.gold { border-color: rgba(245,185,64,.42); background: rgba(245,185,64,.08); color: var(--gold); }
.ov-in-i.red { border-color: rgba(240,84,94,.42); background: rgba(240,84,94,.08); color: var(--up); }
.ov-in-t { flex: 1; font-size: 11.5px; color: var(--muted); }
.ov-in-v { font-size: 13px; color: var(--text); }
.ov-in-v.off { font-size: 11.5px; color: var(--dim); }
.ov-pen { width: 13px; height: 13px; color: var(--dim); }
.ov-note { font-size: 9.5px; color: var(--dim); line-height: 1.42; margin-top: 5px; }

.ov-sym { display: block; }
.ov-sym-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.ov-sym-top b { font-size: 11.5px; font-weight: 700; color: #C9D3DF; letter-spacing: .02em; }
.ov-sym-mid { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ov-sym-mid b { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.ov-sym-mid i { font-style: normal; font-size: 20px; color: var(--muted); }
.ov-sym-sp { margin-left: auto; font-size: 10px; color: var(--dim); }
.ov-sym-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--dim); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

.ov-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ov-entries a { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 9px; border-radius: 13px; min-width: 0;
  border: 1px solid rgba(245,185,64,.20); background: linear-gradient(180deg, rgba(245,185,64,.09), rgba(245,185,64,.03)); }
.ov-entries i { width: 16px; height: 16px; color: var(--gold); }
.ov-entries span { font-size: 11px; font-weight: 700; color: #E7EDF5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ov-tools { display: grid; grid-template-columns: repeat(4, 1fr); }
.ov-tools a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; font-size: 10px; color: #8A96A6; }
.ov-tools a + a::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.06); }
.ov-tools i { width: 20px; height: 20px; color: var(--gold); }

.ov-dec-hd { display: flex; align-items: center; justify-content: space-between; }
.ov-dec-hd b { font-size: 13.5px; font-weight: 700; }
.ov-dec-hd a { display: flex; align-items: center; gap: 2px; font-size: 10px; color: var(--dim); }
.ov-dec-hd a i { width: 12px; height: 12px; }
.ov-dec-row { display: flex; gap: 8px; margin-top: 7px; }
.ov-dec-rail { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 2px; flex: none; }
.ov-dec-rail i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #5B84C4; background: var(--bg); flex: none; }
.ov-dec-rail em { width: 1px; flex: 1; background: rgba(255,255,255,.1); }
.ov-dec-body { min-width: 0; }
.ov-dec-body b { display: block; font-size: 12px; font-weight: 700; color: #C9D3DF; }
.ov-dec-body span { display: block; font-size: 10px; color: var(--dim); margin-top: 2px; line-height: 1.42; }
.ov-dec-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--dim); margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }

/* ── 跟单 / 竞技 / 学院 / 模块 / 对话（2026-12-03 补齐电脑版功能）─── */

/* 底部动作栏：原来只有两列（买/卖），跟单详情要放三颗按钮 */
.bs.c3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bs button.ghost, .bs a.ghost {
  background: rgba(255, 255, 255, .07); color: var(--text);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.bs button.dark, .bs a.dark {
  background: var(--surface2); color: var(--text);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.bs a { height: 48px; border-radius: 14px; }

/* 挂单类型四选一（买入/卖出 × 限价/突破） */
.ob-dir b { color: var(--muted); transition: all .15s; }
.ob-dir b.on {
  border-color: rgba(245, 185, 64, .55); color: var(--gold);
  background: rgba(245, 185, 64, .12);
}

/* 可点击的 chip（筛选/有效期），原来只有 a[href] 有 pointer */
.chip[data-r], .chip[data-e], .chip[data-sug], .chip[data-act] { cursor: pointer; }

/* 模块开关行：开关不可点时给个降级视觉，避免用户反复点 */
.tgl.dis { opacity: .5; pointer-events: none; }

/* AI 对话输入框：手机上要能换行、不被键盘顶掉 */
#ac-in:focus { outline: none; border-color: rgba(245, 185, 64, .55); }
#ac-in::placeholder { color: var(--dim); }

/* 学院课时正文：段落间距比 .para 略大，长文更好读 */
.para + .para { margin-top: 2px; }

/* 三个/四个选项的分段控件：.seg.big 只有两列，.seg.w 只有三列，
   直接塞第三个/第四个 tab 会换行 —— 这里补两档，不改原样式。 */
.seg.big.b3 { grid-template-columns: repeat(3, 1fr); }
.seg.w.w4 { grid-template-columns: repeat(4, 1fr); }

/* 跟单卡片标题行：名称过长时省略，不让标签被挤到第二行 */
.copy-nm { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; min-width: 0; }
.copy-nm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-nm .tag, .copy-nm i, .copy-nm span.tag { flex: none; }

/* 底部栏里的危险动作：.bs .sell 是"卖出"(绿)，不能拿来当"停止跟单" */
.bs .red, .bs button.red { background: var(--up); color: #fff; }

/* 模块描述要能看到"依赖 xxx"，单行省略会把关键信息截掉 */
.mod-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal !important; line-height: 1.45;
}
