/* ============ Do Nothing Capital · base ============ */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efede7;
  --ink: #17160f;
  --ink-soft: #56534a;
  --muted: #8a867b;
  --line: #e5e2d9;
  --accent: #15140e;
  --up: #c13c2d;   /* 涨：红（境内习惯） */
  --down: #168254; /* 跌：绿 */
  /* 涨跌配色可切换：默认红涨绿跌；给 body 加 scheme-green-up 后变成绿涨红跌 */
  --gain: var(--up);
  --loss: var(--down);
  --warn: #a9711c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 18, 10, 0.05), 0 8px 24px rgba(20, 18, 10, 0.05);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC",
    "STSong", serif;
}

body.scheme-green-up {
  --gain: var(--down);
  --loss: var(--up);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

main {
  min-height: calc(100vh - 220px);
  padding-top: 84px;
}

section {
  scroll-margin-top: 90px;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(247, 246, 242, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 涨跌配色开关：红涨绿跌 / 绿涨红跌 */
.scheme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.scheme-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.scheme-toggle button:hover {
  color: var(--ink-soft);
}

.scheme-toggle button.is-active {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 420px) {
  .scheme-toggle {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  gap: 1px;
}

.brand-text strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.brand-zh {
  order: -1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.site-nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

/* ============ Hero ============ */
.hero {
  padding: 104px 0 72px;
  text-align: center;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* 副标题分行显示：每句独占一行，避免长句被自动折行后读起来断句奇怪 */
.hero-sub-line {
  display: block;
}

.hero-sub-line + .hero-sub-line {
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* ============ Sections & cards ============ */
.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
}

/* 示例数据标记：把占位内容与真实数据在视觉上区分开 */
.demo-tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid #e2d6bd;
  border-radius: 999px;
  background: #fbf6ea;
  color: var(--warn);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1px dashed #e2d6bd;
  border-radius: var(--radius);
  background: #fbf6ea;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.demo-notice .demo-tag {
  flex: none;
  margin-top: 2px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 20px 22px;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.metric-value.pos {
  color: var(--gain);
}

.metric-value.neg {
  color: var(--loss);
}

.metric-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ============ Strategy tabs ============ */
.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.strategy-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.35;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.strategy-tab .tab-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.strategy-tab:hover {
  border-color: var(--muted);
}

.strategy-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.strategy-tab.is-active .tab-sub {
  color: rgba(255, 255, 255, 0.72);
}

.strategy-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* 策略代码与数据截至：紧跟在策略名后面，用无衬线小字，不抢标题 */
.section-head h2 #strategy-meta {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.weight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
}

.weight-chip b {
  font-variant-numeric: tabular-nums;
}

.allocation-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.allocation-empty {
  color: var(--muted);
  font-size: 14px;
}

.allocation-date {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ============ Asset signal cards ============ */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: var(--shadow);
}

.asset-card[data-level="risk_on"] {
  border-left-color: var(--up);
}

.asset-card[data-level="neutral"] {
  border-left-color: var(--warn);
}

.asset-card[data-level="risk_off"] {
  border-left-color: var(--down);
}

.asset-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.asset-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.asset-card .signal-state {
  padding: 3px 10px;
  font-size: 12px;
}

.asset-card .signal-state::before {
  width: 6px;
  height: 6px;
}

.asset-summary {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.asset-stance {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.asset-stance b {
  color: var(--ink);
}

/* ============ Equity style signals ============ */
.style-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.style-market-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.style-market-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.style-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.style-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.style-row:first-child {
  border-top: 0;
}

.style-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.style-name {
  font-weight: 600;
  font-size: 14px;
}

.style-row .signal-state {
  padding: 3px 10px;
  font-size: 12px;
}

.style-row .signal-state::before {
  width: 6px;
  height: 6px;
}

.style-row p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.style-row .style-stance {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.style-row .style-stance b {
  color: var(--ink);
}

.signal-card {
  padding: 28px;
}

.signal-card .eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.signal-card h2 {
  margin: 6px 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
}

.signal-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.signal-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.signal-state.risk_on {
  background: rgba(193, 60, 45, 0.1);
  color: var(--up);
}

.signal-state.risk_off {
  background: rgba(22, 130, 84, 0.12);
  color: var(--down);
}

.signal-state.neutral {
  background: rgba(169, 113, 28, 0.12);
  color: var(--warn);
}

.signal-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.module-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20, 18, 10, 0.06), 0 14px 32px rgba(20, 18, 10, 0.09);
}

.module-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}

.module-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.module-arrow {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ Page hero & prose ============ */
.page-hero {
  padding: 64px 0 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.3;
}

.page-hero p {
  /* 不限制宽度：策略研究 / 模型信号 的说明都是一句话，
     宽屏下应当整行显示，不要因为 max-width 而无谓折行；窄屏仍会自然换行。 */
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
}

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 24px 0 64px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 48px 0 14px;
}

.prose p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.placeholder-block {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 32px;
  color: var(--muted);
  white-space: pre-line;
}

/* ============ Chart & table ============ */
.chart-card {
  padding: 22px;
  margin-top: 24px;
}

.chart-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
}

.chart-card .section-note {
  display: block;
  margin-bottom: 14px;
}

.chart-body {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 10px;
}

.chart-body svg {
  width: 100%;
  height: 280px;
  display: block;
}

/* ECharts 容器：必须有确定高度，否则画布高度为 0 什么都看不到 */
.chart-canvas {
  height: 340px;
  border-radius: 10px;
  background: var(--surface);
}

/* 切换策略时保留旧图并轻微变淡，提示数据还在加载 */
.chart-canvas.is-loading {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

@media (max-width: 640px) {
  .chart-canvas {
    height: 260px;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

/* 表格里的涨跌数字：跟随全局涨跌配色 */
.data-table td.pos {
  color: var(--gain);
}

.data-table td.neg {
  color: var(--loss);
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

/* 可排序表头：点击排序，再点反向 */
.data-table th[data-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.data-table th[data-sort]:hover {
  color: var(--ink);
}

.data-table th[data-sort]::after {
  content: "↕";
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.3;
}

.data-table th[data-sort].is-sorted::after {
  content: "↑";
  opacity: 1;
}

.data-table th[data-sort].is-sorted-desc::after {
  content: "↓";
  opacity: 1;
}

.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 36px 0;
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 40px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
}

.footer-brand-zh {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.footer-brand-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.footer-disclaimer {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: justify;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ============ Rank displays ============ */
.rank-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
}

.rank-date {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.rank-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 17px;
}

.rank-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rank-item.is-top {
  font-weight: 700;
}

.rank-sep {
  color: var(--muted);
  margin: 0 8px;
}

.style-rank-list {
  display: block;
}

.style-rank-date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.style-rank-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.style-rank-row:first-child {
  border-top: 0;
}

.style-rank-market {
  flex: none;
  width: 110px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.style-rank-factors {
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.style-rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.style-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.style-rank-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.style-rank-updated {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.style-rank-card .style-rank-factors {
  margin: 12px 0 0;
  font-size: 15px;
}

.style-factor-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.style-factor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.style-factor-row:first-child {
  border-top: 0;
}

.style-factor-name {
  color: var(--muted);
  font-size: 13px;
}

.style-factor-compare {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}

.style-factor-winner {
  font-weight: 700;
  color: var(--ink);
}

.style-factor-gt {
  color: var(--muted);
}

.style-factor-loser {
  color: var(--muted);
}

.home-rank-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.home-rank-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-rank-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-rank-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.home-strong-asset {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.home-rank-date {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.home-rank-card .rank-line {
  font-size: 16px;
}

.home-rank-card .rank-item {
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-rank-card .rank-sep {
  color: var(--muted);
  margin: 0 7px;
}

.rank-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.rank-dot.is-hot {
  background: var(--up);
}

.rank-dot.is-mid {
  background: var(--warn);
}

.rank-dot.is-weak {
  background: var(--down);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .asset-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .asset-card-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 84px 0 52px;
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .metric-value {
    font-size: 24px;
  }

  .style-market-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rank-date {
    border-right: 0;
    padding-right: 0;
  }

  .style-rank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .style-rank-market {
    width: auto;
  }
}

/* ============ 躺平工作流页 ============ */

/* 顶部流程条：六个阶段，宽屏一行排开，窄屏折成两列 */
.flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
}

.flow-step {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.flow-step:hover {
  border-color: #d2ccbe;
  transform: translateY(-1px);
}

.flow-step b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.flow-idx {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.flow-en {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-arrow {
  align-self: center;
  font-size: 13px;
  color: var(--muted);
}

.flow-step.is-last {
  /* 终点用暖灰底色标记，和页面底部收尾区同色，不用纯黑块抢视线 */
  background: var(--surface-soft);
  border-color: #d9d3c4;
}

.flow-step.is-last .flow-idx,
.flow-step.is-last .flow-en {
  color: var(--muted);
}

/* 流程条下方的引言 */
.workflow-lead {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
  text-align: justify;
}

/* 单个阶段 */
.stage {
  padding: 38px 0 4px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.stage:first-child {
  padding-top: 10px;
  border-top: none;
}

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stage-index {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stage-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.02em;
}

.stage-en {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-tagline {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink);
}

.stage-intro {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
  /* 不做宽度限制：跟上面的流程条、卡片左右对齐，窄屏自然换行 */
  text-align: justify;
}

/* 研究阶段的三张卡片 */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stage-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stage-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
}

.stage-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  text-align: justify;
}

/* 回测阶段的四项检验 */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 14px;
  border-left: 2px solid #ded8c9;
}

.check-list b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 16px;
}

.check-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  text-align: justify;
}

/* 收尾 */
.closing {
  margin: 44px 0 8px;
  padding: 44px 24px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.closing-emph {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .stage-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .flow-step {
    flex: 1 1 42%;
  }

  .flow-arrow {
    display: none;
  }
}
