/* =========================================================================
   ApexCopy 用户端样式
   一套字体（系统中文字体）· 6 档字号 · 3 档字重 · 淡色交互框 · 无阴影
   ========================================================================= */
:root {
  --paper: #F1F4F3;
  --surface: #FFFFFF;
  --field: #F3F6F5;
  --field-hover: #ECF1EF;
  --track: #E6ECE9;
  --line: #DFE6E3;
  --line-strong: #C7D1CD;
  --ink: #1B2A33;
  --ink-2: #4A5A63;
  --ink-3: #7D8B93;
  --brand: #0F7A68;
  --brand-press: #0B6252;
  --brand-tint: #E2F1EC;
  --brand-wash: #F1F8F5;
  --up: #178A4E;
  --up-tint: #E6F4EB;
  --down: #CC4436;
  --down-tint: #FBEAE7;
  --warn: #9A630F;
  --warn-tint: #FBF2E1;
  --slate: #1C2B3A;
  --slate-2: #8EA2B5;
  --slate-3: #2A3B4C;      /* 深色面板上的按钮底色、悬停 */
  --slate-line: #2E4357;   /* 深色面板上的分隔线 */
  --slate-ink: #C9D6E2;    /* 深色面板上的正文 */
  --brand-bright: #4FC3AE; /* 深色面板上的品牌色 */
  /* 跟单广场卡片（参考社区帖子卡片）：黄色「跟单」胶囊按钮、前三名的金色字、8 种头像底色。只在广场卡片里用 */
  --accent: #F0B90B;
  --accent-press: #E2AC05;
  --accent-ink: #1B2A33;
  --gold-ink: #94670A;
  --av-0: #E07A2E; --av-1: #3471D1; --av-2: #14957F; --av-3: #7F5FD0;
  --av-4: #D04E72; --av-5: #B07D1E; --av-6: #3F7F99; --av-7: #4A9446;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --t-12: 12px; --t-13: 13px; --t-15: 15px; --t-17: 17px; --t-22: 22px; --t-30: 30px;

  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 16px; --r-pill: 999px;
  --gap: 16px;
  --header-h: 56px;
  --tab-h: 58px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--t-13); }
.tiny { font-size: var(--t-12); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------- 外壳 ---------------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: var(--t-17); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--slate); display: grid; place-items: center; flex: none; }
.topnav { display: none; }
.topbar .page-title { font-size: var(--t-17); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand { display: none; }
.account { display: none; }
.back-btn { display: inline-flex; }

.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: var(--t-12); color: var(--ink-3);
}
.tabbar a:hover { text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); font-weight: 600; }

@media (min-width: 960px) {
  .topbar { padding: 0 28px; gap: 28px; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar .brand { display: flex; }
  .topbar .page-title, .back-btn { display: none !important; }
  .topnav { display: flex; gap: 4px; flex: 1; height: 100%; }
  .topnav a {
    display: flex; align-items: center; padding: 0 12px; color: var(--ink-2); font-size: var(--t-15);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
  }
  .topnav a:hover { color: var(--ink); text-decoration: none; }
  .topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
  .account { display: flex; align-items: center; gap: 12px; font-size: var(--t-13); color: var(--ink-2); }
  .account a.account-email { color: inherit; }
  .account a.account-email:hover { color: var(--ink); }
  .account .account-me { display: none; }
  .tabbar { display: none; }
  .main { padding: 32px 28px 64px; }
}

/* ---------------- 页面结构 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: var(--t-22); font-weight: 600; line-height: 1.3; }
.page-head p { color: var(--ink-2); margin-top: 4px; font-size: var(--t-13); }
@media (max-width: 959px) { .page-head h1 { display: none; } .page-head { margin-bottom: 14px; } }
.section { margin-top: 28px; }
.section-title { font-size: var(--t-17); font-weight: 600; margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title small { font-size: var(--t-13); font-weight: 400; color: var(--ink-3); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* 面板：白底细线，按层级用不同圆角，不加阴影 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: 18px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list > .item + .item { border-top: 1px solid var(--line); }
.item { padding: 14px 16px; }
.item.clickable { cursor: pointer; }
.item.clickable:hover { background: var(--brand-wash); }
.wash { background: var(--brand-wash); border: 1px solid var(--brand-tint); border-radius: var(--r-md); padding: 12px 14px; color: var(--ink-2); font-size: var(--t-13); }
.note-warn { background: var(--warn-tint); color: var(--warn); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--t-13); }
.note-down { background: var(--down-tint); color: var(--down); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--t-13); }

/* 数字组：一行几个关键数字 */
.figures { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.figure { background: var(--surface); padding: 14px 16px; min-width: 0; }
.figure .v { font-size: var(--t-22); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figure .k { font-size: var(--t-12); color: var(--ink-3); margin-top: 4px; }
@media (max-width: 520px) { .figure { padding: 12px; } .figure .v { font-size: var(--t-17); } }

/* ---------------- 控件 ---------------- */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: var(--r-md);
  min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--t-15); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  background: var(--field); color: var(--ink);
}
.btn:hover { background: var(--field-hover); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-press); }
.btn.danger { background: var(--down-tint); color: var(--down); }
.btn.danger:hover { background: #F6DDD8; }
.btn.ghost { background: transparent; color: var(--brand); padding: 0 6px; min-height: 34px; }
.btn.ghost:hover { background: var(--brand-wash); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: var(--t-13); border-radius: var(--r-sm); }
.btn.block { width: 100%; min-height: 48px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  appearance: none; border: 0; background: transparent; width: 36px; height: 36px; border-radius: var(--r-sm);
  display: inline-grid; place-items: center; color: var(--ink-3); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--field); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.on { color: #C98A12; }

.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: var(--t-13); color: var(--ink-2); }
.field .hint { font-size: var(--t-12); color: var(--ink-3); }
.field .err { font-size: var(--t-12); color: var(--down); }
.field .err:empty { display: none; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--field); color: var(--ink);
  font-size: 16px; outline: none; transition: border-color .15s, background-color .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { background: var(--field-hover); }
.input:focus, .select:focus, .textarea:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.input[aria-invalid="true"] { border-color: var(--down); background: var(--surface); }
.input.num { font-variant-numeric: tabular-nums; }
.textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%237D8B93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.affix { position: relative; }
.affix .input { padding-right: 52px; }
.affix .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: var(--t-13); pointer-events: none; }
.affix .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; }
/* 直接放在页面底色上的输入框：白底细线（放在白色面板和弹层里的仍是淡色填充） */
.input.on-paper { background: var(--surface); border-color: var(--line); }
.input.on-paper:hover { border-color: var(--line-strong); }
.input.on-paper:focus { border-color: var(--brand); }

/* 分段选择：淡色轨道 + 白色滑块 */
.seg { display: inline-flex; padding: 3px; background: var(--track); border-radius: var(--r-md); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  appearance: none; border: 1px solid transparent; background: transparent; border-radius: 8px;
  min-height: 36px; padding: 0 14px; font-size: var(--t-13); color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--t-13); color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--line-strong); position: relative; cursor: pointer; flex: none; margin: 0; transition: background-color .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--t-12); font-weight: 500; background: var(--field); color: var(--ink-2); white-space: nowrap; }
.pill.brand { background: var(--brand-tint); color: var(--brand); }
.pill.up { background: var(--up-tint); color: var(--up); }
.pill.down { background: var(--down-tint); color: var(--down); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }

details.more { border-top: 1px solid var(--line); padding-top: 4px; }
details.more > summary { list-style: none; cursor: pointer; padding: 10px 0; color: var(--brand); font-size: var(--t-13); display: flex; align-items: center; gap: 4px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary svg { width: 16px; height: 16px; transition: transform .15s; }
details.more[open] > summary svg { transform: rotate(90deg); }
details.more .stack { padding-bottom: 6px; }

/* ---------------- 比例条：全站唯一的标志元素 ---------------- */
.ratio { display: grid; gap: 6px; max-width: 520px; }
.ratio .bar-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; font-size: var(--t-12); color: var(--ink-3); }
.ratio .bar { height: 6px; border-radius: var(--r-pill); background: var(--line); position: relative; }
.ratio .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--line-strong); }
.ratio .bar.you i { background: var(--brand); }
.ratio .bar-row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ratio .say { font-size: var(--t-13); color: var(--ink-2); margin-top: 2px; }

/* ---------------- 列表行 ---------------- */
.trader { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.trader .rank { font-size: var(--t-13); color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.trader .rank.top { color: var(--ink); font-weight: 600; }
.trader .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trader .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-12); color: var(--ink-3); margin-top: 2px; }
.trader .meta b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trader .roi { text-align: right; }
.trader .roi .v { font-size: var(--t-17); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.trader .roi .k { font-size: var(--t-12); color: var(--ink-3); }
.trader .acts { display: none; }
@media (min-width: 720px) {
  .trader { grid-template-columns: 32px minmax(0, 1fr) 120px auto; }
  .trader .acts { display: flex; gap: 4px; align-items: center; }
}
/* 看起来是文字、其实是按钮（让键盘也能打开详情） */
.as-text, .tcard-name { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.trader .name.as-text { display: block; }

/* ---------------- 跟单广场：工具条 ---------------- */
.square-bar { display: grid; gap: 10px; margin-bottom: 16px; }
.square-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.square-tools > .row { gap: 8px; }
.square-tools .seg.icons { margin-left: auto; }
.square-tools > .row > .small { white-space: nowrap; }
.seg.icons button { padding: 0 10px; display: inline-grid; place-items: center; color: var(--ink-3); }
.seg.icons button[aria-pressed="true"] { color: var(--ink); }
.seg.icons svg { width: 18px; height: 18px; display: block; }
@media (max-width: 719px) {
  .square-tools > .seg { display: flex; flex: 1 1 100%; }
  .square-tools > .seg button { flex: 1; }
  .square-tools > .row { flex: 1 1 100%; }
}

/* ---------------- 跟单广场：卡片（白底圆角、头像 + 昵称、数字、底部一行指标 + 黄色胶囊按钮） ---------------- */
.tgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; cursor: pointer;
  transition: border-color .15s;
}
.tcard:hover { border-color: var(--line-strong); }
.tcard-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tcard-head .icon-btn { align-self: start; margin: -6px -8px 0 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--av-0); color: #fff; font-size: var(--t-15); font-weight: 600; line-height: 1; user-select: none;
}
.avatar.c1 { background: var(--av-1); }
.avatar.c2 { background: var(--av-2); }
.avatar.c3 { background: var(--av-3); }
.avatar.c4 { background: var(--av-4); }
.avatar.c5 { background: var(--av-5); }
.avatar.c6 { background: var(--av-6); }
.avatar.c7 { background: var(--av-7); }
.avatar.sk { background: var(--field); }
.tcard-who { min-width: 0; }
.tcard-name { display: block; font-size: var(--t-15); font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-sub { font-size: var(--t-12); color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tcard-sub .top { color: var(--gold-ink); font-weight: 600; }
.tcard-sub .down { color: var(--down); }
.tcard-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tcard-roi { min-width: 0; }
.tcard-roi .v { font-size: var(--t-22); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcard-roi .k { font-size: var(--t-12); color: var(--ink-3); margin-top: 3px; }
.tcard .spark { width: 112px; height: 40px; flex: none; }
.tcard-note { font-size: var(--t-13); color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.tcard-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tcard-stats dt { font-size: var(--t-12); color: var(--ink-3); }
.tcard-stats dd { margin: 2px 0 0; font-size: var(--t-13); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tcard-foot .metric { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: var(--t-13); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcard-foot .metric .mv { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 跟单人数是排名依据，永远完整显示；地方不够时先缩「规模」，最窄的手机上干脆不显示规模 */
.tcard-foot .metric.copiers { flex-shrink: 0; }
.tcard { container: tcard / inline-size; }
@container tcard (max-width: 270px) { .tcard-foot .metric.aum { display: none; } }
.tcard-foot .metric svg { width: 16px; height: 16px; flex: none; }
.tcard-foot .metric.key { color: var(--ink-2); font-weight: 500; }
.pill-btn {
  appearance: none; border: 0; margin-left: auto; min-height: 34px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-size: var(--t-13); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.pill-btn:hover { background: var(--accent-press); }
.more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.more-wrap .btn { min-width: 160px; background: var(--surface); border-color: var(--line); }
.more-wrap .btn:hover { border-color: var(--line-strong); }

/* 迷你走势图 */
.spark { display: block; overflow: visible; }
.spark .line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: currentColor; opacity: .08; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
.spark.flat { color: var(--ink-3); }
.spark-wide { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.spark-wide .spark { width: 100%; height: 96px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--t-13); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

.table { width: 100%; border-collapse: collapse; font-size: var(--t-13); }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }

/* ---------------- 会员卡：全站唯一的渐变 ---------------- */
.member-card {
  border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--brand-tint);
  background: linear-gradient(135deg, #DDEFE8 0%, #EEF7F3 45%, #FFFFFF 100%);
  display: grid; gap: 14px;
}
.member-card .state { font-size: var(--t-13); color: var(--ink-2); }
.member-card .big { font-size: var(--t-22); font-weight: 600; line-height: 1.3; }
.member-card .big .num { font-size: var(--t-30); }

/* 套餐选择 */
.plans { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  appearance: none; text-align: left; cursor: pointer; border-radius: var(--r-lg); padding: 14px;
  background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; position: relative; color: var(--ink);
}
.plan:hover { border-color: var(--line-strong); }
.plan[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); }
.plan .pname { font-size: var(--t-13); color: var(--ink-2); }
.plan .price { font-size: var(--t-22); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.plan .price small { font-size: var(--t-13); font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.plan .list-price { font-size: var(--t-12); color: var(--ink-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.plan .per { font-size: var(--t-12); color: var(--ink-3); }
.promo-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); background: var(--down-tint); color: var(--down); font-size: var(--t-12); font-weight: 600; }

/* 付款页 */
.pay-amount { font-size: var(--t-30); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: .01em; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--field); border-radius: var(--r-md); }
.copy-line .val { font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: var(--t-13); color: var(--ink-2); }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: var(--t-12); font-weight: 600; display: grid; place-items: center; }

/* 消息流 */
.msg { padding: 14px 16px; }
.msg .head { display: flex; align-items: baseline; gap: 8px; font-size: var(--t-12); color: var(--ink-3); flex-wrap: wrap; }
.msg .head b { font-size: var(--t-13); color: var(--ink); font-weight: 600; }
.msg .text { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { appearance: none; border: 1px solid transparent; background: var(--track); color: var(--ink-2); border-radius: var(--r-pill); padding: 6px 14px; font-size: var(--t-13); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

/* 菜单行（「我的」页） */
.menu a, .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; color: var(--ink);
  background: none; border: 0; text-align: left; cursor: pointer; font-size: var(--t-15);
}
.menu a:hover, .menu button:hover { background: var(--brand-wash); text-decoration: none; }
.menu .grow { flex: 1; }
.menu svg { width: 18px; height: 18px; color: var(--ink-3); }

/* 空状态 */
.empty { padding: 36px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty h3 { font-size: var(--t-15); font-weight: 600; }
.empty p { font-size: var(--t-13); color: var(--ink-2); max-width: 30em; }
.empty .btn { margin-top: 6px; }

.skeleton { background: linear-gradient(90deg, var(--field) 0%, var(--field-hover) 50%, var(--field) 100%); background-size: 200% 100%; border-radius: 6px; height: 14px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.2s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 弹层：桌面居中对话框，手机底部抽屉 ---------------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 32, 40, .38); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-height: 92dvh; background: var(--surface); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 6px 20px; }
.sheet-head h2 { font-size: var(--t-17); font-weight: 600; flex: 1; }
.sheet-body { padding: 6px 20px 20px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; min-height: 46px; }
@media (min-width: 720px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 520px; border-radius: 18px; max-height: 88dvh; }
  .sheet.wide { max-width: 640px; }
}
@media (prefers-reduced-motion: no-preference) {
  .overlay { animation: fade .16s ease-out; }
  .sheet { animation: rise .2s ease-out; }
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { transform: translateY(16px); opacity: .6; } }
}

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 960px) { .toast-wrap { bottom: 28px; } }
.toast { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 10px 16px; font-size: var(--t-13); max-width: 420px; }
.toast.down { background: var(--down); }

/* ---------------- 登录 / 注册 ---------------- */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-brand { background: var(--slate); color: var(--slate-ink); padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px 20px; display: grid; gap: 14px; }
.auth-brand .brand { display: flex; color: #fff; }
.auth-brand .brand-mark { background: var(--slate-3); }
.auth-mirror { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: end; }
.auth-ratio { color: #fff; font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.auth-ratio span { color: var(--slate-2); font-weight: 400; padding: 0 .1em; }
.auth-chart { width: 100%; height: 56px; display: block; }
.auth-chart .lead { stroke: var(--slate-2); }
.auth-chart .you { stroke: var(--brand-bright); }
.auth-legend, .auth-points { display: none; }
.auth-main { display: flex; justify-content: center; padding: 26px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
.auth-panel { width: 100%; max-width: 400px; display: grid; gap: 18px; align-content: start; }
.auth-panel h1 { font-size: var(--t-22); font-weight: 600; line-height: 1.3; }
.auth-panel .sub { color: var(--ink-2); font-size: var(--t-13); margin-top: 4px; }
.auth-panel form { display: grid; gap: 14px; }
.auth-panel .input { background: var(--surface); border-color: var(--line); }
.auth-panel .input:hover { border-color: var(--line-strong); }
.auth-panel .input:focus { border-color: var(--brand); }
a svg { vertical-align: -3px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-13); color: var(--ink-2); }
.auth-risk { font-size: var(--t-12); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(380px, 42%) 1fr; grid-template-rows: 1fr; }
  .auth-brand { padding: 44px 48px; align-content: space-between; gap: 32px; }
  .auth-mirror { grid-template-columns: 1fr; gap: 20px; }
  .auth-ratio { font-size: 60px; }
  .auth-chart { height: 190px; max-width: 520px; }
  .auth-legend { display: flex; gap: 22px; font-size: var(--t-13); color: var(--slate-2); margin: 0; padding: 0; list-style: none; }
  .auth-legend li { display: flex; align-items: center; gap: 8px; }
  .auth-legend i { width: 18px; height: 2px; background: var(--slate-2); display: inline-block; }
  .auth-legend .you i { background: var(--brand-bright); }
  .auth-points { display: grid; gap: 14px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--slate-line); }
  .auth-points b { color: #fff; font-weight: 600; display: block; }
  .auth-points span { color: var(--slate-2); font-size: var(--t-13); }
  .auth-main { align-items: center; padding: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-chart .you { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* 法律页 */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.legal h1 { font-size: var(--t-22); font-weight: 600; margin-bottom: 8px; }
.legal h2 { font-size: var(--t-17); font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.8; }
.figures.c4 { --cols: 4; }
@media (max-width: 719px) { .figures.c4 { --cols: 2; } }
.copy-line .btn { background: var(--surface); border-color: var(--line); }
.copy-line .btn:hover { background: var(--brand-wash); }

/* ---------------- 我的跟单 · 工作台 ---------------- */
.wb-overview { display: grid; gap: 18px; padding: 18px; margin-bottom: 18px; }
@media (min-width: 960px) { .wb-overview { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 22px 24px; } }
.wb-stats { display: grid; gap: 6px; align-content: start; min-width: 0; }
.wb-hero-k { font-size: var(--t-13); color: var(--ink-2); }
.wb-hero { font-size: var(--t-30); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; } /* 大数字用比例数字，不用等宽 */
.wb-delta { font-size: var(--t-13); }
.wb-delta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.wb-kv { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); row-gap: 8px; }
.wb-stats .note-warn { margin-top: 8px; }
.wb-chart { min-width: 0; display: grid; gap: 10px; align-content: start; transition: opacity .15s; }
.wb-chart.busy { opacity: .5; }
.wb-chart-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.chart-empty { min-height: 180px; display: grid; place-content: center; text-align: center; gap: 4px; font-size: var(--t-13); color: var(--ink-2); background: var(--brand-wash); border-radius: var(--r-md); padding: 20px; }

/* 走势图：2px 线 + 10% 面积；网格细实线；文字用文字颜色，不用线的颜色 */
.chart { margin: 0; }
.chart-area { position: relative; }
.chart-plot { width: 100%; touch-action: pan-y; border-radius: var(--r-sm); }
.chart-plot svg { display: block; overflow: visible; }
.chart-plot .grid { stroke: var(--line); stroke-width: 1; }
.chart-plot .zero { stroke: var(--line-strong); stroke-width: 1; }
.chart-plot .tick { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-plot .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-plot .area { fill: var(--brand); opacity: .1; }
.chart-plot .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart-plot .cross { stroke: var(--ink-3); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; display: grid; gap: 1px; white-space: nowrap; font-size: var(--t-12); color: var(--ink-3); }
.chart-tip b { font-size: var(--t-15); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-data summary { cursor: pointer; font-size: var(--t-12); color: var(--brand); padding-top: 6px; list-style: none; width: max-content; }
.chart-data summary::-webkit-details-marker { display: none; }
.chart-data-scroll { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 6px; }

/* 页签 + 账户筛选：一行，筛选只管下面的列表 */
.wb-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.wb-tools:empty { display: none; }
.wb-tools .select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: var(--t-13); background-color: var(--surface); border-color: var(--line); }
@media (max-width: 719px) { .wb-tools, .wb-tools .select { width: 100%; } }

/* 持仓表（交易所风格） */
.wb-table { overflow-x: auto; }
.ptable td { vertical-align: top; }
.sym b { font-weight: 600; }
.sym-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.liq { color: var(--warn); }
.src-btn { appearance: none; border: 0; background: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; text-align: left; }
.src-btn svg { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.src-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.ptable tr.open td { border-bottom-color: transparent; }
.ptable .srow td { background: var(--brand-wash); padding-top: 8px; padding-bottom: 8px; border-bottom: 0; font-size: var(--t-13); }
.ptable .srow.note td { color: var(--ink-3); font-size: var(--t-12); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 959px) { .col-margin { display: none; } }

/* 手机：持仓卡片 */
.pcard { padding: 14px 16px; display: grid; gap: 10px; }
.pcard-head { display: flex; justify-content: space-between; gap: 12px; }
.pcard-pnl { text-align: right; }
.pcard .k { font-size: var(--t-12); color: var(--ink-3); }
.pcard-pnl .num { font-size: var(--t-17); font-weight: 600; }
.pcard-src { font-size: var(--t-13); }
.pcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.pcard-grid .v { font-size: var(--t-13); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pcard-shares { display: grid; gap: 10px; background: var(--brand-wash); border-radius: var(--r-md); padding: 12px; font-size: var(--t-13); }

/* ---------------- 导航：8 个入口，窄一点的桌面屏收紧间距、藏起邮箱 ---------------- */
@media (min-width: 960px) and (max-width: 1239px) {
  .topbar { gap: 18px; }
  .topnav a { padding: 0 9px; font-size: var(--t-13); }
  .account-email { display: none; }
  .account .account-me { display: inline-flex; }
}
/* 没登录（公开页面）：只显示公开入口，不显示底部标签，顶栏右侧是登录 / 注册 */
.shell.guest .topnav a:not([data-guest]) { display: none; }
.shell.guest .tabbar { display: none; }
.shell.guest .main { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 959px) {
  .shell.guest .topbar .brand { display: flex; }
  .shell.guest .topbar .brand-name, .shell.guest .back-btn { display: none !important; }
  .shell.guest .account { display: flex; gap: 8px; }
  .shell.guest .account-reg { display: none; }
}

/* ---------------- 新手教程 ---------------- */
.tut-layout { display: grid; gap: 18px; }
@media (min-width: 960px) { .tut-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 40px; align-items: start; } }
.tut-toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; z-index: 5;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: var(--paper); padding: 8px 0; margin-top: -8px; }
.tut-toc::-webkit-scrollbar { display: none; }
.tut-toc a { flex: none; padding: 6px 12px; border-radius: var(--r-pill); background: var(--track); color: var(--ink-2); font-size: var(--t-13); white-space: nowrap; }
.tut-toc a:hover { text-decoration: none; color: var(--ink); }
.tut-toc a[aria-current="true"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
@media (min-width: 960px) {
  .tut-toc { flex-direction: column; gap: 0; top: calc(var(--header-h) + 28px); padding: 0; margin: 0; overflow: visible; background: none; }
  .tut-toc a { background: none; border-radius: 0; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); }
  .tut-toc a[aria-current="true"] { background: none; border-left-color: var(--brand); }
}
.tut-main { min-width: 0; max-width: 760px; }
.tut-sec { padding-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 56px); }
.tut-sec + .tut-sec { padding-top: 28px; border-top: 1px solid var(--line); }
.tut-sec h2 { font-size: var(--t-22); font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.tut-sec h3 { font-size: var(--t-17); font-weight: 600; margin: 24px 0 10px; }
.tut .lead { color: var(--ink-2); line-height: 1.8; max-width: 40em; }
.tut-two { display: grid; gap: 0 32px; }
@media (min-width: 720px) { .tut-two { grid-template-columns: 1fr 1fr; } }
.tut-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.7; }
.tut-list li::marker { color: var(--ink-3); }
.tut-steps4 { list-style: none; counter-reset: s4; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .tut-steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tut-steps4 li { counter-increment: s4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 4px; align-content: start; }
.tut-steps4 li::before { content: counter(s4); width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: var(--t-12); font-weight: 600; display: grid; place-items: center; margin-bottom: 4px; }
.tut-steps4 b { font-weight: 600; }
.tut-steps4 span { font-size: var(--t-13); color: var(--ink-2); line-height: 1.6; }
.tut-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.tut-guide h3 { margin-top: 0; }
.tut-guide .steps li { font-size: var(--t-15); color: var(--ink); line-height: 1.7; }
.ip-chip { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; background: var(--field); border-radius: var(--r-sm); padding-left: 8px; margin: 0 2px; }
.ip-chip code { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 600; }
.ip-chip .icon-btn { width: 30px; height: 30px; }
.ip-chip .icon-btn svg { width: 16px; height: 16px; }
.tut-calc h3 { margin-top: 0; }
.tut-calc-in { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tut-calc-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tut-calc-out { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 16px; }
.tut-res { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.tut-res .k { font-size: var(--t-12); color: var(--ink-3); }
.tut-res .v { font-weight: 600; }
.tut-dl { margin: 18px 0 0; display: grid; gap: 14px; }
.tut-dl > div, .about-dl > div { display: grid; gap: 2px; }
.tut-dl dt { font-weight: 600; }
.tut-dl dd { margin: 0; color: var(--ink-2); line-height: 1.7; }
.tut-bar { height: 6px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.tut-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.grow { flex: 1; }

/* ---------------- 关于主理人：深色名片是全页唯一的重点，其余保持安静 ---------------- */
.about { max-width: 920px; }
.founder-card { background: var(--slate); color: var(--slate-ink); border-radius: 18px; padding: 24px; display: grid; gap: 22px; }
@media (min-width: 720px) { .founder-card { padding: 32px; } }
.fc-id { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 720px) { .fc-id { grid-template-columns: 80px minmax(0, 1fr); gap: 22px; } }
.fc-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: var(--t-30); font-weight: 600; object-fit: cover; }
.fc-who h1 { color: #fff; font-size: var(--t-30); font-weight: 600; line-height: 1.2; }
.fc-title { color: var(--brand-bright); font-size: var(--t-15); font-weight: 500; margin-top: 6px; }
.fc-intro { margin-top: 10px; max-width: 34em; line-height: 1.75; }
.fc-contacts { display: grid; border-top: 1px solid var(--slate-line); }
@media (min-width: 720px) { .fc-contacts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.fc-contact { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--slate-line); }
.fc-k { font-size: var(--t-13); color: var(--slate-2); }
.fc-v { color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fc-v a { color: #fff; text-decoration: underline; text-decoration-color: var(--slate-2); text-underline-offset: 3px; }
.fc-copy { appearance: none; border: 1px solid var(--slate-line); background: transparent; color: #fff; border-radius: var(--r-sm); min-height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-13); cursor: pointer; }
.fc-copy:hover { background: var(--slate-3); }
.fc-copy svg { width: 16px; height: 16px; }
.founder-card :focus-visible { outline-color: var(--brand-bright); }
.fc-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.fc-ghost { background: transparent; color: #fff; border-color: var(--slate-line); }
.btn.fc-ghost:hover { background: var(--slate-3); }
.about-grid { display: grid; column-gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-sec { margin-top: 30px; }
.about-sec h2 { font-size: var(--t-17); font-weight: 600; margin-bottom: 12px; }
.about-dl { margin: 0; display: grid; gap: 16px; }
.about-dl dt { font-weight: 600; }
.about-dl dd { margin: 0; color: var(--ink-2); line-height: 1.7; }
.about-timeline { list-style: none; margin: 0 0 0 5px; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.about-timeline li { position: relative; padding-left: 18px; display: grid; gap: 2px; }
.about-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.about-timeline time { font-size: var(--t-12); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ext-note { max-width: 16em; white-space: normal; margin-top: 2px; }

/* ---------------- 我的跟单 · 平仓、停止跟单、日志 ---------------- */
/* 日志页签上的提醒点：有新的「失败 / 注意」日志 */
.seg button .tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--down); margin-left: 5px; vertical-align: 2px; }

/* 持仓表最右边的「平仓」 */
.ptable .col-act { width: 1%; white-space: nowrap; padding-left: 8px; }
.ptable .srow .close-btn { min-height: 28px; padding: 0 8px; }
.pcard-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pcard-foot .tiny { margin-right: auto; }
.pcard-shares .close-btn { flex: none; }

/* 单选卡片（平哪部分 / 仓位怎么处理）：选中时和套餐卡片一样用品牌色描边 */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.opt:hover { border-color: var(--line-strong); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); }
.opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.opt-main { display: grid; gap: 2px; min-width: 0; }
.opt-title { font-weight: 600; }
.opt-sub { font-size: var(--t-13); color: var(--ink-2); line-height: 1.6; }
.opt-side { font-size: var(--t-13); white-space: nowrap; padding-top: 2px; }

/* 平仓弹窗 */
.close-head { display: grid; gap: 10px; }
.close-figs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.close-figs > div { background: var(--surface); padding: 10px 12px; min-width: 0; }
.close-figs dt { font-size: var(--t-12); color: var(--ink-3); }
.close-figs dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.close-est { font-size: var(--t-13); color: var(--ink-2); }
.close-est b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.close-notes { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: var(--t-12); color: var(--ink-3); line-height: 1.6; }

/* 停止跟单弹窗：名下的仓位 */
.stop-list { display: grid; gap: 8px; background: var(--field); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--t-13); }
.stop-list .row { gap: 8px; }

/* 日志 */
.logp { display: grid; gap: 10px; }
.logp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.logp-q { flex: 1 1 220px; min-width: 0; }
.logp-q .input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 720px) { .logp-q .input { font-size: var(--t-13); } } /* 手机上保持 16px，免得 iOS 点进去自动放大 */
@media (max-width: 719px) { /* 手机：筛选和「复制这 N 条」一行，搜索框单独一行 */
  .logp-q { order: 3; flex: 1 1 100%; }
  .logp-bar > .btn { margin-left: auto; }
}
.logp-tip { font-size: var(--t-12); color: var(--ink-3); }
.logi { display: grid; gap: 4px; }
.logi-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title copy" "time time"; gap: 2px 10px; align-items: center; }
@media (min-width: 720px) { .logi-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title time copy"; } }
.logi-title { grid-area: title; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: var(--t-13); }
.logi-title b { font-size: var(--t-15); font-weight: 600; }
.logi-acc { font-size: var(--t-12); color: var(--ink-3); background: var(--field); border-radius: var(--r-pill); padding: 0 8px; }
.logi-time { grid-area: time; font-size: var(--t-12); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.logi-copy { grid-area: copy; }
.logi-copy svg { width: 16px; height: 16px; }
.logi-text { font-size: var(--t-13); line-height: 1.7; overflow-wrap: anywhere; }
.logi-hint { font-size: var(--t-13); color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.logi-hint b { font-weight: 600; color: var(--ink); }
.logi.lv-error .logi-hint b { color: var(--down); }
.logi.lv-warn .logi-hint b { color: var(--warn); }
.logi-err { font-size: var(--t-12); color: var(--ink-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.logi-rep { font-size: var(--t-12); color: var(--warn); }
.logi-more summary { cursor: pointer; font-size: var(--t-12); color: var(--brand); list-style: none; width: max-content; padding: 2px 0; }
.logi-more summary::-webkit-details-marker { display: none; }
.logi-more .kv { margin: 6px 0 2px; padding: 10px 12px; background: var(--field); border-radius: var(--r-sm); font-size: var(--t-12); }
.logi-more .kv dd { text-align: left; }
