*, *::before, *::after { box-sizing: border-box; }
.strategy-display-dates { min-width:0; color:#52616d; font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.strategy-display-dates p { margin:3px 0 0; }
.primary-more-callout { margin:20px 0; padding:20px; border:1px solid #c8ae77; border-radius:12px; background:#faf6ed; color:#514530; }
.primary-more-callout p { margin:0 0 12px; font-size:16px; line-height:1.7; }
.primary-more-callout .primary-style-more { display:block; width:100%; min-height:52px; padding:12px 18px; border:1px solid #9b793d; border-radius:8px; background:#92713a; color:#fff; font-size:17px; font-weight:700; cursor:pointer; }
.strategy-algorithm-explanation { margin:16px 0; padding:12px 16px; background:#f6f4ef; border:1px solid #ddd5c5; border-radius:8px; color:#6a655b; }
.strategy-algorithm-explanation summary { cursor:pointer; font-size:14px; font-weight:600; }
.guorn-card .sr-summary-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.guorn-card .sr-summary-actions button { min-height:48px; white-space:normal; background:#faf7ef; border:1px solid #bca16b; color:#6b522b; }
.guorn-card .sr-summary-actions button[aria-expanded="true"] { background:#92713a; color:#fff; }
.guorn-card .sr-summary-wrap { padding:0 16px 12px; min-width:0; }
.guorn-card .primary-style-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.guorn-card .primary-style-metric { display:flex; flex-direction:column; gap:10px; min-width:0; padding:16px 12px; background:#fbf8f0; border:1px solid #ded3bd; border-radius:8px; }
.guorn-card .primary-style-metric > span { font-size:13px; color:#746650; }
.guorn-card .primary-style-metric strong { font-size:clamp(18px,5vw,27px); line-height:1.3; overflow-wrap:anywhere; }
.style-more-strategies .guorn-card .primary-style-metric > strong[data-metric-kind="return"] { color:var(--market-red) !important; }
.style-more-strategies .guorn-card .primary-style-metric > strong[data-metric-kind="drawdown"] { color:var(--market-green) !important; }
.style-more-strategies .guorn-card .primary-style-metric > strong[data-metric-kind="sharpe"] { color:#111 !important; }
.guorn-card .strategy-state { white-space:normal; }
.guorn-card .card-head { flex-wrap:wrap; }
.specific-strategy-ref > h2 { display:none; }
@media(max-width:700px) { .guorn-card .sr-summary-actions,.guorn-card .primary-style-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .primary-more-callout { padding:14px; } }
.strategy-catalog-entry { display:flex; justify-content:flex-end; margin:24px 0 8px; }
.strategy-catalog-entry a { max-width:100%; text-align:center; white-space:normal; }
.strategy-catalog-page { max-width:1200px; }
.strategy-catalog-page h1 { font-size:26px; margin:24px 0 12px; }
.catalog-explanation, #catalog-status { color:#62675f; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.catalog-section { margin:28px 0; }
.catalog-section h2 { font-size:20px; }
.catalog-table { width:100%; border-collapse:collapse; table-layout:fixed; background:#fffdf8; font-size:14px; }
.catalog-table th, .catalog-table td { padding:14px 16px; text-align:left; border-bottom:1px solid #e4e4dc; overflow-wrap:anywhere; }
.catalog-table th { font-size:13px; background:#f1f0e8; }
.catalog-table th:first-child { width:15%; }
.catalog-table th:nth-child(2) { width:49%; }
.catalog-table th:nth-child(3), .catalog-table th:nth-child(4) { width:18%; }
.catalog-table a { color:#8c5133; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.catalog-source { display:block; color:#74776d; font-size:11px; line-height:1.7; margin-top:6px; }
.specific-strategy-ref { min-width:0; }
.specific-strategy-ref > h2 { font-size:23px; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .strategy-catalog-page h1 { font-size:23px; }
  .catalog-table, .catalog-table tbody, .catalog-table tr, .catalog-table td { display:block; width:100%; }
  .catalog-table thead { display:none; }
  .catalog-table tr { border:1px solid #deded3; border-radius:10px; margin:12px 0; padding:10px 12px; }
  .catalog-table td { border:0; padding:6px 0; font-size:14px; }
  .catalog-table td::before { content:attr(data-label) "："; color:#73786e; font-size:12px; margin-right:5px; }
  .catalog-source { margin-top:4px; }
}

/* 仅三风格主策略视图采用紧凑阅读层级。 */
body.primary-style-view { background:#eef0e9; }
body[data-section="strategy-showcase"].primary-style-view .strategy-workspace :is(.reference-row--style,.reference-row--allocation) > .reference-intro { display:none; }
body.primary-style-view .strategy-quicknav { padding-top:8px; padding-bottom:8px; gap:6px; }
body.primary-style-view .strategy-editorial-intro { margin-top:3px; }
body.primary-style-view .reference-catalog.category-detail-mode { padding-top:4px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) { background:#f5f5ef; border-radius:12px; padding:18px 22px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-breadcrumb { margin:0 0 5px; padding:0; font-size:12px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-subnav { margin:0 0 10px; gap:6px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-subtab { padding:6px 13px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head { margin-bottom:8px; gap:8px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head h3 { font-size:21px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-description { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin:0 0 10px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-summary { margin:0; font-size:14px; color:#53675d; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-strategy-explanation { font-size:13px; color:#526157; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-strategy-explanation summary { cursor:pointer; color:#785a34; font-weight:600; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-strategy-explanation[open] { flex-basis:100%; order:3; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-risk-note { flex-basis:100%; font-size:13px; color:#b83227; font-weight:700; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-strategy { padding-top:12px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading { gap:7px 12px; margin-bottom:12px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading .section-kicker { display:none; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading h3 { font-size:21px; }
.primary-signal-badge { display:inline-block; padding:4px 8px; border:1px solid #ccd8cb; border-radius:5px; background:#e5ede2; color:#3f6351; font-size:12px; line-height:1.5; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric { padding:9px 14px; gap:3px; background:#fffdf7; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric > span { line-height:1.4; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .strategy-window-select { min-height:34px; padding:4px 10px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .strategy-window-controls { min-height:34px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-chart { margin-top:2px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-performance > .primary-style-section-title:first-child { margin-top:8px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric strong { font-size:25px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-date { margin:8px 0 12px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-risk-explanation { margin:0 0 12px; padding:8px 12px; border-left:3px solid #b89b71; border-radius:0 6px 6px 0; background:#f8f4eb; color:#685c49; font-size:15px; line-height:1.8; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-risk-explanation p { margin:0; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-risk-explanation p + p { margin-top:4px; }
@media(max-width:700px) { :is(#reference-detail-style,#reference-detail-allocation) .primary-style-risk-explanation { padding:7px 10px; font-size:13px; line-height:1.8; margin-bottom:8px; } }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-section-title { margin:14px 0 8px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart { padding:0; background:#fcfcf7; border:1px solid #dce2d8; border-radius:8px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .strategy-window-controls { margin:6px 12px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-legend { margin:4px 10px; gap:6px 16px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .query-data { padding:8px; }
body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-legend-item { font-size:12px; min-height:32px; }
@media(max-width:700px) {
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) { padding:12px; }
 body[data-section="strategy-showcase"].primary-style-view .strategy-quicknav { padding:6px 0; margin-top:8px; }
 body[data-section="strategy-showcase"].primary-style-view .strategy-quicknav > a { min-height:34px; padding:7px 5px; font-size:12px; }
 body[data-section="strategy-showcase"].primary-style-view .strategy-quicknav .strategy-editorial-intro { display:none; }
 body.primary-style-view .strategy-favorite-entry { display:none; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-breadcrumb { display:none; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-subnav { margin-bottom:4px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-subtab { min-height:34px; padding:5px 12px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-date { font-size:11px; line-height:1.5; margin:5px 0 7px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-strategy { padding-top:8px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric { padding-top:7px; padding-bottom:7px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-legend { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:0 4px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-legend-item { font-size:11px; min-height:32px; padding:3px 4px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .strategy-window-controls { margin:2px 8px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-description { margin-bottom:5px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .query-data { padding-top:3px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading h3 { font-size:18px; line-height:1.45; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric { padding:9px 10px; gap:3px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric strong { font-size:22px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-summary { font-size:13px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-description { gap:5px 10px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head h3 { font-size:18px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head { gap:6px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head > button { margin-left:0; min-height:34px; padding:5px 8px; font-size:11px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading { margin-bottom:8px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric > span { font-size:12px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .primary-style-benchmark { line-height:1.4; font-size:11px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-breadcrumb { font-size:11px; }
 body.primary-style-view :is(#reference-detail-style,#reference-detail-allocation) .category-back { padding:5px 9px; }
}
.strategy-window-controls { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin:12px 0; color:var(--slate); font-size:14px; }
.strategy-window-select { min-height:44px; min-width:130px; max-width:100%; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font:inherit; }
.primary-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.primary-detail-actions button, .strategy-window-chart .guorn-legend-item { min-height:44px; }
.primary-detail-panel { min-width:0; max-width:100%; margin:12px 0; }
.primary-detail-panel[hidden] { display:none; }
.strategy-window-chart { min-width:0; max-width:100%; }
.strategy-window-chart .guorn-legend { flex-wrap:wrap; }
.strategy-window-chart .guorn-legend-item { white-space:normal; text-align:left; max-width:100%; }

:root {
  --canvas: #f3f6f8;
  --paper: #ffffff;
  --paper-muted: #eef2f4;
  --ink: #18242d;
  --slate: #5e6d78;
  --line: #d8e0e5;
  --market-red: #b8443a;
  --market-red-dark: #92362e;
  --market-red-soft: #f7e8e5;
  --market-green: #287a69;
  --market-blue: #315b72;
  --market-gold: #967238;
  --radius: 10px;
  --header-height: 76px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, select, input, textarea { font: inherit; }
[hidden] { display: none !important; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(184, 68, 58, .28);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-emblem {
  flex: 0 0 auto;
  display: block;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(63, 43, 38, .14), 0 2px 6px rgba(63, 43, 38, .16);
  transition: box-shadow .2s;
}
.brand:hover .brand-emblem,
.brand:focus-visible .brand-emblem {
  box-shadow: 0 0 0 2px var(--market-red), 0 3px 9px rgba(146, 54, 46, .2);
}
.brand:focus-visible { outline: 2px solid var(--market-red); outline-offset: 4px; border-radius: 4px; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  color: var(--market-red);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-name {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.1;
}
.module-tabs {
  min-width: 0;
  overflow-x: auto;
  flex-shrink: 1;
  height: var(--header-height);
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.module-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.module-tab:hover, .module-tab.active { color: var(--ink); }
.module-tab.active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: var(--market-red);
  content: "";
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}
.sub-badge {
  padding: 5px 9px;
  border: 1px solid #cfe4df;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--market-green);
  font-size: 12px;
}
.sub-badge.expired { border-color: #ecc6c1; background: var(--market-red-soft); color: var(--market-red); }
.header-user { max-width: 120px; overflow: hidden; color: var(--slate); font-size: 13px; text-overflow: ellipsis; }
.btn-sm, .action-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}
.btn-sm:hover, .action-button:hover { border-color: #aebbc3; background: var(--paper-muted); }
.btn-sm.primary, .action-button.primary { border-color: var(--market-red); background: var(--market-red); color: #fff; }
.btn-sm.primary:hover, .action-button.primary:hover { border-color: var(--market-red-dark); background: var(--market-red-dark); }

/* ── hero v24 · 网格白底 + 编辑式头图（与登录页同一视觉语言） ──────
   底：30px 网格纹（--grid-line 同 login.html）+ 右上淡红晕染；
   形：eyebrow → 衬线大标题 → 红金渐变短杠 → 免责小字；右侧日期卡带红竖线。 */
.channel-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% -30%, rgba(201, 52, 44, .05), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(24, 36, 45, .055) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(24, 36, 45, .055) 29px 30px),
    var(--paper);
}
.hero-inner, .page-main, .footer-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hero-inner { padding: 13px 0 9px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--market-red);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ""; }
.hero-heading-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 18px 40px; margin-top: 12px;
}
.hero-lead {
  max-width: 700px; margin: 10px 0 0;
  color: #47565f; font-size: 15px; line-height: 1.75; letter-spacing: .01em;
}
/* v30 hero 数据卡组：三块统计 + 日期卡，消灭左侧空荡 */
.hero-stats { display: flex; align-items: stretch; gap: 10px; }
.hero-stat {
  min-width: 106px; padding: 11px 16px 12px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(24,36,45,.05);
  text-align: left;
}
.hero-stat-label {
  display: block; color: var(--slate);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.hero-stat-value {
  display: block; margin-top: 5px; color: var(--ink);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 23px; font-weight: 700; line-height: 1.1;
}
.hero-stat-value em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--slate); margin-left: 2px; }
.hero-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(23px, 2.6vw, 34px);
  letter-spacing: .04em;
  line-height: 1.12;
}
.hero-title-rule {
  width: 56px; height: 3px; margin: 8px 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--market-red), var(--market-gold));
}
.hero-hint {
  max-width: 760px; margin: 7px 0 0;
  color: #8a959b; font-size: 12.5px; line-height: 1.75; letter-spacing: .02em;
}
.hero-meta {
  min-width: 140px; padding: 11px 18px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--market-red);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 1px 3px rgba(24, 36, 45, .05);
  text-align: left;
}
.hero-meta-label {
  display: block;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--slate);
}
.hero-meta strong {
  display: block; margin-top: 5px;
  color: var(--ink); font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 19px; letter-spacing: .02em;
}
.hero-tools { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.date-nav { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.date-nav button, .date-nav select { min-height: 44px; border: 0; background: transparent; color: var(--ink); }
.date-nav button { width: 42px; cursor: pointer; font-size: 20px; }
.date-nav button:hover { background: var(--paper-muted); }
.date-nav select { min-width: 150px; padding: 0 12px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-hint { color: var(--slate); font-size: 12px; }

.category-rail-wrap { position: sticky; top: var(--header-height); z-index: 80; border-bottom: 1px solid var(--line); background: rgba(243, 246, 248, .96); backdrop-filter: blur(10px); }
.category-rail { width: min(1240px, calc(100% - 48px)); margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.category-rail::-webkit-scrollbar { display: none; }
.category-link { flex: 0 0 auto; min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--slate); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.category-link:hover { color: var(--market-red); }

.page-main { padding: 20px 0 48px; }
.state-panel { display: none; min-height: 180px; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #bcc8cf; border-radius: var(--radius); background: rgba(255,255,255,.58); color: var(--slate); text-align: center; line-height: 1.8; }
.state-panel.active { display: flex; }
.analysis-section { scroll-margin-top: calc(var(--header-height) + 60px); margin-bottom: 38px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-kicker { color: var(--market-gold); font-family: "Bahnschrift", monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.section-title { margin: 6px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 25px; }
.section-description { max-width: 520px; margin: 0; color: var(--slate); font-size: 13px; line-height: 1.8; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.media-frame { position: relative; display: flex; min-height: 260px; align-items: center; justify-content: center; overflow: hidden; background: #e8edef; }
.media-frame img, .media-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.media-frame img { max-height: 520px; cursor: zoom-in; }
.media-frame video { aspect-ratio: 16 / 9; background: #101417; }
.locked-media {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201,162,75,.07), transparent 62%),
    linear-gradient(180deg, #faf8f3, #f4f1e9);
  color: #6b6255; text-align: center; font-size: 13px; line-height: 1.7;
  border: 1px solid #e6dfd0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.locked-media .lock-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #ddd2ba; color: #a08b52;
  box-shadow: 0 2px 6px rgba(120,100,60,.10);
}
.locked-media .lock-icon svg { width: 17px; height: 17px; }
.locked-media .lock-text { font-size: 13px; font-weight: 600; color: #5a5245; }
.locked-media .lock-hint { font-size: 11.5px; color: #9a907c; }
.locked-media .lock-icon svg { display: block; width: 17px; height: 17px; }
.card-body { padding: 18px 20px 20px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--slate); font-size: 11px; }
.card-title { margin: 9px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; line-height: 1.45; }
.card-copy { margin: 10px 0 0; color: var(--slate); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.card-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.access-label { color: var(--market-green); font-weight: 600; }
.access-label.locked { color: var(--market-red); }

.quote-card { padding: 24px; border-left: 3px solid var(--market-gold); }
.quote-mark { color: #c6b58f; font-family: Georgia, serif; font-size: 54px; line-height: .7; }
.quote-card .card-copy { color: var(--ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; line-height: 1.85; }
.file-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 22px; }
.file-badge { display: inline-flex; min-width: 42px; height: 28px; align-items: center; justify-content: center; margin-right: 10px; border-radius: 5px; background: #e8edf0; color: var(--market-blue); font-family: "Bahnschrift", monospace; font-size: 11px; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); background: #e8edf0; }
.footer-inner { padding: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-title { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; }
.footer-copy, .footer-note { color: var(--slate); font-size: 12px; line-height: 1.8; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid #ced8de; color: #71808a; font-size: 11px; line-height: 1.7; }

#lightbox, #activate-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,15,19,.82); }
#lightbox.open, #activate-modal.open { display: flex; }
#lightbox { overflow: auto; padding: 18px 20px 26px; }
.lightbox-frame { margin: auto; width: max-content; max-width: 100%; text-align: center; }
#lightbox.zoomed .lightbox-frame { max-width: none; }
#lightbox-img { display: block; max-width: min(96vw, 1680px); max-height: calc(100vh - 118px); width: auto; height: auto; border-radius: 6px; background: #fff; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
#lightbox.zoomed #lightbox-img { max-width: none; max-height: none; cursor: zoom-out; }
#lightbox.panning #lightbox-img { cursor: grabbing; }
#lightbox.zoomed .lightbox-frame { max-width: none; max-height: none; }
#lightbox-label { margin-top: 10px; color: #fff; font-size: 13px; }
#lightbox-original { display: inline-block; margin-top: 6px; color: rgba(255,255,255,.78); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#lightbox-original:hover { color: #fff; }
.lightbox-close, .modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 24px; }
.modal-card { position: relative; width: min(440px, 100%); padding: 28px; border-radius: 10px; background: #fff; color: var(--ink); }
.modal-card .modal-close { top: 10px; right: 10px; color: var(--slate); border-color: var(--line); }
.modal-card h3 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 23px; }
.modal-card p { color: var(--slate); font-size: 13px; line-height: 1.7; }
.modal-row { display: flex; gap: 8px; }
.modal-row input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; }
.modal-msg { min-height: 20px; margin-top: 10px; color: var(--market-red); font-size: 12px; }

@media (max-width: 900px) {
  .site-header { gap: 14px; padding: 0 18px; }
  .module-tab { padding: 0 10px; font-size: 13px; }
  .module-tab.active::after { right: 10px; left: 10px; }
  .header-user { display: none; }
}
@media (max-width: 768px) {
  .site-header { position: sticky; top: 0; flex-wrap: wrap; padding: 10px 18px 8px; }
  .module-tabs { order: 3; width: 100%; height: 44px; overflow-x: auto; scrollbar-width: none; }
  .module-tabs::-webkit-scrollbar { display: none; }
  .module-tab { min-height: 44px; }
  /* 手机端头部吸顶后，分类栏改静态，避免双吸顶叠罗汉 */
  .category-rail-wrap { position: static; }
  .header-actions .sub-badge, .header-actions #admin-link { display: none !important; }
  .hero-inner, .page-main, .footer-inner, .category-rail { width: min(100% - 32px, 1240px); }
  .hero-heading-row, .hero-tools, .section-heading { align-items: flex-start; flex-direction: column; }
  .hero-heading-row { display: flex; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 92px; padding: 9px 13px 10px; }
  .hero-stat-value { font-size: 20px; }
  .hero-meta { text-align: left; }
  .content-grid { grid-template-columns: 1fr; }
  .file-card { grid-column: auto; }
  /* 触控目标 ≥44px、注释小字 ≥12px（v22） */
  .btn-sm, .comment-toggle { min-height: 44px; }
  .card-meta, .comment-time, .comment-hint, .footer-legal, .backtest-note { font-size: 12px; }
}
@media (max-width: 480px) {
  .site-header { gap: 10px; padding-right: 12px; padding-left: 12px; }
  .brand-name { font-size: 17px; }
  .brand-emblem { width: 40px; height: 40px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 7px 9px; }
  .hero-inner { padding: 15px 0 11px; }
  .hero-title { font-size: 30px; }
  .hero-tools, .date-nav { width: 100%; }
  .date-nav select { flex: 1; min-width: 0; }
  .analysis-section { padding: 18px 15px; }
  .media-frame { min-height: 190px; }
  .strategy-ref-card .media-frame { aspect-ratio: auto; min-height: 200px; }
  .strategy-switch { font-size: 12px; padding: 8px 11px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
  .modal-row { flex-direction: column; }
}
.user-points { padding: 5px 9px; border-radius: 999px; background: rgba(49,91,114,.1); color: var(--market-blue); font-size: 12px; font-weight: 600; white-space: nowrap; }

.comment-section { padding: 8px 20px 9px; border-top: 1px solid var(--line); background: var(--paper-muted); }
.quote-card .comment-section { margin: 14px -24px -24px; padding: 12px 24px 14px; }
.file-card .comment-section { grid-column: 1 / -1; margin: -4px -22px 0; padding: 12px 22px 14px; }
.comment-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--slate); cursor: pointer; font-size: 12px; font-weight: 600; }
.comment-toggle:hover { color: var(--market-red); }
.comment-content { margin-top: 10px; }
.comment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.comment-item { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.comment-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.comment-author { color: var(--market-blue); font-size: 12px; font-weight: 600; }
.comment-time { color: var(--slate); font-size: 11px; }
.comment-body { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.comment-form { display: flex; flex-direction: column; gap: 7px; }
.comment-form textarea { min-height: 68px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.65; resize: vertical; }
.comment-form textarea:focus { outline: 2px solid rgba(184,68,58,.25); }
.comment-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-hint { margin: 0; color: var(--slate); font-size: 11px; }

@media (max-width: 768px) {
  .header-actions .user-points { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   全站精致化增强层 (v0.7)
   在既有组件体系之上的细节点缀，不破坏任何既有规则。
   ════════════════════════════════════════════════════════════════ */

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3ccd2; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a7b2ba; border: 2px solid transparent; background-clip: content-box; }
* { scrollbar-width: thin; scrollbar-color: #c3ccd2 transparent; }

/* 选中态 */
::selection { background: rgba(184, 68, 58, .16); color: var(--ink); }

/* 按钮按压反馈 */
.btn-sm:active, .action-button:active, .category-link:active, .module-tab:active { transform: translateY(1px); }
.btn-sm, .action-button { transition: border-color .18s, background .18s, color .18s, transform .08s, box-shadow .18s; }

/* 图片帧：悬浮柔和放大 + 光泽 */
.content-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(24, 36, 45, .08); }
.content-card .media-frame { overflow: hidden; }
.content-card .media-frame img { transition: transform .35s ease, filter .35s ease; }
.content-card:hover .media-frame img { transform: scale(1.025); }
.quote-card:hover, .file-card:hover { transform: translateY(-2px); }

/* 分类栏激活跟随 */
.category-link.active { background: var(--paper); box-shadow: inset 0 -3px 0 var(--market-red); }
.category-link.active .category-link-name { color: var(--market-red); }

/* 图卡 meta 徽章化 */
.card-meta span { display: inline-flex; align-items: center; }
.card-meta span:not(:last-child)::after { content: ""; width: 3px; height: 3px; margin: 0 7px; border-radius: 50%; background: #c3ccd2; }

/* 页脚：加一层浅顶线呼吸感 */
.site-footer { background: linear-gradient(180deg, #eef2f4, #e6ebee); }
.footer-title { letter-spacing: .02em; }

/* 空/加载状态图标化 */
.state-panel::before { content: "◆"; display: block; margin-bottom: 10px; color: #c9d2d8; font-size: 18px; line-height: 1; }
.state-panel { position: relative; }

/* focus 环统一 */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(184, 68, 58, .45); outline-offset: 2px; }

/* 尊重减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 频道页骨架屏 ─────────────────────────────── */
.skeleton-wrap { display: flex; flex-direction: column; gap: 34px; }
.skeleton-section { display: flex; flex-direction: column; gap: 12px; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #e8edef 25%, #f2f5f6 40%, #e8edef 60%); background-size: 200% 100%; animation: skShimmer 1.3s infinite; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line:first-child { width: 72px; height: 12px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.skeleton-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.skeleton-media { aspect-ratio: 16 / 9; background: linear-gradient(90deg, #e8edef 25%, #f3f6f7 40%, #e8edef 60%); background-size: 200% 100%; animation: skShimmer 1.3s infinite; }
.skeleton-card .skeleton-line { margin: 12px 14px 0; }
.skeleton-card .skeleton-line:last-child { margin-bottom: 16px; }
@keyframes skShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 策略展示 · 引用站回测卡片 ─────────────────────── */
/* 通栏排版 v21：策略页容器吃满宽度（与首页 v20 一致），消除宽屏两侧大留白。
   列数只由宽度定（与首页 pickGridCols 同一套断点，按视口折算 48px 边距）：
   ≤768→1 / ≤1168→2 / ≤1648→3 / ≤2168→4 / ≤2688→5 / 更宽→6。
   三个卡片网格（策略数据源 / 果仁 / 模型图）同屏等宽恒定，末行左对齐收尾。 */
body[data-section="strategy-showcase"] .hero-inner,
body[data-section="strategy-showcase"] .page-main,
body[data-section="strategy-showcase"] .footer-inner { width: calc(100% - 48px); }
body[data-section="strategy-showcase"] .content-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 2688px) {
  body[data-section="strategy-showcase"] .content-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 2168px) {
  body[data-section="strategy-showcase"] .content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1648px) {
  body[data-section="strategy-showcase"] .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1168px) {
  body[data-section="strategy-showcase"] .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  body[data-section="strategy-showcase"] .hero-inner,
  body[data-section="strategy-showcase"] .page-main,
  body[data-section="strategy-showcase"] .footer-inner { width: calc(100% - 32px); }
  body[data-section="strategy-showcase"] .content-grid { grid-template-columns: 1fr; }
}
.strategy-ref-card {
  display: flex; flex-direction: column;
  min-width: 0; overflow-wrap: break-word;
  height: 100%;                      /* v23：等高拉伸，同排卡片底边对齐 */
  border-color: #e2e8ec;
  box-shadow: 0 1px 2px rgba(24,36,45,.05), 0 4px 16px rgba(24,36,45,.05);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
/* v30 美工：卡片左上组色角饰（呼应装裱画的金角语言） */
.strategy-ref-card::before {
  content: ""; position: absolute; top: 3px; left: 0; z-index: 3;
  width: 26px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cat, #b83227) 65%, transparent), transparent);
}
.strategy-ref-card::after {
  content: ""; position: absolute; top: 6px; left: 0; z-index: 3;
  width: 3px; height: 22px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat, #b83227) 60%, transparent), transparent);
}
.sr-summary-wrap { min-width: 0; }
.sr-summary { margin: 0 20px 12px; padding: 16px; border: 1px solid var(--line, #e2e6ed); border-radius: 12px; background: var(--surface, #f7f9fc); overflow-wrap: anywhere; }
.sr-summary-date, .sr-summary-diff { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.sr-summary-counts { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 18px; font-weight: 700; }
.sr-summary-buy { color: #c8323e; }
.sr-summary-sell { color: #18774d; }
.sr-summary-hold { color: #52627a; }
.sr-summary-note { margin: 8px 0 0; color: var(--muted, #657186); font-size: 12px; line-height: 1.7; }
.sr-summary-diff { margin-top: 16px; }
.sr-summary-changes > summary { cursor: pointer; }
.sr-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.sr-summary-actions[hidden], .guorn-card > [hidden] { display: none !important; }
@media (max-width: 480px) {
  .sr-summary { margin-left: 12px; margin-right: 12px; padding: 12px; }
  .sr-summary-actions { padding-left: 12px; padding-right: 12px; }
  .sr-summary-actions .action-button { min-width: 0; padding: 8px 10px; }
}

/* ── v28 信息密度：引用卡改横排网格（数据/图左 · 文字按钮右），
   吸收信息不用上下滚动；果仁卡(.guorn-card)结构不同不参与。 ── */
.strategy-ref-grid .strategy-ref-card:not(.guorn-card) {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  grid-template-rows: auto 1fr;
  grid-template-areas: "head head" "media body";
}
/* v35：象限内卡片竖排（图在上、信息在下）——多列时横排会挤 */
.family-quad-grid .strategy-ref-card:not(.guorn-card) {
  display: flex; flex-direction: column;
}
.family-quad-grid .strategy-ref-card:not(.guorn-card) > .media-frame {
  aspect-ratio: 16 / 7; min-height: 0;
}
.family-quad-grid .strategy-ref-card:not(.guorn-card) > .card-body { flex: 1; }
/* 多列时卡片窄，速览面板与按钮收紧 */
.family-quad-grid .strategy-ref-card:not(.guorn-card) .ref-glance {
  margin-top: 8px; padding: 10px 12px 11px;
}
.family-quad-grid .strategy-ref-card:not(.guorn-card) .ref-glance-val { font-size: 18px; }
.family-quad-grid .strategy-ref-card:not(.guorn-card) .ref-glance-label { font-size: 11.5px; }
.family-quad-grid .strategy-ref-card:not(.guorn-card) .ref-exit-desc { display: none; }
.family-quad-grid .strategy-ref-card:not(.guorn-card) .card-actions .action-button {
  min-height: 46px; padding: 12px 14px; font-size: 15px;
}
/* 单列时（宽屏象限整宽）保持横排，省纵向空间 */
@media (min-width: 1500px) {
  .family-quad-grid[data-count="1"] .strategy-ref-card:not(.guorn-card) {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head head" "media body";
  }
  .family-quad-grid[data-count="1"] .strategy-ref-card:not(.guorn-card) > .media-frame {
    aspect-ratio: 2.2 / 1;
  }
}
.strategy-ref-grid .strategy-ref-card:not(.guorn-card) > .card-header { grid-area: head; }
.strategy-ref-grid .strategy-ref-card:not(.guorn-card) > .media-frame { grid-area: media; align-self: stretch; }
.strategy-ref-grid .strategy-ref-card:not(.guorn-card) > .card-body { grid-area: body; }
.strategy-ref-grid .strategy-ref-card:not(.guorn-card) > .comment-section { grid-column: 1 / -1; }
.strategy-ref-card:hover {
  box-shadow: 0 4px 8px rgba(24,36,45,.07), 0 12px 32px rgba(24,36,45,.10);
  transform: translateY(-2px);
}

/* ── 美工 v26 · 组色体系 + 质感细节（data-category 驱动，后台加策略自动继承） ──
   五组各配低饱和金融组色：卡片顶带/组头编号/压线渐变/面板底 tint/导航胶囊
   全部由 data-category 选择器派生——后台新增策略归类 category 后自动同风格，
   零代码改动。未匹配的新组走 --market-red 兜底。 */
:root {
  --cat-auction: #b83227;   /* 竞价异动 · 朱红 */
  --cat-dip: #a8741f;       /* 低开低吸 · 琥珀 */
  --cat-reversal: #2c5c86;  /* 涨停接力 · 靛青 */
  --cat-oversold: #2c7a5c;  /* 超跌回调 · 松绿 */
  --cat-trend: #6a4a9c;     /* 趋势做多 · 紫棠 */
}
[data-category] { --cat: var(--market-red); }
[data-category="auction"] { --cat: var(--cat-auction); }
[data-category="dip"] { --cat: var(--cat-dip); }
[data-category="reversal"] { --cat: var(--cat-reversal); }
[data-category="oversold"] { --cat: var(--cat-oversold); }
[data-category="trend"] { --cat: var(--cat-trend); }

/* 卡片：组色顶带 + hover 质感 */
.strategy-ref-card[data-category] { border-top: 3px solid var(--cat); }
/* 顶带右端渐隐，避免硬边 */
.strategy-ref-card[data-category]::marker { content: none; }
.strategy-ref-card[data-category]:hover {
  border-top-color: var(--cat);
  box-shadow: 0 6px 12px rgba(24,36,45,.08), 0 18px 40px rgba(24,36,45,.13);
}

/* 图片区：MODEL 角标 + hover 微缩放 */
.strategy-ref-card .media-frame { position: relative; overflow: hidden; }
.strategy-ref-card .media-frame::after {
  content: "MODEL";
  position: absolute; right: 10px; bottom: 8px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(18,26,31,.58); color: #fff;
  font-family: "Bahnschrift", monospace; font-size: 9px; letter-spacing: .2em;
  pointer-events: none;
}
.strategy-ref-card .media-frame img { transition: transform .35s ease; }
.strategy-ref-card:hover .media-frame img { transform: scale(1.03); }

/* 按钮加大：46px 高、14.5px 字号、主按钮渐变 + 立体 hover */
.card-actions .action-button {
  min-height: 54px; padding: 13px 18px;
  font-size: 16px; font-weight: 600; letter-spacing: .02em;
  border-radius: 9px;
}
.card-actions .action-button.primary {
  border-color: var(--market-red-dark);
  background: linear-gradient(180deg, #c23b2f, var(--market-red));
  box-shadow: 0 2px 6px rgba(176,45,36,.22);
}
.card-actions .action-button.primary:hover {
  border-color: var(--market-red-dark);
  background: linear-gradient(180deg, #b83227, var(--market-red-dark));
  box-shadow: 0 5px 14px rgba(176,45,36,.30);
  transform: translateY(-1px);
}
.card-actions .action-button:active { transform: translateY(1px); }

/* 组区：组色渐变压线 + 面板底 tint 打破平铺 */
.ref-group[data-category] .ref-group-head { position: relative; border-bottom-color: transparent; }
.ref-group[data-category] .ref-group-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--cat) 0%, color-mix(in srgb, var(--cat) 18%, transparent) 42%, #e6ebee 100%);
}
.ref-group[data-category] .ref-group-no { color: var(--cat); }
.ref-group[data-category] .strategy-ref-grid {
  background: color-mix(in srgb, var(--cat) 3.5%, #fcfdfd);
  border: 1px solid color-mix(in srgb, var(--cat) 12%, #e9eef1);
  border-radius: 12px;
  padding: 14px;
}

/* 导航胶囊：组色编号 + hover 组色描边 */
.ref-cat-link[data-category] .ref-cat-link-no { color: var(--cat); }
.ref-cat-link[data-category]:hover {
  border-color: color-mix(in srgb, var(--cat) 35%, #d8dfe4);
}
.ref-cat-link[data-category]:hover .ref-cat-link-count {
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  color: var(--cat);
}

/* ── v33 · 全量策略速览表（入口页填真信息）──────────────────── */
.family-overview { margin-top: 30px; }
.family-overview-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px 28px; flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.family-overview-title {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px; letter-spacing: .04em; line-height: 1.25;
}
.family-overview-head-right { display: flex; align-items: center; gap: 12px; }
.family-overview-note {
  margin: 0; max-width: 520px;
  color: #5f6e76; font-size: 12.5px; line-height: 1.65; text-align: right;
}
.family-overview-wrap {
  border: 1px solid #e6ebee; border-radius: 12px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24,36,45,.04);
}
.family-overview-table {
  width: 100%; min-width: 760px;      /* v33：窄屏下保持列宽，容器横向滚动，不压扁 */
  border-collapse: separate; border-spacing: 0;
  font-size: 13px;
}
.family-overview-table th {
  text-align: left; font-weight: 600; color: #3a464c;
  background: #f4f7f8; padding: 9px 12px;
  border-bottom: 1px solid #dfe6e9;
  white-space: nowrap; font-size: 12px;
  position: sticky; top: 0; z-index: 2;
}
.family-overview-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef1f3;
  color: #333; vertical-align: middle;
}
.family-overview-table tbody tr:last-child td { border-bottom: none; }
.family-overview-table tbody tr:hover td { background: #f8fafb; }
.ov-fam-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 3px; border-radius: 999px;
  background: #f2f5f6;
  white-space: nowrap;                /* v33：体系名不竖排换行 */
}
.ov-fam-no {
  display: inline-grid; place-items: center;
  width: 19px; height: 19px; border-radius: 5px;
  color: #fff;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10.5px; font-weight: 700;
}
.ov-row.ov-value .ov-fam-no { background: #2c5c86; }
.ov-row.ov-macro .ov-fam-no { background: #2c7a5c; }
.ov-row.ov-trend .ov-fam-no { background: #b83227; }
.ov-row.ov-quant .ov-fam-no { background: #a8741f; }
.ov-fam-name { color: #5f6e76; font-size: 12px; white-space: nowrap; }
.ov-name {
  font-weight: 600; color: #1d2a33;
  white-space: nowrap;               /* v33：模型名不竖排换行 */
  min-width: 150px;
}
.ov-cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px 2px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--cat, #b83227) 9%, #fff);
  color: var(--cat, #b83227);
  font-size: 12px; white-space: nowrap;
}
.ov-cat-chip .cat-icon { width: 13px; height: 13px; }
.ov-cat-none { color: #9aa4aa; font-size: 12px; }
.ov-exit-tag { display: inline-flex; flex-direction: column; gap: 1px; }
.ov-exit-name {
  color: #a8621b; font-weight: 700; font-size: 13px;
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.ov-exit-desc { color: #9aa4aa; font-size: 11px; }
.ov-ret-val {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 14px; font-weight: 700;
}
.ov-ret.up .ov-ret-val { color: var(--market-red); }
.ov-ret.down .ov-ret-val { color: var(--market-green); }
.ov-dd-val {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 13px; color: #5f6e76;
  white-space: nowrap;
}
.ov-na { color: #b6c0c5; }
.ov-op { text-align: right; }
.ov-go {
  padding: 5px 13px; border-radius: 6px;
  border: 1px solid #dfe6e9; background: #fff;
  color: #3a464c; font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.ov-go:hover { border-color: var(--market-red); color: var(--market-red); background: #fdf5f4; }
@media (max-width: 900px) {
  .family-overview-head { flex-direction: column; align-items: flex-start; }
  .family-overview-note { text-align: left; max-width: none; }
  .family-overview-title { font-size: 18px; }
  /* v33：窄屏表格横向滚动，容器带右侧渐隐提示 */
  .family-overview-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(90deg, #fff 88%, rgba(255,255,255,0)) right / 26px 100% no-repeat,
      #fff;
  }
  .family-overview-wrap::-webkit-scrollbar { height: 6px; }
  .family-overview-wrap::-webkit-scrollbar-thumb { background: #d3dade; border-radius: 3px; }
  .family-overview-wrap::-webkit-scrollbar-track { background: #f2f5f6; }
}

/* ── v32 · 体系入口页（先选后看）──────────────────────────────
   用户的真实痛点：进页面就被超短模型铺满，中长线要拉到最底，先入为主不公平。
   改成两级路径：入口页并列两套体系 → 点选进入 → 该体系内容。
   入口页同时把两套体系的差异讲清楚（频率/持仓/执行方式），用户按需选。 */
.family-entry-wrap { margin-bottom: 8px; }
.family-entry-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px 28px; flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.family-entry-head-title {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 26px; letter-spacing: .04em; line-height: 1.25;
}
.family-entry-head-note {
  margin: 0; max-width: 560px;
  color: #5f6e76; font-size: 14px; line-height: 1.7; text-align: right;
}
.family-entry-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; align-items: start;
}
/* v35：2×2 象限平铺——四大流派各占一格，一屏看全 */
/* v35：规整 2×2 象限网格——四大流派各占一格，格与格之间界限清晰。
   （试过 CSS columns 瀑布流，但会把高度大的象限劈成两半，象限感全无，弃用） */
.family-quad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ── v37 · 海报式流派封面卡（对齐「四种投资流派大对比」信息图）────────
   五段式：hero（人物照+衬线标题+姓名胶囊+理念）→ 核心/周期/关键词 → 名言 → footer。
   令牌：--fam 品牌色 / --fam-text 浅底小字安全色 / --fam-deep 胶囊底 /
   --fam-hero 渐变 / --fam-tint 信息面板底 / --fam-quote 名言底。
   金色小字一律 #8a6219（#a8741f 对白仅 4.05 不达标，白字走深金渐变）。 */
.family-cover[data-family="trend"] {
  --fam: #b83227; --fam-text: #b83227; --fam-deep: #85221a;
  --fam-hero: linear-gradient(148deg, #b83227 0%, #a12a20 55%, #7f2019 100%);
  --fam-tint: #f6ebe6; --fam-quote: #faf1ed;
}
.family-cover[data-family="quant"] {
  --fam: #a8741f; --fam-text: #8a6219; --fam-deep: #77510f;
  --fam-hero: linear-gradient(148deg, #96661a 0%, #8a5c16 55%, #6f4a0e 100%);
  --fam-tint: #f5f0e5; --fam-quote: #f9f4ec;
}
.family-cover[data-family="macro"] {
  --fam: #2c7a5c; --fam-text: #2c7a5c; --fam-deep: #1c5640;
  --fam-hero: linear-gradient(148deg, #2c7a5c 0%, #24684e 55%, #1a5040 100%);
  --fam-tint: #edf0e9; --fam-quote: #f3f5ef;
}
.family-cover[data-family="value"] {
  --fam: #2c5c86; --fam-text: #2c5c86; --fam-deep: #1d4262;
  --fam-hero: linear-gradient(148deg, #2c5c86 0%, #24507a 55%, #1b3c5c 100%);
  --fam-tint: #edeeec; --fam-quote: #f3f3f1;
}

.family-cover {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; min-height: 470px;
  text-align: left; font: inherit;
  background: #fffdf9;
  border: 1px solid rgba(24, 36, 45, .07);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(24,36,45,.05), 0 12px 32px rgba(24,36,45,.08);
  cursor: pointer; overflow: hidden; position: relative;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
.family-cover:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--fam) 35%, #d8e0e5);
  box-shadow: 0 2px 4px rgba(24,36,45,.05), 0 24px 48px rgba(24,36,45,.16);
}
.family-cover:focus-visible { outline: 2.5px solid var(--fam-deep); outline-offset: 3px; }
.family-cover:active { transform: translateY(-2px) scale(.996); }

/* hero：人物照片贴外侧贴底 + 文字列 */
.family-cover-hero {
  position: relative;
  display: flex; align-items: stretch;
  height: 240px;
  background: var(--fam-hero);
}
.family-cover-hero[data-side="right"] { flex-direction: row-reverse; }
.family-cover-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 110% at 88% -10%, rgba(255,255,255,.14), transparent 55%);
}
.family-cover-photo-wrap {
  flex: none; padding: 20px;
  display: flex; align-items: flex-end;
}
.family-cover-photo {
  display: block;
  width: 200px; height: 200px; object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.88);
  box-shadow: 0 16px 32px rgba(10,20,30,.30);
  transition: box-shadow .22s ease;
}
.family-cover:hover .family-cover-photo { box-shadow: 0 20px 40px rgba(10,20,30,.36); }
.family-cover-hero-text {
  position: relative; z-index: 1;
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 22px 26px;
}
/* 上排卡文字贴上；下排卡文字沉底，让出中心徽章的内角静区 */
.family-cover[data-row="top"] .family-cover-hero-text { justify-content: flex-start; }
.family-cover[data-row="bottom"] .family-cover-hero-text { justify-content: flex-end; }
.family-cover-kicker {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em; line-height: 1;
  color: rgba(255,255,255,.95);
}
.family-cover-title {
  margin: 8px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 32px; font-weight: 700; letter-spacing: .06em; line-height: 1.25;
  color: #fff;
}
.family-cover-guru-pill {
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 16px; border-radius: 999px;
  background: var(--fam-deep);
}
.family-cover-guru-name {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; line-height: 1;
  color: #fff;
}
.family-cover-guru-en {
  margin-top: 6px;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; letter-spacing: .18em; line-height: 1; text-transform: uppercase;
  color: rgba(255,255,255,.95);
}
.family-cover-note {
  margin: 10px 0 0; max-width: 21em;
  font-size: 14px; line-height: 1.8; letter-spacing: .01em;
  color: rgba(255,255,255,.95);
}

/* 核心 / 周期 / 关键词 三行 */
.family-cover-rows {
  padding: 6px 26px;
  background: var(--fam-tint);
}
.family-cover-row {
  display: flex; align-items: center; gap: 10px;
  height: 38px;
}
.family-cover-row + .family-cover-row {
  border-top: 1px dashed color-mix(in srgb, var(--fam) 16%, transparent);
}
.family-cover-row-icon {
  display: inline-flex; flex: none;
  width: 16px; height: 16px; color: var(--fam-text);
}
.family-cover-row-icon svg { width: 16px; height: 16px; }
.family-cover-row-label {
  flex: none; width: 52px;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1;
  color: var(--fam-text);
}
.family-cover-row-value {
  min-width: 0;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: #2b363e;
}

/* 名言区 */
.family-cover-quote {
  margin: 0; padding: 16px 26px 18px;
  background: var(--fam-quote);
}
/* 徽章静区：内侧留白（下排卡徽章压 hero，静区主要护住上排卡的名言/脚部内角） */
.family-cover[data-family="trend"] .family-cover-quote,
.family-cover[data-family="macro"] .family-cover-quote { padding-right: 56px; }
.family-cover[data-family="quant"] .family-cover-quote,
.family-cover[data-family="value"] .family-cover-quote { padding-left: 56px; }
.family-cover-quote-text {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-style: italic; font-size: 14.5px; line-height: 1.85;
  color: #33424b;
}
.family-cover-quote-by {
  display: block; margin-top: 6px;
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.5;
  color: var(--fam-text);
}
/* 行内元素一律靠外侧对齐（左列靠左 / 右列靠右）→ 中心徽章四角无字 */
.family-cover[data-family="quant"] .family-cover-quote-by,
.family-cover[data-family="value"] .family-cover-quote-by { text-align: right; }

/* footer：进入查看 → · 计数 */
.family-cover-foot {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 26px; margin-top: auto;
  background: #fffdf9;
  border-top: 1px dashed color-mix(in srgb, var(--fam) 16%, transparent);
}
.family-cover[data-family="quant"] .family-cover-foot,
.family-cover[data-family="value"] .family-cover-foot { justify-content: flex-end; }
.family-cover-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--fam-text);
}
.family-cover-go-arrow { display: inline-block; transition: transform .22s ease; }
.family-cover:hover .family-cover-go-arrow { transform: translateX(4px); }
.family-cover-count {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; letter-spacing: .12em;
  color: #5f6e76;
}

/* ── 中心圆徽章：四块交点，pointer-events:none 不拦截卡片点击 ── */
.family-quad-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 38% 32%, #fbf6ea, #f3ead6);
  border: 1.5px solid #e6d9bd;
  box-shadow: 0 0 0 6px rgba(255,253,247,.55), 0 10px 26px rgba(60,45,20,.22),
    inset 0 0 0 1px rgba(168,132,60,.22);
}
.family-quad-badge-num { display: flex; align-items: baseline; gap: 2px; }
.family-quad-badge-n {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 34px; font-weight: 700; line-height: 1;
  color: #22303a;
}
.family-quad-badge-unit {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px; font-weight: 700; line-height: 1;
  color: #22303a;
}
.family-quad-badge-sub {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 10px; font-weight: 600; letter-spacing: .12em; line-height: 1;
  color: #6e5f3e;
}

/* ── 「一句话理解」总结条 ── */
.family-oneliner { margin-top: 22px; }
.family-oneliner-head {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.family-oneliner-head::before,
.family-oneliner-head::after {
  content: ""; width: 28px; height: 1px; background: #d8cfae;
}
.family-oneliner-head-text {
  padding: 8px 22px; border-radius: 999px;
  background: #1d2a33; color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; line-height: 1;
}
.family-oneliner-pills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 14px;
}
.family-oneliner-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  text-align: left; font: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--fam) 8%, #fdfbf6);
  border: 1px solid color-mix(in srgb, var(--fam) 22%, #eee6d8);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
.family-oneliner-pill[data-family="trend"] { --fam: #b83227; --fam-text: #b83227; }
.family-oneliner-pill[data-family="quant"] { --fam: #a8741f; --fam-text: #8a6219; }
.family-oneliner-pill[data-family="macro"]  { --fam: #2c7a5c; --fam-text: #2c7a5c; }
.family-oneliner-pill[data-family="value"]  { --fam: #2c5c86; --fam-text: #2c5c86; }
.family-oneliner-pill:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--fam) 35%, #d8e0e5);
  box-shadow: 0 12px 28px rgba(24,36,45,.10);
}
.family-oneliner-pill:focus-visible { outline: 2.5px solid var(--fam); outline-offset: 3px; }
.family-oneliner-icon {
  display: inline-flex; flex: none;
  width: 20px; height: 20px; color: var(--fam-text);
}
.family-oneliner-icon svg { width: 20px; height: 20px; }
.family-oneliner-texts { min-width: 0; }
.family-oneliner-name {
  display: block;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1;
  color: var(--fam-text);
}
.family-oneliner-slogan {
  display: block; margin-top: 3px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1.2;
  color: #22303a;
}

/* ── 响应式：<1100px 单列，徽章改流内元素 ── */
@media (max-width: 1100px) {
  .family-quad { grid-template-columns: minmax(0, 1fr); }
  .family-quad-badge {
    position: static; transform: none;
    justify-self: center;
    width: 88px; height: 88px;
    margin: 2px auto 8px;
    box-shadow: 0 6px 16px rgba(60,45,20,.16);
  }
  .family-quad-badge-n { font-size: 24px; }
  .family-quad-badge-unit { font-size: 13px; }
  .family-quad-badge-sub { font-size: 9.5px; }
  .family-cover-quote { padding: 16px 26px 18px; }
  .family-oneliner-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 响应式：≤560px（含 390px 移动端）紧凑排版 ── */
@media (max-width: 560px) {
  .family-cover { min-height: 0; }
  .family-cover-hero { height: auto; min-height: 172px; }
  .family-cover-photo-wrap { padding: 12px; }
  .family-cover-photo { width: 124px; height: 124px; }
  .family-cover-hero-text { padding: 16px; }
  .family-cover-title { font-size: 24px; }
  .family-cover-kicker { font-size: 9.5px; }
  .family-cover-guru-pill { margin-top: 8px; padding: 4px 12px; }
  .family-cover-guru-name { font-size: 13px; }
  .family-cover-guru-en { font-size: 10px; }
  .family-cover-note { font-size: 13px; line-height: 1.7; max-width: none; }
  .family-cover-rows { padding: 4px 16px; }
  .family-cover-row { height: 34px; }
  .family-cover-row-label { width: 46px; font-size: 10px; }
  .family-cover-row-value { font-size: 13px; }
  .family-cover-quote { padding: 14px 16px 15px; }
  .family-cover-quote-text { font-size: 13px; line-height: 1.8; }
  .family-cover-quote-by { font-size: 11.5px; }
  .family-cover-foot { height: 40px; padding: 0 16px; }
  .family-cover-go { font-size: 12px; }
  .family-oneliner-head::before, .family-oneliner-head::after { width: 18px; }
  .family-oneliner-pills { gap: 8px; }
  .family-oneliner-pill { padding: 10px 12px; gap: 8px; }
  .family-oneliner-slogan { font-size: 15px; }
}

/* 无障碍：减弱动效时去掉位移，保留颜色/描边反馈 */
@media (prefers-reduced-motion: reduce) {
  .family-cover, .family-cover-photo, .family-cover-go-arrow, .family-oneliner-pill {
    transition: none;
  }
  .family-cover:hover, .family-cover:active, .family-oneliner-pill:hover { transform: none; }
}

/* 体系头里的代表人物 */
.model-family-guru {
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 12px; font-weight: 600;
}
@media (max-width: 1100px) {
  .family-quad { grid-template-columns: minmax(0, 1fr); }
}
.family-quad-item {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,36,45,.04), 0 4px 14px rgba(24,36,45,.05);
}
/* 象限流派头：深色横条，流派色区分 */
.family-quad-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 20px; flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(100deg, #1d2a33 0%, #2b3a45 62%, #36454e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.family-quad-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 150% at 88% -50%, rgba(201,162,75,.20), transparent 60%);
}
.family-quad-left { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.family-quad-no {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: #d8b168;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 18px; font-weight: 700;
}
.family-quad-titles { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.family-quad-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px; font-weight: 700; letter-spacing: .05em; color: #fff;
}
.family-quad-en {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.52);
}
.family-quad-right {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.family-quad-traits { display: flex; gap: 14px; }
.family-quad-trait { display: flex; flex-direction: column; gap: 2px; }
.family-quad-trait-label {
  color: rgba(255,255,255,.5);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
}
.family-quad-trait-value { color: rgba(255,255,255,.9); font-size: 12.5px; font-weight: 600; }
.family-quad-count {
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; color: #fff;
}
/* 象限内的分类小标题 */
.family-quad-group {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 6px;
  margin-top: 4px;
}
.family-quad-group-no {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px; font-weight: 700; color: #3a464c; letter-spacing: .04em;
}
.family-quad-group-n {
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace; font-size: 11.5px;
}
/* 象限内的卡片网格 */
.family-quad-grid {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 4px 12px 14px;
}
/* v35：象限内 2 卡并排；分类内多卡（趋势超短有 3 卡一组）排 3 列以压缩纵向长度 */
/* v35：象限内多列——3 卡排 3 列、2 卡排 2 列，压缩纵向长度 */
.family-quad-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.family-quad-grid[data-count="3"],
.family-quad-grid[data-count="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1900px) {
  .family-quad-grid[data-count="3"],
  .family-quad-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  .family-quad-grid[data-count="2"],
  .family-quad-grid[data-count="3"],
  .family-quad-grid[data-count="4"] { grid-template-columns: minmax(0, 1fr); }
}
/* v35：量化象限的业绩对比条 */
.family-quad-compare {
  margin: 0 12px 14px;
  padding: 11px 13px 12px;
  border-radius: 10px;
  background: #f8fafb;
  border: 1px solid #e6ebee;
}
.family-quad-compare-label {
  display: block; margin-bottom: 8px;
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
}
.family-quad-compare-list { display: flex; flex-direction: column; gap: 6px; }
.family-quad-compare-chip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  background: #fff; border: 1px solid #e9edef; border-radius: 7px;
}
.family-quad-compare-name {
  color: #3a464c; font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.family-quad-compare-nums { display: flex; gap: 12px; flex: none; }
.family-quad-compare-num {
  color: #5f6e76;
  font-family: "Bahnschrift", "DIN Alternate", monospace; font-size: 11.5px;
  min-width: 54px; text-align: right;
}
.family-quad-compare-num.up { color: var(--market-red); font-weight: 700; }

/* 空流派占位 */
.family-quad-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  margin: 12px 14px 16px;
  padding: 30px 20px;
  background: repeating-linear-gradient(135deg, #fafbfc 0 12px, #f5f7f8 12px 24px);
  border: 1px dashed #dde4e8;
  border-radius: 10px;
}
.family-quad-empty-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px dashed #cfd8dd; color: #b3bcc1;
  font-size: 16px; line-height: 1;
}
.family-quad-empty-text {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px; color: #7c8990; letter-spacing: .03em;
}
.family-quad-empty-hint { color: #a9b2b7; font-size: 11.5px; }

/* 流派色：象限头与编号按流派区分 */
.family-quad-item[data-family="value"] .family-quad-head {
  background: linear-gradient(100deg, #1b2b3a 0%, #25415a 62%, #2f506e 100%);
}
.family-quad-item[data-family="value"] .family-quad-no { color: #8fb6d8; }
.family-quad-item[data-family="macro"] .family-quad-head {
  background: linear-gradient(100deg, #16302a 0%, #1f4d3f 62%, #29604f 100%);
}
.family-quad-item[data-family="macro"] .family-quad-no { color: #8fd0b4; }
.family-quad-item[data-family="trend"] .family-quad-head {
  background: linear-gradient(100deg, #1d2a33 0%, #2b3a45 62%, #38474f 100%);
}
.family-quad-item[data-family="trend"] .family-quad-no { color: #d8b168; }
.family-quad-item[data-family="quant"] .family-quad-head {
  background: linear-gradient(100deg, #2a2113 0%, #453516 62%, #56451f 100%);
}
.family-quad-item[data-family="quant"] .family-quad-no { color: #e0be7c; }

/* v34：四大流派改为四列（2×2 改 4×1 会太窄，这里 2×2 但卡片信息更全） */
.family-entry-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  align-items: stretch;   /* v34：四张流派卡等高，底部 CTA 对齐 */
}
@media (max-width: 1500px) {
  .family-entry-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .family-entry-grid-4 { grid-template-columns: minmax(0, 1fr); }
}
.family-entry { min-height: 0; }
.family-entry-grid-4 .family-entry { padding: 18px 18px 16px; gap: 10px; }
.family-entry-grid-4 .family-entry-title { font-size: 20px; }
.family-entry-grid-4 .family-entry-no { width: 40px; height: 40px; font-size: 18px; }
.family-entry-grid-4 .family-entry-note { font-size: 13px; line-height: 1.65; }
.family-entry-grid-4 .family-entry-art { width: 92px; height: 58px; opacity: .18; }
@media (max-width: 900px) {
  .family-entry-grid { grid-template-columns: minmax(0, 1fr); }
  .family-entry-head { flex-direction: column; align-items: flex-start; }
  .family-entry-head-note { text-align: left; max-width: none; }
  .family-entry-head-title { font-size: 22px; }
}

.family-entry {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px;
  padding: 22px 24px 20px;
  min-height: 300px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(24,36,45,.05), 0 6px 20px rgba(24,36,45,.05);
  cursor: pointer;
  font: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.family-entry::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--fam-color, #1d2a33), color-mix(in srgb, var(--fam-color, #1d2a33) 25%, transparent));
}
.family-entry:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--fam-color, #1d2a33) 42%, #e2e8ec);
  box-shadow: 0 4px 8px rgba(24,36,45,.07), 0 18px 40px rgba(24,36,45,.13);
}
.family-entry[data-family="value"]   { --fam-color: #2c5c86; }
.family-entry[data-family="macro"]   { --fam-color: #2c7a5c; }
.family-entry[data-family="trend"]   { --fam-color: #b83227; }
.family-entry[data-family="quant"]   { --fam-color: #a8741f; }

.family-entry-top { display: flex; align-items: center; gap: 14px; }
.family-entry-no {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  background: var(--fam-color, #1d2a33);
  color: #fff;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 21px; font-weight: 700;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--fam-color, #1d2a33) 34%, transparent);
}
.family-entry-titles { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; min-width: 0; }
.family-entry-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px; letter-spacing: .04em; line-height: 1.2;
}
.family-entry-en {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: #9aa4aa;
}
.family-entry-count {
  margin-left: auto; flex: none;
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--fam-color, #1d2a33) 9%, #fff);
  color: var(--fam-color, #1d2a33);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.family-entry-note {
  margin: 0;
  color: #47565f; font-size: 14.5px; line-height: 1.75;
}
/* v34：核心 / 周期 两栏特征条 */
.family-entry-traits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--fam-color, #1d2a33) 5%, #f8fafb);
  border: 1px solid color-mix(in srgb, var(--fam-color, #1d2a33) 12%, #e6ebee);
}
.family-trait { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.family-trait-label {
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
}
.family-trait-value {
  color: #3a464c; font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.family-entry-empty { color: #a9b2b7; font-size: 12.5px; }

.family-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.family-entry-tag {
  padding: 3px 10px; border-radius: 6px;
  background: #f4f6f7; color: #5f6e76;
  font-size: 12px; white-space: nowrap;
}
.family-entry-subs {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.family-entry-subs-label {
  display: block; margin-bottom: 8px;
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
.family-entry-sub-list { display: flex; flex-wrap: wrap; gap: 6px; }
.family-entry-sub {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 8px; border-radius: 7px;
  background: #fff; border: 1px solid #e6ebee;
  color: #3a464c; font-size: 12.5px;
  transition: border-color .18s, box-shadow .18s;
}
.family-entry:hover .family-entry-sub {
  border-color: color-mix(in srgb, var(--fam-color, #1d2a33) 26%, #e6ebee);
  box-shadow: 0 1px 3px rgba(24,36,45,.05);
}
.family-entry-sub .cat-icon { width: 14px; height: 14px; }
.family-entry-sub-name { font-weight: 600; }
.family-entry-sub-n {
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace; font-size: 11px;
}
/* v33 美工：入口卡右上角体系装饰图形（悬停浮现） */
.family-entry-art {
  position: absolute; top: 16px; right: 16px;
  width: 124px; height: 76px;
  color: var(--fam-color, #1d2a33);
  opacity: .24;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.family-entry-art svg { width: 100%; height: 100%; display: block; }
.family-entry:hover .family-entry-art { opacity: .44; transform: translateY(-2px); }

.family-entry-go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 14px;
  color: var(--fam-color, #1d2a33);
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
}
.family-entry-go-arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.family-entry:hover .family-entry-go-arrow { transform: translateX(4px); }

/* ── v32 · 面包屑（已进入体系后，可切体系 / 回入口）── */
.ref-crumb {
  position: sticky; top: var(--header-height); z-index: 72;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 6px 12px -8px rgba(24,36,45,.18);
}
/* v36：进入流派后，面包屑与体系头之间留出呼吸位，别贴死 */
.ref-crumb + .model-family { padding-top: 4px; }
.ref-crumb-home {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid #dfe6e9; background: #fff;
  color: #5f6e76; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.ref-crumb-home:hover { border-color: #c9d2d7; color: var(--ink); }
.ref-crumb-home-icon { color: #b3bcc1; font-size: 11px; }
.ref-crumb-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: #6b7a83; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.ref-crumb-link:hover { background: #fff; border-color: #dfe6e9; color: var(--ink); }
.ref-crumb-link.active {
  background: #fff; border-color: #d7dee2; color: var(--ink);
  box-shadow: 0 1px 2px rgba(24,36,45,.05);
}
.ref-crumb-no {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; font-weight: 700; color: #fff;
}
.ref-crumb-link[data-family="value"] .ref-crumb-no { background: #2c5c86; }
.ref-crumb-link[data-family="macro"] .ref-crumb-no { background: #2c7a5c; }
.ref-crumb-link[data-family="trend"] .ref-crumb-no { background: #b83227; }
.ref-crumb-link[data-family="quant"] .ref-crumb-no { background: #a8741f; }
.ref-crumb-count {
  color: #9aa4aa;
  font-family: "Bahnschrift", "DIN Alternate", monospace; font-size: 11.5px;
}

/* v31 · 两大类总导航（常驻吸顶，进入中长线区仍可一键跳回超短） */
.ref-family-rail {
  position: sticky; top: var(--header-height); z-index: 72;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0; padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ref-family-link {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: nowrap;
  padding: 8px 16px 8px 12px; border-radius: 9px;
  border: 1px solid #e2e8ec; background: #fff;
  color: #3a464c; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(24,36,45,.05);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ref-family-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,36,45,.10); }
.ref-family-link-no {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 13px; font-weight: 700; color: #fff;
}
.ref-family-link[data-family="short"] .ref-family-link-no { background: #1d2a33; }
.ref-family-link[data-family="midlong"] .ref-family-link-no { background: #25415a; }
.ref-family-link-en {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .14em; color: #9aa4aa;
  white-space: nowrap;          /* v31：英文名不换行不被截断 */
  flex: none;
}
.ref-family-link-count {
  min-width: 20px; padding: 1px 7px; border-radius: 999px;
  background: #f0f3f5; color: #6b7a83;
  font-family: "Bahnschrift", "DIN Alternate", monospace; font-size: 11px; text-align: center;
}
@media (max-width: 768px) {
  .ref-family-rail { padding: 8px 0; }
  .ref-family-link { padding: 6px 12px 6px 9px; font-size: 13px; }
  .ref-family-link-en { display: none; }
}

/* ── v31 · 两大类体系头（超短模型 / 中长线量化）─────────────
   mygu588 超短模型（T+1/T+2 打板情绪）与果仁中长线量化（多日持仓组合）
   是两套完全不同的量化体系：频率、持仓周期、出场逻辑都不同，
   页面顶层必须分开讲，不能混成一片卡片墙。 */
.model-family {
  margin-bottom: 26px;
  /* v36：面包屑是 sticky，面包屑之下还要留出分类导航条的高度，
     否则滚进来时体系头会被压在下边（sticky 兄弟元素覆盖） */
  scroll-margin-top: calc(var(--header-height) + 120px);
  clear: both;
}
.model-family + .model-family { margin-top: 34px; }
.model-family-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  padding: 16px 22px 16px 20px;
  border-radius: 12px;
  background: linear-gradient(100deg, #1d2a33 0%, #2b3a45 58%, #38474f 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(24,36,45,.16);
  position: relative;
  overflow: hidden;
}
.model-family-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 34px),
    radial-gradient(120% 160% at 88% -40%, rgba(201,162,75,.22), transparent 58%);
}
.model-family-left { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.model-family-no {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 30px; font-weight: 700; line-height: 1;
  color: #d8b168;
  letter-spacing: .04em;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.model-family-titles { display: flex; align-items: baseline; gap: 12px; }
.model-family-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px; font-weight: 700; letter-spacing: .05em; line-height: 1.2;
  color: #fff;
}
.model-family-en {
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.model-family-right {
  display: flex; align-items: center; gap: 14px; position: relative; z-index: 1;
}
.model-family-note {
  margin: 0; max-width: 620px;
  color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.7; text-align: right;
}
.model-family-count {
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 11.5px; color: #fff;
}
/* v34：空流派占位 */
.model-family-empty {
  padding: 46px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #dde4e8;
  border-radius: 12px;
}
.model-family-empty-title {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px; color: #5f6e76; letter-spacing: .03em;
}
.model-family-empty-note { margin: 0; color: #9aa4aa; font-size: 13px; line-height: 1.7; }

.model-family-sub {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 18px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.model-family[data-family="value"] .model-family-head {
  background: linear-gradient(100deg, #1b2b3a 0%, #25415a 58%, #2f506e 100%);
}
.model-family[data-family="value"] .model-family-no { color: #8fb6d8; }
.model-family[data-family="macro"] .model-family-head {
  background: linear-gradient(100deg, #16302a 0%, #1f4d3f 58%, #29604f 100%);
}
.model-family[data-family="macro"] .model-family-no { color: #8fd0b4; }
.model-family[data-family="trend"] .model-family-head {
  background: linear-gradient(100deg, #1d2a33 0%, #2b3a45 58%, #38474f 100%);
}
.model-family[data-family="trend"] .model-family-no { color: #d8b168; }
.model-family[data-family="quant"] .model-family-head {
  background: linear-gradient(100deg, #2a2113 0%, #453516 58%, #56451f 100%);
}
.model-family[data-family="quant"] .model-family-no { color: #e0be7c; }

/* ── 策略二级分类 v25 · 吸顶分类导航 + 全宽编辑式组头 ─────────
   v25 整页重排：弃 v22 左窄栏组头（左栏下方大片空白、与卡片失衡），
   改「全宽组头横条 + 全宽卡片网格」：红编号+衬线组名在左、打法说明+数量在右，
   组头下细线压边。分类导航升级为吸顶胶囊带（编号+组名+数量），滚过组头可随时跳组。 */
.ref-cat-rail {
  position: static;   /* v31：不再吸顶，避免与两大类总导航重叠 */
  z-index: 70;
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ref-cat-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--slate); text-decoration: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  transition: border-color .18s, background .18s, color .18s;
}
.ref-cat-link-no {
  color: var(--market-red); font-family: "Bahnschrift", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.ref-cat-link:hover {
  border-color: var(--line); background: #fff; color: var(--ink);
}
.ref-cat-link-count {
  min-width: 20px; padding: 1px 7px; border-radius: 999px;
  background: var(--paper-muted); color: var(--slate);
  font-family: "Bahnschrift", monospace; font-size: 11px; text-align: center;
}
.ref-cat-link:hover .ref-cat-link-count { background: var(--market-red-soft); color: var(--market-red); }

.ref-group { scroll-margin-top: calc(var(--header-height) + 66px); }
.ref-group + .ref-group { margin-top: 20px; }
.ref-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 22px; flex-wrap: wrap;
  padding: 11px 16px 11px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cat, #b83227) 7%, #fff), #fff 62%);
  border: 1px solid color-mix(in srgb, var(--cat, #b83227) 14%, #e6ebee);
  border-radius: 10px;
  border-bottom-color: transparent;
}
.ref-group-head-left { display: flex; align-items: baseline; gap: 12px; flex: none; }
.ref-group-head-left::after {
  content: "";
  flex: 1 1 40px; min-width: 24px; height: 1px; align-self: center;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cat, #b83227) 34%, #dfe6e9) 0 4px, transparent 4px 9px);
}
.ref-group-no {
  color: var(--market-red); font-family: "Bahnschrift", monospace;
  font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.ref-group-head-titles { display: flex; align-items: baseline; gap: 10px; }
.ref-group-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px; letter-spacing: .03em; line-height: 1.25;
  white-space: nowrap;              /* v30：组名不被右侧说明挤断行 */
  flex: none;
}
.ref-group-en {
  color: #96a3ab; font-family: "Bahnschrift", monospace;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
}
.ref-group-head-right {
  display: flex; align-items: center; gap: 12px; padding-bottom: 3px;
}
.ref-group-note {
  margin: 0; max-width: 620px;
  color: #47565f; font-size: 15px; line-height: 1.65; text-align: right;
  flex: 1 1 320px;
}
.ref-group-count {
  padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-family: "Bahnschrift", monospace; font-size: 11.5px; white-space: nowrap;
  letter-spacing: .02em;
}
/* 组内网格：全宽 auto-fit 等高拉伸；单卡组限宽 640 防拉满整行 */
body[data-section="strategy-showcase"] .ref-group .strategy-ref-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-section="strategy-showcase"] .ref-group .strategy-ref-grid[data-count="1"] {
  grid-template-columns: minmax(0, 980px);
}
@media (max-width: 768px) {
  /* v31：体系头移动端堆叠 */
  .model-family-head { padding: 14px 16px; gap: 12px; }
  .model-family-no { font-size: 24px; padding-right: 12px; }
  .model-family-title { font-size: 22px; }
  .model-family-en { font-size: 10px; letter-spacing: .18em; }
  .model-family-right { flex-direction: column; align-items: flex-start; gap: 8px; }
  .model-family-note { text-align: left; max-width: none; font-size: 13px; }
  .ref-exit-desc { display: block; margin: 4px 0 0; }
  .ref-cat-rail { padding: 8px 0; }
  .ref-cat-link { padding: 6px 11px; font-size: 12px; }
  .ref-group + .ref-group { margin-top: 30px; }
  .ref-group-no { font-size: 26px; }
  .ref-group-title { font-size: 20px; }
  .ref-group-head-right { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ref-group-note { text-align: left; }
  /* 窄屏卡片头纵向堆叠：标题不被切换器挤断行，切换器独占一行 */
  .strategy-ref-card .card-header { flex-direction: column; gap: 10px; }
  .strategy-ref-card .strategy-switcher { align-self: flex-start; }
}
.strategy-ref-card .media-frame {
  min-height: 0; aspect-ratio: 2.4 / 1;
  background: #f6f8f9;
  border-bottom: 1px solid #eef1f3;
}
.strategy-ref-card .media-frame img { cursor: zoom-in; }
.strategy-cover { position: relative; }
.strategy-source-tag {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 12px;
  background: rgba(24, 36, 45, .72); color: #fff;
  font-family: "Bahnschrift", monospace; font-size: 11px;
  pointer-events: none;
}
.strategy-no-cover {
  display: grid; width: 100%; aspect-ratio: 2.2 / 1;
  place-items: center; color: var(--slate); font-size: 13px;
  background: repeating-linear-gradient(-45deg, #e8edef 0 12px, #eef2f4 12px 24px);
}
.strategy-ref-card .card-copy {
  display: -webkit-box; overflow: hidden;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}

/* ── 策略卡片 · v23 卡片头 + 分段切换器 ─────────────────────────── */
/* 标题（衬线）+ 状态徽章上移到卡顶，切换器并入头部右侧作分段控件——
   消除旧版"顶部孤立胶囊 + 底部重复标题"的层级混乱（ui-design-system 审查结论1）。 */
.strategy-ref-card .card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 11px 16px 9px;
  border-bottom: 1px solid #eef1f3; background: #fcfdfd;
}
.strategy-ref-card .card-header .card-head {
  flex-direction: column; align-items: flex-start; gap: 5px; flex-wrap: nowrap;
}
.strategy-switcher {
  display: inline-flex; gap: 2px; padding: 3px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper-muted);
}
.strategy-switch {
  appearance: none; border: 0; background: transparent;
  color: var(--slate); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1; padding: 8px 15px; border-radius: 8px;
  cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
}
.strategy-switch.active {
  background: #fff; color: var(--market-red);
  box-shadow: 0 1px 3px rgba(24, 36, 45, .12);
}
.strategy-switch.disabled {
  opacity: 1; cursor: not-allowed;
  color: #a9b4ba; background: #f4f6f7;
  border-color: #e9edef; box-shadow: none;
}
.strategy-switch.disabled::after {
  content: "🔒"; font-size: 10px; margin-left: 5px; opacity: .55;
}
.strategy-switch.hidden-switch { display: none; }
/* 果仁卡仍用顶部工具条承载切换器（createGuornCard） */
.strategy-toolbar {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f3; background: #fbfcfc;
}

/* ── 策略卡片 · 正文与状态 ─────────────────────────── */
.strategy-ref-card .card-body {
  padding: 14px 18px 16px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.strategy-ref-card .card-title {
  margin: 0; font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px; letter-spacing: .02em; line-height: 1.35;
}
.strategy-ref-card .card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.strategy-ref-card .card-copy {
  margin: 6px 0 0; color: #4c5b63;
  font-size: 14.5px; line-height: 1.75;
}
/* 操作按钮沉底 + 同排卡片等高拉伸（底边对齐，消除表格卡/图卡参差） */
.strategy-ref-card .card-actions {
  margin-top: auto; padding-top: 14px;
  display: flex; gap: 10px;
}
/* v28：两按钮等分占满信息列——目标更大更易点 */
.strategy-ref-card .card-actions .action-button { flex: 1 1 0; }

/* ── v29 · 策略速览面板 + 大按钮（用户：按钮太小、右列留白难看、说明太小） ── */
.strategy-ref-card .card-actions { flex-direction: column; gap: 10px; }
.strategy-ref-card .card-actions .action-button {
  flex: 1 1 auto; width: 100%; min-height: 58px;
  padding: 15px 18px; font-size: 17px; font-weight: 700;
}
.strategy-ref-card .strategy-switch { font-size: 15px; padding: 10px 17px; }
.strategy-ref-card .ref-glance {
  display: flex; flex-direction: column; flex: 1 1 auto;
  margin-top: 10px; padding: 13px 15px 14px;
  border: 1px solid color-mix(in srgb, var(--cat, var(--market-red)) 15%, #e6ebee);
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat, var(--market-red)) 4%, #fff);
}
.ref-glance-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 9px;
}
.ref-glance-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--cat, var(--market-red));
}
.ref-glance-cat {
  font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 10px;
  background: color-mix(in srgb, var(--cat, var(--market-red)) 12%, #fff);
  color: var(--cat, var(--market-red));
}
.ref-glance-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 10px; flex: 1 1 auto; grid-auto-rows: minmax(56px, 1fr);
}
.ref-glance-cell {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 9px 11px; border-radius: 8px;
  background: #fff; border: 1px solid #edf1f3;
}
.ref-glance-val {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--ink);
}
.ref-glance-val.up { color: var(--market-red); }
.ref-glance-val.down { color: var(--market-green); }
.ref-glance-val.na { color: var(--slate); }
.ref-glance-label { font-size: 12.5px; color: var(--slate); }
/* v31 · 最佳出场路径：明示该策略哪种出场最优 + 四口径对照 */
.ref-exit {
  margin-top: 10px;
  padding: 9px 11px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9, #fdf8f0);
  border: 1px solid #f0e3cd;
}
.ref-exit-tag { display: inline-flex; align-items: baseline; gap: 7px; }
.ref-exit-tag-label {
  color: #8a959b;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.ref-exit-tag-name {
  color: #a8621b;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
}
.ref-exit-desc { color: #7d8890; font-size: 12px; margin-left: 8px; }
.ref-exit-compare {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 8px;
}
.ref-exit-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #eee4d3;
  color: #9aa3a9;
  font-size: 11px;
}
.ref-exit-chip-name { font-family: "Bahnschrift", "DIN Alternate", monospace; }
.ref-exit-chip-val { font-family: "Bahnschrift", "DIN Alternate", monospace; font-weight: 700; }
.ref-exit-chip.best {
  background: #fff6e8;
  border-color: #e0b872;
  color: #8a5a17;
}
.ref-exit-chip.best .ref-exit-chip-val { color: #b83227; }

/* v31 · 图例标最佳出场 */
.legend-item.legend-best .legend-label { color: #a8621b; font-weight: 700; }
.legend-item.legend-best .legend-dot { box-shadow: 0 0 0 2px rgba(168,98,27,.22); }
.legend-best-tag {
  color: #a8621b; font-size: 10px; font-weight: 700;
  border: 1px solid #e0b872; border-radius: 4px; padding: 0 4px; margin-left: 2px;
}

.ref-glance-sub {
  margin: 8px 0 0; font-size: 11.5px; letter-spacing: .05em; color: var(--slate);
}
.ref-glance-note {
  margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: #45545c;
}
.ref-glance-note-tag {
  display: inline-block; margin-right: 7px; padding: 1px 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--cat, var(--market-red)) 12%, #fff);
  color: var(--cat, var(--market-red)); font-size: 12px; font-weight: 700;
  vertical-align: 1px;
}

/* ── 策略模型页 · 模型图卡片（按日期选择展示，一次 4 张） ── */
.model-card {
  display: flex; flex-direction: column; height: 100%;
  border-color: #e2e8ec;
  box-shadow: 0 1px 2px rgba(24,36,45,.05), 0 4px 16px rgba(24,36,45,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.model-card:hover {
  box-shadow: 0 4px 8px rgba(24,36,45,.07), 0 12px 32px rgba(24,36,45,.10);
  transform: translateY(-2px);
}
.model-card .media-frame {
  min-height: 0; aspect-ratio: 2.4 / 1;
  background: #f6f8f9; border-bottom: 1px solid #eef1f3;
}
.model-card .card-body {
  padding: 14px 20px 16px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.model-card .card-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px; letter-spacing: .02em; line-height: 1.45;
}
/* v25：模型图网格 2 列大图（图片内容放大才看得清），窄屏 1 列 */
body[data-section="strategy-showcase"] #strategy-models-report .content-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
}
@media (max-width: 1168px) {
  body[data-section="strategy-showcase"] #strategy-models-report .content-grid { grid-template-columns: 1fr; }
}
/* 早期批次图片文件未随迁移包保留时的占位态 */
.model-card .media-frame.is-missing {
  background: repeating-linear-gradient(135deg, #f2f5f6, #f2f5f6 10px, #eaeff1 10px, #eaeff1 20px);
}
.model-missing {
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  color: var(--slate); font-size: 12px; line-height: 1.8;
}

/* ── 策略模型页 · 两大类区块（策略数据源 / 模型图） ── */
/* 两块之间用 2px 深色横线拉开层级；每块自己的 .section-heading
   已带 1px 细线（见前文 .section-heading），一粗一细两层分隔。 */
.strategy-block + .strategy-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.strategy-block > .section-description { margin-top: 14px; }
/* v25：策略页区块头强化——红色 kicker、衬线大标题、粗分隔线压边 */
body[data-section="strategy-showcase"] .section-kicker {
  color: var(--market-red); letter-spacing: .24em;
}
body[data-section="strategy-showcase"] .section-title { font-size: 28px; }
body[data-section="strategy-showcase"] .section-heading {
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
body[data-section="strategy-showcase"] .strategy-block + .strategy-block .section-heading {
  border-bottom: 2px solid var(--ink);
}

.strategy-state {
  display: inline-flex; align-items: center; gap: 6px;
  width: max-content; margin-top: 0;
  color: var(--slate); font-size: 11px; white-space: nowrap;
}
.strategy-state::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #b9c4cb;
}
.strategy-state[data-kind="ready"]::before { background: var(--market-green); }
.strategy-state[data-kind="locked"]::before { background: var(--market-gold); }
.strategy-state[data-kind="empty"]::before { background: #b9c4cb; }

/* ── 策略卡片 · JSON 数据视图（选股表格 / 回测曲线） ─────────── */
/* JSON 结构化数据模式下媒体帧自适应内容高度（不再固定 2.2:1 裁切） */
.strategy-ref-card .media-frame.data-mode {
  aspect-ratio: auto; min-height: 0;
  display: block; background: #fff; overflow: auto;
  border-bottom: 1px solid #eef1f3;
}
.strategy-ref-card .media-frame.data-mode img { display: none !important; }
.strategy-ref-card .media-frame.data-mode .strategy-source-tag {
  position: static; display: inline-block; margin: 2px 14px 12px;
  background: #eef2f4; color: #6b7a83; font-size: 11px;
}
.strategy-data {
  width: 100%; overflow: visible; background: #fff;
  padding: 8px 10px; box-sizing: border-box;
}
.strategy-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.strategy-data .strategy-no-cover { aspect-ratio: auto; min-height: 120px; border-radius: 8px; }

/* ── 模型选股表（对齐源站 14 列） ── */
.query-data-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; flex-wrap: wrap; gap: 4px 8px;
}
.query-data-count { font-size: 12.5px; color: var(--slate); }
.query-data-wrap { max-height: 320px; overflow: auto; border: 1px solid #eef1f3; border-radius: 8px; }
.query-table {
  width: max-content; min-width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: 13px; line-height: 1.55;
}
.query-table th {
  text-align: left; font-weight: 600; color: #3a464c;
  background: #f2f5f6; position: sticky; top: 0; z-index: 2;
  padding: 8px 10px; border-bottom: 1px solid #dfe6e9;
  white-space: nowrap;
}
.query-table th.stick-col { position: sticky; left: 0; z-index: 3; box-shadow: 1px 0 0 #dfe6e9; }
.query-table td {
  padding: 7px 10px; border-bottom: 1px solid #eef1f3;
  white-space: nowrap; color: #333; background: #fff;
}
.query-table td.stick-col { position: sticky; left: 0; z-index: 1; background: #fbfcfc; box-shadow: 1px 0 0 #eef1f3; }
.query-table tr:hover td { background: #f7fafb; }
.query-table tr:hover td.stick-col { background: #f2f7f8; }
.query-table td.up { color: var(--market-red); }
.query-table td.down { color: var(--market-green); }
.query-table td.na { color: #b6c0c5; }
.query-table .stock-name { font-weight: 600; }
.query-table .stock-code { font-family: "Bahnschrift", Consolas, monospace; color: #6b7a83; }
.query-table .num { font-family: "Bahnschrift", Consolas, monospace; }
.query-data-empty, .query-data-more {
  padding: 24px 8px; text-align: center;
  color: var(--slate); font-size: 13px;
}
.query-data-more { padding: 8px; font-size: 11px; }

/* ── 收益回测：口径指标表 + 净值曲线 ── */
.backtest-data { display: flex; flex-direction: column; gap: 6px; }
.backtest-headline { font-size: 11px; color: var(--slate); display: flex; gap: 12px; flex-wrap: wrap; }
.bt-metrics {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px; border: 1px solid #e6ebee; border-radius: 8px; overflow: hidden;
}
.bt-metrics th {
  text-align: left; font-weight: 600; color: #3a464c;
  background: #f2f5f6; padding: 6px 9px; border-bottom: 1px solid #dfe6e9;
  white-space: nowrap; font-size: 12px;
}
.bt-metrics td {
  padding: 6px 9px; border-bottom: 1px solid #eef1f3; white-space: nowrap;
  font-family: "Bahnschrift", Consolas, monospace; color: #333;
}
.bt-metrics tr:last-child td { border-bottom: none; }
.bt-metrics tr.main-row td { background: #fdf3f1; }
.bt-metrics tr.main-row th { background: #fae6e1; color: var(--market-red); }
.bt-metrics td.horizon { font-family: inherit; font-weight: 600; color: #333; }
.bt-metrics td.up { color: var(--market-red); }
.bt-metrics td.down { color: var(--market-green); }
.bt-metrics td.na { color: #b6c0c5; }
.bt-metrics .main-badge { font-size: 11px; background: var(--market-red); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.backtest-chart { width: 100%; height: auto; max-height: 240px; display: block; background: #fff; }
.chart-grid { stroke: #dfe6e9; stroke-width: 1; }
.chart-grid-mid { stroke: #eef1f3; stroke-width: 1; }
.chart-axis-label { font-size: 12px; fill: #5f6e76; }
.chart-axis-title { font-size: 13px; fill: #47565f; }
.backtest-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #444; }
.bt-series[data-key="p1next2"] path { stroke-width: 2.6; }
.bt-series:not([data-key="p1next2"]) path { stroke-width: 1.5; stroke-opacity: .82; }
.bt-series.bt-off path { stroke-opacity: .12; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.legend-item:hover .legend-label { color: #111; }
.legend-item.legend-off .legend-label { color: #b6c0c5; text-decoration: line-through; }
.legend-item.legend-off .legend-dot { background: #ccd3d7 !important; }
.legend-dot { width: 16px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
.backtest-note { font-size: 11px; color: #98a4aa; }

/* ── 果仁网策略 · 分组小标题（策略数据源块内、mygu588 卡片下方的细分隔） ── */
.guorn-group-head {
  margin: 34px 0 2px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.guorn-group-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  letter-spacing: .03em;
}
.guorn-group-note {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.7;
}

/* ── 果仁网策略 · 卡片（今日信号 4 tab） ── */
.guorn-grid { grid-template-columns: 1fr; gap: 22px; }
.guorn-card { grid-column: 1 / -1; }
/* v32：果仁卡操作区——按钮不再横贯整卡（4 张卡各一条红带过于抢眼且重复） */
/* 果仁卡与引用卡同有 .strategy-ref-card 类，引用卡的规则 specific 更高，
   这里用 .strategy-ref-card.guorn-card 提权覆盖，保证按钮不横贯整卡。 */
.strategy-ref-card.guorn-card .card-actions {
  flex-direction: row; justify-content: flex-end;
  margin-top: 10px; padding-top: 0; gap: 8px;
}
.strategy-ref-card.guorn-card .card-actions .action-button {
  flex: 0 0 auto; width: auto;
  min-height: 40px; padding: 0 22px;
  font-size: 14px; font-weight: 600;
  background: #fff;
  color: var(--market-red);
  border: 1px solid #e3c3bf;
  box-shadow: none;
}
.strategy-ref-card.guorn-card .card-actions .action-button:hover {
  background: #fdf4f2;
  border-color: var(--market-red);
  color: var(--market-red-dark);
  box-shadow: 0 3px 10px rgba(176,45,36,.12);
}
.strategy-ref-card.guorn-card .card-actions .action-button::after { content: " \2192"; }
/* 数据区：承接 4 个 tab 的表格/牛熊/持仓内容，相对定位给 .locked-media 当锚 */
.guorn-panel {
  position: relative;
  min-height: 138px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #eef1f3;
}
.guorn-generate {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; min-height: 180px;
  padding: 24px 16px; text-align: center;
}
.guorn-generate-copy {
  margin: 0; max-width: 420px;
  color: var(--slate); font-size: 13px; line-height: 1.8;
}
.guorn-error {
  margin: 0 0 12px;
  color: var(--market-red); font-size: 12px; text-align: center;
}

/* 大盘牛熊 tab：大字牛熊 + 源站 msg 原文 */
.guorn-bullbear { display: flex; flex-direction: column; gap: 12px; padding: 10px 4px 6px; }
.guorn-bullbear-tag {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: .06em; line-height: 1.2;
}
.guorn-bullbear-tag.bull { color: var(--market-red); }
.guorn-bullbear-tag.bear { color: var(--market-green); }
.guorn-bullbear-tag.flat { color: var(--slate); }
.guorn-msg {
  margin: 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-muted);
  color: var(--ink); font-size: 13px; line-height: 1.9;
}

/* 调仓表小标题、股票列里的代码灰显、持仓截图 */
.guorn-subtitle { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.guorn-code { color: #6b7a83; font-family: "Bahnschrift", Consolas, monospace; font-weight: 400; }
.guorn-holdings-img {
  display: block; width: 100%; max-width: 720px; height: auto;
  margin: 12px auto 0; border: 1px solid var(--line); border-radius: 8px;
  cursor: zoom-in;
}

/* ── 果仁收益曲线图（前端自己画的 SVG，学 renderBacktestChart）────────────── */
.guorn-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 4px;
}
.guorn-axis-label {
  font-size: 11px;
  fill: #8b93a1;
}
.guorn-end-label {
  font-size: 11px;
  font-weight: 600;
}
.guorn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  margin: 2px 0 6px;
}
.guorn-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.guorn-legend-dot {
  display: block;
  flex: 0 0 auto;
}
.guorn-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 4px;
}

/* 回撤数据：指标条 + 水下回撤图（跌幅=绿，涨=红） */
.guorn-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.guorn-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-muted);
  font-size: 12px;
}
.guorn-metric .gm-k { color: var(--slate); }
.guorn-metric .gm-v {
  color: var(--ink);
  font-weight: 600;
  font-family: "Bahnschrift", Consolas, monospace;
}
.guorn-metric .gm-v.up { color: var(--market-red); }
.guorn-metric .gm-v.down { color: var(--market-green); }


/* ── 美工 v27 · 图形装饰系统（内联 SVG + 角饰 + 组色图标） ──────────
   hero 市场纸带 / 分类徽章图形 / 模型图装裱金角 / 主按钮箭头 / 菱形分隔，
   全部随 data-category 组色着色，后台加策略自动继承。 */

/* hero 市场纸带：标题下 K 线装饰条（流式排布，不与任何文字重叠） */
.hero-art {
  margin-top: 8px; height: 56px; overflow: hidden; pointer-events: none;
  border-top: 1px solid rgba(24,36,45,.07);
}
.hero-art svg { display: block; width: 100%; height: 100%; }
/* v32：K线纸带改为全宽平铺，消灭 hero 右下角的大片空白 */
.hero-art { mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%); }

/* 分类图形徽章：组头大徽章 + 导航小图标 */
.cat-medallion {
  flex: none; align-self: center;
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: color-mix(in srgb, var(--cat) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat) 26%, #e3e9ec);
  color: var(--cat);
}
.cat-medallion svg { width: 22px; height: 22px; }
.cat-icon { display: inline-flex; align-items: center; color: var(--cat); }
.cat-icon svg { width: 15px; height: 15px; }
.ref-cat-rail .ref-cat-link { align-items: center; }

/* 图片装裱角：左上/右下金色角饰（呼应品牌装裱画语言） */
.strategy-ref-card .media-frame::before,
.model-card .media-frame::before {
  content: ""; position: absolute; inset: 8px; z-index: 1; pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(#c9a24b, #c9a24b) left top / 13px 2px no-repeat,
    linear-gradient(#c9a24b, #c9a24b) left top / 2px 13px no-repeat,
    linear-gradient(#c9a24b, #c9a24b) right bottom / 13px 2px no-repeat,
    linear-gradient(#c9a24b, #c9a24b) right bottom / 2px 13px no-repeat;
}

/* 主按钮箭头动效 */
.card-actions .action-button.primary::after {
  content: "\2192"; display: inline-block; margin-left: 8px;
  font-family: "Bahnschrift", "DIN Alternate", monospace;
  transition: transform .18s ease;
}
.card-actions .action-button.primary:hover::after { transform: translateX(3px); }

/* 区块分隔菱形 + kicker 菱形点缀 */
.strategy-block + .strategy-block { position: relative; }
.strategy-block + .strategy-block::before {
  content: "\25C6"; position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -52%);
  padding: 0 12px; background: var(--paper);
  color: var(--market-red); font-size: 10px;
}
body[data-section="strategy-showcase"] .section-kicker::after {
  content: "\25C6"; margin-left: 8px; font-size: 7px; vertical-align: 2px;
  color: var(--market-gold);
}

@media (max-width: 768px) {
  .hero-art { height: 42px; margin-top: 8px; }
  .cat-medallion { width: 38px; height: 38px; border-radius: 10px; }
  .cat-medallion svg { width: 18px; height: 18px; }
}

/* ── v28 信息密度补丁 · 断点与区块收紧 ─────────────────────── */
body[data-section="strategy-showcase"] .analysis-section {
  margin-bottom: 22px; padding: 18px;
}
@media (max-width: 1168px) {
  body[data-section="strategy-showcase"] .ref-group .strategy-ref-grid,
  body[data-section="strategy-showcase"] .ref-group .strategy-ref-grid[data-count="1"] {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .strategy-ref-grid .strategy-ref-card:not(.guorn-card) {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "body";
  }
  .ref-group-note { font-size: 14px; }
  .card-actions .action-button { min-height: 50px; font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════════
   v39 · 策略模型「自上而下三层投资体系」版式
   （依 _design_spec_v39.md：上层 allocation / 中层 style / 底层 short，
    自上而下递进；令牌 → 总图 → 层头 → 事实条 → 光谱 → 分组 → 关键词
    → 折叠 → 层内密度 → 四断点。旧类 .family-quad 等保留不动。）
   ════════════════════════════════════════════════════════════════════ */

/* ── 11.1.1 全局令牌 ── */
:root {
  /* 纸色三阶：版面底 / 二阶分区 / 卡片面 */
  --paper-warm: #faf8f3;
  --paper-warm-2: #f4f1e9;
  --paper-card: #fffdf9;

  /* 收益光谱轴（端点色全局固定） */
  --spec-app: #2c5c86;
  --spec-spread: #b83227;
  --spec-axis: #efece8;
  --spec-axis-line: #d8d0c4;

  /* 层色（L1 稳 → L3 险）：饱和度与暖度单调递增 */
  --ly1: #2c5c86; --ly1-deep: #1d4262; --ly1-tint: #ecedeb; --ly1-tint-2: #f0f4f7;
  --ly2: #a8741f; --ly2-deep: #77510f; --ly2-tint: #f4efe4; --ly2-tint-2: #f7f2eb;
  --ly3: #b83227; --ly3-deep: #85221a; --ly3-tint: #f5eae5; --ly3-tint-2: #f9edec;
}

/* ── 11.1.2 每层令牌（data-layer 驱动；层内组件全部随层取色） ──
   硬约束：--ly2 #a8741f 对白仅 4.05:1，中层小字一律 --ly-text=#77510f */
[data-layer="allocation"] {
  --ly: var(--ly1); --ly-text: var(--ly1); --ly-deep: var(--ly1-deep);
  --ly-head: linear-gradient(100deg, #1b2b3a 0%, #25415a 58%, #2f506e 100%);
  --ly-tint: #ecedeb; --ly-tint-2: #ecf0f4; --ly-hair: #dde5ec; --ly-gold: #e0be7c;
  --ly-shadow: 0 1px 2px rgba(24,36,45,.05), 0 12px 32px rgba(24,36,45,.08);
  --ly-gap: 22px; --ly-pad: 20px; --ly-radius: 14px;
  --ly-badge-radius: 3px; --ly-badge-border: 1px; --meter-h: 6px;
}
[data-layer="style"] {
  --ly: var(--ly2); --ly-text: var(--ly2-deep); --ly-deep: var(--ly2-deep);
  --ly-head: linear-gradient(100deg, #2a2113 0%, #453516 58%, #56451f 100%);
  --ly-tint: #f4efe4; --ly-tint-2: #f7f2eb; --ly-hair: #f1e9db; --ly-gold: #e8cd94;
  --ly-shadow: 0 2px 4px rgba(24,36,45,.06), 0 16px 40px rgba(24,36,45,.11);
  --ly-gap: 16px; --ly-pad: 16px; --ly-radius: 12px;
  --ly-badge-radius: 3px; --ly-badge-border: 1.5px; --meter-h: 5px;
}
[data-layer="short"] {
  --ly: var(--ly3); --ly-text: var(--ly3); --ly-deep: var(--ly3-deep);
  --ly-head: linear-gradient(100deg, #3a1410 0%, #6b1d16 58%, #8c2a20 100%);
  --ly-tint: #f5eae5; --ly-tint-2: #f9edec; --ly-hair: #f4dedc; --ly-gold: #e8cd94;
  --ly-shadow: 0 3px 8px rgba(24,36,45,.08), 0 22px 52px rgba(24,36,45,.15);
  --ly-gap: 12px; --ly-pad: 13px; --ly-radius: 10px;
  --ly-badge-radius: 2px; --ly-badge-border: 2px; --meter-h: 4px;
}

/* v39 新分组的 --cat 组色注册（沿用 v26 机制，写在旧注册块之后即优先生效；
   底层五分类 auction/dip/reversal/oversold/trend 仍走既有 --cat-* 不动） */
[data-category="config"],
[data-category="rotation"] { --cat: var(--ly1); }
[data-category="style-rotate"],
[data-category="growth"],
[data-category="value"],
[data-category="microcap"] { --cat: var(--ly2-deep); }
[data-category="misc"] { --cat: #5f6e76; }

/* ── 11.1.10 体系总图 .layer-map（全局光谱总轴 + 三级递进阶梯） ── */
.layer-map {
  margin: 0 0 34px;
  padding: 24px 26px 20px;
  background: var(--paper-warm);
  border: 1px solid #e7e0d2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24,36,45,.04), 0 10px 28px rgba(24,36,45,.05);
}
.layer-map-head { max-width: 980px; }
.layer-map-title {
  margin: 6px 0 8px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 28px; font-weight: 700; letter-spacing: .05em; line-height: 1.25;
  color: var(--ink);
}
.layer-map-note {
  margin: 0; max-width: 760px;
  font-size: 13.5px; line-height: 1.8; color: #47565f;
}
.layer-map-axis {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0 6px;
}
.layer-map-axis-end {
  flex: none;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  color: #5f6e76; white-space: nowrap;
}
.layer-map-axis .layer-spectrum-track { flex: 1 1 auto; }
.layer-map-steps { display: flex; flex-direction: column; margin-top: 6px; }
.layer-map-step {
  display: grid;
  grid-template-columns: 16px 46px minmax(120px, 1.05fr) minmax(0, 1.5fr) auto auto;
  align-items: center; gap: 6px 16px;
  padding: 13px 12px;
  border: 0; border-top: 1px dashed #e3dccb;
  border-radius: 10px;
  background: transparent;
  text-align: left; cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.layer-map-step:last-child { border-bottom: 1px dashed #e3dccb; }
.layer-map-step:hover {
  background: var(--paper-card);
  box-shadow: 0 2px 8px rgba(24,36,45,.06);
}
.layer-map-step-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ly);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ly) 16%, #fff);
}
.layer-map-step-no {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: var(--ly-text);
}
.layer-map-step-name {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px; font-weight: 700; letter-spacing: .03em;
  color: #1d2a33;
}
.layer-map-step-earn { font-size: 12.5px; line-height: 1.6; color: #47565f; min-width: 0; }
.layer-map-step-count {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em;
  color: #5f6e76; white-space: nowrap;
}
.layer-map-rail { display: none; gap: 10px; margin-top: 14px; }
.layer-map-rail-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ly-hair); border-radius: 999px;
  background: var(--ly-tint-2);
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
}
.layer-map-rail-pill:hover {
  box-shadow: 0 3px 10px rgba(24,36,45,.10);
  transform: translateY(-1px);
}
.layer-map-rail-no {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ly-text);
}
.layer-map-rail-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.layer-map-rail-count { font-size: 11px; color: #5f6e76; white-space: nowrap; }

/* ── 11.1.11 层间菱形连接 ◆ ── */
.layer-step {
  display: flex; align-items: center; gap: 14px;
  margin: 30px 2px;
  color: var(--market-gold);
  font-size: 11px; line-height: 1;
}
.layer-step::before,
.layer-step::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.layer-step::after { background: linear-gradient(90deg, var(--line), transparent); }

/* ── 11.1.3 层块骨架（左侧 2px 层级色竖条 = 递进方向） ── */
.layer {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--ly-hair);
  border-left: 2px solid var(--ly);
  border-radius: var(--ly-radius);
  scroll-margin-top: calc(var(--header-height) + 96px);
}

/* ── 11.1.3 层头（深色渐变 + 质感纹理；任何断点都不折叠） ── */
.layer-head {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 28px; flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--ly-head);
  border-radius: calc(var(--ly-radius) - 1px) calc(var(--ly-radius) - 1px) 0 0;
}
.layer-head::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px),
    radial-gradient(120% 160% at 88% -40%, rgba(201,162,75,.20), transparent 58%);
}
.layer-head > * { position: relative; z-index: 1; }
.layer-ord {
  flex: none;
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.layer-ord-kicker {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .24em; line-height: 1;
  color: rgba(255,255,255,.66);
}
.layer-ord-num {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 42px; font-weight: 700; letter-spacing: .02em; line-height: 1;
  color: var(--ly-gold);
}
.layer-head-main { flex: 1 1 320px; min-width: 0; }
.layer-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 34px; font-weight: 700; letter-spacing: .06em; line-height: 1.22;
  color: #fff;
}
.layer-en {
  display: block; margin-top: 10px;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11.5px; font-weight: 400; letter-spacing: .26em; line-height: 1;
  color: rgba(255,255,255,.72);
}
.layer-tagline {
  margin: 10px 0 0; max-width: 34em;
  font-size: 14px; letter-spacing: .01em; line-height: 1.75;
  color: rgba(255,255,255,.80);
}
.layer-head-meta {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.layer-count {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; line-height: 1;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
}
.layer-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border: 1px solid rgba(255,255,255,.38); border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.layer-toggle:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
.layer-toggle-arrow { font-size: 11px; line-height: 1; }

/* ── 11.1.4 风险徽章三档（形状随层递进：空心 1px → 浅底 1.5px → 实心 2px）
   浅底语境（总图阶梯）按 10.6 实测配色；层头深底另给 on-dark 版本 ── */
.risk-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  white-space: nowrap;
}
.risk-badge--low {
  background: transparent;
  border: 1px solid #2c5c86;
  border-radius: 3px;
  color: #2c5c86;
}
.risk-badge--mid {
  background: #f7f2eb;
  border: 1.5px solid #c9a24b;
  border-radius: 3px;
  color: #77510f;
}
.risk-badge--high {
  background: #b83227;
  border: 2px solid #b83227;
  border-radius: 2px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(176,45,36,.30);
}
.layer-head .risk-badge--low {
  border-color: rgba(255,255,255,.60);
  color: #fff;
}
.layer-head .risk-badge--mid {
  background: rgba(255,255,255,.10);
  border-color: var(--ly-gold);
  color: #fff;
}
.layer-head .risk-badge--high {
  background: #c9372c;
  border-color: rgba(255,255,255,.30);
}
/* 风险阶梯：1/3 → 2/3 → 3/3 填充（色盲可读的第二编码） */
.risk-steps { display: inline-flex; gap: 3px; }
.risk-steps i {
  width: 10px; height: 4px; border-radius: 2px;
  background: rgba(24,36,45,.14);
}
.risk-steps i.on { background: var(--ly-text); }
.layer-head .risk-steps i { background: rgba(255,255,255,.22); }
.layer-head .risk-steps i.on { background: var(--ly-gold); }

/* ── 11.1.5 事实条（纸色底承接编辑式排版：赚什么钱 / 持仓周期 / 押注前提） ── */
.layer-facts {
  display: grid;
  grid-template-columns: 1.05fr .85fr 1.35fr;
  gap: 0 22px;
  padding: 14px 26px;
  background: var(--ly-tint);
  border-bottom: 1px solid var(--ly-hair);
}
.layer-fact {
  display: flex; flex-direction: column; gap: 5px;
  padding-left: 22px;
  border-left: 1px solid rgba(24,36,45,.10);
  min-width: 0;
}
.layer-fact:first-child { padding-left: 0; border-left: 0; }
.layer-fact-label {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1;
  color: var(--ly-text);
}
.layer-fact-value {
  font-size: 15px; font-weight: 500; line-height: 1.65;
  color: #2b363e;
}
.layer-fact-value.is-key { font-weight: 700; }
.layer-fact-value.is-key::before {
  content: "\25C6";
  margin-right: 6px;
  font-size: 8px;
  vertical-align: 2px;
  color: var(--ly-gold);
}
.layer-fact-note { font-size: 12.5px; line-height: 1.6; color: #47565f; }
.layer-fact-bound {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--ly);
  font-size: 12.5px; line-height: 1.7;
  color: #47565f;
}

/* ── 11.1.6 收益来源光谱（位置由数据层 --pos 给出，非装饰彩虹条） ── */
.layer-spectrum {
  margin: 16px 0 0;
  padding: 0 26px;
}
.layer-spectrum-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 9px;
}
.layer-spectrum-title {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: var(--ly-text);
}
.layer-spectrum-cap {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px; font-weight: 500; letter-spacing: .20em; line-height: 1;
  text-transform: uppercase;
  color: #7d8890;
}
.layer-spectrum-track {
  position: relative;
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--spec-app) 16%, #fff) 0%,
    var(--spec-axis) 50%,
    color-mix(in srgb, var(--spec-spread) 16%, #fff) 100%);
  box-shadow: inset 0 0 0 1px rgba(24,36,45,.08);
}
.layer-spectrum-band {
  position: absolute; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--ly);
  opacity: .34;
  box-shadow: inset 0 0 0 1px var(--ly);
}
.layer-spectrum-band-label {
  position: absolute; top: -24px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  color: var(--ly-text);
}
.layer-spectrum-pin {
  position: absolute; top: 50%;
  left: calc(var(--pos) * 100%);
  transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--pin-color, var(--ly));
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(24,36,45,.25);
}
.layer-spectrum-pin::after {
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 1px; height: 12px;
  background: var(--pin-color, var(--ly));
  opacity: .5;
}
.layer-spectrum-pin-label {
  position: absolute; top: -26px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  color: var(--pin-color, var(--ly-text));
}
.layer-spectrum-scale {
  position: relative;
  height: 15px; margin-top: 7px;
}
.layer-spectrum-scale i {
  position: absolute; top: 0;
  width: 1px; height: 5px;
  background: var(--spec-axis-line);
}
.layer-spectrum-scale i::after {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px; font-weight: 500; letter-spacing: .08em; line-height: 1;
  color: #5f6e76;
}
.layer-spectrum-scale i:nth-child(1)::after { content: "0"; }
.layer-spectrum-scale i:nth-child(2)::after { content: "50"; }
.layer-spectrum-scale i:nth-child(3)::after { content: "100"; }
.layer-spectrum-scale i:nth-child(1)::after { left: 0; transform: none; }
.layer-spectrum-scale i:nth-child(3)::after { left: auto; right: 0; transform: none; }

/* ── 11.1.7 层内分组头（编辑式：编号 + 衬线组名 + 英文 + 说明 + 光谱位 + 计数） ── */
.layer-body { padding: 18px 18px 0; }
.layer-group { margin-bottom: 26px; }
.layer-group-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 22px; flex-wrap: wrap;
  padding: 11px 16px 11px 14px;
  background: linear-gradient(90deg, var(--ly-tint-2) 0%, #fff 62%);
  border: 1px solid var(--ly-hair);
  border-radius: 10px;
}
.layer-group-head-left {
  flex: 1 1 300px; min-width: 0;
  display: flex; align-items: baseline; gap: 12px;
}
.layer-group-head-left::after {
  content: "";
  flex: 1 1 40px; min-width: 24px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--ly-hair) 0 4px, transparent 4px 9px);
}
.layer-group-no {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: .02em; line-height: 1;
  color: var(--ly-text);
}
.layer-group-titles { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.layer-group-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 24px; font-weight: 700; letter-spacing: .03em; line-height: 1.2;
  color: #1d2a33;
  white-space: nowrap;
}
.layer-group-en {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px; letter-spacing: .24em; line-height: 1;
  text-transform: uppercase;
  color: #5f6e76;
}
.layer-group-head-right {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px 16px; flex-wrap: wrap;
}
.layer-group-note {
  margin: 0; max-width: 560px;
  font-size: 14px; line-height: 1.65;
  color: #47565f;
}
.layer-group-count {
  padding: 4px 12px; border-radius: 999px;
  background: var(--ly-deep); color: #fff;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11.5px; letter-spacing: .1em; line-height: 1;
  white-space: nowrap;
}
/* 中层专属：组 = 光谱上的一个位置 */
.layer-group-spectrum {
  display: inline-flex; align-items: center; gap: 8px;
}
.layer-group-spectrum-track {
  position: relative;
  width: 120px; height: 6px; border-radius: 999px;
  background: var(--spec-axis);
  box-shadow: inset 0 0 0 1px rgba(24,36,45,.08);
}
.layer-group-spectrum-track .band {
  position: absolute; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--ly);
  opacity: .38;
}
.layer-group-spectrum-track .pin {
  position: absolute; top: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ly);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff;
}
/* 组内网格：层密度三档（gap/pad 由 --ly-* 递进） */
.layer-group .strategy-ref-grid {
  margin-top: 12px;
  padding: 14px;
  gap: var(--ly-gap);
  background: color-mix(in srgb, var(--ly) 3.5%, #fcfdfd);
  border: 1px solid color-mix(in srgb, var(--ly) 12%, #e9eef1);
  border-radius: 12px;
}

/* ── 11.1.8 特征关键词（三级判读材料，静态不可交互） ── */
.kw-set {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 10px;
}
.kw-set-label {
  margin-right: 8px;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; line-height: 1;
  color: #5f6e76;
}
.kw-chip {
  display: inline-block;
  font-family: inherit;
  /* 静态判读材料：不加 cursor/hover/role（v39 无筛选 UI，不承诺不存在的行为） */
}
.kw-set--layer .kw-chip {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--ly-hair);
  background: transparent;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: var(--ly-text);
}
.kw-set--group .kw-chip {
  padding: 4px 10px; border-radius: 999px;
  background: var(--ly-tint-2);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: var(--ly-text);
}
.kw-set--strategy .kw-chip {
  padding: 3px 9px; border-radius: 5px;
  border: 1px solid rgba(24,36,45,.12);
  background: transparent;
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em; line-height: 1;
  color: #47565f;
}
.layer > .kw-set--layer { margin: 14px 26px 0; }
/* 预留：客户端筛选启用时才打开（v39 不启用） */
.kw-chip[aria-pressed="true"] {
  background: var(--ly-text, var(--ink));
  color: #fff;
  border-color: transparent;
}

/* ── 11.1.9 指标条（文字一律在轨道外侧：轨道上放字对比度不足） ── */
.layer-meter {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
}
.layer-meter-label {
  flex: none; min-width: 64px;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--ly-text);
}
.layer-meter-track {
  flex: 1 1 auto;
  height: var(--meter-h, 5px);
  border-radius: 999px;
  background: #e2e5e6;
  overflow: hidden;
}
.layer-meter-fill {
  height: 100%; border-radius: 999px;
  background: var(--ly);
}
.layer-meter-fill.up { background: var(--market-red); }
.layer-meter-fill.down { background: var(--market-green); }
.layer-meter-val {
  flex: none; min-width: 56px;
  text-align: right;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #2b363e;
}

/* ── 11.1.11 折叠态（层头永不折叠；折叠只收 .layer-body，留单行摘要） ── */
.layer-preview {
  display: none;
  margin: 2px 4px 0;
  font-size: 13px; letter-spacing: .02em; line-height: 1.7;
  color: #5f6e76;
}
.layer-body[data-collapsed="true"] > *:not(.layer-preview) { display: none; }
.layer-body[data-collapsed="true"] > .layer-preview { display: block; }
.layer-empty {
  margin: 6px 0 14px;
  padding: 28px 22px;
  text-align: center;
  background: var(--ly-tint);
  border: 1px dashed var(--ly-hair);
  border-radius: 12px;
}
.layer-empty-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
}
.layer-empty-note {
  margin: 8px 0 0;
  font-size: 13px; line-height: 1.7; color: #47565f;
}

/* ── 11.1.12 层内策略卡：复用 .strategy-ref-card/.ref-glance，只调
   密度（gap/pad/radius/shadow）、图幅（16/9→16/7→16/6）、指标三档 ── */
.layer .strategy-ref-grid .strategy-ref-card {
  border-radius: var(--ly-radius);
  box-shadow: var(--ly-shadow);
  padding: 0;
}
.layer .strategy-ref-grid .strategy-ref-card > .card-header,
.layer .strategy-ref-grid .strategy-ref-card > .card-body {
  padding: var(--ly-pad);
}
/* 层内卡片改纵向（head/media/body），图幅才能按层递进 */
.layer .strategy-ref-grid .strategy-ref-card:not(.guorn-card) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "media" "body";
}
.layer .strategy-ref-grid .strategy-ref-card:not(.guorn-card) > .media-frame {
  align-self: start;
  min-height: 0;
}
.layer[data-layer="allocation"] .strategy-ref-card .media-frame { aspect-ratio: 16 / 9; }
.layer[data-layer="style"] .strategy-ref-card .media-frame { aspect-ratio: 16 / 7; }
.layer[data-layer="short"] .strategy-ref-card .media-frame { aspect-ratio: 16 / 6; }
/* 果仁卡在层内同样入列（全局 .guorn-card{grid-column:1/-1} 在此提权收回） */
.layer .strategy-ref-grid > .guorn-card { grid-column: auto; }
.layer[data-layer="allocation"] .ref-glance-val { font-size: 22px; }
.layer[data-layer="style"] .ref-glance-val { font-size: 19px; }
.layer[data-layer="short"] .ref-glance-val { font-size: 17px; }
.layer[data-layer="allocation"] .ref-glance-label { font-size: 12.5px; }
.layer[data-layer="style"] .ref-glance-label { font-size: 12px; }
.layer[data-layer="short"] .ref-glance-label { font-size: 11.5px; }
.layer .strategy-ref-grid[data-count="1"] { grid-template-columns: minmax(0, 720px); }

/* ── 断点 · ≥1920：密度最宽档（L1 3 列 / L2 4 列 / L3 5 列） ── */
.layer[data-layer="allocation"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layer[data-layer="style"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layer[data-layer="short"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1920px) {
  .layer[data-layer="allocation"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layer[data-layer="style"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layer[data-layer="short"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .layer-title { font-size: 36px; }
}

/* ── 断点 · ≤1439：总图收起为 rail；层头改纵向；两列网格 ── */
@media (max-width: 1439px) {
  .layer-title { font-size: 30px; }
  .layer-head { padding: 20px 24px; }
  .layer-ord {
    flex-direction: row; align-items: baseline; gap: 12px;
    padding-right: 0; border-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.22);
  }
  .layer-head { flex-direction: column; align-items: flex-start; }
  .layer-head-meta {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    width: 100%; justify-content: flex-start; gap: 10px 14px;
  }
  .layer-facts { grid-template-columns: 1fr 1fr; }
  .layer-fact:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px dashed rgba(24,36,45,.12); }
  .layer-map-axis, .layer-map-steps { display: none; }
  .layer-map-rail { display: flex; flex-wrap: wrap; }
  .layer[data-layer="allocation"] .layer-group .strategy-ref-grid,
  .layer[data-layer="style"] .layer-group .strategy-ref-grid,
  .layer[data-layer="short"] .layer-group .strategy-ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 断点 · ≤1100：组头两行（说明换行左对齐） ── */
@media (max-width: 1100px) {
  .layer-title { font-size: 26px; }
  .layer-group-head { align-items: flex-start; }
  .layer-group-head-left { flex: 1 1 100%; }
  .layer-group-head-right { justify-content: flex-start; }
  .layer-group-note { text-align: left; max-width: none; flex: 1 1 100%; }
  .layer-spectrum-pin-label { font-size: 10.5px; }
}

/* ── 断点 · ≤767：单列手风琴（层头整块可点）；无横向滚动 ── */
@media (max-width: 767px) {
  .layer-head {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 16px;
    cursor: pointer;
  }
  .layer-ord-num { font-size: 32px; }
  .layer-title { font-size: 22px; }
  .layer-en { margin-top: 8px; font-size: 10px; letter-spacing: .18em; }
  .layer-tagline {
    margin-top: 8px; font-size: 13px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .layer-facts { grid-template-columns: 1fr; padding: 12px 16px; }
  .layer-fact {
    border-left: 0;
    border-top: 1px dashed rgba(24,36,45,.12);
    padding-left: 0; padding-top: 8px;
  }
  .layer-fact:first-child { border-top: 0; padding-top: 0; }
  .layer-fact:nth-child(3) { padding-top: 8px; }
  .layer-fact-value { font-size: 13.5px; }
  .layer > .kw-set--layer { margin: 12px 16px 0; }
  .layer-spectrum { padding: 0 16px; }
  .layer-spectrum-track { height: 8px; }
  /* pin 标签移到轨道下方横排（避免互相压叠），刻度行让位防撞 */
  .layer-spectrum-pin-label {
    top: 18px;
    transform: translateX(-50%);
    font-size: 10.5px;
    text-align: center;
  }
  .layer-spectrum-scale { margin-top: 26px; }
  .layer-body { padding: 14px 12px 0; }
  .layer-group-head { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
  .layer-group-no { font-size: 24px; }
  .layer-group-title { font-size: 19px; }
  .layer-group-head-left::after { display: none; }
  .layer-group-count { align-self: flex-start; }
  .layer-group .strategy-ref-grid { padding: 10px; gap: 12px; }
  .layer[data-layer="allocation"] .layer-group .strategy-ref-grid,
  .layer[data-layer="style"] .layer-group .strategy-ref-grid,
  .layer[data-layer="short"] .layer-group .strategy-ref-grid { grid-template-columns: minmax(0, 1fr); }
  .layer-map { padding: 18px 16px 14px; margin-bottom: 24px; }
  .layer-map-title { font-size: 22px; }
  .layer-map-note { font-size: 12.5px; }
  .layer-step { margin: 22px 2px; }
}

/* ── 断点 · ≤480：极窄屏收紧 ── */
@media (max-width: 480px) {
  .layer-ord-num { font-size: 28px; }
  .layer-title { font-size: 20px; }
  .layer-head-meta { gap: 8px 10px; }
  .layer-toggle { padding: 6px 12px; font-size: 12px; }
  .layer-map-rail-pill { padding: 8px 12px; gap: 6px; }
  .layer-map-rail-name { font-size: 12px; }
  .layer-group-spectrum-track { width: 84px; }
  .kw-set--layer .kw-chip { padding: 4px 9px; font-size: 11.5px; }
}

/* ===== v39.1 验收修正（2026-10-26） =====
   层内卡片媒体走 16/9→16/6 信笺图幅（object-fit:contain 图表），
   老装裱金角标叠在白边上像残片（且右下角被 MODEL 徽章遮住只剩左上一角）。
   v39 层内隐藏；旧页面（family/model-card）保留原装饰。 */
.layer .strategy-ref-card .media-frame::before {
  content: none;
}

/* ===== v39.2 验收修正（2026-10-26） =====
   果仁卡 4 段切换器（调仓表/大盘牛熊/持仓/收益曲线）在 390px 视口下
   343px > 卡内 307px 溢出。旧的 ≤480 小切换器规则（.strategy-switch，0,1,0）
   被 .strategy-ref-card .strategy-switch（0,2,0）压过形同虚设——此处以同等
   特异度补断点，并给切换器加横滚兜底（≤360 极窄屏 4 段仍放不下）。 */
@media (max-width: 768px) {
  .strategy-ref-card .strategy-switch {
    font-size: 12.5px; padding: 8px 11px;
  }
  .strategy-ref-card .strategy-switcher,
  .strategy-ref-card .strategy-toolbar {
    max-width: 100%; overflow-x: auto;
  }
}
@media (max-width: 480px) {
  .strategy-ref-card .strategy-switch {
    font-size: 12px; padding: 7px 9px;
  }
}

/* ===== v39.3 验收修正（2026-10-26） =====
   移动端层头三处细节：
   1) .layer-head-main 桌面行布局 flex-basis:320px 合理，但层头在 ≤768
      转纵向后 basis 作用于高度，层头多出约 200px 空档（meta 被推到底部）。
   2) 副标题 line-clamp:1 把句子截成"…成长、…"，放宽 2 行。
   3) 光谱标题「收益来源」窄屏中间断字，nowrap。 */
@media (max-width: 768px) {
  .layer-head-main { flex: 1 1 auto; }
  .layer-tagline {
    -webkit-line-clamp: 2;
  }
  .layer-spectrum-title { white-space: nowrap; }
}

/*── v39.4 · 双视图切换器（三层体系 / 四大流派并存对比）───────────────────*/
.model-view-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 2px 0 24px;
}
.model-view-seg {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-muted);
  padding: 3px;
}
.model-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.model-view-btn:hover { color: var(--ink); }
.model-view-btn.active {
  background: var(--ink);
  color: #fff;
}
.model-view-btn:focus-visible { outline: 2px solid var(--market-blue); outline-offset: 2px; }
.model-view-note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--slate);
}
@media (max-width: 767px) {
  .model-view-switch { gap: 10px; margin-bottom: 18px; }
  .model-view-btn { font-size: 12.5px; padding: 7px 13px; }
  .model-view-note { font-size: 11.5px; }
}

/* v40：参考图式策略发现页；仅作用于投资体系视图与独立组件。 */
.strategy-view-host { background: #fff; border-bottom: 1px solid #dce4ee; }
.strategy-view-host .model-view-switch { max-width: 1320px; margin: 0 auto; padding: 10px 28px; justify-content: space-between; }
body[data-strategy-view="layers"] .page-main { max-width: 1320px; padding: 22px 28px 30px; }
.reference-catalog { display: grid; gap: 16px; }
.reference-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.reference-intro { padding: 23px 0 16px 9px; color: #123855; }
.reference-icon { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.reference-intro h2 { margin: 8px 0 4px; font: 700 25px/1.4 "Noto Serif SC", SimSun, serif; color: #122a43; }
.reference-intro p { font-size: 13px; margin: 0 0 12px; color: #42566b; }
.reference-category { display: inline-block; border-radius: 20px; background: #e5ecf4; color: #566a7e; font-size: 11px; padding: 4px 12px; }
.reference-row--short .reference-intro > .reference-icon { color: #aa5818; }
.reference-row-main, .reference-entries, .reference-entry, .reference-entry-copy { min-width: 0; }
.reference-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reference-entry { --entry-color: #164c9e; --entry-light: #2c6dc4; border: 1px solid #d9e3ef; background: #fff; border-radius: 9px; overflow: hidden; box-shadow: 0 3px 12px #193d6710; }
.reference-entry--teal { --entry-color: #086973; --entry-light: #14929a; }
.reference-entry--amber { --entry-color: #8b3e16; --entry-light: #b16a26; }
.reference-entry-cover { display: flex; align-items: center; gap: 16px; padding: 19px 22px; color: #e8f1fb; position: relative; overflow: hidden; background: linear-gradient(115deg, var(--entry-color), var(--entry-light)); }
.reference-entry-cover::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 230px; height: 130px; opacity: .13; background: repeating-linear-gradient(90deg, transparent 0 14px, #fff 14px 22px); transform: rotate(-29deg); pointer-events: none; }
.reference-entry-titles { position: relative; z-index: 1; }
.reference-entry h3 { margin: 0 0 5px; color: #fff; font: 700 23px/1.4 "Noto Serif SC", SimSun, serif; }
.reference-entry-cover p { color: #e0eaf6; margin: 0; font-size: 13px; letter-spacing: .06em; }
.reference-entry-copy { padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 10px; }
.reference-entry-description { flex-basis: 100%; margin: 0; color: #3f5265; font-size: 14px; line-height: 1.8; }
.reference-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-tags span { border-radius: 15px; padding: 4px 9px; background: #f0f3f7; color: #5c6b7c; font-size: 11px; }
.reference-action { margin-left: auto; border: 0; border-radius: 5px; background: var(--entry-color); color: #fff; padding: 11px 15px; min-height: 44px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; cursor: pointer; box-shadow: 0 2px 5px #15365518; }
.reference-action::after { content: " →"; margin-left: 9px; }
.reference-action:hover, .reference-action[aria-expanded="true"] { filter: brightness(1.15); }
.reference-action:focus-visible, .reference-detail button:focus-visible { outline: 3px solid #b98d3b; outline-offset: 3px; }
.reference-entry-note { color: #7c552f; font-size: 12px; margin: 0; flex-basis: 100%; }
.reference-row:not(.reference-row--allocation) .reference-entries { grid-template-columns: minmax(0, 1fr); }
.reference-row:not(.reference-row--allocation) .reference-entry { display: grid; grid-template-columns: 43% minmax(0, 1fr); min-height: 170px; }
.reference-row:not(.reference-row--allocation) .reference-entry-cover { padding: 24px; }
.reference-row:not(.reference-row--allocation) .reference-entry-cover > .reference-icon { display: none; }
.reference-row:not(.reference-row--allocation) .reference-entry h3 { font-size: 29px; }
.reference-detail { margin-top: 16px; padding: 18px; border: 1px solid #d3dfeb; background: #eaf0f6; border-radius: 9px; }
.reference-detail[hidden] { display: none; }
.reference-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.reference-detail-head h3 { font-size: 19px; margin: 0; }
.reference-detail-head > span { font-size: 12px; color: #5c6b7c; }
.reference-detail-head > button { margin-left: auto; }
.reference-detail .layer-group { margin-bottom: 18px; }
body[data-strategy-view="layers"] .reference-detail .strategy-ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 16px; }
.reference-detail .strategy-ref-grid .strategy-ref-card:not(.guorn-card) { display: flex; flex-direction: column; height: auto; }
.reference-detail .strategy-ref-card > .media-frame { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
/* 结构化表格/曲线不是封面图，不能继承详情卡的固定图片比例。 */
.reference-detail .strategy-ref-card > .media-frame.data-mode { aspect-ratio: auto; }
.strategy-ref-card .media-frame.data-mode::after { content: none; }
.reference-detail .strategy-ref-card > .card-body { flex: 1 1 auto; }
.reference-detail .media-frame::before { content: none; }
.reference-empty { margin: 0; color: #526477; }
.reference-ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 0 14px; border-top: 1px solid #dce4ee; gap: 18px 0; }
.reference-ideas h2 { grid-column: 1 / -1; color: #45586b; font-size: 13px; margin: 0 0 2px; letter-spacing: .08em; }
.reference-idea { display: flex; align-items: center; gap: 13px; padding: 0 18px; border-left: 1px solid #dce4ee; color: #1a4860; }
.reference-idea:nth-child(2) { padding-left: 0; border-left: 0; }
.reference-idea span, .reference-idea strong, .reference-idea small { display: block; }
.reference-idea span { font-size: 12px; color: #536579; }
.reference-idea strong { font-size: 14px; color: #21394f; margin: 3px 0; }
.reference-idea small { font-size: 11px; color: #617183; }
.reference-disclaimer { margin: 0; text-align: center; font-size: 11px; color: #6a7989; line-height: 1.8; }
@media (max-width: 1100px) {
  .reference-row { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
  .reference-entry h3 { font-size: 20px; }
  .reference-entry-cover { padding: 18px 16px; gap: 10px; }
  .reference-action { margin-left: 0; }
  .reference-row:not(.reference-row--allocation) .reference-entry h3 { font-size: 25px; }
}
@media (max-width: 767px) {
  .strategy-view-host .model-view-switch { padding: 10px 16px; gap: 7px; }
  .strategy-view-host .model-view-note { font-size: 10px; }
  body[data-strategy-view="layers"] .page-main { padding: 16px 16px 25px; }
  .reference-catalog { gap: 22px; }
  .reference-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .reference-intro { padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; }
  .reference-intro > .reference-icon { width: 27px; height: 27px; }
  .reference-intro h2 { font-size: 23px; margin: 0; }
  .reference-intro p { margin: 0; font-size: 12px; }
  .reference-category { margin-left: 36px; }
  .reference-entries { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .reference-entry h3 { font-size: 22px; }
  .reference-entry-cover { padding: 19px 16px; }
  .reference-entry-copy { padding: 16px; gap: 12px; }
  .reference-entry-description { font-size: 14px; }
  .reference-action { margin-left: auto; }
  .reference-row:not(.reference-row--allocation) .reference-entry { grid-template-columns: minmax(0, 1fr); }
  .reference-row:not(.reference-row--allocation) .reference-entry-cover { padding: 23px 18px; min-height: 116px; }
  .reference-row:not(.reference-row--allocation) .reference-entry h3 { font-size: 27px; }
  .reference-detail { padding: 10px; }
  body[data-strategy-view="layers"] .reference-detail .strategy-ref-grid { grid-template-columns: minmax(0, 1fr); padding: 7px; }
  .reference-detail .layer-group-head { padding: 12px; }
  .reference-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .reference-idea { padding: 0 9px; gap: 8px; }
  .reference-idea:nth-child(even) { padding-left: 0; border-left: 0; }
  .reference-idea > .reference-icon { width: 29px; height: 29px; }
  .reference-idea span { font-size: 10px; }
  .reference-idea strong { font-size: 12px; }
  .reference-idea small { font-size: 10px; }
}
/* 策略工作台：编辑式研究页面，统一网格与三个研究尺度。 */
body[data-section="strategy-showcase"] { --header-height: 68px; background: #f5f5f2; }
body[data-section="strategy-showcase"] .site-header { padding: 0 32px; }
body[data-section="strategy-showcase"] .brand-emblem { width: 38px; height: 38px; }
body[data-section="strategy-showcase"] .brand-name { font: 700 19px/1.1 "Microsoft YaHei", sans-serif; }
body[data-section="strategy-showcase"] .brand-mark { font-size: 12px; }
body[data-section="strategy-showcase"] .module-tab { padding: 0 18px; font-size: 15px; }
body[data-section="strategy-showcase"] .channel-hero { display: block; background: #fff; border-bottom: 1px solid #dddeda; }
body[data-section="strategy-showcase"] .hero-inner { max-width: 1280px; padding: 28px 0 24px; }
body[data-section="strategy-showcase"] .hero-title { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 38px; }
body[data-section="strategy-showcase"] .hero-art { opacity: .28; }
.strategy-editorial-intro { margin: 12px 0 0; font-size: 16px; line-height: 1.8; color: #52616a; }
body[data-section="strategy-showcase"] .strategy-view-host { max-width: 1280px; margin: 0 auto; padding: 16px 0; background: transparent; border: 0; }
body[data-section="strategy-showcase"] .model-view-switch { padding: 0; }
body[data-section="strategy-showcase"] .model-view-btn.active { background: #18242d; color: #fff; border-color: #18242d; }
body[data-strategy-view="layers"] .page-main { max-width: 1280px; padding: 0 0 30px; }
.reference-catalog { gap: 24px; }
.reference-row { display: block; position: relative; }
.reference-intro { position: relative; width: 100%; margin: 0 auto; padding: 18px 28px 12px; background: #fff; border: 1px solid #dcded9; border-bottom: 0; border-radius: 8px 8px 0 0; color: #18242d; }
.reference-intro h2 { display: inline-block; margin: 0 14px 0 0; color: #18242d; font: 700 26px/1.5 "Noto Serif SC", "Songti SC", SimSun, serif; }
.reference-intro p { display: inline; margin: 0; color: #52616a; font-size: 14px; }
.pyramid-level { display: inline-block; margin-right: 10px; color: #b8443a; font: 600 14px/1.4 Consolas, monospace; }
.reference-category { display: inline-block; margin: 0 14px 0 0; padding: 0; background: transparent; color: #9a463d; border-radius: 0; font: 600 12px/1.5 Consolas, monospace; letter-spacing: .1em; }
.reference-entries { width: 100%; margin: auto; padding: 0 28px 22px; gap: 20px; background: #fff; border: 1px solid #dcded9; border-top: 0; border-bottom: 3px solid #b7a27e; border-radius: 0 0 8px 8px; }
.reference-row--style .reference-intro, .reference-row--style .reference-entries,
.reference-row--short .reference-intro, .reference-row--short .reference-entries { width: 100%; }
.reference-entry { --entry-color: #92362e; --entry-light: #92362e; border: 0; border-top: 1px solid #e1e3df; border-radius: 0; box-shadow: none; background: transparent; }
.reference-entry--teal, .reference-entry--amber { --entry-color: #92362e; }
.reference-entry-cover { gap: 13px; padding: 17px 0 7px; color: #987948; background: transparent; }
.reference-entry-cover::after { content: none; }
.reference-entry-cover > .reference-icon { width: 30px; height: 30px; stroke-width: 1.4; }
.reference-entry h3, .reference-row:not(.reference-row--allocation) .reference-entry h3 { color: #18242d; font: 700 21px/1.5 "Microsoft YaHei", sans-serif; }
.reference-entry-cover p { color: #52616a; font-size: 14px; letter-spacing: 0; }
.reference-entry-copy { padding: 8px 0 0; gap: 12px; }
.reference-entry-description { color: #45545e; font-size: 15px; line-height: 1.8; }
.reference-tags span { background: #f3f3ef; color: #53616a; font-size: 12px; border-radius: 3px; }
.reference-action { background: #fff; color: #92362e; border: 1px solid #d4b3a8; box-shadow: none; font-size: 14px; padding: 10px 16px; min-height: 44px; }
.reference-action:hover, .reference-action[aria-expanded="true"] { background: #f7e8e5; filter: none; }
.reference-row:not(.reference-row--allocation) .reference-entry { display: block; min-height: 0; }
.reference-row:not(.reference-row--allocation) .reference-entry-cover { padding: 16px 0 6px; min-height: 0; }
.reference-row--style .reference-entry-cover, .reference-row--style .reference-entry-description, .reference-row--style .reference-tags { display: none; }
.reference-row--short .reference-entry-description { max-width: 100%; }
.reference-entry-note { color: #885528; font-size: 14px; }
.style-barbell { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 100px; width: 100%; padding: 14px 28px 0; }
.style-barbell::before { content: ""; position: absolute; top: 57px; left: 22%; right: 22%; height: 2px; background: #b8a078; }
.style-node { position: relative; min-height: 100px; padding: 12px; border: 1px solid #c9b59c; border-radius: 6px; background: #fcfaf6; color: #18242d; cursor: pointer; font-family: inherit; }
.style-node strong, .style-node span, .style-node small { display: block; }
.style-node strong { font: 700 24px/1.5 "Noto Serif SC", SimSun, serif; }
.style-node span { font-size: 12px; color: #6b5942; letter-spacing: .1em; }
.style-node small { font-size: 13px; color: #92362e; margin-top: 6px; }
.style-node--microcap { grid-column: 1/-1; justify-self: center; width: 42%; margin-top: 16px; min-height: 82px; border-style: dashed; }
.style-node--microcap::before { content: ""; position: absolute; width: 1px; height: 26px; background: #b8a078; left: 50%; bottom: 100%; }
.style-node:hover, .style-node[aria-pressed="true"] { border-color: #b8443a; background: #f7e8e5; }
.style-allocation-note { margin: 0; flex: 1 1 60%; font-size: 13px; color: #596770; line-height: 1.7; }
.reference-style-note { font-size: 14px; color: #52616a; }
.reference-detail { width: 100%; background: #eef0ec; border: 1px solid #d5d9d2; padding: 20px; border-radius: 8px; }
.reference-detail-head > span, .reference-empty { font-size: 14px; }
.reference-ideas { display: grid; margin-top: 26px; padding: 22px 0; border-top: 1px solid #d9ddd7; gap: 18px 0; }
.reference-ideas h2 { color: #263531; font-size: 15px; letter-spacing: .04em; }
.reference-idea { color: #a04438; border-color: #e1e2dc; }
.reference-idea span { color: #58625e; }
.reference-idea strong { color: #263531; }
.reference-idea small { color: #59645f; }
.reference-disclaimer { border-top: 1px solid #d9ddd7; padding-top: 20px; font-size: 13px; color: #596770; }
@media (max-width: 900px) {
  body[data-section="strategy-showcase"] .strategy-view-host, body[data-strategy-view="layers"] .page-main { width: calc(100% - 32px); }
  .reference-row--style .reference-intro, .reference-row--style .reference-entries,
  .reference-row--short .reference-intro, .reference-row--short .reference-entries { width: 100%; }
  .reference-intro p { display: block; margin-top: 5px; }
}
@media (max-width: 600px) {
  body[data-section="strategy-showcase"] .site-header { padding: 10px 16px 0; }
  body[data-section="strategy-showcase"] .brand-name { font-size: 17px; }
  body[data-section="strategy-showcase"] .module-tab { padding: 0 12px; font-size: 14px; }
  body[data-section="strategy-showcase"] .hero-inner { width: calc(100% - 32px); padding: 22px 0; }
  body[data-section="strategy-showcase"] .hero-title { font-size: 30px; }
  .strategy-editorial-intro { font-size: 16px; max-width: 21em; }
  body[data-section="strategy-showcase"] .model-view-switch { flex-wrap: wrap; gap: 10px; }
  body[data-section="strategy-showcase"] .model-view-note { font-size: 13px; line-height: 1.7; }
  .reference-catalog { gap: 18px; }
  .reference-intro, .reference-row--style .reference-intro, .reference-row--short .reference-intro { width: 100%; display: block; padding: 17px 16px 12px; }
  .reference-intro h2 { display: block; font-size: 25px; margin: 5px 0; }
  .reference-intro p { font-size: 14px; line-height: 1.8; }
  .reference-category { font-size: 12px; margin: 0; }
  .reference-entries, .reference-row--style .reference-entries, .reference-row--short .reference-entries { width: 100%; padding: 0 16px 18px; }
  .reference-row--style .reference-intro, .reference-row--style .reference-entries,
  .reference-row--short .reference-intro, .reference-row--short .reference-entries { width: 100%; }
  .reference-entry h3, .reference-row:not(.reference-row--allocation) .reference-entry h3 { font-size: 20px; }
  .reference-entry-copy { padding: 8px 0 0; }
  .reference-entry-description, .reference-entry-cover p { font-size: 16px; }
  .reference-action { margin-left: 0; font-size: 15px; }
  .reference-tags span { font-size: 13px; }
  .style-barbell { gap: 0 32px; padding: 12px 0 0; }
  .style-node { padding: 12px 4px; }
  .style-node--microcap { width: 52%; }
  .style-allocation-note, .reference-entry-note, .reference-style-note { font-size: 14px; }
  .reference-detail { padding: 10px; }
  .reference-detail-head { align-items: flex-start; }
  .reference-disclaimer { text-align: left; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-catalog *, .strategy-view-host * { scroll-behavior: auto; transition: none; }
}
/* v42 · 组合画布：层次来自构图，不来自缩框。 */
body[data-strategy-view="layers"] { background: #f6f5f1; }
.reference-catalog { gap: 48px; padding-top: 12px; }
.reference-row .reference-intro, .reference-row .reference-entries { width: 100%; border: 0; border-radius: 0; background: transparent; }
.reference-row .reference-intro { padding: 0 0 20px; border-top: 1px solid #cdd1cd; padding-top: 22px; }
.reference-intro h2 { font-size: 29px; letter-spacing: .03em; }
.reference-intro p { display: block; margin: 9px 0 0 53px; font-size: 14px; }
.pyramid-level { font-size: 24px; font-weight: 400; margin-right: 16px; color: #a4473c; }
.reference-category { float: right; margin: 12px 0 0; color: #69747a; font-size: 11px; letter-spacing: .2em; }
.reference-row-main { display: grid; grid-template-columns: 1fr; }
.reference-row--allocation .reference-row-main { grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid #dce0dd; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 42px -30px #34474755; }
.allocation-composition { min-height: 346px; position: relative; padding: 34px; overflow: hidden; background: #ecf1ef; border-right: 1px solid #dce0dd; }
.composition-kicker { font: 11px/1.6 Consolas, monospace; letter-spacing: .17em; color: #526d65; }
.allocation-composition h3 { position: relative; z-index: 1; font: 500 32px/1.55 "Noto Serif SC", SimSun, serif; color: #263e36; margin: 15px 0 8px; }
.allocation-composition p { color: #52675e; font-size: 13px; }
.composition-orbits { width: 72%; position: absolute; right: -35px; bottom: 16px; stroke: #7b9d8f; stroke-width: .8; opacity: .75; }
.composition-orbits text { fill: #345e4e; stroke: none; font: 12px sans-serif; }
.composition-orbits .orbit-core { fill: #dce8df; }
.composition-orbits .orbit-point { fill: #a97544; stroke: #f7f5ec; stroke-width: 3; }
.composition-footnote { position: absolute; bottom: 19px; left: 34px; color: #536a60; font-size: 11px; }
.reference-row--allocation .reference-entries { display: grid; grid-template-columns: 1fr; padding: 8px 32px; gap: 0; }
.reference-row--allocation .reference-entry { border: 0; padding: 15px 0; }
.reference-row--allocation .reference-entry + .reference-entry { border-top: 1px solid #e3e6e2; }
.reference-row--allocation .reference-entry-cover { padding: 0; }
.reference-entry-cover > .reference-icon { width: 25px; height: 25px; }
.reference-row--allocation .reference-entry h3 { font-size: 19px; }
.reference-row--allocation .reference-entry-cover p, .reference-row--allocation .reference-entry-description, .reference-row--allocation .reference-tags { display: none; }
.reference-action { border: 0; border-bottom: 1px solid #c9a394; border-radius: 0; padding: 8px 0; background: transparent; color: #943c31; min-height: 42px; font-size: 14px; }
.reference-action:hover { background: transparent; border-color: #92362e; }
.reference-row--allocation .reference-entry-copy { padding-top: 6px; }
.reference-row--style .reference-entries { padding: 0; }
.reference-row--style .reference-entry { border: 0; }
.reference-row--style .reference-entry-copy { padding: 0; gap: 15px; }
.style-barbell { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 54px; padding: 18px 0; position: relative; align-items: center; }
.style-barbell::before { left: 10%; right: 10%; top: 50%; height: 3px; background: linear-gradient(90deg,#426c73,#bfaa7b,#b8624d); }
.style-node, .style-node--microcap { grid-column: auto; width: 100%; margin: 0; min-height: 164px; padding: 24px 20px; border: 1px solid #d7deda; border-radius: 8px; background: #fafffd; text-align: left; box-shadow: 0 9px 25px -21px #203931; transition: transform .2s, box-shadow .2s; }
.style-node--growth { background: #edf3f4; border-top: 3px solid #426c73; }
.style-node--value { background: #f6f2e9; border-top: 3px solid #ad915c; }
.style-node--microcap { background: #f7eeea; border-top: 3px solid #b8624d; }
.style-node--microcap::before { content: none; }
.style-node strong { font-size: 29px; letter-spacing: .1em; }
.style-node span { margin-top: 6px; font-size: 11px; letter-spacing: .18em; color: #5b686b; }
.style-node small { margin-top: 20px; font-size: 13px; }
.style-node:hover, .style-node[aria-pressed="true"] { transform: translateY(-3px); box-shadow: 0 12px 28px -20px #29483f88; border-color: #a44a3e; }
.reference-row--short .reference-entries { padding: 0; }
.reference-row--short .reference-entry { display: grid; grid-template-columns: 1fr 1fr; background: #efeee8; border: 1px solid #dddcd3; border-left: 3px solid #9b5144; padding: 24px 30px; border-radius: 6px; gap: 20px; }
.reference-row--short .reference-entry-cover { padding: 0; }
.reference-row--short .reference-entry h3 { font-size: 22px; }
.reference-row--short .reference-entry-copy { padding: 0; }
.reference-row--short .reference-entry-description, .reference-row--short .reference-tags { display: none; }
.reference-entry-note { margin: 0; color: #655c4c; }
.reference-detail { grid-column: 1/-1; border-radius: 0; border: 0; border-top: 1px solid #d8ded7; margin-top: 20px; background: #f0f1ec; }
.reference-detail[hidden] { display: none; }
@media(max-width: 700px) {
 .reference-catalog { gap: 32px; }
 .reference-intro h2 { font-size: 24px; }
 .reference-row .reference-intro { padding: 20px 0 16px; }
 .reference-intro p { margin-left: 0; font-size: 14px; }
 .pyramid-level { font-size: 19px; margin-right: 9px; }
 .reference-category { font-size: 10px; margin-top: 9px; }
 .reference-row--allocation .reference-row-main { grid-template-columns: 1fr; }
 .allocation-composition { min-height: 265px; padding: 25px; border-right: 0; border-bottom: 1px solid #dce0dd; }
 .allocation-composition h3 { font-size: 27px; }
 .composition-orbits { width: 70%; right: -24px; }
 .composition-footnote { left: 25px; font-size: 10px; }
 .reference-row--allocation .reference-entries { padding: 5px 22px; }
 .reference-row .reference-entries, .reference-row .reference-intro { width: 100%; }
 .style-barbell { gap: 12px; padding: 10px 0; }
 .style-node, .style-node--microcap { padding: 20px 10px; min-height: 145px; border-radius: 6px; text-align: center; }
 .style-node strong { font-size: 23px; letter-spacing: 0; }
 .style-node span { font-size: 9px; letter-spacing: .05em; }
 .style-node small { font-size: 12px; margin-top: 20px; }
 .reference-row--short .reference-entry { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
 .reference-row--short .reference-entry h3 { font-size: 20px; }
 .reference-disclaimer { font-size: 13px; }
}
/* v43 · 分类入口而非展示海报。 */
body[data-strategy-view="layers"] .channel-hero { display:block; }
body[data-strategy-view="layers"] .strategy-view-host { padding-top:24px; }
.style-barbell { gap:34px; }
.style-node, .style-node--microcap { position:relative; min-height:256px; padding:26px 28px 22px; overflow:hidden; text-align:left; background:linear-gradient(135deg,#fff 0%,#edf3f4 100%); border:1px solid #d4dfe0; border-top:2px solid #426c73; border-radius:9px; }
.style-node--value { background:linear-gradient(135deg,#fff,#f5f0e4); border-color:#e0d6c0; border-top-color:#ad915c; }
.style-node--microcap { background:linear-gradient(135deg,#fff,#f6eae5); border-color:#e3d3cc; border-top-color:#b8624d; }
.style-node .category-label { font:11px/1.5 Consolas,monospace; color:#56686c; letter-spacing:.1em; margin:0 0 43px; }
.style-node strong { position:relative; font-size:29px; letter-spacing:.03em; }
.category-art { position:absolute; top:39px; right:20px; width:100px; height:92px; color:#426c73; opacity:.42; transform:rotate(-6deg); }
.category-art svg { width:100%; height:100%; }
.style-node--value .category-art { color:#947537; }
.style-node--microcap .category-art { color:#a9543d; }
.category-description { position:relative; font-size:14px; line-height:1.8; color:#4c5e65; margin:10px 0 22px; }
.style-node .category-enter { display:flex; align-items:center; border-top:1px solid #cfd8d6; padding-top:15px; margin:0; font-size:13px; color:#8e392e; }
.style-node:hover { transform:translateY(-5px); box-shadow:0 14px 28px -20px #263f4266; }
.style-node:focus-visible { outline:2px solid #943c31; outline-offset:4px; }
.category-detail-mode > .reference-row:not(.category-selected), .category-detail-mode > .reference-ideas, .category-detail-mode > .reference-disclaimer { display:none; }
.category-detail-mode .category-selected > .reference-intro, .category-detail-mode .category-selected .reference-entries, .category-detail-mode .allocation-composition { display:none; }
.category-detail-mode .reference-row--allocation .reference-row-main { display:block; border:0; background:transparent; box-shadow:none; }
.category-detail-mode .reference-detail { margin:0; padding:24px; background:#fff; border:1px solid #dae0dc; border-radius:8px; }
.category-back { order:-1; margin-right:14px; color:#943c31; min-height:42px; }
.reference-detail-head { flex-wrap:wrap; }
@media(max-width:700px) {
 .style-barbell { gap:14px; grid-template-columns:1fr; }
 .style-barbell::before { left:30px; top:0; bottom:0; right:auto; height:auto; width:2px; }
 .style-node,.style-node--microcap { min-height:185px; padding:20px 24px; }
 .style-node .category-label { margin-bottom:16px; font-size:11px; }
 .style-node strong { font-size:26px; }
 .category-art { width:78px; height:76px; top:26px; right:24px; }
 .category-description { max-width:80%; font-size:14px; margin:8px 0 14px; }
 .style-node .category-enter { font-size:13px; padding-top:11px; }
 .category-detail-mode .reference-detail { padding:12px; }
}
.category-breadcrumb { color:#596770; font-size:13px; margin-bottom:20px; padding-bottom:15px; border-bottom:1px solid #e0e4df; }
.category-breadcrumb > span:first-child { color:#92362e; }
.category-subnav { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 24px; }
.category-subtab { background:#f5f5f0; color:#45545c; border:1px solid #d7dcd6; border-radius:5px; padding:10px 20px; font:inherit; font-size:14px; cursor:pointer; min-height:42px; }
.category-subtab.active { background:#18242d; border-color:#18242d; color:#fff; }
.category-subtab:focus-visible { outline:2px solid #92362e; outline-offset:3px; }
.category-detail-mode .reference-detail-head h3 { font:600 26px/1.5 "Noto Serif SC",SimSun,serif; }
@media(max-width:700px) { .category-subtab { padding:9px 15px; } .category-detail-mode .reference-detail-head h3 { font-size:22px; } }
/* v45 · 宽屏策略工作台：分类导航 / 内容 / 阅读指南。 */
body[data-strategy-view="layers"] .page-main, body[data-strategy-view="layers"] .strategy-view-host { max-width:2100px; width:calc(100% - 80px); }
.strategy-workspace { display:grid; grid-template-columns:210px minmax(0,1fr) 210px; gap:36px; align-items:start; }
.strategy-workspace .reference-catalog { min-width:0; }
.strategy-directory, .strategy-reading-guide { position:sticky; top:100px; padding-top:34px; }
.workspace-eyebrow { color:#8c5145; font:11px/1.6 Consolas,monospace; letter-spacing:.12em; }
.strategy-directory h2,.strategy-reading-guide h2 { white-space:pre-line; font:500 26px/1.6 "Noto Serif SC",SimSun,serif; color:#263a40; margin:18px 0; }
.workspace-summary { color:#596770; font-size:14px; line-height:1.9; margin:0 0 26px; }
.directory-link { display:grid; grid-template-columns:24px 1fr; align-items:center; width:100%; text-align:left; padding:17px 0; gap:6px 10px; border:0; border-top:1px solid #d9ded8; background:transparent; color:#263d43; font:inherit; font-size:14px; cursor:pointer; }
.directory-link .reference-icon { width:23px; height:23px; color:#9b794b; }
.directory-link small { grid-column:2; color:#596770; font-size:12px; }
.directory-link:hover { color:#92362e; }
.directory-link:focus-visible { outline:2px solid #92362e; outline-offset:4px; }
.strategy-reading-guide { border-left:1px solid #d9ded8; padding-left:24px; }
.reading-guide-step { padding:17px 0; border-top:1px solid #d9ded8; }
.reading-guide-step h3 { font-size:14px; color:#263d43; margin:0 0 7px; }
.reading-guide-step p,.reading-guide-note { font-size:13px; line-height:1.9; color:#596770; margin:0; }
.reading-guide-note { padding-top:18px; border-top:1px solid #d9ded8; color:#805e4e; }
.reference-intro p { margin-left:0; }
.reference-row { scroll-margin-top:100px; }
@media(min-width:2300px) { body[data-strategy-view="layers"] .page-main,body[data-strategy-view="layers"] .strategy-view-host { max-width:2800px; width:calc(100% - 160px); } .strategy-workspace { grid-template-columns:260px minmax(0,1fr) 260px; gap:60px; } }
@media(max-width:1500px) { .strategy-workspace { grid-template-columns:180px minmax(0,1fr); gap:24px; } .strategy-reading-guide { display:none; } }
@media(max-width:1100px) { .strategy-workspace { display:block; } .strategy-directory { display:none; } body[data-strategy-view="layers"] .page-main,body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - 40px); } }
/* 让整体分类卡片成为一个真实、可键盘操作的入口。 */
.reference-row--allocation .reference-entry, .reference-row--short .reference-entry { position:relative; }
.reference-row--allocation .reference-action::after, .reference-row--short .reference-action::after { content:""; position:absolute; inset:0; cursor:pointer; }
.reference-row--allocation .reference-entry:hover, .reference-row--short .reference-entry:hover { background:#f9f5f1; }
.reference-row--allocation .reference-entry:focus-within, .reference-row--short .reference-entry:focus-within { outline:2px solid #92362e; outline-offset:3px; }
.reference-row--allocation .reference-entry, .reference-row--short .reference-entry { cursor:pointer; }
@media(max-width:600px) { body[data-strategy-view="layers"] .page-main,body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - 32px); } }

/* 投资体系：白底墨字，完整卡片入口与风格光谱。 */
body[data-strategy-view="layers"] { background:#fff; color:#18242d; }
body[data-strategy-view="layers"] .page-main, body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - 80px); max-width:1680px; }
.strategy-workspace { display:block; }
.reference-catalog { gap:30px; }
.reference-row .reference-intro { padding:20px 0 12px; border-color:#d7d4cf; }
.reference-intro h2 { font-size:28px; color:#18242d; }
.reference-intro p { font-size:16px; color:#39454b; }
.reference-category { color:#555f62; font-size:13px; }
.reference-row--allocation .reference-row-main { display:block; background:#fff; border:0; box-shadow:none; }
.reference-row--allocation .reference-entries { padding:0; }
.reference-row--allocation .reference-entry { padding:24px 28px; border:1px solid #dedbd6; border-radius:8px; }
.reference-entry--clickable, .reference-row--short .reference-entry { position:relative; display:block; padding:24px 28px; border:1px solid #dedbd6; border-radius:8px; background:#fff; }
.reference-entry--clickable:hover, .reference-entry--clickable:focus-within { border-color:#a63d31; box-shadow:0 8px 24px #18242d10; }
.reference-action--overlay::after { content:""; position:absolute; inset:0; z-index:1; }
.reference-action--overlay:focus-visible { outline:3px solid #a63d31; outline-offset:4px; }
.reference-row--allocation .reference-entry-cover p, .reference-row--allocation .reference-entry-description, .reference-row--short .reference-entry-description { display:block; }
.reference-entry-description, .reference-entry-note, .reference-action, .style-allocation-note, .reference-disclaimer { font-size:15px; color:#39454b; }
.reference-action { color:#9c3026; font-weight:600; }
.reference-row--style .reference-entry { padding:24px 28px; border:1px solid #dedbd6; }
.style-barbell { gap:20px; padding:20px 0; }
.style-barbell::before { top:50%; left:10%; right:10%; height:3px; background:#a83e32; }
.style-node, .style-node--microcap { z-index:2; min-height:190px; padding:22px; background:#fff; border:1px solid #d8d3ce; border-top:3px solid #a83e32; }
.style-node .category-label { color:#505b5e; font-size:13px; margin:0 0 20px; }
.style-node strong { color:#18242d; font-size:25px; }
.category-art { display:none; }
.category-description { color:#39454b; font-size:15px; margin:8px 0 16px; }
.style-node .category-enter { color:#982f25; font-size:15px; }
.reference-detail, .category-detail-mode .reference-detail { background:#fff; }
.reference-ideas { color:#18242d; }
.reference-idea small, .reference-idea span { font-size:15px; color:#39454b; }
@media(max-width:700px) {
 body[data-strategy-view="layers"] .page-main, body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - 32px); }
 .reference-entry--clickable, .reference-row--style .reference-entry, .reference-row--short .reference-entry { padding:20px; }
 .style-barbell { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 .style-barbell::before { left:10%; right:10%; top:50%; bottom:auto; width:auto; height:2px; }
 .style-node, .style-node--microcap { min-height:180px; padding:12px 8px; text-align:left; }
 .style-node .category-label { font-size:11px; letter-spacing:0; margin-bottom:12px; }
 .style-node strong { font-size:20px; }
 .category-description, .style-node .category-enter { max-width:none; font-size:15px; line-height:1.5; }
}

/* v48：投资体系的分层封面与连续风格轴。 */
body[data-strategy-view="layers"] { background:#f8f6f1; }
body[data-strategy-view="layers"] .page-main, body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - clamp(32px, 5vw, 180px)); max-width:none; }
body[data-strategy-view="layers"] .strategy-view-host { background:transparent; }
.reference-catalog { gap:32px; }
.reference-row .reference-intro { border-top:2px solid #233137; padding:20px 0 14px; }
.reference-intro h2 { font-size:clamp(26px, 1.7vw, 36px); }
.reference-category { color:#9a4433; letter-spacing:.18em; }
.reference-row--allocation .reference-entry { background:#253b3c; color:#fff; border:0; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px, .85fr); gap:0 28px; padding:32px clamp(24px,3vw,56px); }
.reference-row--allocation .reference-entry-cover, .reference-row--allocation .reference-entry-copy { grid-column:1; position:static; }
.reference-row--allocation .reference-entry-cover h3, .reference-row--allocation .reference-entry-cover p, .reference-row--allocation .reference-entry-description { color:#fff; }
.reference-row--allocation .reference-action { color:#f3d59b; }
.reference-row--allocation .allocation-composition { display:block; position:relative; grid-column:2; grid-row:1 / span 2; min-height:220px; color:#e1c890; background:transparent; border:0; padding:0; }
.allocation-composition .composition-kicker, .allocation-composition h3, .allocation-composition p { display:none; }
.allocation-composition .composition-orbits { position:absolute; width:100%; height:100%; inset:0; stroke:#b9c5b4; stroke-width:1; }
.allocation-composition .composition-orbits text { fill:#f6e9cf; stroke:none; font-size:13px; }
.allocation-composition .orbit-core, .allocation-composition .orbit-point { fill:#c9a45f; }
.allocation-composition .composition-footnote { position:absolute; right:0; bottom:0; color:#e1d8c3; font-size:12px; }
.reference-row--style .reference-entry { background:#eee9df; border:1px solid #d9cfc0; padding:28px clamp(20px,2.5vw,48px); }
.style-axis-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; color:#76392e; font-size:14px; font-weight:700; }
.style-axis-heading span:nth-child(2) { color:#58635f; font-size:12px; letter-spacing:.12em; }
.style-barbell { position:relative; gap:clamp(12px,2vw,36px); padding:26px 0; }
.style-barbell::before { top:50%; height:9px; border-radius:20px; background:linear-gradient(90deg,#a24331,#c09a54,#a24331); }
.style-node, .style-node--microcap { background:#fffdf8; border:1px solid #d6c9b9; border-top:4px solid #a54332; box-shadow:0 8px 20px #40332012; min-height:200px; }
.style-node--value { border-top-color:#aa884b; }
.style-node--microcap { border-top-color:#843c30; }
.category-art { display:block; color:#b78a58; opacity:.75; }
.reference-row--short .reference-entry { background:#e7e9e4; border-left:5px solid #9d4032; }
.reference-ideas { background:#f0ebe1; padding:24px clamp(20px,2vw,38px); border-top:2px solid #b48a4e; }
@media(max-width:700px) {
 body[data-strategy-view="layers"] .page-main, body[data-strategy-view="layers"] .strategy-view-host { width:calc(100% - 32px); }
 .reference-row--allocation .reference-entry { display:block; padding:24px; }
 .reference-row--allocation .allocation-composition { min-height:160px; margin-bottom:16px; }
 .style-barbell { grid-template-columns:1fr; gap:10px; padding:16px 0; }
 .style-barbell::before { left:50%; top:0; bottom:0; width:5px; height:auto; }
 .style-node, .style-node--microcap { min-height:150px; padding:18px; }
 .style-node .category-label { font-size:12px; }
 .style-axis-heading { font-size:13px; }
}

/* 分类操作与非数据装饰。 */
.reference-action { padding:10px 16px; border:1px solid #8e3026; border-radius:5px; background:#96372b; color:#fff; }
.reference-action:hover, .reference-action[aria-expanded="true"] { background:#74291f; color:#fff; border-color:#74291f; }
.reference-row--allocation .reference-action { color:#253b3c; background:#f3d59b; border-color:#f3d59b; }
.reference-row--allocation .reference-action:hover { background:#fff0d0; color:#253b3c; }
.style-node .category-enter { display:inline-flex; padding:8px 12px; border:1px solid #96372b; border-radius:4px; background:#96372b; color:#fff; font-weight:600; }
.style-node:hover .category-enter { background:#74291f; border-color:#74291f; }
.style-node:focus-visible, .reference-action:focus-visible { outline:3px solid #b38742; outline-offset:3px; }
.reference-row--short .reference-entry::before { content:""; position:absolute; right:32px; top:28px; width:120px; height:42px; opacity:.3; pointer-events:none; background:repeating-linear-gradient(90deg,#a77c48 0 1px,transparent 1px 12px); mask-image:linear-gradient(to bottom,transparent,#000 40%,transparent); }
@media(max-width:700px) { .reference-row--short .reference-entry::before { display:none; } }

/* 超宽屏保持阅读行长，避免单张卡片无限拉伸。 */
.reference-catalog { max-width:2000px; margin-inline:auto; }
/* 深色卡片的交互态与内容始终使用同一背景体系。 */
.reference-row--allocation .reference-entry:hover,
.reference-row--allocation .reference-entry:focus-within { background:#30494a; }
.reference-row--allocation .reference-action:hover,
.reference-row--allocation .reference-action:focus-visible { background:#fff0d0; color:#253b3c; }
.reference-row--allocation .allocation-composition { pointer-events:none; }
.reference-row--short .reference-entry::before { content:none; }
.reference-row--short .reference-entry { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.5fr); align-items:center; gap:24px 48px; }
.reference-row--short .reference-entry-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.7fr); align-items:center; gap:12px 28px; }
.reference-row--short .reference-entry-description, .reference-row--short .reference-entry-note, .short-categories { grid-column:1; }
.short-categories { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.short-categories-label { color:#475451; font-size:13px; font-weight:600; margin-right:4px; }
.short-category { padding:4px 9px; border:1px solid #b7c2bb; border-radius:3px; color:#30483f; font-size:13px; }
.short-live-summary { min-width:0; margin:0; padding:10px 14px; background:#fffaf0; border:1px solid #dac7a7; border-left:4px solid #9a7640; border-radius:10px; color:#3f453f; overflow-wrap:anywhere; }
.short-live-kicker { display:block; font-size:12px; letter-spacing:.06em; color:#76644b; margin-bottom:3px; }
.short-results-toggle { margin-top:12px; color:#293b4b; background:#fff; border:1px solid #a9b3bd; }
.short-results-toggle:focus-visible { outline:3px solid #356c9a; outline-offset:3px; }
.short-results-line { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:10px; min-width:0; }
.short-result-stock { color:#293b4b; font-size:15px; line-height:1.8; white-space:normal; overflow-wrap:anywhere; }
.short-results-scope { color:#535e69; font-size:13px; }
.short-live-summary--error { background:#fff8f1; border-color:#d5b999; border-left-color:#936433; }
.short-live-summary--error .short-live-title { color:#795225; }
.short-backtest-details { margin-bottom:8px; }
.short-backtest-details:not([open]) > .ref-glance { display:none; }
.short-compact-card .short-backtest-details .ref-glance-val { font-size:16px; }
.short-live-title { display:block; font-size:21px; line-height:1.45; color:#715425; }
.short-live-summary p { margin:8px 0 0; line-height:1.65; }
.short-live-date, .short-live-note { font-size:13px; color:#62665f; }
.short-live-candidates { font-size:15px; font-weight:600; }
.short-live-summary--triggered { background:#fff6f2; border-color:#e7beb0; border-left-color:#ba4e3c; }
.short-live-summary--triggered .short-live-title { color:#ad4033; }
.short-live-summary--empty { background:#f3f8f4; border-color:#bdd1c1; border-left-color:#3e7856; }
.short-live-summary--empty .short-live-title { color:#356b4c; }
.short-live-overview { grid-column:2; grid-row:1 / span 4; }
.strategy-ref-card > .short-live-summary { margin:0 22px 18px; }
.short-history-toggle { display:block; margin:12px 0 0 auto; max-width:100%; padding:9px 14px; border:1px solid #9a7640; border-radius:6px; background:#fffdf8; color:#715425; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.short-history-toggle:focus-visible { outline:3px solid #9a7640; outline-offset:3px; }
.strategy-ref-card > .media-frame[hidden] { display:none !important; }
.query-table tr.short-signal-today td,
.query-table tr.short-signal-today:hover td,
.query-table tr.short-signal-today td.stick-col,
.query-table tr.short-signal-today:hover td.stick-col { background:#fff0dd; }
@media(max-width:700px) {
 .short-live-overview { grid-column:1; grid-row:auto; }
 .short-live-summary { padding:14px; }
 .short-live-title { font-size:19px; }
 .strategy-ref-card > .short-live-summary { margin:0 14px 14px; }
}
.reference-row--short .reference-action { grid-column:1 / -1; justify-self:end; }
@media(max-width:900px) {
 .reference-row--short .reference-entry { grid-template-columns:1fr; gap:16px; }
}
@media(max-width:700px) {
 .reference-row--short .reference-entry-copy { grid-template-columns:1fr; }
 .short-signal { grid-column:1; grid-row:auto; }
 .reference-row--short .reference-action { grid-column:1; justify-self:start; }
}

/* 策略理论四卡：同一阅读轴，默认折叠。 */
body[data-strategy-view="layers"] .page-main { width:calc(100% - 80px); max-width:2900px; }
.strategy-workspace { display:block; }
.strategy-workspace .reference-catalog { width:100%; min-width:0; }
.strategy-theory { margin:0 0 30px; border-bottom:1px solid #d8cbb8; padding-bottom:20px; }
.theory-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px 20px; }
.theory-heading > div { flex:1 1 260px; min-width:0; }
.theory-heading .reference-category { float:none; }
.theory-heading h2 { white-space:nowrap; }
.theory-toggle { flex:none; padding:8px 12px; border:1px solid #b39868; border-radius:3px; background:#fffdf9; color:#805f30; font:600 13px/1.5 sans-serif; cursor:pointer; }
.theory-toggle:focus-visible { outline:3px solid #92713b; outline-offset:3px; }
.theory-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-top:18px; }
.theory-cards[hidden] { display:none; }
.theory-cards > .reference-ideas { grid-column:1 / -1; margin-top:8px; }
.theory-cards > .reference-ideas h3 { grid-column:1 / -1; margin:0; color:#354d45; font-size:15px; }
.theory-card { min-width:0; padding:22px 20px; border:1px solid #d8cbb8; border-top:3px solid #ad8251; background:#fffdf9; color:#354d45; }
.theory-context { border-top-color:#a33c2c; }.theory-notes { border-top-color:#287a69; }
.theory-card .context-kicker, .theory-card .notes-kicker, .theory-card .appendix-kicker { color:#914536; font-size:13px; font-weight:700; letter-spacing:.05em; }
.theory-card h2 { margin:16px 0 12px; color:#233b37; font:600 25px/1.4 SimSun,serif; }
.theory-card h3 { margin:14px 0 10px; font-size:16px; line-height:1.65; color:#253c37; }
.theory-card p { margin:0 0 16px; font-size:14px; line-height:1.85; }
.theory-card section { padding:12px 0; border-top:1px solid #e5dccd; }
.theory-card section h3 { margin:0 0 8px; }.theory-card section p { margin:0; }
.context-layers span { color:#914536; font-size:12px; font-weight:600; }
.theory-card .context-source, .theory-card .notes-source, .theory-card .theory-caption { padding-top:12px; border-top:1px solid #d8cbb8; color:#647069; font-size:12px; }
.notes-diagram { display:flex; align-items:center; justify-content:center; gap:8px; padding:16px 0; background:#edf0e9; }
.notes-diagram span { display:grid; place-items:center; width:76px; height:76px; border:1px solid #78948a; border-radius:50%; font-size:13px; }
.notes-diagram i { color:#a33c2c; font-style:normal; }
.theory-card .notes-caption { margin:8px 0 18px; font-size:12px; color:#647069; }
.theory-card svg { display:block; width:100%; height:auto; margin:18px 0; }
.strategy-workspace:has(.category-detail-mode) .strategy-theory { display:none; }
@media(max-width:1099px) { .theory-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 body[data-strategy-view="layers"] .page-main { width:calc(100% - 32px); }
 .theory-heading { align-items:flex-start; gap:12px; }.theory-heading h2 { font-size:23px; }
 .theory-toggle { font-size:12px; padding:8px; }
 .theory-cards { grid-template-columns:minmax(0,1fr); }.theory-card { padding:20px; }
 .theory-card svg { max-width:300px; margin-inline:auto; }
}

.market-card { margin-top:32px; padding:18px 14px 12px; border:1px solid #d8cbb8; border-top:2px solid #ad8251; background:#fffdf9; font-size:13px; line-height:1.65; }
.market-card .market-kicker { color:#914536; font-size:13px; }
.market-card h3 { margin:6px 0; font-size:18px; }
.market-card .market-mode, .market-card .market-foot { margin:8px 0; color:#53635a; font-size:13px; line-height:1.7; }
.market-row { padding:13px 0; border-top:1px solid #e5dccd; }
.market-name, .market-code, .market-date, .market-source { display:block; font-size:13px; }
.market-code, .market-date { color:#647069; }
.market-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; font:normal 20px/1.6 Arial,Roboto,system-ui,sans-serif; font-variant-numeric:lining-nums tabular-nums; }
.market-change { font-size:14px; }
.market-up { color:#a33c2c; }.market-down { color:#287a69; }.market-flat { color:#53635a; }
.market-spark { display:block; width:100%; height:48px; margin:6px 0; }
.market-spark polyline { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.market-source { color:#805f30; text-underline-offset:3px; }
.market-card .market-pending { margin:5px 0; color:#805f30; font-size:13px; }
.strategy-workspace:has(.category-detail-mode) .market-card { display:none; }

/* 正式风格图谱：独立作用域，不继承旧风格入口及覆盖按钮规则。 */
.strategy-quicknav.is-sticky-enabled { position:sticky; }
.strategy-quicknav { position:static; top:var(--quicknav-header-height,76px); z-index:39; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:calc(100% - clamp(32px,5vw,180px)); max-width:2000px; margin:20px auto 0; padding:8px 0 14px; border-bottom:1px solid #d8cbb8; background:#fffdf9; }
.strategy-quicknav a { display:flex; align-items:center; justify-content:center; min-width:0; min-height:48px; padding:10px 12px; border:1px solid #cdbb9c; border-radius:3px; background:#fffdf9; color:#243936; text-decoration:none; font-size:16px; font-weight:600; line-height:1.5; }
.strategy-quicknav a:hover { background:#f3ecdf; border-color:#a33c2c; color:#a33c2c; }
.strategy-quicknav a[aria-current="location"] { background:#a33c2c; color:#fffdf9; }
.strategy-quicknav a:focus-visible { outline:3px solid #92713b; outline-offset:3px; }
body[data-section="strategy-showcase"] { overflow-anchor:none; }
#strategy-category-allocation, #strategy-category-style, #strategy-category-short, .reference-detail { scroll-margin-top:calc(var(--quicknav-header-height,76px) + var(--strategy-quicknav-height,72px) + 16px); }
.category-detail-mode { min-height:calc(100vh - var(--quicknav-header-height,76px) - var(--strategy-quicknav-height,72px) - 16px); }
#strategy-category-style .reference-row-main { display:block; }
#strategy-category-style .reference-entries { display:block; padding:0; }
.category-detail-mode #strategy-category-style .reference-entries { display:none; }
#strategy-category-style .style-atlas { --q-red:#a33c2c; --q-ink:#243936; --q-gold:#b39868; background:#fffdf9; color:var(--q-ink); border-top:2px solid var(--q-gold); border-bottom:1px solid #d8cbb8; padding:26px 30px 20px; min-width:0; }
.style-atlas * { box-sizing:border-box; }
.style-atlas .q-intro { display:grid; grid-template-columns:minmax(145px,1fr) auto minmax(145px,1fr); align-items:center; gap:10px 16px; padding-bottom:18px; border-bottom:1px solid #e5dccd; }
.style-atlas .q-intro h3 { margin:0; font:600 27px/1.3 SimSun,serif; letter-spacing:.08em; white-space:nowrap; }
.style-atlas .q-intro p { margin:0; justify-self:end; font:11px/1.6 Georgia,serif; letter-spacing:.1em; color:#816d51; text-align:right; }
.style-atlas .q-header-claim { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0 6px; text-align:center; font:14px/1.6 sans-serif; }
.style-atlas .q-header-claim strong { color:var(--q-red); font-weight:700; }
.style-atlas .q-map { position:relative; margin-top:15px; padding:38px 0 33px; }
.style-atlas .q-grid { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:48px 44px; }
.style-atlas .q-grid::before { content:""; position:absolute; left:50%; top:-6px; bottom:-6px; width:1px; background:#d5c7ae; }
.style-atlas .q-grid::after { content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:#d5c7ae; }
.style-atlas .q-y-top, .style-atlas .q-y-bottom, .style-atlas .q-x-left, .style-atlas .q-x-right { position:absolute; z-index:1; padding:0 8px; background:#fffdf9; color:#7b6748; font-size:12px; line-height:24px; font-weight:600; }
.style-atlas .q-y-top, .style-atlas .q-y-bottom { left:50%; transform:translateX(-50%); white-space:nowrap; }
.style-atlas .q-y-top { top:0; }.style-atlas .q-y-bottom { bottom:0; }
.style-atlas .q-x-left, .style-atlas .q-x-right { top:50%; transform:translateY(-50%); }
.style-atlas .q-x-left { left:0; }.style-atlas .q-x-right { right:0; }
.style-atlas .q-cell { display:grid; grid-template-columns:46% minmax(0,1fr); align-items:center; gap:12px; min-width:0; min-height:290px; padding:16px 4px; border:0; background:transparent; transition:background .18s; }
.style-atlas .q-cell:not(.q-empty) { cursor:pointer; }
.style-atlas .q-cell:not(.q-empty):hover { background:#f7f2e9; }
.style-atlas .q-cell:focus-within { outline:1px solid var(--q-gold); outline-offset:4px; }
.style-atlas .q-art { display:block; width:100%; height:auto; max-height:245px; overflow:visible; transition:transform .25s; }
.style-atlas .q-cell:not(.q-empty):hover .q-art { transform:translateY(-3px); }
.style-atlas .q-copy { display:flex; flex-direction:column; align-items:flex-start; width:100%; height:100%; min-width:0; }
.style-atlas .q-meta { font-size:11px; line-height:1.6; letter-spacing:.07em; color:#8b7656; }
.style-atlas .q-cell h4 { margin:9px 0 10px; font:600 34px/1.3 SimSun,serif; letter-spacing:.12em; color:var(--q-ink); }
.style-atlas .q-cell p { margin:0 0 10px; font-size:13px; line-height:1.65; color:#647069; }
.style-atlas .q-return { display:grid; gap:4px; width:100%; margin:auto 0 16px; padding-top:10px; border-top:1px solid #e7dece; }
.style-atlas .q-return>span { font:12px/1.6 sans-serif; color:#73674f; }
.style-atlas .q-index-return { display:block; width:max-content; max-width:100%; min-height:44px; padding:3px 0; font:400 29px/1.3 Arial,Roboto,system-ui,sans-serif; font-variant-numeric:lining-nums tabular-nums; font-style:normal; transform:none; color:var(--q-red); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.style-atlas .q-index-return:hover { background:#f4ecde; }
.style-atlas .q-return-note { font:12px/1.6 sans-serif; color:#766c5b; overflow-wrap:anywhere; }
.style-atlas time { white-space:nowrap; }
.style-atlas .q-empty .q-return strong { padding:9px 0; font:600 19px/1.35 SimSun,serif; color:#74766c; }
.style-atlas .q-cta { min-height:44px; padding:10px 12px; border:1px solid var(--q-red); border-radius:2px; background:var(--q-red); color:#fff; font:600 13px/1.6 sans-serif; cursor:pointer; white-space:normal; transition:background .18s; }
.style-atlas .q-cta:hover { background:#7e2e23; }
.style-atlas button:focus-visible, .style-atlas a:focus-visible, .style-atlas summary:focus-visible { outline:3px solid #92713b; outline-offset:3px; }
.style-atlas .q-index-footer { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 24px; border-top:1px solid #e5dccd; margin-top:18px; padding-top:6px; }
.style-atlas .q-index-method { flex:0 1 auto; min-width:0; margin:0; color:#766c5b; font:12px/1.6 sans-serif; }
.style-atlas .q-index-method[open] { flex-basis:100%; }
.style-atlas summary { cursor:pointer; min-height:44px; padding:10px 0; width:fit-content; font-size:14px; color:#66573e; }
.style-atlas .q-index-method p { font:13px/1.65 sans-serif; margin:8px 0 12px; overflow-wrap:anywhere; }
.style-atlas .q-index-method a { color:#805f30; text-decoration:underline; text-underline-offset:3px; }
.style-atlas .q-rule-change { font-size:11px; }
.style-atlas .q-baseline-inline { order:1; display:flex; flex-wrap:wrap; gap:2px 8px; font:14px/1.6 sans-serif; }
.style-atlas .q-income-line { margin-top:14px; padding-top:12px; min-width:0; }
.style-atlas .q-line-ends { display:flex; justify-content:space-between; gap:20px; font:600 15px/1.6 SimSun,serif; }
.style-atlas .q-line-ends span:last-child { text-align:right; }
.style-atlas .q-line-track { position:relative; display:flex; justify-content:space-between; margin-top:40px; isolation:isolate; }
.style-atlas .q-line-track::before { content:""; position:absolute; left:0; right:0; top:4px; height:1px; background:var(--q-gold); z-index:-1; }
.style-atlas .q-line-node { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; }
.style-atlas .q-line-node i { display:block; width:9px; height:9px; border-radius:50%; background:var(--q-gold); }
.style-atlas .q-line-balance { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); padding:2px 0 9px; white-space:nowrap; font:600 15px/1.6 SimSun,serif; }
.style-atlas .q-line-entry { min-width:72px; min-height:44px; padding:10px 12px; border:0; background:transparent; color:var(--q-red); font:600 14px/24px sans-serif; cursor:pointer; }
.style-atlas .q-line-entry:hover { background:#f2e7db; }
.style-atlas .q-return-number { font-family:Arial,Roboto,system-ui,sans-serif; font-variant-numeric:lining-nums tabular-nums; font-style:normal; transform:none; }
.style-atlas .q-return-arrow { display:inline-block; margin-left:6px; font:normal 13px/1 Arial,sans-serif; vertical-align:baseline; transform:none; }
@media(min-width:1680px) { .strategy-quicknav { width:calc(100% - 80px); max-width:2900px; } }
@media(max-width:1400px) { .style-atlas .q-intro { grid-template-columns:minmax(0,1fr) auto; }.style-atlas .q-intro>p { grid-column:2; grid-row:1; }.style-atlas .q-header-claim { grid-column:1 / -1; grid-row:2; } }
@media(max-width:900px) { #strategy-category-style .style-atlas { padding:22px 18px 18px; }.style-atlas .q-grid { gap:44px 28px; }.style-atlas .q-cell { grid-template-columns:40% minmax(0,1fr); gap:8px; min-height:300px; }.style-atlas .q-cell h4 { font-size:29px; } }
@media(max-width:700px) {
 .strategy-quicknav { width:calc(100% - 32px); gap:6px; margin-top:14px; padding-bottom:12px; }.strategy-quicknav a { min-height:46px; padding:10px 2px; font-size:14px; }
 #strategy-category-style .style-atlas { padding:20px 10px 16px; }
 .style-atlas .q-intro { gap:12px 6px; padding-bottom:15px; }.style-atlas .q-intro h3 { font-size:22px; }.style-atlas .q-intro p { font-size:9px; max-width:105px; letter-spacing:.03em; }
 .style-atlas .q-map { padding:33px 0 30px; margin-top:13px; }.style-atlas .q-grid { gap:52px 22px; grid-template-rows:auto auto; }
 .style-atlas .q-cell { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:4px 2px 8px; min-height:480px; }.style-atlas .q-art { height:110px; max-height:none; flex:none; }.style-atlas .q-copy { flex:1; height:auto; align-items:stretch; }
 .style-atlas .q-meta { font-size:10px; letter-spacing:0; margin-top:8px; }.style-atlas .q-cell h4 { font-size:28px; margin:5px 0 6px; }.style-atlas .q-cell p { font-size:11px; margin-bottom:12px; }
 .style-atlas .q-return { margin:auto 0 12px; padding-top:9px; }.style-atlas .q-return>span { font-size:11px; }.style-atlas .q-index-return { font-size:25px; padding:6px 0; }.style-atlas .q-return-note { font-size:11px; }
 .style-atlas .q-cta { width:100%; font-size:12px; padding:10px 3px; }
 .style-atlas .q-y-top, .style-atlas .q-y-bottom, .style-atlas .q-x-left, .style-atlas .q-x-right { font-size:10px; line-height:20px; padding:0 3px; }
 .style-atlas .q-index-footer { gap:0 12px; margin-top:14px; }.style-atlas .q-baseline-inline { flex-basis:100%; margin:4px 0 8px; }
 .style-atlas .q-income-line { margin-top:10px; padding-top:8px; }.style-atlas .q-line-ends, .style-atlas .q-line-balance { font:600 12px/1.6 SimSun,serif; }.style-atlas .q-line-entry { min-width:60px; padding:10px 8px; font-size:13px; }
}
@media(max-width:350px) { #strategy-category-style .style-atlas { padding-inline:7px; }.style-atlas .q-grid { column-gap:16px; }.style-atlas .q-art { height:100px; }.style-atlas .q-cta { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .style-atlas .q-art, .style-atlas .q-cell, .style-atlas .q-cta { transition:none; }.style-atlas .q-cell:not(.q-empty):hover .q-art { transform:none; } }

/* 紧凑左对齐分区标题，正文维持独立阅读布局。 */
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; text-align:left; padding:14px 0 12px; gap:5px; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro h2 { margin:0; font-family:"Songti SC",SimSun,serif; font-weight:700; font-size:26px; line-height:1.3; letter-spacing:.03em; color:#263e39; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro h2::after { content:none; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro > p { display:block; width:auto; max-width:780px; margin:0; color:#81623f; font-size:13px; line-height:1.65; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-category { float:none; margin:0; color:#a33c2c; font-size:10px; line-height:1.4; letter-spacing:.12em; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro > .reference-icon { margin:0; width:25px; height:25px; color:#a58954; }
body[data-section="strategy-showcase"] .theory-heading > div { flex:1 1 auto; width:auto; min-width:0; }
body[data-section="strategy-showcase"] .strategy-workspace .theory-heading { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro > .reference-icon { display:none; }
body[data-section="strategy-showcase"] .theory-heading .theory-toggle { align-self:center; margin-top:10px; min-width:204px; min-height:48px; padding:12px 24px; border:1px solid #a47f50; border-radius:7px; background:#f2e8d6; color:#614820; font-size:16px; font-weight:700; letter-spacing:.04em; box-shadow:0 3px 10px #75562c14; transition:background .16s,box-shadow .16s; }
body[data-section="strategy-showcase"] .theory-heading .theory-toggle:hover { background:#e9d8bb; box-shadow:0 4px 13px #75562c24; }
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry { position:relative; padding-top:112px; }
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-cover p,
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-description { font-size:17px; line-height:1.9; letter-spacing:0; text-align:left; }
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-copy { padding-left:0; padding-right:0; }
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-cover > .reference-icon { display:none; }
body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-titles { width:100%; }
.allocation-expectation { position:absolute; top:20px; right:26px; display:grid; gap:5px; min-width:156px; padding:13px 20px; border:1px solid #d9cbb5; border-radius:7px; background:#fffaf2; text-align:center; box-shadow:0 3px 12px #4f372008; }
.allocation-expectation > span { color:#76654d; font-size:12px; letter-spacing:.08em; }
.allocation-expectation > strong { color:#b83227; font:600 27px/1.2 Arial,sans-serif; font-variant-numeric:tabular-nums; }
@media(max-width:700px) {
 body[data-section="strategy-showcase"] .strategy-workspace .reference-intro { padding:12px 0 10px; }
 body[data-section="strategy-showcase"] .theory-heading > div { flex-basis:100%; }
 body[data-section="strategy-showcase"] .theory-heading .theory-toggle { align-self:flex-start; margin-top:8px; }
 body[data-section="strategy-showcase"] .strategy-workspace .reference-intro h2 { font-size:24px; letter-spacing:.02em; }
 body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry { padding-top:108px; }
 body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-cover p,
 body[data-section="strategy-showcase"] #strategy-category-allocation .reference-entry-description { font-size:15px; }
 .allocation-expectation { top:15px; right:18px; padding:10px 14px; min-width:142px; }
 .allocation-expectation > strong { font-size:24px; }
}

/* 全宽策略分区，不保留侧栏占位。 */
.reference-row > .reference-intro, .strategy-theory > .reference-intro { padding-left:0; }
.strategy-workspace .reference-intro h2 { display:block; margin:8px 0 0; font:600 28px/1.4 SimSun,serif; color:#243936; }
.strategy-theory > .reference-intro { background:transparent; border:0; border-top:2px solid #b39868; border-radius:0; padding-top:20px; }
.strategy-workspace .reference-category { color:#914536; }
.strategy-theory h2 { margin:8px 0 0; }
.strategy-quicknav .strategy-editorial-intro { grid-column:1 / -1; margin:2px 0 0; font-size:13px; line-height:1.6; color:#647069; text-align:center; }
#strategy-category-allocation .reference-entry { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 40px; align-items:center; padding:30px; }
#strategy-category-allocation .allocation-composition { grid-column:1; grid-row:1 / span 2; min-height:280px; margin:0; }
#strategy-category-allocation .reference-entry-cover, #strategy-category-allocation .reference-entry-copy { grid-column:2; }
#strategy-category-allocation .reference-entry-cover p { font-size:16px; line-height:1.9; }
#strategy-category-allocation .reference-entry-description { font-size:20px; line-height:1.7; }
@media(max-width:700px) {
 .strategy-quicknav a { font-size:12px; }.strategy-quicknav .strategy-editorial-intro { font-size:12px; }
 .strategy-theory h2 { font-size:22px; }
 #strategy-category-allocation .reference-entry { display:flex; flex-direction:column; gap:18px; padding:22px 18px; }
 #strategy-category-allocation .allocation-composition { width:100%; min-height:260px; }
}
.style-atlas .q-bubble { grid-column:1; grid-row:1; }
.style-atlas .q-growth { grid-column:2; grid-row:1; }
.style-atlas .q-microcap { grid-column:1; grid-row:2; }
.style-atlas .q-value { grid-column:2; grid-row:2; }
.style-atlas .q-reference-index { font-weight:600; color:#354d45; }
.layer-group-note p { margin:0 0 14px; }
.layer-group-note p:last-child { margin-bottom:0; }
#layer-group-growth .layer-group-head,
#layer-group-value .layer-group-head,
#layer-group-microcap .layer-group-head { display:block; }
#layer-group-growth .layer-group-head-right,
#layer-group-value .layer-group-head-right,
#layer-group-microcap .layer-group-head-right { margin-top:18px; }
#layer-group-growth .layer-group-head-right,
#layer-group-value .layer-group-head-right,
#layer-group-microcap .layer-group-head-right { display:block; width:100%; max-width:none; text-align:left; }
#layer-group-growth .layer-group-note,
#layer-group-value .layer-group-note,
#layer-group-microcap .layer-group-note { width:100%; max-width:none; font-size:16px; line-height:1.85; }
#layer-group-growth .layer-group-head,
#layer-group-value .layer-group-head,
#layer-group-microcap .layer-group-head { margin-bottom:14px; }
#layer-group-growth .layer-group-note p,
#layer-group-value .layer-group-note p,
#layer-group-microcap .layer-group-note p { margin-bottom:10px; }
#layer-group-growth .layer-group-note p:last-child,
#layer-group-value .layer-group-note p:last-child,
#layer-group-microcap .layer-group-note p:last-child { margin-bottom:0; }

@media(max-width:700px) {
 #layer-group-growth .layer-group-head-right,
 #layer-group-value .layer-group-head-right,
 #layer-group-microcap .layer-group-head-right { flex-basis:100%; }
 #layer-group-growth .layer-group-note,
 #layer-group-value .layer-group-note,
 #layer-group-microcap .layer-group-note { font-size:15px; line-height:1.9; }
}

/* 账号关注：独立轻入口，不改动原有分类与美术。 */
.strategy-favorite-entry { display:flex; justify-content:flex-end; align-items:stretch; gap:8px; margin:0 0 16px; }
.strategy-favorite-entry > .strategy-favorite-link { display:flex; align-items:center; justify-content:center; min-width:0; padding-inline:10px; text-align:center; text-decoration:none; }
.strategy-favorite-entry > button { flex-shrink:0; }
.strategy-favorite-link, .strategy-favorite-button { min-width:64px; min-height:44px; padding:9px 14px; border:1px solid #b7c7c5; border-radius:8px; background:#fff; color:#294c49; font-family:inherit; font-size:13px; font-weight:600; line-height:1.5; cursor:pointer; }
.strategy-favorite-button { flex-shrink:0; margin-left:auto; }
.strategy-favorite-button[aria-pressed="true"] { background:#e8f3ee; border-color:#709d8c; color:#245b48; }
.strategy-favorite-button:disabled { opacity:.6; cursor:wait; }
.strategy-favorite-link:focus-visible, .strategy-favorite-button:focus-visible { outline:3px solid #568d9a; outline-offset:3px; }
.strategy-favorite-view { min-width:0; }
.strategy-favorite-title { margin:0 0 12px; color:var(--ink); }
.strategy-favorite-note, .strategy-favorite-empty { color:var(--slate); line-height:1.8; overflow-wrap:anywhere; }
.strategy-favorite-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; margin-top:24px; }
.strategy-favorite-grid > * { min-width:0; max-width:100%; }
.strategy-favorite-error { color:#a33d37; font-size:12px; line-height:1.6; }
/* 三风格主策略：仅作用于策略详情，沿用本站红涨绿跌语义。 */
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-more { margin-left:0; border-color:#ab8b5e; color:#72552e; background:#f7f0e3; min-height:42px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-head { display:block; padding:18px 0 22px; background:transparent; border:0; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-head-left { display:none; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-head-right { display:block; width:100%; max-width:none; text-align:left; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-note { max-width:none; width:100%; font-size:16px; line-height:1.85; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-count { display:none; }
:is(#strategy-category-style,#strategy-category-allocation).category-selected { min-width:0; max-width:100%; }
:is(#reference-detail-style,#reference-detail-allocation) { min-width:0; max-width:100%; box-sizing:border-box; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-performance { min-width:0; max-width:100%; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-strategy { min-width:0; padding-top:24px; border-top:1px solid #dfd9cd; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:22px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading .section-kicker { flex-basis:100%; color:#92724d; font-size:11px; letter-spacing:.12em; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading h3 { margin:0; font:600 23px/1.5 "Noto Serif SC",SimSun,serif; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric { display:flex; flex-direction:column; gap:14px; padding:21px 18px; border:1px solid #e2ddd3; border-radius:6px; background:#fbfaf6; min-width:0; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric > span { color:#67746f; font-size:14px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-benchmark { font-size:12px; color:#7c837b; line-height:1.6; overflow-wrap:anywhere; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric strong { font-size:28px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-date { font-size:12px; color:#7b827c; line-height:1.7; margin:14px 0 26px; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-section-title { margin:30px 0 16px; color:#354d45; font:600 19px/1.5 "Noto Serif SC",SimSun,serif; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart { padding:14px 0; min-width:0; width:100%; max-width:1024px; margin-left:auto; margin-right:auto; box-sizing:border-box; }
.primary-merged-positions { min-width:0; margin:24px 0 16px; }
.primary-merged-positions .position-increase td { color:#b83227; }
.primary-merged-positions .position-decrease td { color:#287a69; }
.primary-merged-positions .position-cash td { color:#48534e; background:#f1f3f2; }
.primary-merged-positions .primary-style-date { margin:8px 0; }
.primary-merged-positions .query-data-wrap { max-height:none; }
@media(max-width:700px) {
 .primary-merged-positions .query-table { width:100%; min-width:0; table-layout:fixed; }
 .primary-merged-positions .query-table :is(th,td) { position:static; white-space:normal; overflow-wrap:anywhere; padding:8px 4px; font-size:11px; }
 .primary-merged-positions .query-table :is(th,td):nth-child(1) { width:22%; }
 .primary-merged-positions .query-table :is(th,td):nth-child(2) { width:27%; }
 .primary-merged-positions .query-table :is(th,td):nth-child(3) { width:21%; }
 .primary-merged-positions .query-table :is(th,td):nth-child(4) { width:30%; }
}
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-legend { justify-content:flex-start; flex-wrap:wrap; gap:18px; margin:14px 0; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-chart-summary { display:none; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-legend-dot { width:10px; height:10px; border-radius:50%; display:inline-block; flex-shrink:0; }
:is(#reference-detail-style,#reference-detail-allocation) button.guorn-legend-item { display:inline-flex; align-items:center; gap:7px; border:0; background:transparent; color:#48594f; padding:6px 2px; font:inherit; font-size:13px; cursor:pointer; text-align:left; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart-readout { min-height:2.8em; margin:12px 0 0; color:#6b746d; line-height:1.6; font-size:12px; overflow-wrap:anywhere; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-chart .guorn-chart { display:block; max-width:100%; height:auto; min-width:0; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-strategy .up { color:#b83227; }
:is(#reference-detail-style,#reference-detail-allocation) .primary-style-strategy .down { color:#287a69; }
@media(max-width:700px) {
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric { padding:16px 12px; gap:10px; }
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric strong { font-size:clamp(18px,5.4vw,23px); white-space:nowrap; }
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-metric > span { font-size:13px; }
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-description .layer-group-note { font-size:15px; }
 :is(#reference-detail-style,#reference-detail-allocation) .primary-style-heading h3 { font-size:20px; }
 :is(#reference-detail-style,#reference-detail-allocation) .reference-detail-head > .category-back { margin-left:0; }
}
@media(max-width:700px) { .strategy-favorite-entry { margin-bottom:12px; }.strategy-favorite-button { padding-inline:10px; min-width:60px; }.strategy-favorite-grid { gap:18px; }.strategy-favorite-note { font-size:13px; } }

/* 策略页个人操作与说明区入口；不改全站主导航。 */
body[data-section="strategy-showcase"] .header-actions { flex-wrap:wrap; }
body[data-section="strategy-showcase"] .theory-heading > .strategy-theory-actions { display:flex; flex:0 1 auto; align-items:center; gap:12px; }
body[data-section="strategy-showcase"] .strategy-theory-actions .theory-toggle { margin-top:0; }
.strategy-catalog-link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.strategy-catalog-link:hover { text-decoration:none; }
@media(max-width:768px) {
 body[data-section="strategy-showcase"] .header-actions { width:100%; margin-left:0; justify-content:flex-start; }
 body[data-section="strategy-showcase"] .theory-heading > .strategy-theory-actions { flex-basis:100%; width:100%; gap:8px; }
 body[data-section="strategy-showcase"] .strategy-theory-actions .theory-toggle { min-width:0; padding:8px; font-size:12px; letter-spacing:0; white-space:nowrap; }
 .strategy-catalog-link { min-width:0; font-size:12px; line-height:1.5; }
}

/* 手机主导航固定两列；仅匹配站点模块，不影响页内分类与图例。 */
@media (max-width: 768px) {
  .site-header .module-tabs[data-site-navigation] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    height: auto;
    min-width: 0;
    overflow: visible;
  }
  .site-header .module-tabs[data-site-navigation] > .module-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* 超短卡片只保留读者信号与速览，技术解释默认折叠。 */
.reference-intro .short-execution-note { color:#b03a30; font-size:14px; line-height:1.65; max-width:none; }
body[data-section="strategy-showcase"] .strategy-workspace .reference-intro > p.short-execution-note { color:#b42318; }
.reference-intro > .short-live-overview { margin-top:12px; }
.short-explanation { min-width:0; font-size:13px; color:#62665f; }
.short-explanation > summary { cursor:pointer; padding:5px 0; font-weight:600; }
.short-explanation p { margin:7px 0; line-height:1.65; }
.strategy-ref-card.short-compact-card { display:flex !important; flex-direction:column; min-width:0; }
.strategy-ref-card.short-compact-card .card-header { padding:12px 16px; gap:8px; }
.strategy-ref-card.short-compact-card .card-head { gap:6px; }
.strategy-ref-card.short-compact-card .card-title { font-size:21px; line-height:1.35; }
.strategy-ref-card.short-compact-card .strategy-state { font-size:12px; }
.strategy-ref-card.short-compact-card > .short-live-summary { margin:0 16px 8px; padding:9px 12px; }
.strategy-ref-card.short-compact-card .short-live-title { font-size:18px; line-height:1.35; }
.strategy-ref-card.short-compact-card .short-live-summary p { margin-top:4px; line-height:1.5; }
.strategy-ref-card.short-compact-card .short-history-toggle { margin:7px 0 0; padding:5px 10px; font-size:13px; }
.strategy-ref-card.short-compact-card .card-body { padding:8px 16px 12px; }
.strategy-ref-card.short-compact-card .ref-glance { margin:0; padding:10px 12px; }
.strategy-ref-card.short-compact-card .ref-glance-head { margin-bottom:8px; gap:7px; flex-wrap:wrap; }
.strategy-ref-card.short-compact-card .ref-glance-grid { gap:6px; margin:0; }
.strategy-ref-card.short-compact-card .ref-glance-cell { padding:7px 5px; }
.strategy-ref-card.short-compact-card .ref-glance-val { font-size:20px; }
.strategy-ref-card.short-compact-card .ref-glance-note { margin:8px 0 0; font-size:13px; line-height:1.55; }
.strategy-ref-card.short-compact-card .card-actions { flex-direction:row; flex-wrap:wrap; gap:7px; margin:10px 0 5px; }
body .strategy-ref-card.short-compact-card .card-actions { display:flex; flex-direction:row; gap:7px; }
body .strategy-ref-card.short-compact-card .card-actions .action-button { flex:0 1 auto; width:auto; padding:6px 11px; min-height:32px; font-size:13px; }
body .strategy-ref-card.short-compact-card .card-head { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; min-width:0; }
body .strategy-ref-card.short-compact-card .card-head .card-title { flex:1 1 180px; }
body .strategy-ref-card.short-compact-card .strategy-favorite-button { padding:4px 9px; min-height:30px; margin:0; }
body .strategy-ref-card.short-compact-card .ref-glance-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
body .strategy-ref-card.short-compact-card .ref-glance-head { display:flex; }
body .strategy-ref-card.short-compact-card .ref-glance-kicker { margin-right:auto; }
body .strategy-ref-card.short-compact-card .ref-glance-val { font-size:18px; }
body .strategy-ref-card.short-compact-card .ref-glance-label { font-size:12px; }
.strategy-ref-card.short-compact-card .strategy-switch { padding:6px 10px; font-size:13px; }
.strategy-ref-card.short-compact-card > .comment-section { margin-top:0; }
@media(max-width:700px) {
 .strategy-ref-card.short-compact-card .card-header { padding:10px 12px; }
 .strategy-ref-card.short-compact-card > .short-live-summary { margin:0 12px 6px; }
 .strategy-ref-card.short-compact-card .card-body { padding:7px 12px 10px; }
 body .strategy-ref-card.short-compact-card .ref-glance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
