/* 额度雷达 · 方案 A「晴空白」
   设计令牌与组件样式（前后台共用） */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0071E3;
  --blue-dark: #0058B0;
  --blue-soft: #E8F1FD;
  --ink: #1D1D1F;
  --ink2: #6E6E73;
  --ink3: #636366;
  --ink4: #AEAEB2;
  --line: #E5E5EA;
  --line-soft: #F0F0F3;
  --surface: #F5F5F7;
  --surface2: #EFEFF2;
  --green: #34C759;
  --green-ink: #14785A;
  --green-soft: #E7F8EC;
  --amber: #FF9500;
  --amber-ink: #9A5B00;
  --amber-soft: #FFF3E0;
  --gray: #636366;
  --gray-soft: #F0F0F3;
  --gold: #A07C42;
  --gold-soft: #F7F1E6;
  --danger: #C0392B;
  --radius: 22px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff; color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid rgba(0, 113, 227, .7);
  outline-offset: 2px;
  border-radius: 8px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 前台导航 ---------- */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 32px; border-bottom: 1px solid var(--line-soft);
  max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand .brand-logo { width: 26px; height: 26px; object-fit: contain; flex: none; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink2); padding: 4px 0; position: relative; }
.nav-links a.on { color: var(--ink); font-weight: 500; }
.nav-links a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-time { font-size: 12px; color: var(--ink3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500;
  border-radius: 999px; padding: 10px 20px; transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid rgba(0, 113, 227, .32); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-plain { background: var(--surface); color: var(--ink); }
.btn-plain:hover { background: var(--surface2); color: var(--ink); }
.btn-danger { background: #FCEDEB; color: var(--danger); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 页面容器 ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px 60px; }
.page-head { padding: 26px 0 18px; }
.page-head h1 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.page-head p { font-size: 13px; color: var(--ink3); margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 22px; }
.hero h1 { font-size: 34px; line-height: 1.16; font-weight: 500; letter-spacing: -.022em; margin-bottom: 9px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub { font-size: 15px; color: var(--ink2); line-height: 1.55; margin-bottom: 8px; }
.hero .meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink3); flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- 摘要条 ---------- */
.brief { display: flex; align-items: stretch; background: var(--surface); border-radius: 16px; padding: 13px 6px; }
.brief .b { flex: 1; padding: 0 18px; border-right: 1px solid rgba(0, 0, 0, .06); min-width: 0; }
.brief .b:last-child { border-right: none; }
.brief .k { font-size: 11.5px; color: var(--ink3); margin-bottom: 5px; display: block; }
.brief .v { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; display: block; }
.brief .v i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink3); margin-left: 3px; }
.brief .d { font-size: 11.5px; color: var(--ink3); margin-top: 4px; display: block; }
.brief .d b { color: var(--ink); font-weight: 500; }

/* ---------- 提示条 ---------- */
.stalebar {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 14px;
  background: var(--amber-soft); border: 1px solid #FFE0B2; border-radius: 12px;
  font-size: 12.5px; color: #8A5300; line-height: 1.55;
}
.stalebar b { font-weight: 500; }

/* ---------- 筛选 ---------- */
.filters { display: flex; align-items: center; gap: 8px; padding: 18px 0; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; color: var(--ink2);
  background: var(--surface); border: 1px solid transparent; border-radius: 999px; padding: 0 15px;
  transition: .18s;
}
.chip:hover { background: var(--surface2); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; }
.filters .spacer { flex: 1; }
.sortsel {
  font-family: inherit; font-size: 12.5px; color: var(--ink2); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
.viewtoggle { display: flex; background: var(--surface); border-radius: 9px; padding: 3px; }
.viewtoggle button {
  font-family: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 7px;
  color: var(--ink2); border: none; background: transparent; cursor: pointer;
}
.viewtoggle button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .07); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard {
  display: block; background: var(--surface); border-radius: var(--radius); padding: 17px 19px 15px;
  color: inherit; transition: background .2s;
}
.fcard:hover { background: var(--surface2); color: inherit; }
.fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tag-idx { font-size: 11.5px; color: var(--ink2); background: #fff; border-radius: 6px; padding: 3px 8px; font-weight: 500; }
.star-btn {
  border: none; background: transparent; cursor: pointer; color: var(--ink4); font-size: 15px;
  line-height: 1; padding: 6px; margin: -6px -6px -6px 0;
}
.star-btn.on { color: var(--gold); }
.fc-name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.fc-name .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-name .fcode { font-weight: 400; font-size: 11.5px; color: var(--ink3); flex: none; }
.fc-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 9px; }
.amount { display: flex; align-items: baseline; }
.amount .n { font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1; }
.amount .u { font-size: 12px; color: var(--ink3); margin-left: 5px; }
.amount.paused .n { color: var(--ink3); font-size: 20px; letter-spacing: -.01em; }
.fc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px;
  padding-top: 11px; border-top: 1px solid rgba(0, 0, 0, .05); font-size: 12px; color: var(--ink3);
}
.fc-foot .delta { font-size: 12px; }
.newdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 7px; vertical-align: middle; }

/* ---------- 状态胶囊 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border-radius: 999px;
  padding: 4px 10px; white-space: nowrap;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.off { background: var(--gray-soft); color: var(--gray); }
.pill.mini { padding: 3px 9px; font-size: 11.5px; }
.delta .up { color: var(--green-ink); }
.delta .down { color: var(--amber-ink); }

/* ---------- 表格 ---------- */
.tableview { display: none; }
.tpanel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.ttop { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.ttop .sum { font-size: 12.5px; color: var(--ink3); }
.ttop .sum b { color: var(--ink); font-weight: 500; }
.ttop .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ftable { width: 100%; border-collapse: collapse; }
.ftable th {
  font-size: 12px; font-weight: 400; color: var(--ink3); text-align: left; padding: 10px 12px;
  background: #FAFAFC; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.ftable th.n, .ftable td.n { text-align: right; }
.ftable td {
  height: 56px; padding: 0 12px; font-size: 13.5px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle; white-space: nowrap;
}
.ftable tbody tr:hover td { background: #FAFAFC; }
.ftable tbody tr:last-child td { border-bottom: none; }
.ftable .fn2 b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 2px; max-width: 268px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftable .fn2 span { font-size: 11.5px; color: var(--ink3); }
.ftable .lim { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.ftable .chg { font-size: 12.5px; font-style: normal; }
.ftable .chg.up { color: var(--green-ink); }
.ftable .chg.dn { color: var(--amber-ink); }
.ftable .tagidx { font-size: 11.5px; color: var(--ink2); background: var(--surface); border-radius: 6px; padding: 3px 8px; }
.ftable .act { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 7px; }
.ftable .act:hover { background: #D9E8FB; }
.fcode-m { display: none; }

/* ---------- 转化条 ---------- */
.convert {
  margin: 4px 0 34px; background: linear-gradient(180deg, #F8FBFF, #F2F7FE);
  border: 1px solid #DCE9FA; border-radius: 18px; padding: 20px 24px;
  display: flex; align-items: center; gap: 18px;
}
.convert .ic {
  width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid #DCE9FA;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.convert h3 { font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.convert p { font-size: 13px; color: var(--ink2); }
.convert .price { font-size: 12.5px; color: var(--ink3); margin-left: auto; white-space: nowrap; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 20px 0 40px; }
.foot .inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }

/* ---------- 提示信息 ---------- */
.alerts { max-width: 1280px; margin: 14px auto 0; padding: 0 32px; }
.alert {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6;
  padding: 11px 14px; border-radius: 12px; margin-bottom: 10px;
}
.alert.ok { background: var(--green-soft); color: var(--green-ink); }
.alert.warn { background: var(--amber-soft); color: var(--amber-ink); }
.alert.err { background: #FCEDEB; color: var(--danger); }
.alert.info { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- 详情页 ---------- */
.breadcrumb { font-size: 12.5px; color: var(--ink3); padding: 20px 0 14px; }
.detail-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.detail-head .sub { font-size: 13px; color: var(--ink3); }
.detail-head .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.detail-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.metricrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.metric .k { font-size: 11.5px; color: var(--ink3); margin-bottom: 6px; }
.metric .v { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.chartbox { border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 12px 8px; background: #fff; }
.chartbox .cap { font-size: 12px; color: var(--ink3); padding: 0 10px 10px; display: flex; justify-content: space-between; }
.records { list-style: none; }
.records li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.records li:last-child { border-bottom: none; }
.records .when { font-size: 12px; color: var(--ink3); width: 54px; flex: none; padding-top: 1px; }
.records .what { font-size: 13.5px; line-height: 1.5; }
.records .what b { font-weight: 500; }
.records .what span { display: block; font-size: 12px; color: var(--ink3); margin-top: 3px; }
.side-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #FCFCFD; }
.side-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.side-card p { font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin-bottom: 14px; }

/* ---------- 时间线 ---------- */
.tl { margin-top: 6px; }
.tl-day { display: flex; gap: 18px; padding-top: 22px; }
.tl-day .day { width: 74px; flex: none; font-size: 12.5px; color: var(--ink3); padding-top: 2px; }
.tl-day .day b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.tl-list { flex: 1; border-left: 1px solid var(--line); padding-left: 20px; }
.tl-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: baseline; }
.tl-item:last-child { border-bottom: none; }
.tl-item .name { font-size: 14px; font-weight: 500; }
.tl-item .desc { font-size: 12.5px; color: var(--ink2); }
.tl-item .time { margin-left: auto; font-size: 12px; color: var(--ink3); }

/* ---------- 表单 ---------- */
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(0, 113, 227, .5); box-shadow: 0 0 0 3px rgba(0, 113, 227, .1);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.hint { font-size: 11.5px; color: var(--ink3); margin-top: 6px; line-height: 1.55; }
.hint.warn { color: var(--amber-ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; background: var(--surface); border-radius: 10px; padding: 3px; }
.seg label { flex: 1; text-align: center; font-size: 13px; color: var(--ink2); padding: 8px 0; border-radius: 8px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { display: block; background: #fff; color: var(--ink); font-weight: 500; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .07); }
.seg span { display: block; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.check-row:last-child { border-bottom: none; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.check-row .ct { flex: 1; }
.check-row .ct b { font-size: 13.5px; font-weight: 400; display: block; }
.check-row .ct span { font-size: 11.5px; color: var(--ink3); display: block; margin-top: 3px; line-height: 1.5; }
.group { background: var(--surface); border-radius: 14px; padding: 4px 16px; margin-bottom: 16px; }
.group .grow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.group .grow:last-child { border-bottom: none; }
.group .grow .gt { flex: 1; }
.group .grow .gt b { font-size: 13.5px; font-weight: 400; display: block; }
.group .grow .gt span { font-size: 11.5px; color: var(--ink3); display: block; margin-top: 3px; }
.gsec { font-size: 11.5px; color: var(--ink3); margin: 0 0 8px 2px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: #E3E3E8; border-radius: 99px; transition: background .2s; pointer-events: none; }
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); transition: left .2s;
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { left: 20px; }
.switch input:focus-visible + i { outline: 2px solid rgba(0, 113, 227, .7); outline-offset: 2px; }

/* ---------- 套餐 ---------- */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px; margin: 20px 0; align-items: stretch;
}
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  background: #fff; display: block; cursor: pointer;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .pn { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.plan .badge { font-size: 10px; background: var(--gold-soft); color: var(--gold); padding: 2px 6px; border-radius: 5px; }
.plan .pv { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 12px 0 2px; }
.plan .pv small { font-size: 12px; color: var(--ink3); font-weight: 400; }
.plan .pd { font-size: 12px; color: var(--ink3); }
.plan .perks { list-style: none; margin-top: 14px; }
.plan .perks li { font-size: 12.5px; color: var(--ink2); padding: 4px 0 4px 14px; position: relative; line-height: 1.5; }
.plan .perks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.plan input:checked ~ * { }
.plan:has(input:checked) { border: 2px solid var(--blue); padding: 19px; background: #FBFDFF; }
.plan:has(input:checked) .pn { color: var(--blue-dark); }
.pay-methods { display: flex; gap: 10px; margin: 12px 0 18px; flex-wrap: wrap; }
.pay-method {
  flex: 0 1 200px; min-width: 150px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; background: #fff;
}
.pay-method input { accent-color: var(--blue); }
.pay-method:has(input:checked) { border-color: var(--blue); background: #FBFDFF; }
@media (max-width: 720px) { .pay-method { flex: 1 1 100%; } }

/* ---------- 登录 ---------- */
.auth { max-width: 420px; margin: 56px auto 80px; padding: 0 24px; }
.auth h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.auth .sub { font-size: 13px; color: var(--ink2); margin-bottom: 24px; line-height: 1.6; }
.auth .field { margin-bottom: 14px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { flex: none; }

/* ---------- 后台 ---------- */
.admin-body { background: #FCFCFD; }
.admin { display: flex; min-height: 100vh; }
.aside {
  width: 218px; flex: none; border-right: 1px solid var(--line-soft); background: #FCFCFD;
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.aside .brand { padding: 0 8px 18px; font-size: 15px; }
.sgroup { font-size: 11px; color: var(--ink4); padding: 14px 10px 6px; letter-spacing: .05em; }
.sitem {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink2); margin-bottom: 2px; position: relative;
}
.sitem:hover { background: var(--surface); color: var(--ink); }
.sitem.on { background: var(--surface); color: var(--ink); font-weight: 500; }
.sitem.on::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 2px; background: var(--blue);
}
.sitem .badge-n { margin-left: auto; font-size: 10.5px; background: var(--blue); color: #fff; border-radius: 9px; padding: 1px 6px; }
.amain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atop {
  height: 56px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center;
  gap: 14px; padding: 0 26px; background: #fff; position: sticky; top: 0; z-index: 20;
}
.atop .crumb { font-size: 12.5px; color: var(--ink3); }
.atop .crumb b { color: var(--ink); font-weight: 500; }
.atop .r { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink2); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.acontent { padding: 24px 26px 40px; flex: 1; }
.ptitle { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.ptitle h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.pdesc { font-size: 12.5px; color: var(--ink3); margin-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--surface); border-radius: 14px; padding: 15px 16px; }
.kpi .k { font-size: 11.5px; color: var(--ink2); margin-bottom: 7px; }
.kpi .v { font-size: 23px; font-weight: 500; letter-spacing: -.015em; }
.kpi .v small { font-size: 12px; color: var(--ink3); font-weight: 400; }
.kpi .t { font-size: 11px; color: var(--ink3); margin-top: 6px; }
.kpi .t.g { color: var(--green-ink); }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.panel .ph { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.panel .ph b { font-size: 13.5px; font-weight: 500; }
.panel .ph .more { margin-left: auto; font-size: 12px; }
.atable { width: 100%; border-collapse: collapse; }
.atable th { text-align: left; font-size: 11.5px; font-weight: 400; color: var(--ink3); background: #FAFAFC; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.atable td { font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable tr:hover td { background: #FCFCFD; }
.sdot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.sdot i { width: 6px; height: 6px; border-radius: 50%; }
.sdot.ok i { background: var(--green); } .sdot.ok { color: var(--green-ink); }
.sdot.warn i { background: var(--amber); } .sdot.warn { color: var(--amber-ink); }
.sdot.off i { background: var(--ink4); } .sdot.off { color: var(--ink3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--ink3); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* 后台配置卡片 */
.cfcard { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.cfcard .ch { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.cfcard .ch b { font-size: 13.5px; font-weight: 500; display: block; }
.cfcard .ch span { font-size: 11.5px; color: var(--ink3); display: block; margin-top: 3px; }
.cfcard .cb { padding: 6px 18px 16px; }
.frow { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.frow:last-child { border-bottom: none; }
.frow > label { width: 138px; flex: none; font-size: 12.5px; color: var(--ink2); padding-top: 9px; }
.frow .ctl { flex: 1; min-width: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.switch-row:last-child { border-bottom: none; }
.switch-row .st { flex: 1; }
.switch-row .st b { font-size: 13px; font-weight: 400; display: block; }
.switch-row .st span { font-size: 11.5px; color: var(--ink3); display: block; margin-top: 3px; line-height: 1.5; }
.modecard { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.modecard .ml { flex: 1; }
.modecard .ml b { font-size: 14.5px; font-weight: 500; display: block; margin-bottom: 5px; }
.modecard .ml span { font-size: 12.5px; color: var(--ink2); line-height: 1.6; display: block; max-width: 640px; }
.modecard .mr { display: flex; align-items: center; gap: 12px; flex: none; }
.modehint { margin: 12px 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink2); background: var(--surface); border-radius: 12px; padding: 12px 14px; }

/* 分页 */
.pager { display: flex; gap: 6px; align-items: center; padding: 12px 16px; font-size: 12px; color: var(--ink3); }
.pager a, .pager span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--ink2); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--ink3); }
.empty .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--surface); margin: 0 auto 14px; }
.empty b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.empty p { font-size: 12.5px; line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-body { grid-template-columns: 1fr; }
  .cols, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .pch .c { font-size: 10.5px; }
}
@media (max-width: 860px) {
  .admin { display: block; }
  .aside {
    width: 100%; height: auto; position: static; display: flex; gap: 4px; overflow-x: auto;
    padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--line-soft);
  }
  .aside .brand .brand-logo, .sgroup { display: none; }
  .sitem { white-space: nowrap; padding: 7px 11px; }
  .sitem.on::before { display: none; }
  .sitem.on { background: var(--blue-soft); color: var(--blue-dark); }
  .acontent { padding: 18px 16px 40px; }
  .atop { padding: 0 16px; }
  .panel, .cfcard { overflow-x: auto; }
  .atable { min-width: 620px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .nav { padding: 14px 18px; gap: 14px; }
  .nav-links { display: none; }
  .nav-time { display: none; }
  .wrap { padding: 0 18px 48px; }
  .hero { padding: 24px 0 16px; }
  .hero h1 { font-size: 26px; }
  .hero .sub { font-size: 13.5px; }
  .brief { flex-wrap: wrap; padding: 6px 4px; }
  .brief .b { flex: 1 1 46%; padding: 9px 14px; border-right: none; }
  .brief .b:nth-child(odd) { border-right: 1px solid rgba(0, 0, 0, .06); }
  .brief .b:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .brief .v { font-size: 19px; }
  .filters { padding: 14px 0; gap: 6px; }
  .filters .spacer { flex: 0 0 100%; height: 0; }
  .filters .sortsel, .filters .viewtoggle { margin-left: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .fcard { min-width: 0; }
  .ftable .hm { display: none; }
  .ftable .fcode-d { display: none; }
  .ftable .fcode-m { display: block; margin-top: 2px; font-size: 10.5px; }
  .ftable th, .ftable td { padding: 0 8px; }
  .ftable th { font-size: 11px; padding: 9px 8px; }
  .ftable td { height: 54px; }
  .ftable .fn2 b { font-size: 12.5px; }
  .ftable .lim { font-size: 14px; }
  .ttop { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .ttop .sum { flex: 1 1 100%; line-height: 1.6; }
  .ttop .r { width: 100%; justify-content: flex-end; }
  .convert { flex-wrap: wrap; padding: 16px 18px; gap: 12px; margin-bottom: 28px; }
  .convert .price { width: 100%; margin: 2px 0 0; }
  .convert .btn { width: 100%; }
  .detail-head h1 { font-size: 21px; }
  .detail-head .r { margin-left: 0; width: 100%; }
  .metricrow { grid-template-columns: 1fr 1fr; }
  .cols, .kpis { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .tl-day { gap: 12px; }
  .tl-day .day { width: 54px; }
  .tl-list { padding-left: 14px; }
  .frow { flex-direction: column; gap: 8px; }
  .frow > label { width: auto; padding-top: 0; }
  .modecard { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modecard .mr { width: 100%; justify-content: space-between; }
}

/* ---------- 卡片 / 表格 视图切换 ---------- */
html[data-view="table"] .cards { display: none !important; }
html[data-view="table"] .tableview { display: block !important; }
html[data-view="card"] .cards { display: grid !important; }
html[data-view="card"] .tableview { display: none !important; }
@media (max-width: 720px) {
  html:not([data-view="card"]) .cards { display: none !important; }
  html:not([data-view="card"]) .tableview { display: block !important; }
}

/* 卡片点击区（整卡可点，星标独立） */
.fcard { position: relative; }
.fcard .fc-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.fcard .fc-top, .fcard .fc-mid, .fcard .fc-name, .fcard .fc-foot { position: relative; z-index: 2; pointer-events: none; }
.fcard .star-btn { pointer-events: auto; position: relative; z-index: 3; }
/* 复制按钮必须能点到：父级 .fc-name 是 pointer-events:none，这里单独放开并压在整卡链接之上 */
.fcard .copy-code { pointer-events: auto; position: relative; z-index: 3; }

/* 开关按钮（表单提交型） */
.switch-btn {
  position: relative; display: inline-block; width: 46px; height: 28px; flex: none;
  border: none; background: #E3E3E8; border-radius: 99px; cursor: pointer; padding: 0;
  transition: background .2s;
}
.switch-btn i {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); transition: left .2s;
}
.switch-btn.on { background: var(--green); }
.switch-btn.on i { left: 20px; }
details.diff { margin-top: 6px; }
details.diff summary { font-size: 12px; color: var(--blue); cursor: pointer; list-style: none; }
details.diff summary::-webkit-details-marker { display: none; }
details.diff .df { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
details.diff .df .input { width: 120px; padding: 7px 9px; font-size: 12.5px; }
details.diff .df .select { width: 120px; padding: 7px 9px; font-size: 12.5px; }

/* 微信登录按钮 */
.btn-wx { background: #07C160; color: #fff; }
.btn-wx:hover { background: #06AD56; color: #fff; }

/* ---------- 登录 / 扫码注册 ---------- */
.auth-body { background: #F5F5F7; }
.auth-shell { max-width: 448px; margin: 7vh auto 64px; padding: 0 20px; }

.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06); overflow: hidden;
}
.lc-head { padding: 26px 26px 0; }
.lc-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.lc-head .sub { font-size: 13px; color: var(--ink2); line-height: 1.6; }

.ltabs { display: flex; gap: 6px; margin: 18px 0 0; background: var(--surface); border-radius: 12px; padding: 4px; }
.ltabs button {
  flex: 1; height: 38px; border: none; background: transparent; border-radius: 9px;
  font: inherit; font-size: 13.5px; color: var(--ink2); cursor: pointer; transition: .16s;
}
.ltabs button:hover { color: var(--ink); }
.ltabs button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .09); }

.lc-body { padding: 22px 26px 24px; }
.lc-body .pane[hidden] { display: none; }
.lc-foot {
  padding: 14px 26px 18px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--ink3); line-height: 1.7;
}

/* 二维码 */
.qr-wrap {
  position: relative; width: 214px; height: 214px; margin: 4px auto 0;
  border: 1px solid var(--line-soft); border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-wrap img { width: 180px; height: 180px; display: block; }
.qr-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; font-size: 12.5px; line-height: 1.7; color: var(--ink2);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(3px);
}
.qr-mask a { color: var(--blue); }

.qr-tip { text-align: center; font-size: 12.5px; color: var(--ink2); margin-top: 14px; }
.qr-tip b { color: var(--blue); font-weight: 500; }
.qr-mobile-tip { display: none; text-align: center; font-size: 11.5px; color: var(--ink3); margin-top: 6px; }

.agree {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  margin-top: 18px; font-size: 12px; color: var(--ink2); line-height: 1.6; cursor: pointer;
}
.agree input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--blue); flex: none; cursor: pointer; }
.agree a { color: var(--blue); }

/* 扫码确认结果页 */
.devdone { text-align: center; padding: 46px 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.devdone.ok { color: var(--green-ink); }
.devdone.err { color: var(--amber-ink); }
.devdone h1 { font-size: 20px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
.devdone p { font-size: 13px; color: var(--ink2); line-height: 1.7; }
.devdone .tip { font-size: 12px; color: var(--ink3); margin-top: 10px; }

@media (max-width: 720px) {
  .auth-shell { margin: 4vh auto 40px; padding: 0 14px; }
  .lc-head { padding: 22px 20px 0; }
  .lc-body { padding: 18px 20px 22px; }
  .lc-foot { padding: 12px 20px 16px; }
  .qr-wrap { width: 200px; height: 200px; }
  .qr-wrap img { width: 172px; height: 172px; }
}

/* 套餐渠道标签 */
.pch { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.pch .c { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.pch .c.off { background: var(--surface2); color: var(--ink3); }

/* 套餐不含的渠道置灰 */
.grow.dim .gt b { color: var(--ink3); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .4; }

/* 表格行内自选 */
.ftable th.star-col, .ftable td.star-col { width: 34px; padding: 0 2px 0 8px; }
.ftable td.star-col { vertical-align: middle; }
.ftable .star-btn { padding: 6px; margin: 0; font-size: 15px; border-radius: 6px; }
.ftable .star-btn:hover { background: var(--surface2); }
.ftable .star-btn.on { color: var(--gold); }


}

/* ============================================================
   首页交互增强：搜索 / 筛选 chips / 实时更新 / 动效
   ============================================================ */

/* 顶部滚动进度 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #0071E3, #42A5F5); z-index: 90;
  transition: width .12s linear; pointer-events: none;
}

/* 有更新 / 断网提示 */
.updatebar, .netbar {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  border-radius: 12px; padding: 9px 14px; font-size: 13px; margin-bottom: 14px;
  animation: ub-in .25s ease both;
}
.updatebar { background: var(--blue-soft); color: var(--blue-dark); }
.netbar { background: var(--amber-soft); color: var(--amber-ink); }
.updatebar .ub-btn {
  border: none; background: var(--blue); color: #fff; border-radius: 8px;
  font-size: 12.5px; padding: 4px 14px; cursor: pointer;
}
.updatebar .ub-close { border: none; background: none; color: var(--blue-dark); font-size: 17px; cursor: pointer; line-height: 1; }
@keyframes ub-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 搜索 */
.searchbar { position: relative; margin-bottom: 14px; }
.sb-box {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid transparent; border-radius: 12px; padding: 6px 8px 6px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sb-box:focus-within { background: #fff; border-color: #C7DDF6; box-shadow: 0 0 0 3px rgba(0, 113, 227, .08); }
.sb-ic { color: var(--ink4); flex: none; }
.sb-input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 14px; color: var(--ink); font-family: inherit; padding: 6px 0;
}
.sb-input::placeholder { color: var(--ink4); }
.sb-clear { color: var(--ink4); font-size: 18px; line-height: 1; padding: 0 4px; }
.sb-go { flex: none; }
.sb-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12); overflow: hidden; max-height: 380px; overflow-y: auto;
}
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.sb-item:last-child { border-bottom: none; }
.sb-item:hover, .sb-item.cur { background: var(--surface); color: var(--ink); }
.sb-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item .nm b { font-weight: 500; }
.sb-item .cd { color: var(--ink3); font-size: 12px; flex: none; }
.sb-item .lm { flex: none; font-weight: 600; font-size: 13px; }
.sb-item .lm.paused { color: var(--ink4); font-weight: 400; }
.sb-empty { padding: 16px; text-align: center; color: var(--ink3); font-size: 12.5px; }
.sb-skel { height: 14px; border-radius: 6px; margin: 12px 14px; background: linear-gradient(90deg, #F0F0F3 25%, #E7E7EC 50%, #F0F0F3 75%); background-size: 200% 100%; animation: shimmer 1.1s infinite; }
.sb-all { display: block; text-align: center; padding: 10px; font-size: 12.5px; background: var(--surface); }

/* 已选筛选条件 */
.activefilters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; font-size: 12.5px; }
.af-label { color: var(--ink4); }
.af-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--blue-dark);
  border-radius: 999px; padding: 4px 10px; max-width: 100%;
}
.af-chip i { font-style: normal; opacity: .6; }
.af-chip:hover { background: #D8E8FB; color: var(--blue-dark); }
.af-clear { color: var(--ink3); }
.af-count { margin-left: auto; color: var(--ink3); }

/* 复制基金代码 */
.copy-code {
  border: none; background: none; color: #8A8A8E; cursor: pointer; font-size: 12.5px;
  padding: 2px 5px; margin-left: 3px; border-radius: 4px; line-height: 1;
  opacity: .7; transition: opacity .15s, color .15s, background .15s;
}
.fcard:hover .copy-code, .copy-code:focus { opacity: 1; }
.copy-code:hover { background: rgba(0, 0, 0, .05); }
.copy-code:hover { color: var(--blue); }
.copy-code.done { color: var(--green-ink); opacity: 1; }
.copy-code svg { display: block; }
.copy-code .ic-done { display: none; }
.copy-code.done .ic-copy { display: none; }
.copy-code.done .ic-done { display: block; }
@media (hover: none) { .copy-code { opacity: .9; } }

/* 轻提示 */
.qr-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(10px);
  background: rgba(29, 29, 31, .92); color: #fff; font-size: 13px; padding: 9px 18px;
  border-radius: 999px; z-index: 120; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center;
}
.qr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 卡片入场交错淡入 */
@media (min-width: 721px) {
  .cards .fcard { animation: card-in .42s cubic-bezier(.2, .7, .3, 1) both; }
  .cards .fcard:nth-child(1) { animation-delay: .02s; }
  .cards .fcard:nth-child(2) { animation-delay: .05s; }
  .cards .fcard:nth-child(3) { animation-delay: .08s; }
  .cards .fcard:nth-child(4) { animation-delay: .11s; }
  .cards .fcard:nth-child(5) { animation-delay: .14s; }
  .cards .fcard:nth-child(6) { animation-delay: .17s; }
  .cards .fcard:nth-child(n+7) { animation-delay: .2s; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 视图切换平滑过渡 */
.cards, .tableview { transition: opacity .18s ease, transform .18s ease; }
body.view-anim .cards, body.view-anim .tableview { opacity: 0; transform: translateY(6px); }

/* 新变动高亮 + 数字翻牌 */
.fcard.flash, .ftable tr.flash { animation: flash-ring 2.4s ease-out 1; }
@keyframes flash-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); background: #F0F7FF; }
  60% { box-shadow: 0 0 0 3px rgba(0, 113, 227, .18); }
  100% { box-shadow: none; }
}
.amount.flip .n { display: inline-block; animation: flip-num .5s ease; }
@keyframes flip-num { from { transform: rotateX(70deg); opacity: .2; } to { transform: none; opacity: 1; } }

/* 筛选/翻页加载骨架 */
.list-loading { position: relative; pointer-events: none; }
.list-loading::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(100deg, rgba(245, 245, 247, .85) 20%, rgba(255, 255, 255, .95) 50%, rgba(245, 245, 247, .85) 80%);
  background-size: 200% 100%; animation: shimmer 1s infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

/* 星标弹跳 & 按钮按压 */
.star-btn.pop { animation: star-pop .32s ease; }
@keyframes star-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.btn:active, .chip:active, .viewtoggle button:active, .sortsel:active { transform: scale(.97); }
.btn, .chip { transition: transform .12s ease, background .15s, color .15s; }

/* 直播点呼吸 */
.live i { animation: live-breath 2.2s ease-in-out infinite; }
@keyframes live-breath { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 720px) {
  .sb-go { display: none; }
  .searchbar { margin-bottom: 12px; }
  .af-count { flex-basis: 100%; margin-left: 0; }
  .updatebar, .netbar { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cards .fcard, .live i, .sb-skel, .list-loading::after { animation: none !important; }
  .cards, .tableview { transition: none; }
}

/* hidden 属性优先于本组件的 flex 布局，否则提示条会一直显示 */
.updatebar[hidden], .netbar[hidden], .sb-drop[hidden] { display: none; }

/* ============================================================
   首页 · 方案 B「玻璃光感」
   只作用于 body.rt-home，其它前台页面保持原样
   ============================================================ */
body.rt-home {
  background: linear-gradient(160deg, #EEF4FD 0%, #F6F4FC 46%, #FDF7F3 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 720px) { body.rt-home { background-attachment: scroll; } }

/* Hero：毛玻璃面板 + 两团光晕 */
body.rt-home .hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 20px 0 18px; padding: 38px 34px 32px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .36));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 46px rgba(58, 76, 140, .10);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
body.rt-home .hero::before,
body.rt-home .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
body.rt-home .hero::before {
  width: 440px; height: 440px; right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(0, 113, 227, .20), rgba(0, 113, 227, 0) 68%);
}
body.rt-home .hero::after {
  width: 360px; height: 360px; left: 30%; bottom: -250px;
  background: radial-gradient(circle, rgba(150, 110, 240, .16), rgba(150, 110, 240, 0) 70%);
}
body.rt-home .hero > * { position: relative; z-index: 1; }
body.rt-home .hero h1 { font-size: 38px; letter-spacing: -.028em; }
body.rt-home .hero .meta { color: #5D6470; }

/* 摘要条：玻璃卡 */
body.rt-home .brief {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px; padding: 17px 8px;
  box-shadow: 0 12px 34px rgba(58, 76, 140, .07);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
body.rt-home .brief .b { border-right-color: rgba(90, 110, 150, .10); }

/* 提示条 / 更新条 */
body.rt-home .stalebar {
  background: rgba(255, 244, 224, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.rt-home .updatebar { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(58, 76, 140, .08); }
body.rt-home .netbar { background: rgba(255, 244, 224, .8); border: 1px solid rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* 搜索 / 筛选 / 分段控件 */
body.rt-home .sb-box {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(58, 76, 140, .05);
}
body.rt-home .sb-box:focus-within {
  background: rgba(255, 255, 255, .92); border-color: rgba(0, 113, 227, .35);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .1);
}
body.rt-home .chip {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.rt-home .chip:hover { background: rgba(255, 255, 255, .85); }
body.rt-home .chip.on { background: #1D1D1F; border-color: #1D1D1F; }
body.rt-home .sortsel,
body.rt-home .viewtoggle { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .9); }
body.rt-home .viewtoggle button.on { background: rgba(255, 255, 255, .95); }
body.rt-home .activefilters .af-chip { background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); }

/* 基金卡片：半透明玻璃 + 悬浮上浮 */
body.rt-home .fcard {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(58, 76, 140, .08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
body.rt-home .fcard:hover {
  background: rgba(255, 255, 255, .88);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(58, 76, 140, .13);
}
body.rt-home .fcard .fc-link { border-radius: 24px; }
body.rt-home .tag-idx { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(58, 76, 140, .05); }
body.rt-home .fc-foot { border-top-color: rgba(90, 110, 150, .10); }
body.rt-home .amount .n { font-variant-numeric: tabular-nums; }

/* 表格视图也要跟上玻璃质感 */
body.rt-home .tpanel {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 14px 36px rgba(58, 76, 140, .08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
body.rt-home .ftable th { background: rgba(250, 251, 253, .72); }
body.rt-home .ftable tbody tr:hover td { background: rgba(255, 255, 255, .6); }

/* 底部转化条 */
body.rt-home .convert {
  background: linear-gradient(120deg, rgba(255, 255, 255, .82), rgba(240, 247, 255, .68));
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(58, 76, 140, .08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
body.rt-home .convert .ic { background: rgba(255, 255, 255, .92); border-color: rgba(220, 233, 250, .9); }
body.rt-home .pager a { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .9); }

@media (max-width: 720px) {
  body.rt-home .hero { padding: 26px 20px 24px; border-radius: 22px; margin: 14px 0 14px; }
  body.rt-home .hero h1 { font-size: 26px; letter-spacing: -.03em; }
  body.rt-home .fcard { border-radius: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body.rt-home .brief { border-radius: 18px; padding: 14px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  body.rt-home .fcard { transition: none; }
  body.rt-home .fcard:hover { transform: none; }
}

/* 手机端表格：固定布局，避免长基金名把「状态」列挤出屏幕 */
@media (max-width: 720px) {
  .ftable { table-layout: fixed; }
  .ftable th.star-col, .ftable td.star-col { width: 30px; }
  .ftable th:nth-child(2) { width: auto; }
  .ftable th:nth-child(4), .ftable td:nth-child(4) { width: 86px; }
  .ftable th:nth-child(6), .ftable td:nth-child(6) { width: 78px; }
  .ftable td.fn2 { overflow: hidden; }
  .ftable td.fn2 b { max-width: 100%; }
  .ftable .fcode-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 手机端 Hero 标题：让强调句独占一行，避免「一眼看清」被拆成「一眼看 / 清」 */
@media (max-width: 720px) {
  body.rt-home .hero h1 em { display: block; }
}

/* ============================================================
   基金详情 · 数据看板升级
   ============================================================ */
.fund-page .breadcrumb { margin-bottom: 14px; }

/* 头部：名称 + 当前额度 + 快捷操作 */
.fhead {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff 0%, #FBFCFE 60%, #F7FAFF 100%);
  border: 1px solid #EDEFF4; border-radius: 22px; padding: 24px 26px;
  box-shadow: 0 8px 26px rgba(58, 76, 140, .05);
}
.fh-main { flex: 1 1 420px; min-width: 0; }
.fh-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fh-idx {
  font-size: 11px; color: #4B5563; background: #F1F4F9; border-radius: 6px; padding: 3px 9px;
  letter-spacing: .04em;
}
.fh-main h1 { font-size: 27px; font-weight: 500; letter-spacing: -.022em; line-height: 1.25; }
.fh-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3); margin-top: 8px; }
.fh-sub .dot { color: var(--ink4); }
.fh-copy {
  border: none; background: none; color: #98A0AC; cursor: pointer; padding: 2px 4px;
  border-radius: 4px; line-height: 1; transition: color .15s, background .15s;
}
.fh-copy:hover { color: var(--blue); background: #F1F6FE; }
.fh-copy svg { display: block; }
.fh-copy.done { color: var(--green-ink); }

.fh-quota { text-align: right; flex: none; }
.fh-quota .lbl { display: block; font-size: 11.5px; color: #8A8F98; letter-spacing: .04em; margin-bottom: 2px; }
.fh-quota .val { font-size: 40px; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.fh-quota .val i { font-style: normal; font-size: 13px; font-weight: 400; color: #8A8F98; margin-left: 6px; letter-spacing: 0; }
.fh-quota .val.paused { font-size: 30px; color: #8A8F98; }
.fh-quota .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.fh-quota .btn.on { color: var(--gold); border-color: #E8D9BF; background: var(--gold-soft); }

/* 三个指标 */
.fstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 22px; }
.fstat {
  background: #fff; border: 1px solid #EDEFF4; border-radius: 16px; padding: 16px 18px;
  position: relative; overflow: hidden;
}
.fstat::after {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: #DCE7F7; border-radius: 2px;
}
.fstat .k { font-size: 11.5px; color: #8A8F98; display: block; }
.fstat .v { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.025em; margin: 6px 0 4px; }
.fstat .v i { font-style: normal; font-size: 12px; font-weight: 400; color: #8A8F98; margin-left: 4px; }
.fstat .v.up { color: var(--green-ink); }
.fstat .v.down { color: var(--amber-ink); }
.fstat .d { font-size: 11.5px; color: #8A8F98; }

/* 图表卡 */
.main-col { min-width: 0; }
.chartcard, .tl-card {
  background: #fff; border: 1px solid #EDEFF4; border-radius: 20px;
  box-shadow: 0 6px 22px rgba(58, 76, 140, .04);
}
.chartcard { padding: 20px 20px 14px; }
.chart-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h2 { font-size: 15px; font-weight: 500; }
.chart-head .muted, .chart-foot, .tl-head .muted { font-size: 11.5px; color: #8A8F98; }
.chart-head p.muted { margin-top: 4px; }
.range { margin-left: auto; display: flex; background: #F3F5F9; border-radius: 9px; padding: 3px; }
.range button {
  border: none; background: transparent; font-family: inherit; font-size: 12px; color: #6B7280;
  padding: 5px 11px; border-radius: 7px; cursor: pointer; transition: .16s;
}
.range button.on { background: #fff; color: #111827; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.chart-wrap { position: relative; margin-top: 6px; height: 250px; }
.chart-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  background: rgba(29, 29, 31, .92); color: #fff; border-radius: 9px; padding: 8px 11px;
  font-size: 11.5px; line-height: 1.6; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.chart-tip b { font-weight: 500; font-size: 12.5px; }
.chart-tip .s { color: rgba(255, 255, 255, .62); }
.chart-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.chart-empty span {
  background: rgba(255, 255, 255, .92); border: 1px solid #E9EDF4; border-radius: 999px;
  padding: 7px 16px; font-size: 12px; color: #6B7280;
}
.chart-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 2px 2px; border-top: 1px solid #F3F5F9; margin-top: 8px; }
.chart-foot a { margin-left: auto; }

/* 变动时间轴 */
.tl-card { margin-top: 16px; padding: 18px 20px 8px; }
.tl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tl-head h2 { font-size: 15px; font-weight: 500; }
.qtl { list-style: none; position: relative; padding: 4px 0 4px 0; }
.qtl::before {
  content: ''; position: absolute; left: 74px; top: 10px; bottom: 14px; width: 1px; background: #EDEFF4;
}
.qtl-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; position: relative; }
.qtl-item .node {
  position: absolute; left: 70px; top: 16px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid #C9D3E3; z-index: 1;
}
.qtl-item.up .node { border-color: var(--green); }
.qtl-item.down .node { border-color: var(--amber); }
.qtl-item.paused .node { border-color: #C7C7CC; }
.qtl-date { width: 60px; flex: none; font-size: 12px; color: #4B5563; padding-top: 1px; }
.qtl-date i { display: block; font-style: normal; font-size: 10.5px; color: #A0A6B0; margin-top: 2px; }
.qtl-body { flex: 1; min-width: 0; padding-left: 14px; }
.qtl-body b { font-size: 13.5px; font-weight: 500; }
.qtl-src { display: block; font-size: 11.5px; color: #8A8F98; margin-top: 3px; line-height: 1.55; }
.qtl-tag {
  flex: none; font-size: 11px; border-radius: 999px; padding: 2px 9px;
  background: #F3F5F9; color: #6B7280;
}
.qtl-item.up .qtl-tag { background: var(--green-soft); color: var(--green-ink); }
.qtl-item.down .qtl-tag { background: var(--amber-soft); color: var(--amber-ink); }
.tl-empty { padding: 22px 2px 26px; }
.tl-empty b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 5px; }
.tl-empty p { font-size: 12.5px; color: #8A8F98; line-height: 1.7; }

/* 侧栏 */
.side-card {
  background: #fff; border: 1px solid #EDEFF4; border-radius: 16px; padding: 18px 18px;
}
.side-card + .side-card, .side-card + .fold { margin-top: 14px; }
.side-card h3 { font-size: 14.5px; font-weight: 500; }
.side-card p { font-size: 12.5px; color: #6B7280; line-height: 1.7; margin: 6px 0 14px; }
.side-card.remind {
  background: linear-gradient(150deg, #F7FBFF 0%, #FDF8F4 100%);
  border-color: #E8EFFB;
}
.side-card.remind .badge {
  display: inline-block; font-size: 10.5px; letter-spacing: .04em; color: var(--blue-dark);
  background: #fff; border: 1px solid #DBE8FB; border-radius: 999px; padding: 2px 9px; margin-bottom: 10px;
}
.side-card.remind .badge.ok { color: var(--green-ink); border-color: #CFE9DC; }
.perks { list-style: none; margin: 0 0 14px; padding: 0; }
.perks li { position: relative; padding-left: 18px; font-size: 12.5px; color: #4B5563; line-height: 1.9; }
.perks li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 4px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}
.simlist { list-style: none; margin-top: 8px; padding: 0; }
.simlist li + li { border-top: 1px solid #F3F5F9; }
.simlist a {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0; color: var(--ink);
}
.simlist a:hover .nm { color: var(--blue); }
.simlist .nm { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simlist .rt { flex: none; font-size: 12px; color: #4B5563; font-weight: 500; }
.simlist .rt.paused { color: #A0A6B0; font-weight: 400; }
.side-card.fold summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 500;
}
.side-card.fold summary::-webkit-details-marker { display: none; }
.side-card.fold summary i {
  margin-left: auto; font-style: normal; font-size: 11.5px; color: #8A8F98; font-weight: 400;
}
.side-card.fold summary i::after { content: ' ▾'; }
.side-card.fold[open] summary i::after { content: ' ▴'; }
.side-card.fold p { margin: 10px 0 0; }

@media (max-width: 900px) {
  .fhead { padding: 20px; gap: 18px; }
  .fh-quota { text-align: left; width: 100%; }
  .fh-quota .acts { justify-content: flex-start; }
  .fstats { grid-template-columns: 1fr 1fr; }
  .fstats .fstat:last-child { grid-column: 1 / -1; }
  .chart-wrap { height: 220px; }
}
@media (max-width: 720px) {
  .fhead { border-radius: 18px; }
  .fh-main h1 { font-size: 21px; }
  .fh-quota .val { font-size: 32px; }
  .fstats { gap: 10px; }
  .fstat { padding: 13px 14px; }
  .fstat .v { font-size: 21px; }
  .chartcard { padding: 16px 14px 10px; }
  .chart-wrap { height: 200px; }
  .chart-head h2 { font-size: 14px; }
  .range { margin-left: 0; width: 100%; }
  .range button { flex: 1; }
  .tl-card { padding: 16px 14px 6px; }
  .qtl::before { left: 58px; }
  .qtl-item .node { left: 54px; }
  .qtl-date { width: 46px; font-size: 11.5px; }
  .qtl-body { padding-left: 18px; }
}
