/* ==========================================================================
   figma.css — 全国税票查询系统 Figma 设计系统（1:1 复刻共享样式）
   设计令牌 + .fx-* 组件：shell / hero / 卡片 / DataTable / KVGrid / tabs /
   底栏 / 抽屉 / QR 尾卡 / toast / 空态 / 提示条
   供 report / account / h5 页共用（tax-status 已随模块 F 迁 figma-tw）；页面专属样式放各自页面 css。
   G 20260921 实测：68/74 在用 fx-* 类 + 189 处 --fx-* 令牌被页面 css 引用 = 长期组件层，禁直接删除。
   ========================================================================== */

:root {
  --fx-blue-700: #1346cc;
  --fx-blue-600: #1664ff;
  --fx-blue-500: #2e7fff;
  --fx-blue-400: #3b82ff;
  --fx-ink: #1d2129;
  --fx-ink-2: #4e5969;
  --fx-ink-3: #86909c;
  --fx-dash: #c9cdd4;
  --fx-line: #e5e8f0;
  --fx-line-soft: #eef0f8;
  --fx-line-blue: #dde3f5;
  --fx-bg: #f2f4f8;
  --fx-zebra: #f3f6ff;
  --fx-amber: #ff7d00;
  --fx-red: #f53f3f;
  --fx-green: #00c853;
  --fx-green-deep: #00963d;
  --fx-shadow-card: 0 2px 12px rgba(20, 50, 130, 0.07);
  --fx-shadow-float: 0 4px 24px rgba(20, 50, 130, 0.14);
  --fx-shadow-bar: 0 -4px 24px rgba(20, 50, 130, 0.10);
  --fx-shell-w: 420px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.fx-body {
  margin: 0;
  background: var(--fx-bg);
  color: var(--fx-ink);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* ---------- 420px 手机壳 ---------- */
.fx-shell {
  max-width: var(--fx-shell-w);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--fx-bg);
  position: relative;
}

@media (min-width: 500px) {
  .fx-shell {
    box-shadow: 0 0 0 1px rgba(20, 50, 130, 0.05), 0 0 48px rgba(20, 50, 130, 0.07);
  }
}

/* ---------- 蓝色 hero 头带 ---------- */
.fx-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 16px 56px;
  background: linear-gradient(158deg, #1346cc 0%, #1664ff 52%, #2e7fff 100%);
  color: #fff;
}

.fx-hero__dots,
.fx-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-hero__dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.fx-hero__glow {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.fx-hero__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.fx-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.fx-back:active { opacity: 0.7; }

.fx-hero__title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-hero__title .fx-hero__brand { transition: color 0.2s; }

.fx-hero__sep { opacity: 0.5; margin: 0 3px; }

.fx-hero__badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.72);
}

.fx-hero__name {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
}

.fx-hero__name h1 {
  flex: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  word-break: break-all;
}

.fx-hero__name h1.is-unknown { color: rgba(255, 255, 255, 0.75); font-size: 16px; }

.fx-hero__sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fx-hero__taxid {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.fx-copy {
  border: 0;
  background: none;
  padding: 2px;
  display: inline-flex;
  line-height: 0;
}

.fx-copy:active { opacity: 0.6; }

.fx-hero__meta {
  position: relative;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.66);
}

/* hero 状态胶囊（发光绿点） */
.fx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  background: rgba(0, 200, 80, 0.18);
  border: 1px solid rgba(0, 220, 90, 0.35);
  color: #6effa0;
  white-space: nowrap;
}

.fx-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6effa0;
  box-shadow: 0 0 4px #6effa0;
  flex-shrink: 0;
}

.fx-pill--neutral {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
}

.fx-pill--neutral::before { background: rgba(255, 255, 255, 0.6); box-shadow: none; }

.fx-pill--warn {
  background: rgba(255, 179, 0, 0.16);
  border-color: rgba(255, 199, 62, 0.4);
  color: #ffd76e;
}

.fx-pill--warn::before { background: #ffd76e; box-shadow: 0 0 4px rgba(255, 215, 110, 0.8); }

/* ---------- 企业档案浮卡 ---------- */
.fx-profile {
  position: relative;
  z-index: 1;
  margin: -32px 12px 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--fx-shadow-float);
  padding-bottom: 12px;
  overflow: hidden;
}

.fx-profile__rows {
  padding: 16px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.fx-fact__label {
  font-size: 10.5px;
  color: var(--fx-ink-3);
  margin-bottom: 2px;
}

.fx-fact__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-ink);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  word-break: break-all;
}

.fx-fact__value--full { grid-column: 1 / -1; }
.fx-fact__value--blue { color: var(--fx-blue-600); }
.fx-fact__value--missing { color: var(--fx-dash); font-weight: 500; }

.fx-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7e6;
  color: #d96400;
  border: 1px solid #ffd591;
  line-height: 1.4;
}

.fx-tint {
  margin: 0 12px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 12px;
}

.fx-tint__row {
  display: flex;
  gap: 8px;
}

.fx-tint__row + .fx-tint__divider + .fx-tint__row, .fx-tint__row + .fx-tint__row { padding-top: 10px; }

.fx-tint__label {
  flex-shrink: 0;
  width: 56px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fx-ink-3);
}

.fx-tint__value {
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
  color: var(--fx-ink);
  word-break: break-all;
}

.fx-tint__divider { height: 1px; background: #eaeffb; margin: 10px 0 0; }

.fx-scope-toggle {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--fx-blue-600);
}

.fx-scope-toggle.is-open { color: var(--fx-ink-3); margin-left: 4px; }

.fx-profile__foot {
  margin: 0 16px;
  padding-top: 10px;
  border-top: 1px solid #f0f1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--fx-ink-3);
}

.fx-profile__foot > div { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* ---------- Section 卡片 ---------- */
.fx-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--fx-shadow-card);
  border: 1px solid var(--fx-line);
  overflow: hidden;
}

.fx-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 2px solid #eef1fb;
  background: linear-gradient(90deg, #eef3ff 0%, #f7f9ff 100%);
}

.fx-card__head-main { display: flex; align-items: center; gap: 10px; min-width: 0; }

.fx-card__bar {
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82ff, #1346cc);
  flex-shrink: 0;
}

.fx-card__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-card__extra {
  font-size: 10px;
  color: var(--fx-ink-3);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fx-card__body { padding: 14px 16px; }

.fx-card__body--flush { padding: 0; }

.fx-stack { display: flex; flex-direction: column; gap: 12px; }

.fx-stack--tight { gap: 8px; }

/* ---------- 子标题 ---------- */
.fx-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fx-sub__main { display: flex; align-items: center; gap: 6px; min-width: 0; }

.fx-sub__bar {
  width: 3px;
  height: 11px;
  border-radius: 999px;
  background: #a0b4e8;
  flex-shrink: 0;
}

.fx-sub__text { font-size: 12px; font-weight: 600; color: var(--fx-ink-2); }

.fx-sub__right { font-size: 10.5px; color: var(--fx-ink-3); flex-shrink: 0; }

/* ---------- DataTable（设计同款表头蓝/斑马/末行汇总） ---------- */
.fx-table-wrap {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  overflow: hidden;
}

table.fx-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fx-table th {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1346cc;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, #eef2ff 0%, #f2f5ff 100%);
  border-bottom: 1.5px solid var(--fx-line-blue);
}

.fx-table th + th, .fx-table td + td { border-left: 1px solid var(--fx-line-soft); }

.fx-table td {
  padding: 10px 8px;
  font-size: 11.5px;
  color: var(--fx-ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-table tbody tr { border-top: 1px solid var(--fx-line-soft); }

.fx-table tbody tr:nth-child(even):not(:last-child) { background: var(--fx-zebra); }

.fx-table tbody tr:last-child { background: #f0f4ff; font-weight: 700; }

.fx-table td.fx-c1 {
  width: 96px;
  font-weight: 500;
  color: var(--fx-ink-2);
  text-align: left;
  white-space: normal;
  word-break: break-all;
}

.fx-table--narrow td.fx-c1, .fx-table--narrow th:first-child { width: 52px; }

.fx-table td.is-num { color: var(--fx-blue-600); }

.fx-table td.is-neg { color: var(--fx-red); }

.fx-table td.is-dash { color: var(--fx-dash); }

.fx-table tr:last-child td.is-num { color: var(--fx-blue-700); }

/* ---------- KVGrid（两列键值对） ---------- */
.fx-kv {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  overflow: hidden;
}

.fx-kv__row { display: flex; }

.fx-kv__row + .fx-kv__row { border-top: 1px solid var(--fx-line-soft); }

.fx-kv__row:nth-child(even) { background: var(--fx-zebra); }

.fx-kv__cell { flex: 1; padding: 12px; min-width: 0; }

.fx-kv__cell + .fx-kv__cell { border-left: 1px solid var(--fx-line-soft); }

.fx-kv__label {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--fx-ink-3);
  margin-bottom: 4px;
}

.fx-kv__value {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fx-ink);
  word-break: break-all;
}

.fx-kv__value.is-dash { color: var(--fx-dash); }

.fx-kv__value.is-no { color: var(--fx-ink-3); font-weight: 500; }

.fx-kv__value.is-neg { color: var(--fx-red); }

.fx-kv__value small { font-weight: 500; color: var(--fx-ink-3); }

/* ---------- 三列指标瓦片 ---------- */
.fx-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fx-tiles--2 { grid-template-columns: repeat(2, 1fr); }

.fx-tile {
  background: #f7f9ff;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  min-width: 0;
}

.fx-tile__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--fx-blue-600);
  margin-bottom: 4px;
  line-height: 1.2;
  word-break: break-all;
}

.fx-tile__value.is-dash { color: var(--fx-dash); }

.fx-tile__value.is-neg { color: var(--fx-red); }

.fx-tile__label { font-size: 10px; line-height: 1.35; color: var(--fx-ink-3); }

.fx-tile__note { font-size: 9.5px; color: var(--fx-ink-3); margin-top: 4px; line-height: 1.4; }

/* ---------- 空态 ---------- */
.fx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0;
}

.fx-empty span { font-size: 12px; color: var(--fx-ink-3); }

/* ---------- 黄色提示条 ---------- */
.fx-note {
  font-size: 11px;
  line-height: 1.7;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbe6;
  border: 1px solid #ffe7a0;
  color: #7d5a00;
}

/* ---------- 蓝色信息条（口径说明） ---------- */
.fx-info {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #e3ebfa;
  color: var(--fx-ink-2);
  font-size: 11px;
  line-height: 1.7;
}

.fx-info svg { flex-shrink: 0; margin-top: 2px; }

.fx-info strong { display: block; color: var(--fx-ink); margin-bottom: 2px; font-size: 11.5px; }

/* ---------- 状态徽章（数据域采集状态等） ---------- */
.fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.fx-badge--ok { background: rgba(0, 150, 61, 0.08); color: var(--fx-green-deep); }

.fx-badge--missing { background: rgba(245, 63, 63, 0.07); color: #d84a4a; }

.fx-badge--neutral { background: #f2f3f5; color: var(--fx-ink-3); }

.fx-badge--attention { background: rgba(255, 125, 0, 0.09); color: #d96400; }

/* ---------- 来源小徽标 ---------- */
.fx-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  line-height: 1.7;
  white-space: nowrap;
}

.fx-chip--direct { background: rgba(22, 100, 255, 0.08); color: var(--fx-blue-600); }

.fx-chip--derived { background: rgba(97, 191, 162, 0.12); color: #2f8f74; }

.fx-chip--external { background: rgba(160, 180, 232, 0.18); color: #5a6fb0; }

.fx-chip--unavailable { background: #f2f3f5; color: var(--fx-ink-3); }

/* ---------- 顶部 tabs ---------- */
.fx-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #eef1fb;
  border-bottom: 2px solid #eef1fb;
}

.fx-tab {
  flex: 1;
  position: relative;
  padding: 12px 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fx-ink-3);
  transition: color 0.15s;
}

.fx-tab.is-active { color: var(--fx-blue-600); }

.fx-tab.is-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 2.5px;
  border-radius: 999px;
  background: var(--fx-blue-600);
}

/* ---------- tab 面板 ---------- */
.fx-content { padding-bottom: 118px; }

.fx-pane { display: none; }

.fx-pane.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 32px;
}

.fx-pane__title {
  display: none;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink);
  padding: 2px 4px 0;
}

.fx-flush { display: contents; }

/* ---------- 子页签胶囊（申报收入/实缴税额） ---------- */
.fx-seg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.fx-seg__btn {
  border: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f2f3f5;
  color: var(--fx-ink-3);
  transition: all 0.15s;
}

.fx-seg__btn.is-active {
  background: var(--fx-blue-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 100, 255, 0.25);
}

.fx-seg__unit { margin-left: auto; font-size: 10px; color: var(--fx-ink-3); }

/* ---------- 风险总评 ---------- */
.fx-risk__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.fx-risk__score {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 20px;
  background: linear-gradient(158deg, #eef3ff, #f7f9ff);
  border: 1px solid #e3ebfa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.fx-risk__score strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--fx-blue-700);
  font-variant-numeric: tabular-nums;
}

.fx-risk__score strong.is-dash { color: var(--fx-dash); }

.fx-risk__score span { font-size: 9.5px; color: var(--fx-ink-3); }

.fx-risk__level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fx-risk__summary {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fx-ink-2);
}

/* 风险发现条目 */
.fx-findings { display: flex; flex-direction: column; }

.fx-finding {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
}

.fx-finding + .fx-finding { border-top: 1px solid #f4f5fb; }

.fx-finding__main { flex: 1; min-width: 0; }

.fx-finding__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fx-ink);
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.fx-finding__basis { font-size: 11px; line-height: 1.65; color: var(--fx-ink-3); }

.fx-finding__impact {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-amber);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.fx-finding__impact.is-danger { color: var(--fx-red); }

/* ---------- 上下游企业行 ---------- */
.fx-comp {
  padding: 14px 16px;
}

.fx-comp + .fx-comp { border-top: 1px solid #f0f1f6; }

.fx-comp__name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.fx-comp__name b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fx-ink);
  word-break: break-all;
  line-height: 1.4;
}

.fx-comp__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fx-comp__pair { display: flex; align-items: center; gap: 4px; min-width: 0; }

.fx-comp__pair > span:first-child { font-size: 11.5px; color: var(--fx-ink-3); white-space: nowrap; }

.fx-comp__pair b { font-size: 13px; font-weight: 700; color: var(--fx-blue-600); font-variant-numeric: tabular-nums; }

.fx-comp__pair--ratio b { color: var(--fx-amber); }

.fx-comp__meta { margin-top: 5px; font-size: 10px; color: var(--fx-ink-3); }

.fx-expand {
  width: 100%;
  border: 0;
  border-top: 1px solid #f4f5fb;
  background: none;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fx-blue-600);
}

.fx-expand.is-open { color: var(--fx-ink-3); }

.fx-expand svg { transition: transform 0.2s; }

.fx-expand.is-open svg { transform: rotate(180deg); }

/* ---------- 横向滚动表格（银税互动 / 司法明细） ---------- */
.fx-scrollx-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid #f0f2f8;
  background: #fafbff;
  font-size: 10px;
  color: #a0b4e8;
}

.fx-scrollx-wrap { position: relative; }

.fx-scrollx {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fx-scrollx::-webkit-scrollbar { display: none; }

.fx-fade-l, .fx-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}

.fx-fade-l { left: 0; background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.85)); }

.fx-fade-r { right: 0; width: 40px; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.92)); }

.fx-scrollx-wrap.at-start .fx-fade-r,
.fx-scrollx-wrap:not(.at-start):not(.at-end) .fx-fade-r,
.fx-scrollx-wrap:not(.at-start) .fx-fade-l { opacity: 1; }

.fx-scrollx__inner { min-width: 624px; }

.fx-hcells, .fx-hrow { display: flex; }

.fx-hcells {
  background: #f5f8ff;
  border-bottom: 1px solid #eef0f6;
}

.fx-hrow { border-bottom: 1px solid #f4f5fb; }

.fx-hrow:nth-child(even) { background: var(--fx-zebra); }

.fx-hcell {
  flex-shrink: 0;
  padding: 10px 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  color: var(--fx-ink-2);
}

.fx-hrow .fx-hcell {
  font-weight: 400;
  font-size: 11px;
  color: var(--fx-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.fx-hcell + .fx-hcell { border-left: 1px solid #eef0f6; }

.fx-hcell.is-dash { color: var(--fx-dash); }

/* ---------- 图表卡 ---------- */
.fx-chart { position: relative; height: 180px; }

.fx-chart--donut { height: 170px; }

.fx-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.fx-legend__item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fx-ink-2); }

.fx-legend__item i { width: 8px; height: 8px; border-radius: 3px; background: var(--legend-color, #2f7cf6); flex-shrink: 0; }

.fx-legend__item strong { margin-left: auto; color: var(--fx-blue-600); font-variant-numeric: tabular-nums; }

.fx-chart-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.fx-chart-insight {
  background: #f7f9ff;
  border: 1px solid #eef0f6;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.fx-chart-insight span { display: block; font-size: 9.5px; color: var(--fx-ink-3); margin-bottom: 3px; }

.fx-chart-insight strong { font-size: 12.5px; font-weight: 700; color: var(--fx-blue-600); font-variant-numeric: tabular-nums; }

.fx-chart-insight strong.is-neg { color: var(--fx-red); }

/* ---------- 财务分析 ---------- */
.fx-fin-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fx-fin-kpi {
  background: #f7f9ff;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 12px;
}

.fx-fin-kpi span { display: block; font-size: 10px; color: var(--fx-ink-3); margin-bottom: 4px; }

.fx-fin-kpi strong { display: block; font-size: 15px; font-weight: 700; color: var(--fx-ink); word-break: break-all; line-height: 1.3; }

.fx-fin-kpi strong.is-neg { color: var(--fx-red); }

.fx-fin-kpi small { display: block; font-size: 9.5px; color: var(--fx-ink-3); margin-top: 3px; }

.fx-fin-meter { height: 5px; border-radius: 999px; background: #e8edf8; margin-top: 8px; overflow: hidden; }

.fx-fin-meter b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82ff, #1346cc); }

.fx-fin-panels { display: flex; flex-direction: column; gap: 12px; }

.fx-fin-panel {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
}

.fx-fin-eq { font-size: 11px; color: var(--fx-ink-2); line-height: 1.7; margin: 6px 0 8px; }

.fx-fin-eq strong { color: var(--fx-ink); font-size: 11.5px; }

.fx-fin-stack {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e8edf8;
}

.fx-fin-stack span { height: 100%; }

.fx-fin-stack span:first-child { background: #e8a94d; }

.fx-fin-stack span + span { background: var(--fx-blue-600); }

.fx-fin-stack-cap {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fx-ink-3);
  margin: 5px 0 10px;
}

.fx-mixbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }

.fx-mixlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.fx-mixlist li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fx-ink-2); }

.fx-mixlist i { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }

.fx-mixlist strong { margin-left: auto; color: var(--fx-ink); font-variant-numeric: tabular-nums; }

.fx-mixlist em { font-style: normal; color: var(--fx-ink-3); font-variant-numeric: tabular-nums; width: 38px; text-align: right; }

.fx-ladder { list-style: none; margin: 6px 0 0; padding: 0; }

.fx-ladder li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed #eef0f8;
}

.fx-ladder li:last-child { border-bottom: 0; }

.fx-ladder li span { color: var(--fx-ink-2); }

.fx-ladder li small { margin-left: auto; font-size: 9.5px; color: var(--fx-ink-3); }

.fx-ladder li strong { font-variant-numeric: tabular-nums; color: var(--fx-ink); }

.fx-ladder li.deduct strong { color: #d96400; }

.fx-ladder li.subtotal strong { color: var(--fx-blue-600); }

.fx-ladder li.result strong { color: var(--fx-ink); font-weight: 800; font-size: 12.5px; }

.fx-flows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.fx-flows article {
  position: relative;
  border-radius: 10px;
  padding: 9px 10px;
  background: #f7f9ff;
  border: 1px solid #eef0f6;
  overflow: hidden;
}

.fx-flows article[data-tone="pos"] b { background: #61bfa2; }

.fx-flows article[data-tone="neg"] b { background: #e88d8d; }

.fx-flows article > span { font-size: 10px; color: var(--fx-ink-3); display: block; }

.fx-flows article > strong { font-size: 12.5px; font-weight: 700; color: var(--fx-ink); display: block; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }

.fx-flows article > b { display: block; height: 5px; border-radius: 999px; background: #a0b4e8; }

.fx-flows article > small { display: block; font-size: 9.5px; color: var(--fx-ink-3); margin-top: 5px; }

.fx-years { display: flex; flex-direction: column; gap: 8px; }

.fx-years article {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9ff;
  border: 1px solid #eef0f6;
}

.fx-years article > strong { font-size: 13px; font-weight: 700; color: var(--fx-ink); grid-row: span 2; align-self: center; }

.fx-years article div span { font-size: 9.5px; color: var(--fx-ink-3); display: block; }

.fx-years article div b { font-size: 11px; font-weight: 700; color: var(--fx-ink-2); font-variant-numeric: tabular-nums; word-break: break-all; }

.fx-years article div b em { font-style: normal; margin-left: 4px; font-size: 9.5px; color: var(--fx-ink-3); }

.fx-years article div b[data-tone="neg"] { color: var(--fx-red); }

.fx-years article div b[data-tone="pos"] { color: var(--fx-green-deep); }

.fx-years article p { grid-column: 2 / -1; margin: 4px 0 0; font-size: 9.5px; color: var(--fx-ink-3); }

/* ---------- 展开详情（原生 details） ---------- */
details.fx-details { border-top: 1px dashed #e5e9f4; margin-top: 10px; padding-top: 8px; }

details.fx-details > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fx-blue-600);
  padding: 2px 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

details.fx-details > summary::-webkit-details-marker { display: none; }

details.fx-details > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
}

details.fx-details[open] > summary::after { transform: rotate(225deg) translateY(-2px); }

/* ---------- 科目分组 ---------- */
.fx-groups { display: flex; flex-direction: column; gap: 10px; }

.fx-groups h4 { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--fx-ink-2); }

.fx-group-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 6px; }

.fx-group-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-bottom: 1px solid #f4f6fb; padding: 4px 0; }

.fx-group-facts span { font-size: 10.5px; color: var(--fx-ink-3); }

.fx-group-facts strong { font-size: 11px; font-weight: 700; color: var(--fx-ink); font-variant-numeric: tabular-nums; }

.fx-group-facts strong.is-dash { color: var(--fx-dash); font-weight: 500; }

/* ---------- 勾稽条目 ---------- */
.fx-cross { padding: 10px 0; }

.fx-cross + .fx-cross { border-top: 1px solid #f4f5fb; }

.fx-cross__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }

.fx-cross__top strong { font-size: 12px; font-weight: 700; color: var(--fx-ink); }

.fx-cross p { margin: 0 0 4px; font-size: 11px; line-height: 1.65; color: var(--fx-ink-2); }

.fx-cross small { font-size: 9.5px; color: var(--fx-ink-3); }

/* ---------- 集中度卡 ---------- */
.fx-conc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fx-conc article {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
}

.fx-conc article.is-attention { border-color: #ffd591; background: #fffaf0; }

.fx-conc__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }

.fx-conc__head span { font-size: 10.5px; color: var(--fx-ink-3); }

.fx-conc strong { display: block; font-size: 17px; font-weight: 700; color: var(--fx-blue-700); font-variant-numeric: tabular-nums; margin-bottom: 2px; }

.fx-conc article.is-attention strong { color: #d96400; }

.fx-conc meter, .fx-progress {
  display: block;
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e8edf8;
  margin: 6px 0;
}

.fx-conc meter::-webkit-meter-bar, .fx-progress::-webkit-progress-bar { background: #e8edf8; border-radius: 999px; }

.fx-conc meter::-webkit-meter-optimum-value, .fx-progress::-webkit-progress-value { background: linear-gradient(90deg, #3b82ff, #1346cc); border-radius: 999px; }

.fx-conc article.is-attention meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #ffb256, #e8890c); }

.fx-conc p { margin: 4px 0 0; font-size: 10px; line-height: 1.6; color: var(--fx-ink-3); }

/* ---------- 品类进度行 ---------- */
.fx-cat { display: flex; flex-direction: column; gap: 10px; }

.fx-cat__row { display: flex; flex-direction: column; gap: 5px; }

.fx-cat__line { display: flex; align-items: center; gap: 6px; }

.fx-cat__line span { font-size: 11.5px; color: var(--fx-ink-2); }

.fx-cat__line strong { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--fx-blue-600); font-variant-numeric: tabular-nums; }

/* ---------- 质量观察行 ---------- */
.fx-quality { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fx-quality article {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fcfdff;
}

.fx-quality article.is-attention { border-color: #ffd591; background: #fffaf0; }

.fx-quality span { display: block; font-size: 10px; color: var(--fx-ink-3); margin-bottom: 3px; }

.fx-quality strong { display: block; font-size: 13px; font-weight: 700; color: var(--fx-ink); font-variant-numeric: tabular-nums; }

.fx-quality small { display: block; font-size: 9.5px; color: var(--fx-ink-3); margin-top: 2px; }

/* ---------- 司法案件筛选 ---------- */
.fx-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.fx-filter {
  border: 1px solid var(--fx-line);
  background: #f7f9ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fx-ink-3);
}

.fx-filter.is-active { background: var(--fx-blue-600); border-color: var(--fx-blue-600); color: #fff; }

.fx-filter span { opacity: 0.75; margin-left: 2px; }

/* ---------- 整改建议 ---------- */
.fx-action { padding: 12px 0; }

.fx-action + .fx-action { border-top: 1px solid #f4f5fb; }

.fx-action__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

.fx-action__priority {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f0f4ff;
  color: var(--fx-blue-700);
}

.fx-action__priority.is-danger { background: rgba(245, 63, 63, 0.08); color: var(--fx-red); }

.fx-action__priority.is-attention { background: rgba(255, 125, 0, 0.1); color: #d96400; }

.fx-action h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--fx-ink); }

.fx-action p { margin: 0 0 8px; font-size: 11px; line-height: 1.65; color: var(--fx-ink-2); }

.fx-action__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }

.fx-action__meta div { min-width: 0; }

.fx-action__meta span { display: block; font-size: 9.5px; color: var(--fx-ink-3); }

.fx-action__meta strong { font-size: 10.5px; font-weight: 600; color: var(--fx-ink-2); word-break: break-all; }

/* ---------- 覆盖率 ---------- */
.fx-coverage { display: flex; align-items: center; gap: 14px; }

.fx-coverage__score {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 6px solid #e3ebfa;
  border-top-color: var(--fx-blue-600);
  border-right-color: var(--fx-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-blue-700);
}

.fx-coverage__copy { flex: 1; min-width: 0; }

.fx-coverage__copy h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--fx-ink); }

.fx-coverage__copy p { margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--fx-ink-3); }

/* ---------- 口径说明 ---------- */
.fx-method { display: flex; flex-direction: column; }

.fx-method__item { padding: 10px 0; }

.fx-method__item + .fx-method__item { border-top: 1px solid #f4f5fb; }

.fx-method__item strong { display: block; font-size: 11.5px; font-weight: 700; color: var(--fx-ink); margin-bottom: 3px; }

.fx-method__item span { font-size: 10.5px; line-height: 1.65; color: var(--fx-ink-3); }

/* ---------- QR 品牌尾卡 ---------- */
.fx-qr {
  margin: 4px 12px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf5;
  box-shadow: var(--fx-shadow-card);
}

.fx-qr__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3ff 0%, #f5f8ff 100%);
}

.fx-qr__rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.fx-qr__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(22, 100, 255, 0.07); }

.fx-qr__ring--1 { width: 120px; height: 120px; background: radial-gradient(circle, rgba(22, 100, 255, 0.025) 0%, transparent 70%); }

.fx-qr__ring--2 { width: 180px; height: 180px; border-color: rgba(22, 100, 255, 0.055); background: radial-gradient(circle, rgba(22, 100, 255, 0.02) 0%, transparent 70%); }

.fx-qr__ring--3 { width: 240px; height: 240px; border-color: rgba(22, 100, 255, 0.04); background: radial-gradient(circle, rgba(22, 100, 255, 0.015) 0%, transparent 70%); }

.fx-qr__ring--4 { width: 300px; height: 300px; border-color: rgba(22, 100, 255, 0.025); }

.fx-qr__inner { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }

.fx-qr__eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }

.fx-qr__eyebrow i { display: block; width: 32px; height: 1px; border-radius: 999px; }

.fx-qr__eyebrow i:first-child { background: linear-gradient(90deg, transparent, #c0cfff); }

.fx-qr__eyebrow i:last-child { background: linear-gradient(90deg, #c0cfff, transparent); }

.fx-qr__eyebrow span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0b4e8;
}

.fx-qr__brand { font-size: 20px; font-weight: 700; letter-spacing: 0.15em; color: var(--fx-ink); text-align: center; }

.fx-qr__product-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; width: 100%; }

.fx-qr__product-line i { display: block; height: 1px; flex: 1; max-width: 32px; border-radius: 999px; }

.fx-qr__product-line i:first-child { background: linear-gradient(90deg, transparent, #d0daff); }

.fx-qr__product-line i:last-child { background: linear-gradient(90deg, #d0daff, transparent); }

.fx-qr__product { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; color: #7a93d4; white-space: nowrap; }

.fx-qr__code {
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 50, 130, 0.12);
  margin-bottom: 12px;
  margin-top: 20px;
}

.fx-qr__hint { font-size: 13px; font-weight: 600; color: var(--fx-ink); margin-bottom: 6px; }

.fx-qr__follow { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fx-ink-3); }

.fx-qr__follow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fx-green);
  box-shadow: 0 0 4px var(--fx-green);
  flex-shrink: 0;
}

.fx-qr__divider { height: 1px; background: linear-gradient(90deg, transparent, #dde3f0, transparent); }

.fx-qr__disclaimer { padding: 16px; }

.fx-qr__disclaimer-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

.fx-qr__disclaimer-head span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; color: #b0bdd0; }

.fx-qr__disclaimer p { margin: 0; font-size: 10px; line-height: 1.8; color: #b8c4d4; }

.fx-qr__meta {
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 9.5px;
  color: #b8c4d4;
}

/* ---------- 固定底栏 ---------- */
.fx-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.fx-bottombar__inner {
  width: 100%;
  max-width: var(--fx-shell-w);
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e8ecf5;
  box-shadow: var(--fx-shadow-bar);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}

.fx-bb-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #d8e3ff;
  background: #f3f6ff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fx-blue-600);
  white-space: nowrap;
}

.fx-bb-btn:active { opacity: 0.7; }

.fx-bb-btn:disabled { opacity: 0.55; cursor: default; }

.fx-bb-cta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82ff 0%, #1346cc 100%);
  box-shadow: 0 4px 18px rgba(22, 100, 255, 0.32);
  white-space: nowrap;
}

.fx-bb-cta:active { opacity: 0.85; }

/* ---------- 底部抽屉（专业版） ---------- */
.fx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 50, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.fx-backdrop.is-open { opacity: 1; pointer-events: auto; }

.fx-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.fx-sheet__box {
  width: 100%;
  max-width: var(--fx-shell-w);
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -8px 40px rgba(20, 50, 130, 0.18);
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.24, 1);
}

.fx-sheet.is-open .fx-sheet__box { transform: translateY(0); }

.fx-sheet__handle { display: flex; justify-content: center; padding: 12px 0 4px; }

.fx-sheet__handle i { width: 36px; height: 4px; border-radius: 999px; background: #e0e5f0; }

.fx-sheet__content { padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }

.fx-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.fx-sheet__head b { font-size: 17px; font-weight: 700; color: var(--fx-ink); }

.fx-sheet__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #f2f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-sheet__close:active { opacity: 0.6; }

.fx-sheet__company {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f6ff;
  border: 1px solid #d8e3ff;
  margin-bottom: 20px;
}

.fx-sheet__company span:first-child {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--fx-ink);
  line-height: 1.4;
  word-break: break-all;
}

.fx-sheet__company span:last-child {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8f0ff;
  color: var(--fx-blue-600);
}

.fx-sheet__pay {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1346cc 0%, #1664ff 55%, #2e7fff 100%);
  box-shadow: 0 6px 24px rgba(22, 100, 255, 0.28);
  color: #fff;
  text-align: left;
  margin-bottom: 12px;
}

.fx-sheet__pay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.fx-sheet__pay-main b { display: block; font-size: 15px; font-weight: 700; }

.fx-sheet__pay-main span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }

.fx-sheet__pay-side { flex-shrink: 0; text-align: right; }

.fx-sheet__pay-side b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }

.fx-sheet__pay-side span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }

.fx-sheet__pay .fx-dev-tag {
  position: absolute;
  top: 8px;
  right: -26px;
  transform: rotate(38deg);
  padding: 2px 30px;
  font-size: 9px;
  font-weight: 600;
  color: #7d5a00;
  background: #ffe7a0;
}

.fx-sheet__demo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid #d8e3ff;
  background: #f3f6ff;
  text-align: left;
  margin-bottom: 20px;
}

.fx-sheet__demo:active { opacity: 0.8; }

.fx-sheet__demo b { display: block; font-size: 15px; font-weight: 600; color: var(--fx-ink); }

.fx-sheet__demo span { display: block; font-size: 11.5px; color: var(--fx-ink-3); margin-top: 2px; }

.fx-sheet__demo em {
  font-style: normal;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--fx-blue-600);
}

.fx-sheet__pays { display: flex; align-items: center; justify-content: center; gap: 8px; }

.fx-sheet__pays > span { font-size: 10px; color: var(--fx-ink-3); }

.fx-pay-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f2f4f8;
  font-size: 10px;
  font-weight: 500;
}

.fx-pay-mark--wechat { color: #07c160; }

.fx-pay-mark--alipay { color: #1677ff; }

/* ---------- 复制 toast ---------- */
.fx-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 300;
}

.fx-toast__inner { width: 100%; max-width: var(--fx-shell-w); display: flex; justify-content: center; padding-top: 64px; }

.fx-toast__pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(29, 33, 41, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.3s;
}

.fx-toast.is-visible .fx-toast__pill { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- 演示报告丝带 ---------- */
.fx-demo-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fff7e6;
  border-bottom: 1px solid #ffd591;
  color: #d96400;
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- 全屏加载 ---------- */
.fx-loading {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fx-loading__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #e3ebfa;
  border-top-color: var(--fx-blue-600);
  animation: fx-spin 0.8s linear infinite;
}

.fx-loading strong { font-size: 14px; font-weight: 700; color: var(--fx-ink); }

.fx-loading small { font-size: 11px; color: var(--fx-ink-3); max-width: 300px; text-align: center; line-height: 1.6; }

.fx-loading.is-error .fx-loading__spinner { display: none; }

.fx-loading.is-error strong { color: var(--fx-red); }

@keyframes fx-spin { to { transform: rotate(360deg); } }

/* ---------- 开发中标记 ---------- */
.fx-dev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #7d5a00;
  background: #fffbe6;
  border: 1px solid #ffe7a0;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
