:root {
  --primary: #1f4e79;
  --accent: #2e74b5;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --grey: #595959;
  --warn-bg: #fff4e5;
  --warn-text: #9c5700;
  --err-bg: #fdecea;
  --err-text: #b3261e;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

.site-language-switch {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 41, 101, 0.78);
  box-shadow: 0 4px 18px rgba(5, 31, 80, 0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-language-switch:hover {
  color: #fff;
  background: rgba(19, 77, 162, 0.96);
}

@media (max-width: 720px) {
  .site-language-switch {
    top: 12px;
    right: 12px;
    min-width: 62px;
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12px;
  }
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 32px 16px;
}
.topbar-inner { max-width: 860px; margin: 0 auto; }
/* 个股详情页顶栏带登录组件时：品牌左、登录组件右、标题另起一行 */
.topbar-inner:has(> .auth-widget) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.topbar-inner:has(> .auth-widget) .tagline { flex: 1 1 100%; order: 3; }
.topbar-inner > .auth-widget { margin-left: auto; }
.detail-valuation { margin: 0; scroll-margin-top: 16px; }
.detail-valuation .valuation-entry { margin-bottom: 0; }
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 20px; }
.detail-tab-btn {
  padding: 10px 18px; border: none; background: none; cursor: pointer; font-size: 15px;
  color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.detail-tab-btn.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.detail-tab-btn:hover { color: var(--accent); }
.detail-tab-panel[hidden] { display: none; }
.topbar-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.topbar h1 { margin: 0 0 6px; font-size: 26px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-link {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6); color: #fff; text-decoration: none; font-size: 13px;
  background: rgba(255,255,255,0.1);
}
.topbar-link:hover { background: rgba(255,255,255,0.22); }
/* 落地页(/stock/:market/:code)正文已经有自己的<h1>(公司名)，顶部站名不能再用<h1>——
   否则一页两个h1，弱化标题层级信号。视觉上跟原来的.topbar h1保持一致，只是不是标题标签。 */
.topbar-brand {
  display: block; margin: 0 0 6px; font-size: 26px; font-weight: 700;
  color: #fff; text-decoration: none;
}
.tagline { margin: 0; opacity: 0.9; font-size: 14px; }

.container { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }

.market-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.market-tab {
  padding: 7px 18px; font-size: 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--grey); font-family: inherit;
}
.market-tab:hover { border-color: var(--accent); color: var(--accent); }
.market-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box {
  display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start;
}
.input-wrap { flex: 1; position: relative; }
.input-wrap input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 8px; outline: none;
}
.input-wrap input:focus { border-color: var(--accent); }

.suggest-list {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1); max-height: 280px; overflow-y: auto;
}
.suggest-list.hidden { display: none; }
.suggest-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.suggest-item:hover, .suggest-item.active { background: var(--bg); }
.suggest-item .s-name { color: var(--text); }
.suggest-item .s-code { color: var(--grey); font-size: 12px; flex-shrink: 0; }

.search-box button {
  padding: 12px 22px; font-size: 15px; font-weight: 600;
  background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer;
}
.search-box button:hover { background: var(--accent); }
.search-box button:disabled { opacity: 0.6; cursor: not-allowed; }

/* min-height预留空间——这个区域是app.js异步fetch /api/reports后才插入按钮的，
   不预留高度的话，插入瞬间会把下面的"关于本站"/"最新报告"区块往下顶，触发CLS。 */
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; min-height: 34px; }
.recent-list button {
  padding: 6px 12px; font-size: 13px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--grey); cursor: pointer;
}
.recent-list button:hover { border-color: var(--accent); color: var(--accent); }

.result { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.result.hidden { display: none; }

.result-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.result-header h2 { margin: 0; font-size: 20px; }
.result-meta { color: var(--grey); font-size: 13px; margin-bottom: 16px; }

.freshness-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--border);
}
.badge-fresh { background: #eafaf0; color: #1e7d43; border-color: #bfe8d0; }
.badge-stale { background: var(--warn-bg); color: var(--warn-text); border-color: #f3d9ae; }
.badge-legacy { background: #eef1f5; color: var(--grey); }

.flash {
  background: #eafaf0; color: #1e7d43; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 14px;
}

.actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.actions a, .actions button {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; text-decoration: none;
  background: var(--primary); color: #fff; border: none; cursor: pointer; font-family: inherit;
}
/* 报告详情页的 .actions 套在 .article 里面，.article a { color: var(--accent) }
   的选择器权重和上面这条一样、书写顺序又更靠后，会把"查看PDF"链接的文字盖成
   和深色底几乎一样的蓝，看不清——这里用双类选择器把权重提高，明确保白色文字。 */
.result .actions a { color: #fff; }
.actions a.secondary, .actions button.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.actions button.secondary:disabled { color: var(--grey); border-color: var(--border); cursor: default; }
.actions button.link-btn {
  background: none; border: none; color: var(--grey); font-size: 13px; text-decoration: underline;
  padding: 8px 4px;
}

/* ---------- 专业估值（付费功能） ---------- */
.valuation-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 6px 0 18px; padding: 18px; border: 1px solid #cbd9e8; border-radius: 12px;
  background: linear-gradient(135deg, #f6f9fd, #eef5fb);
}
.valuation-entry > div { min-width: 0; }
.valuation-entry-tag {
  display: block; margin-bottom: 5px; color: #8a5a00; font-size: 11px; font-weight: 600;
}
.valuation-entry strong { display: block; color: var(--primary); font-size: 17px; }
.valuation-entry p { margin: 5px 0 0; color: var(--grey); font-size: 12px; line-height: 1.55; }
.valuation-entry button, .valuation-error button, .valuation-refresh {
  flex-shrink: 0; padding: 9px 17px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--primary); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600;
}
.valuation-entry button:hover, .valuation-error button:hover, .valuation-refresh:hover { background: var(--accent); }
#valuation-panel { margin-bottom: 18px; }

/* ---------- 报告引擎升级提示（老版本引擎生成的报告才显示，见 seoPage.js） ---------- */
.engine-upgrade {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 14px; padding: 14px 18px; border: 1px solid #f3d9ae; border-radius: 12px;
  background: linear-gradient(135deg, #fffaf1, var(--warn-bg));
}
.engine-upgrade-text { min-width: 0; }
.engine-upgrade strong { display: block; color: var(--warn-text); font-size: 15px; }
.engine-upgrade p { margin: 5px 0 0; color: var(--grey); font-size: 13px; line-height: 1.6; }
.engine-upgrade p a { color: var(--accent); white-space: nowrap; margin-left: 4px; }
.engine-upgrade-cta {
  flex-shrink: 0; padding: 9px 17px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--primary); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600;
}
.engine-upgrade-cta:hover { background: var(--accent); }
.engine-upgrade-cta:disabled { background: var(--grey); cursor: default; }
@media (max-width: 720px) {
  .engine-upgrade { flex-direction: column; align-items: stretch; }
}
.valuation-paywall {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 18px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.valuation-paywall > .valuation-entry-tag { flex-basis: 100%; margin-bottom: 2px; }
/* 解锁估值是这张卡片唯一的转化动作，用渐变+阴影和外面那圈其他按钮拉开视觉层级，
   让用户一眼看到"该点哪里"，而不是和刷新/重试这类次要按钮一样扁平。 */
.valuation-paywall button {
  flex-shrink: 0; border: none; border-radius: 999px; cursor: pointer;
  padding: 13px 26px; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 18px rgba(46, 116, 181, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.valuation-paywall button:hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 9px 22px rgba(46, 116, 181, 0.45);
}
.valuation-paywall button:active:not(:disabled) { transform: translateY(0); }
.valuation-paywall button:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.valuation-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 700;
}
.valuation-paywall-copy { flex: 1; min-width: 0; }
.valuation-paywall h3 { margin: 0 0 4px; color: var(--primary); font-size: 16px; }
.valuation-paywall p { margin: 0; color: var(--grey); font-size: 12px; line-height: 1.55; }
.valuation-paywall .valuation-busy { color: var(--warn-text); margin-top: 5px; }
.valuation-loading, .valuation-error {
  text-align: center; padding: 28px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
/* 估值生成要跑一两分钟、进度文案每 3 秒变一次；固定最小高度，文案长短变化时不撑动整页。 */
.valuation-loading {
  min-height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.valuation-loading .progress-text { min-height: 2.6em; }
.valuation-loading .spinner { width: 30px; height: 30px; margin-bottom: 12px; }
.valuation-loading strong { display: block; color: var(--primary); }
.valuation-loading p, .valuation-error p { margin: 6px 0; color: var(--grey); font-size: 13px; }
.valuation-loading small, .valuation-error small { color: var(--grey); font-size: 11px; }
.valuation-error { background: var(--err-bg); color: var(--err-text); }
.valuation-error button { display: block; margin: 12px auto 0; }
.valuation-result {
  border: 1px solid #d7e3f0; border-radius: 16px; padding: 26px;
  background: linear-gradient(180deg, #f7fbff 0, #fff 220px);
  box-shadow: 0 14px 34px rgba(20, 48, 82, 0.08);
}
.valuation-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 2px; border-bottom: 1px solid #e6eef7;
}
.valuation-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.valuation-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.valuation-title-row h3 { margin: 7px 0 0; color: var(--primary); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.valuation-confidence { padding: 6px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid; box-shadow: 0 2px 8px rgba(20,48,82,.05); }
.confidence-high { color: #1e7d43; background: #eafaf0; border-color: #bfe8d0; }
.confidence-medium { color: var(--warn-text); background: var(--warn-bg); border-color: #f3d9ae; }
.confidence-low { color: var(--err-text); background: var(--err-bg); border-color: #f5c7c3; }
.valuation-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 14px; }
.valuation-hero-grid > div {
  padding: 16px; border: 1px solid #e3ebf3; border-radius: 12px; background: #fff; min-width: 0;
  box-shadow: 0 2px 10px rgba(20,48,82,.04);
}
.valuation-hero-grid > div.primary {
  border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 26px rgba(46,116,181,.3);
}
.valuation-hero-grid > div.primary span, .valuation-hero-grid > div.primary small { color: rgba(255,255,255,.75); }
.valuation-hero-grid > div.primary strong { color: #fff; }
.valuation-hero-grid span, .valuation-hero-grid small { display: block; color: var(--grey); font-size: 10px; letter-spacing: .02em; }
.valuation-hero-grid strong { display: block; margin: 6px 0; color: var(--text); font-size: 19px; font-weight: 700; white-space: nowrap; }
.valuation-hero-grid strong.positive { color: #b3261e; }
.valuation-hero-grid strong.negative { color: #1e7d43; }
.valuation-meta { color: var(--grey); font-size: 11px; margin-bottom: 18px; }
.valuation-result h4 {
  margin: 26px 0 12px; padding-left: 10px; color: var(--primary); font-size: 14px; font-weight: 700;
  border-left: 3px solid var(--accent);
}
.recommended-models {
  margin: 28px 0 10px; padding: 20px; border-radius: 14px;
  background: linear-gradient(160deg, #f5faff, #eef5fb); border: 1px solid #cfe1f1;
  box-shadow: 0 6px 18px rgba(20,48,82,.05);
}
.recommended-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.recommended-heading span, .recommended-heading small { color: var(--grey); font-size: 10px; }
.recommended-heading h4 { margin: 3px 0 0; padding-left: 0; border-left: none; font-size: 15px; font-weight: 800; }
.recommended-note {
  margin: 0 0 12px; padding: 8px 11px; border-radius: 8px; background: #eaf3fb;
  border: 1px solid #cfe1f1; color: var(--grey); font-size: 12px; line-height: 1.6;
}
.recommended-model-grid, .other-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.investor-model-card {
  min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.investor-model-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,48,82,.1); }
.investor-model-card.recommended { border-color: #9fc2e3; box-shadow: 0 4px 14px rgba(30,78,121,.1); }
.investor-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.investor-model-head span { display: block; color: var(--grey); font-size: 9px; }
.investor-model-head h5 { margin: 4px 0 0; color: var(--primary); font-size: 13px; line-height: 1.35; }
.investor-model-head h5 a, .duan-framework-title h4 a { color: inherit; text-decoration: none; }
.investor-model-head h5 a:hover, .duan-framework-title h4 a:hover { color: var(--accent); }
.investor-model-head > strong { flex-shrink: 0; color: var(--primary); font-size: 15px; }
.investor-model-head > strong.metric-only { color: var(--grey); font-size: 10px; }
.model-rank {
  display: inline-block; margin: 0 0 5px; padding: 3px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); font-size: 9px; font-weight: 700; letter-spacing: .02em;
}
.investor-model-card p { margin: 9px 0 0; font-size: 10px; line-height: 1.55; }
.model-reason { color: var(--text); }
.model-method { color: var(--grey); }
.model-limit { padding: 6px 8px; border-radius: 6px; color: var(--warn-text); background: var(--warn-bg); }
.model-hint { padding: 7px 9px; border-radius: 6px; color: var(--grey); background: #eef4fa; border: 1px solid #d8e6f2; }
.model-guide-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 10px; text-decoration: none; }
.model-guide-link:hover { text-decoration: underline; }
.model-range { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 7px 8px; border-radius: 7px; background: var(--bg); font-size: 10px; }
.model-range span { color: var(--grey); }
.model-range strong { color: var(--text); }
.model-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.model-metrics > div { min-width: 0; padding: 6px 7px; border-radius: 6px; background: #f7f9fc; }
.model-metrics span, .model-metrics strong { display: block; overflow-wrap: anywhere; }
.model-metrics span { color: var(--grey); font-size: 9px; }
.model-metrics .metric-dir { display: block; margin-top: 1px; font-style: normal; font-size: 8px; color: #8a94a0; white-space: nowrap; }
.model-metrics strong { margin-top: 3px; color: var(--text); font-size: 10px; }
.other-models { margin-top: 10px; }
.other-models summary { cursor: pointer; color: var(--accent); font-size: 11px; }
.other-model-grid { margin-top: 10px; }
.valuation-frameworks { margin: 24px 0 6px; padding-top: 18px; border-top: 1px solid var(--border); }
.frameworks-heading { margin-bottom: 10px; }
.frameworks-heading span { color: var(--grey); font-size: 10px; }
.frameworks-heading h4 { margin: 3px 0 0; }
.premium-packs { margin: 24px 0 6px; padding-top: 18px; border-top: 1px solid var(--border); }
.premium-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.premium-pack-card { min-width: 0; padding: 14px; border: 1px dashed #c9b98a; border-radius: 10px; background: #fffaf0; }
.premium-pack-card.unlocked { border-style: solid; border-color: var(--border); background: #fff; }
.premium-pack-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.premium-pack-head h5 { margin: 0; color: var(--primary); font-size: 13px; line-height: 1.35; }
.premium-pack-desc, .premium-pack-models { margin: 8px 0 0; font-size: 10px; line-height: 1.55; color: var(--text); }
.premium-pack-models { color: var(--grey); }
.premium-pack-unlock-btn {
  flex-shrink: 0; padding: 5px 10px; border: 1px solid var(--accent); border-radius: 999px;
  background: #fff; color: var(--accent); font-size: 10px; cursor: pointer;
}
.premium-pack-unlock-btn:hover { background: var(--accent); color: #fff; }
.premium-pack-unlocked { flex-shrink: 0; color: #2f8f4e; font-size: 10px; font-weight: 700; }
.premium-pack-pending { flex-shrink: 0; color: var(--grey); font-size: 9px; }
@media (max-width: 720px) {
  .premium-pack-grid { grid-template-columns: 1fr; }
}
.duan-framework { margin: 10px 0 20px; padding: 16px; border: 1px solid #d9c9a5; border-radius: 10px; background: #fffaf0; }
.duan-framework-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.duan-framework-title span { color: #8a5a00; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.duan-framework-title h4 { margin: 3px 0 0; }
.duan-framework-title > strong { color: var(--primary); font-size: 20px; white-space: nowrap; }
.duan-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 13px 0; }
.duan-metrics > div { padding: 10px; border-radius: 8px; background: rgba(255,255,255,.8); }
.duan-metrics span, .duan-metrics strong { display: block; }
.duan-metrics span { color: var(--grey); font-size: 10px; }
.duan-metrics strong { margin-top: 4px; color: var(--text); font-size: 13px; }
.duan-quality { display: flex; gap: 6px; flex-wrap: wrap; }
.duan-safety { display: flex; align-items: baseline; gap: 8px; margin: 0 0 11px; }
.duan-safety span { color: var(--grey); font-size: 10px; }
.duan-safety strong { color: var(--primary); font-size: 13px; }
.duan-safety small { color: var(--grey); font-size: 10px; }
.duan-quality span { padding: 4px 8px; border-radius: 999px; font-size: 10px; border: 1px solid; }
.duan-quality .quality-strong { color: #1e7d43; background: #eafaf0; border-color: #bfe8d0; }
.duan-quality .quality-mixed { color: var(--warn-text); background: var(--warn-bg); border-color: #f3d9ae; }
.duan-quality .quality-weak { color: var(--err-text); background: var(--err-bg); border-color: #f5c7c3; }
.duan-framework p { margin: 10px 0 0; color: var(--grey); font-size: 11px; line-height: 1.55; }
.duan-framework p.framework-methodology { margin-top: 7px; color: var(--text); }
.duan-framework ul { margin: 8px 0 0; padding-left: 18px; color: var(--grey); font-size: 11px; line-height: 1.55; }
.framework-warnings { margin-top: 10px; padding: 8px 10px; border-radius: 7px; color: var(--warn-text); background: var(--warn-bg); font-size: 10px; line-height: 1.5; }
.valuation-framework-generic { margin: 10px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.valuation-framework-generic h4 { margin: 0 0 6px; }
.valuation-framework-generic p { color: var(--grey); font-size: 11px; }
.valuation-table-wrap { overflow-x: auto; border: 1px solid #e3ebf3; border-radius: 10px; }
.valuation-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.valuation-table th, .valuation-table td { border: none; border-bottom: 1px solid #e9eff5; padding: 10px 12px; text-align: right; white-space: nowrap; }
.valuation-table tr.component-assumptions td { text-align: left; white-space: normal; padding: 4px 12px 10px; font-size: 11px; color: #5b6b7c; background: #fafcfe; line-height: 1.7; }
/* 表格在手机上横向滚动；关键假设固定在可视宽度内换行，不跟着表格滚出屏幕。 */
.valuation-table-wrap { container-type: inline-size; }
.valuation-table tr.component-assumptions .assumption-list { position: sticky; left: 12px; max-width: calc(100cqw - 24px); }
.valuation-table tr.component-assumptions .assumption-title { font-weight: 600; color: #3d4b5a; margin-right: 10px; }
.valuation-table tr.component-assumptions .assumption-item { display: inline-block; margin-right: 14px; }
.valuation-table tr.component-assumptions .assumption-item b { font-weight: 600; color: #1f2d3d; }
.valuation-table tbody tr:last-child td { border-bottom: none; }
.valuation-table th:first-child, .valuation-table td:first-child { text-align: left; }
.valuation-table th {
  color: #fff; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.valuation-table tbody tr:nth-child(even) { background: #f7fafd; }
.valuation-table tbody tr:hover { background: #eef5fc; }
.valuation-table td:first-child a { color: var(--accent); text-decoration: none; }
.valuation-table td:first-child a:hover { text-decoration: underline; }
.valuation-sensitivity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
.valuation-sensitivity-card { min-width: 0; padding: 14px; border: 1px solid #dce6f0; border-radius: 10px; background: #fff; }
.valuation-sensitivity-card h5 { margin: 0 0 10px; color: var(--primary); font-size: 13px; }
.valuation-sensitivity-card p { margin: 8px 0 0; color: var(--grey); font-size: 10px; line-height: 1.5; }
.valuation-sensitivity-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.valuation-sensitivity-table th, .valuation-sensitivity-table td { padding: 7px 8px; border: 1px solid #e3ebf3; text-align: right; white-space: nowrap; }
.valuation-sensitivity-table thead th { color: #fff; background: var(--primary); }
.valuation-sensitivity-table tbody th { color: var(--primary); background: #f4f8fc; }
.valuation-sensitivity-table .is-base { font-weight: 800; color: #7a4d00; background: #fff3cf; }
.assumption-audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.assumption-audit-card { padding: 14px; border: 1px solid #dce6f0; border-radius: 10px; background: #fff; }
.assumption-audit-card > div { display: flex; justify-content: space-between; gap: 8px; color: var(--grey); font-size: 9px; text-transform: uppercase; }
.assumption-audit-card h5 { margin: 8px 0 10px; color: var(--text); font-size: 12px; line-height: 1.45; }
.assumption-audit-card dl { display: grid; grid-template-columns: 62px 1fr; gap: 6px 8px; margin: 0; font-size: 10px; line-height: 1.5; }
.assumption-audit-card dt { color: var(--grey); }
.assumption-audit-card dd { margin: 0; color: var(--text); }
.assumption-audit-card b { padding: 2px 6px; border-radius: 999px; }
.assumption-audit-card .audit-high { color: #1e7d43; background: #eafaf0; }
.assumption-audit-card .audit-medium { color: var(--warn-text); background: var(--warn-bg); }
.assumption-audit-card .audit-low { color: var(--err-text); background: var(--err-bg); }
.valuation-evidence, .second-opinion { margin-top: 14px; color: var(--grey); font-size: 12px; }
.valuation-evidence summary, .second-opinion summary { color: var(--accent); cursor: pointer; }
.valuation-evidence .valuation-table-wrap { margin-top: 10px; }
.evidence-ledger-meta { margin: 8px 0; color: var(--grey); font-size: 10px; }
.valuation-evidence-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.valuation-evidence-table th, .valuation-evidence-table td { padding: 8px; border-bottom: 1px solid #e8eef4; text-align: left; vertical-align: top; }
.valuation-evidence-table th { color: #fff; background: var(--primary); }
.valuation-evidence-table td small { display: block; margin-top: 3px; color: var(--grey); line-height: 1.4; }
.valuation-evidence-table code { font-size: 9px; overflow-wrap: anywhere; }
.valuation-evidence-table a { color: var(--accent); overflow-wrap: anywhere; }
.second-opinion { padding: 10px 12px; border: 1px solid #dce6f0; border-radius: 8px; background: #f8fbfe; }
.second-opinion p { margin: 7px 0 0; line-height: 1.5; }
.valuation-calibration { margin-top: 14px; padding: 14px; border: 1px solid #dce6f0; border-radius: 10px; background: #f8fbfe; }
.valuation-calibration h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.valuation-calibration h4 small { color: var(--grey); font-size: 10px; font-weight: 500; }
.valuation-calibration h5 { margin: 14px 0 8px; color: var(--primary); font-size: 11px; }
.calibration-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calibration-price-grid > div { padding: 10px; border-radius: 8px; background: #fff; }
.calibration-price-grid span { display: block; margin-bottom: 5px; color: var(--grey); font-size: 9px; }
.calibration-price-grid strong { color: var(--text); font-size: 11px; }
.calibration-adjustment { margin: 6px 0 0; color: var(--grey); font-size: 9px; }
.valuation-calibration details { margin-top: 10px; color: var(--grey); font-size: 10px; }
.valuation-calibration summary { color: var(--accent); cursor: pointer; }
.valuation-calibration ul { margin-bottom: 0; padding-left: 18px; line-height: 1.6; }
.calibration-empty { margin: 10px 0 0; color: var(--grey); font-size: 10px; }
.calibration-history { margin-top: 14px; }
.calibration-horizon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calibration-horizon-grid article { display: grid; gap: 4px; padding: 10px; border: 1px solid #e3ebf3; border-radius: 8px; background: #fff; }
.calibration-horizon-grid b { color: var(--primary); font-size: 11px; }
.calibration-horizon-grid small, .calibration-horizon-grid span { color: var(--grey); font-size: 9px; }
.calibration-horizon-grid strong { color: var(--text); font-size: 11px; }
.calibration-horizon-grid em { color: var(--accent); font-size: 10px; font-style: normal; }
.calibration-history > p { margin: 8px 0 0; color: var(--grey); font-size: 10px; }
.valuation-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.valuation-columns ul, .valuation-warnings ul { margin: 0; padding-left: 18px; }
.valuation-columns li, .valuation-warnings li { margin-bottom: 6px; color: var(--grey); font-size: 12px; line-height: 1.55; }
.valuation-warnings { margin-top: 14px; color: var(--warn-text); font-size: 12px; }
.valuation-warnings summary { cursor: pointer; }
.valuation-translation-pending {
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid #f3d9ae;
  border-radius: 8px; padding: 8px 12px; font-size: 12px; margin: 10px 0;
}
.valuation-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.valuation-footer span { color: var(--grey); font-size: 10px; line-height: 1.5; }
.valuation-refresh { font-size: 12px; padding: 7px 12px; }

.pdf-frame { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: 8px; }

.status-box { text-align: center; padding: 40px 20px; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 16px;
  border: 4px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-progress { color: var(--grey); font-size: 14px; }
.status-hint { color: var(--grey); font-size: 12px; margin-top: 8px; }

.notify-box {
  margin: 18px auto 0; max-width: 420px; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--primary); background: #eaf1f8;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.notify-box.notify-done { color: #1e7d43; background: #eafaf0; border-color: #bfe8d0; }
.notify-box button {
  padding: 5px 14px; border-radius: 999px; border: none; background: var(--primary); color: #fff;
  cursor: pointer; font-size: 12px; font-family: inherit; flex-shrink: 0;
}
.notify-box button:disabled { opacity: 0.6; cursor: default; }

.error-box { background: var(--err-bg); color: var(--err-text); padding: 16px; border-radius: 8px; }
.error-box button { margin-top: 10px; padding: 8px 16px; border-radius: 6px; border: none; background: var(--err-text); color: #fff; cursor: pointer; }

/* 免费额度用完了不算真的"出错"(不是红色警示)，是个引导升级的场景，用主色调而不是错误色。 */
.rate-limited-box { background: #eaf1f8; color: var(--primary); }
.rate-limited-box button {
  background: var(--primary); font-size: 14px; font-family: inherit;
}
.rate-limited-box button:hover { background: var(--accent); }
.rate-limited-box button:disabled { opacity: 0.6; cursor: default; }

.sources { margin-top: 18px; font-size: 12px; color: var(--grey); }
.sources summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.sources li { margin-bottom: 4px; word-break: break-all; }

/* SEO落地页(/stock/:market/:code)正文排版——纯服务端渲染的markdown内容 */
.article-page { max-width: 760px; }
/* 个股详情页数据/表格多，放宽到接近首页的宽度，减少两侧留白；正文段落仍按易读宽度排，
   表格和估值区块用整幅宽度。移动端 min() 会退化成 calc(100vw - 40px)，两侧仍有 20px 边距。 */
.container.stock-detail-page { max-width: min(1200px, calc(100vw - 40px)); }
.stock-detail-page .article > p,
.stock-detail-page .article > ul,
.stock-detail-page .article > ol,
.stock-detail-page .article > blockquote { max-width: 900px; }
body:has(.stock-detail-page) .topbar-inner,
body:has(.stock-detail-page) .site-footer { max-width: min(1200px, calc(100vw - 40px)); }
/* 正文里的裸网址、长代码在手机上要能断行，否则会把整页撑宽（表格不受影响，仍在 .table-scroll 里横向滚动）。 */
.article { line-height: 1.75; overflow-wrap: break-word; }
.article h2 { margin: 32px 0 12px; font-size: 20px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.article h3 { margin: 24px 0 10px; font-size: 16px; color: var(--accent); }
.article h4 { margin: 18px 0 8px; font-size: 14px; color: var(--text); }
.article p { margin: 0 0 14px; color: var(--text); font-size: 15px; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2, #f2f3f5); padding: 1px 5px; border-radius: 4px; }
.article blockquote { margin: 0 0 14px; padding: 8px 14px; background: var(--bg); color: var(--grey); border-left: 3px solid var(--accent); font-size: 13px; }
.article ul { margin: 0 0 14px; padding-left: 22px; }
.article li { margin-bottom: 6px; font-size: 15px; }
.article .table-scroll { max-width: 100%; margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article .table-scroll > table { margin: 0; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13px; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article th { background: var(--primary); color: #fff; }
.article tbody tr:nth-child(even) { background: #f7f9fc; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.article a { color: var(--accent); }

.about-site, .seo-recent {
  background: var(--card); border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.model-library-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 20px; padding: 22px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #173b61, #2e74b5); box-shadow: 0 5px 18px rgba(23,59,97,.14);
}
.model-library-promo span { font-size: 10px; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.model-library-promo h2 { margin: 5px 0 7px; font-size: 19px; }
.model-library-promo p { max-width: 650px; margin: 0; font-size: 12px; line-height: 1.65; opacity: .84; }
.model-library-promo > a { flex-shrink: 0; padding: 9px 14px; border-radius: 8px; color: var(--primary); background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.model-library-promo > a:hover { background: #eef6fd; }

/* ---------- 估值模型百科 ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin: 4px 0 16px; color: var(--grey); font-size: 11px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.model-library-hero, .model-detail-page > article { background: #fff; border-radius: 14px; box-shadow: 0 1px 5px rgba(0,0,0,.07); }
.model-library-hero { padding: 30px; background: linear-gradient(135deg, #f6faff, #fff); border: 1px solid #d6e4f2; }
.model-library-hero > span, .model-detail-hero > div > span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.model-library-hero h1 { margin: 6px 0 10px; color: var(--primary); font-size: 30px; }
.model-library-hero > p { max-width: 760px; margin: 0; color: var(--grey); font-size: 14px; line-height: 1.75; }
.model-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.model-principles > div { padding: 12px; border: 1px solid #dbe7f2; border-radius: 9px; background: rgba(255,255,255,.8); }
.model-principles strong, .model-principles span { display: block; }
.model-principles strong { color: var(--primary); font-size: 13px; }
.model-principles span { margin-top: 4px; color: var(--grey); font-size: 10px; }
.model-library-group { margin-top: 26px; }
.model-library-group h2 { margin: 0 0 10px; color: var(--primary); font-size: 18px; }
.model-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.model-library-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.model-library-card:hover { transform: translateY(-2px); border-color: #a7c8e5; box-shadow: 0 5px 15px rgba(30,78,121,.09); }
.model-library-card > span { color: var(--grey); font-size: 9px; }
.model-library-card h3 { margin: 5px 0 8px; color: var(--primary); font-size: 14px; }
.model-library-card p { flex: 1; margin: 0; color: var(--grey); font-size: 11px; line-height: 1.65; }
.model-library-card small { margin-top: 12px; color: var(--accent); font-size: 10px; }
.model-detail-page > article { overflow: hidden; }
.model-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; padding: 30px; color: #fff; background: linear-gradient(135deg, #173b61, #2e74b5); }
.model-detail-hero > div > span { color: #acd4f5; }
.model-detail-hero h1 { margin: 7px 0 10px; font-size: 28px; }
.model-detail-hero p { max-width: 720px; margin: 0; font-size: 13px; line-height: 1.75; opacity: .86; }
.model-detail-hero dl { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.model-detail-hero dl > div { padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.model-detail-hero dt { color: #acd4f5; font-size: 9px; }
.model-detail-hero dd { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.model-question { display: flex; align-items: center; gap: 16px; margin: 22px 30px 0; padding: 15px 17px; border-radius: 9px; background: #fff8e8; border: 1px solid #ead8ad; }
.model-question span { flex-shrink: 0; color: #8a5a00; font-size: 10px; font-weight: 700; }
.model-question strong { color: var(--text); font-size: 14px; line-height: 1.55; }
.model-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; padding: 8px 30px 30px; }
.model-detail-main section, .model-detail-side section { margin-top: 25px; }
.model-detail-main h2, .model-detail-side h2, .related-models h2 { margin: 0 0 10px; color: var(--primary); font-size: 17px; }
.model-detail-main p { margin: 0 0 11px; color: var(--text); font-size: 13px; line-height: 1.8; }
.model-detail-main ul, .model-detail-main ol, .model-detail-side ul { margin: 0; padding-left: 20px; }
.model-detail-main li, .model-detail-side li { margin-bottom: 8px; color: var(--text); font-size: 12px; line-height: 1.65; }
.formula-box { display: grid; gap: 7px; padding: 14px; border-radius: 9px; color: #eaf3fc; background: #172b40; overflow-x: auto; }
.formula-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: normal; line-height: 1.6; }
.evidence-box { padding: 15px 17px; border-left: 4px solid var(--accent); border-radius: 0 9px 9px 0; background: #f3f8fd; }
.evidence-box strong { color: var(--primary); font-size: 13px; }
.evidence-box p { margin: 6px 0 0; color: var(--grey); }
.model-detail-side { align-self: start; position: sticky; top: 16px; }
.model-detail-side section { padding: 15px; border: 1px solid var(--border); border-radius: 9px; background: #f9fbfd; }
.model-detail-side section:nth-child(2) { background: #fff9f3; border-color: #eed9c4; }
.model-detail-side h2 { font-size: 14px; }
.model-sources a { color: var(--accent); overflow-wrap: anywhere; }
.related-models { padding: 22px 30px 30px; border-top: 1px solid var(--border); }
.related-models > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.related-models a { padding: 11px; border: 1px solid var(--border); border-radius: 8px; color: inherit; text-decoration: none; }
.related-models a:hover { border-color: var(--accent); }
.related-models strong, .related-models span { display: block; }
.related-models strong { color: var(--primary); font-size: 12px; }
.related-models span { margin-top: 4px; color: var(--grey); font-size: 9px; }
.about-site h2, .seo-recent h2 { margin: 0 0 10px; font-size: 17px; color: var(--primary); }
.about-site p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text); }
.seo-recent-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-recent-list li { margin: 0; }
.seo-recent-list a {
  display: inline-block; padding: 6px 12px; font-size: 13px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--accent); text-decoration: none;
}
.seo-recent-list a:hover { border-color: var(--accent); background: var(--bg); }

/* ---------- 公开价格页 / 首页价格区 ---------- */
.pricing-section, .pricing-hero, .pricing-explainer, .pricing-free, .pricing-payment-note {
  background: var(--card); border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.pricing-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.pricing-heading h2, .pricing-explainer h2, .pricing-free h2, .pricing-payment-note h2 {
  margin: 0 0 8px; font-size: 20px; color: var(--primary);
}
.pricing-heading p, .pricing-free p, .pricing-payment-note p { margin: 0; color: var(--grey); font-size: 13px; line-height: 1.7; }
.pricing-kicker { margin: 0 0 5px !important; color: var(--accent) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pricing-detail-link { color: var(--accent); font-size: 13px; white-space: nowrap; }
.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pricing-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.pricing-card-featured { border-color: var(--accent); box-shadow: 0 4px 14px rgba(46,116,181,.12); }
.pricing-badge {
  position: absolute; top: -9px; right: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
}
.pricing-card h3 { margin: 0 0 10px; color: var(--primary); font-size: 15px; }
.pricing-price { margin: 0 0 8px; color: var(--text); }
.pricing-price strong { font-size: 23px; letter-spacing: -.02em; }
.pricing-price span { color: var(--grey); font-size: 10px; }
.pricing-credits { margin: 0 0 4px; font-size: 12px; color: var(--text); line-height: 1.5; }
.pricing-unit { margin: 0 0 14px; min-height: 34px; font-size: 11px; color: var(--grey); line-height: 1.5; }
.pricing-cta {
  display: block; margin-top: auto; padding: 8px 10px; border-radius: 8px; text-align: center;
  background: var(--primary); color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
}
.pricing-cta:hover { background: var(--accent); }
.pricing-note { margin: 14px 0 0; color: var(--grey); font-size: 12px; line-height: 1.65; }
.pricing-page { max-width: 980px; }
.pricing-hero { padding: 28px; }
.pricing-hero h1 { margin: 0 0 10px; color: var(--primary); font-size: 30px; }
.pricing-hero > p:last-child { max-width: 720px; margin: 0; color: var(--grey); font-size: 15px; line-height: 1.7; }
.pricing-page > .pricing-grid { margin-bottom: 20px; }
.pricing-page > .pricing-grid .pricing-card { padding: 22px 16px; }
.pricing-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pricing-use-grid article { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.pricing-use-grid strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 14px; }
.pricing-use-grid span { display: block; color: var(--grey); font-size: 12px; line-height: 1.6; }
.pricing-payment-note p + p { margin-top: 8px; }
.pricing-payment-note a { color: var(--accent); }

/* ---------- 登录/购买次数包 ---------- */
.auth-widget { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #fff; flex-shrink: 0; }
.auth-widget button, .auth-widget a {
  font-family: inherit; font-size: 13px; cursor: pointer; border-radius: 999px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); color: #fff; text-decoration: none;
}
.auth-widget button:hover, .auth-widget a:hover { background: rgba(255,255,255,0.22); }
.auth-widget .credits-pill { background: rgba(255,255,255,0.18); padding: 6px 12px; border-radius: 999px; }
.auth-widget .user-email { opacity: 0.9; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: #fff; border-radius: 12px; padding: 28px; width: 100%; max-width: 380px;
  position: relative; box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.modal-card.modal-card-wide { max-width: 680px; max-height: min(760px, calc(100vh - 32px)); overflow-y: auto; }
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 22px; line-height: 1; color: var(--grey); cursor: pointer;
}
.modal-card h3 { margin: 0 0 16px; font-size: 18px; color: var(--primary); }
.modal-card form { display: flex; flex-direction: column; gap: 10px; }
.modal-card input, .modal-card textarea {
  padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; outline: none;
  font-family: inherit;
}
.modal-card input:focus, .modal-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,116,181,.12); }
.modal-card textarea { resize: vertical; min-height: 112px; }
.modal-card label { color: var(--text); font-size: 13px; font-weight: 600; }
.modal-card .modal-submit {
  margin-top: 4px; padding: 10px; font-size: 14px; font-weight: 600; border-radius: 8px;
  border: none; background: var(--primary); color: #fff; cursor: pointer;
}
.modal-card .modal-submit:hover { background: var(--accent); }
.modal-card .modal-secondary {
  padding: 9px 12px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.modal-card .modal-switch { font-size: 13px; color: var(--grey); margin-top: 12px; text-align: center; }
.modal-card .modal-switch button { background: none; border: none; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 0; font-size: 13px; }
.modal-card .modal-error { color: var(--err-text); font-size: 13px; }
.modal-card .modal-note { color: var(--grey); font-size: 12px; line-height: 1.6; }
.modal-card .oauth-buttons { display: flex; flex-direction: column; gap: 8px; }
.modal-card .oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px;
  font-size: 14px; font-weight: 600; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); text-decoration: none;
}
.modal-card .oauth-btn:hover { border-color: var(--accent); background: #f7fafd; }
.modal-card .oauth-btn svg { flex: none; }
.modal-card .oauth-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--grey); font-size: 12px;
}
.modal-card .oauth-divider::before, .modal-card .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.modal-card .pack-row {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; gap: 10px;
}
.modal-card .pack-info { display: flex; flex-direction: column; gap: 3px; }
.modal-card .pack-label { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.modal-card .pack-discount {
  font-size: 11px; font-weight: 600; color: #1e7d43; background: #eafaf0;
  border: 1px solid #bfe8d0; border-radius: 999px; padding: 1px 8px;
}
.modal-card .pack-detail { font-size: 12px; color: var(--grey); }
.modal-card .pack-row .pack-buy {
  padding: 7px 16px; border-radius: 999px; border: none; background: var(--primary); color: #fff;
  cursor: pointer; font-size: 13px; flex-shrink: 0;
}
.refund-purchase-row { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.refund-purchase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.refund-purchase-head strong, .refund-purchase-head span { display: block; }
.refund-purchase-head > div > span { margin-top: 3px; color: var(--grey); font-size: 12px; }
.refund-status { flex-shrink: 0; border-radius: 999px; padding: 3px 9px; font-size: 11px; color: var(--grey); background: #f2f4f7; }
.refund-status-pending, .refund-status-processing, .refund-status-requires_action { color: #8a5b00; background: #fff6dc; }
.refund-status-succeeded { color: #176b3a; background: #eaf8ef; }
.refund-status-rejected, .refund-status-failed, .refund-status-canceled { color: var(--err-text); background: var(--err-bg); }
.refund-status-expired { color: var(--grey); background: #eceff3; }
.refund-order-id { margin-top: 8px; color: var(--grey); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.refund-reason { margin: 10px 0 0; padding: 9px 10px; border-radius: 7px; color: var(--grey); background: var(--bg); font-size: 12px; line-height: 1.6; }
.refund-action { margin-top: 11px; display: flex; justify-content: flex-end; }
.refund-apply-btn { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--primary); color: #fff; cursor: pointer; }
.refund-blocked { color: var(--grey); font-size: 12px; }

/* ---------- 隐私/条款/退款/联系页 + 全站页脚 ---------- */
.site-footer {
  max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; display: flex; gap: 18px;
  flex-wrap: wrap; justify-content: center; font-size: 13px;
}
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.article-page h1 { font-size: 26px; color: var(--primary); margin: 8px 0 6px; }
.legal-updated { color: var(--grey); font-size: 12px; margin: 0 0 16px; }
.legal-summary { font-size: 15px; color: var(--text); margin: 0 0 8px; line-height: 1.7; }

.disclaimer {
  margin-top: 32px; padding: 12px 16px; background: var(--warn-bg); color: var(--warn-text);
  font-size: 12px; border-radius: 8px; line-height: 1.6;
}

@media (max-width: 700px) {
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .auth-widget { width: 100%; flex-wrap: wrap; }
  .auth-widget .user-email { max-width: 130px; }
  .valuation-entry, .valuation-paywall { align-items: flex-start; flex-wrap: wrap; }
  .valuation-entry button, .valuation-paywall button { width: 100%; }
  .valuation-hero-grid { grid-template-columns: 1fr 1fr; }
  .valuation-hero-grid strong { white-space: normal; font-size: 17px; }
  .recommended-heading { align-items: flex-start; flex-direction: column; }
  .recommended-model-grid, .other-model-grid { grid-template-columns: 1fr; }
  .valuation-sensitivity-grid { grid-template-columns: 1fr; }
  .calibration-price-grid { grid-template-columns: 1fr; }
  .calibration-horizon-grid { grid-template-columns: 1fr; }
  .duan-metrics { grid-template-columns: 1fr 1fr; }
  .valuation-columns { grid-template-columns: 1fr; gap: 0; }
  .valuation-footer { align-items: flex-start; flex-direction: column; }
  .pricing-heading { flex-direction: column; }
  .model-library-promo { align-items: flex-start; flex-direction: column; }
  .model-principles, .model-library-grid { grid-template-columns: 1fr; }
  .model-detail-hero { grid-template-columns: 1fr; padding: 22px; }
  .model-detail-layout { grid-template-columns: 1fr; padding: 6px 22px 24px; }
  .model-detail-side { position: static; }
  .model-question { align-items: flex-start; flex-direction: column; gap: 6px; margin: 18px 22px 0; }
  .related-models { padding: 20px 22px 24px; }
  .related-models > div { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-use-grid { grid-template-columns: 1fr; }
  .pricing-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .model-library-hero { padding: 22px; }
  .model-library-hero h1, .model-detail-hero h1 { font-size: 24px; }
  .related-models > div { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card:last-child { grid-column: auto; }
}

/* ---------- 首页：搜索优先 ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-page {
  background: #f8fafc;
  color: #122033;
}

.home-header {
  min-height: 560px;
  color: #fff;
  background-color: #0a3168;
  background-image: url("/home-hero-bg.jpg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.home-brand {
  color: #fff;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.home-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
  margin-right: 88px;
}

.home-nav-links > a {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.home-nav-links > a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-page .auth-widget {
  font-size: 12px;
  gap: 8px;
}

.home-page .auth-widget button,
.home-page .auth-widget a {
  padding: 6px 12px;
  font-size: 12px;
}

.home-hero {
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 92px;
  text-align: center;
}

.home-eyebrow {
  margin: 0 0 12px;
  color: #b7d4f3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.home-subtitle {
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.6;
}

.home-market-tabs {
  width: fit-content;
  margin: 0 auto 18px;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
}

.home-market-tabs .market-tab {
  min-width: 96px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .76);
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}

.home-market-tabs .market-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.home-market-tabs .market-tab.active {
  color: #fff;
  background: #163f78;
  box-shadow: inset 0 0 0 1px #4da3ff;
}

.home-search-box {
  width: 100%;
  margin: 0;
  gap: 0;
  padding: 7px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(1, 18, 50, .24);
}

.home-search-box .input-wrap {
  display: flex;
  align-items: center;
}

.home-search-box .input-wrap input {
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 9px;
  color: #122033;
  background: #fff;
  font-size: 17px;
}

.home-search-box .input-wrap input::placeholder {
  color: #7d8999;
}

.home-search-box .input-wrap input:focus {
  box-shadow: inset 0 0 0 2px #7cb7f3;
}

.home-search-box > button {
  min-width: 174px;
  min-height: 58px;
  padding: 14px 26px;
  border-radius: 10px;
  background: #103d7a;
  font-size: 17px;
  box-shadow: none;
}

.home-search-box > button:hover {
  background: #1556a8;
}

.home-trust-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.home-trust-note span {
  margin: 0 8px;
  color: rgba(255, 255, 255, .42);
}

.home-main {
  width: min(1180px, calc(100% - 48px));
  margin: -2px auto 0;
  padding: 22px 0 54px;
}

.home-result {
  margin: 0 0 26px;
  border: 1px solid #dce5ef;
  box-shadow: 0 8px 24px rgba(22, 54, 94, .07);
}

.home-concepts {
  margin-bottom: 36px;
}

.home-concepts-heading {
  align-items: flex-end;
}

.home-concepts-heading > div > span {
  display: block;
  margin-top: 6px;
  color: #687a90;
  font-size: 13px;
  line-height: 1.55;
}

.home-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-concept-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 54, 94, .045);
}

.home-concept-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid #e7edf4;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

.home-concept-card-head p {
  margin: 0 0 3px;
  color: #63809e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-concept-card-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.02em;
}

.home-concept-card-head h3 a {
  color: #123f73;
  text-decoration: none;
}

.home-concept-card-head h3 a:hover {
  color: #0b68c7;
}

.home-concept-detail-link {
  color: #356895;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.home-concept-detail-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-concept-stocks {
  padding: 0 18px;
}

.home-concept-stock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  border-bottom: 1px solid #edf1f6;
}

.home-concept-stock:last-child {
  border-bottom: 0;
}

.home-concept-stock-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.home-concept-stock-main strong {
  overflow: hidden;
  color: #154f91;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-concept-stock-main:hover strong {
  color: #0b68c7;
}

.home-concept-stock-main span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7a8798;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.home-concept-stock-main b {
  padding: 2px 5px;
  border-radius: 5px;
  color: #2566a9;
  background: #eaf3fd;
  font-size: 10px;
  font-weight: 650;
}

.home-concept-stock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-concept-stock-actions a {
  padding: 6px 8px;
  border: 1px solid #d4e1ef;
  border-radius: 7px;
  color: #37648f;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.home-concept-stock-actions a:hover {
  border-color: #7bb1e4;
  color: #0f61b5;
  background: #f1f7fe;
}

.home-concept-stock-actions .home-concept-report-link {
  color: #fff;
  border-color: #1b5da3;
  background: #1b5da3;
}

.home-concept-stock-actions .home-concept-report-link:hover {
  color: #fff;
  border-color: #124d89;
  background: #124d89;
}

.home-concept-stock-actions .home-concept-report-link.is-ready {
  color: #176246;
  border-color: #b9dfcf;
  background: #edf9f4;
}

.home-concept-stock-actions .home-concept-report-link.is-ready:hover {
  color: #0f5038;
  border-color: #8fceb8;
  background: #e3f5ed;
}

.home-dual-banner-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.home-dual-banner-col {
  min-width: 0;
}

.home-ifthen-banner,
.home-why-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  padding: 30px 34px;
  border-radius: 18px;
  color: #fff;
}

.home-ifthen-banner {
  background: linear-gradient(120deg, #0d2638, #16403e);
}

.home-why-banner {
  background: linear-gradient(120deg, #2a1b3d, #4a2560);
}

.home-ifthen-banner--attached {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-ifthen-topics,
.home-why-topics {
  margin-bottom: 40px;
  border: 1px solid #dce5ef;
  border-top: none;
  border-radius: 14px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fff;
  overflow: hidden;
}

.home-ifthen-topics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e7edf4;
}

.home-ifthen-topics-head span {
  color: #52708f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-ifthen-topics-head a {
  color: #155fb2;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.home-ifthen-topics-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-ifthen-topic {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #e7edf4;
  color: inherit;
  text-decoration: none;
}

.home-ifthen-topic:last-child {
  border-bottom: 0;
}

.home-ifthen-topic:hover {
  background: #f6f9fc;
}

.home-ifthen-topic strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 650;
  color: #122033;
}

.home-ifthen-topic span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #6b7686;
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ifthen-eyebrow {
  margin: 0 0 10px;
  color: #79c3bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-why-eyebrow {
  margin: 0 0 10px;
  color: #c9a3e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-ifthen-banner h2,
.home-why-banner h2 {
  margin: 0;
  max-width: 480px;
  font: 500 24px/1.35 Georgia, "Songti SC", serif;
  letter-spacing: -.01em;
}

.home-ifthen-banner > div:first-child > p:last-child,
.home-why-banner > div:first-child > p:last-child {
  max-width: 460px;
  margin: 12px 0 0;
  color: #c3d3d8;
  font-size: 12px;
  line-height: 1.7;
}

.home-why-banner .home-ifthen-cta {
  color: #3d1f5c !important;
}

.home-why-banner .home-ifthen-cta:hover {
  background: #ecdcf7;
}

.home-why-banner .home-ifthen-secondary {
  color: #d9bdee !important;
}

.home-ifthen-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.home-ifthen-cta {
  padding: 12px 22px;
  border-radius: 8px;
  background: #fff;
  color: #0d2638 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-ifthen-cta:hover {
  background: #e4ece9;
}

.home-ifthen-secondary {
  color: #9fc9c4 !important;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.home-ifthen-secondary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .home-dual-banner-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-ifthen-banner,
  .home-why-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .home-ifthen-actions {
    align-items: flex-start;
    width: 100%;
  }
  .home-ifthen-cta {
    width: 100%;
    text-align: center;
  }
}

.home-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: stretch;
}

.home-recent,
.home-model-promo {
  min-width: 0;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.home-section-heading p,
.home-model-promo p {
  margin: 0 0 4px;
  color: #52708f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-section-heading h2,
.home-model-promo h2 {
  margin: 0;
  color: #122033;
  font-size: 22px;
  letter-spacing: -.02em;
}

.home-section-heading > span {
  color: #758398;
  font-size: 12px;
}

.home-all-reports-link {
  color: #155fb2;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.home-all-reports-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-concepts-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-concept-shuffle {
  padding: 6px 14px;
  border: 1px solid #cdd9e6;
  border-radius: 999px;
  background: #fff;
  color: #155fb2;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.home-concept-shuffle:hover {
  background: #f0f5fb;
  border-color: #b6c7d9;
}

.home-concept-shuffle:active {
  background: #e6eef7;
}

.home-recent-list {
  min-height: 232px;
  margin: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.home-recent-list .home-recent-row,
.home-recent-list button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  border-radius: 0;
  color: inherit;
  background: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-recent-list .home-recent-row:last-child,
.home-recent-list button:last-child {
  border-bottom: 0;
}

.home-recent-list .home-recent-row:hover,
.home-recent-list button:hover {
  border-color: #e7edf4;
  color: inherit;
  background: #f6f9fc;
}

.home-recent-row strong,
.home-recent-list button strong {
  min-width: 0;
  overflow: hidden;
  color: #154f91;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-market-label {
  padding: 3px 8px;
  border-radius: 6px;
  color: #1b61ad;
  background: #eaf3fd;
  font-size: 11px;
  font-weight: 650;
}

.home-stock-code {
  color: #66758a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-empty-state {
  margin: 0;
  padding: 28px;
  color: #66758a;
  font-size: 14px;
}

.home-model-promo {
  display: flex;
  gap: 16px;
  padding: 28px;
  border: 1px solid #d7e5f4;
  border-radius: 14px;
  background: #edf5fd;
}

.home-model-promo img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.home-model-promo > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.home-model-promo > div > span {
  margin: 18px 0;
  color: #53657a;
  font-size: 13px;
  line-height: 1.75;
}

.home-model-promo a {
  margin-top: auto;
  color: #155fb2;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.home-model-promo a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 34px auto 0;
  color: #66758a;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.home-pricing-note strong {
  color: #154f91;
  font-weight: 650;
}

.home-pricing-note:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-about {
  max-width: 760px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid #dce5ef;
}

.home-about summary {
  color: #41566f;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.home-about p {
  margin: 16px 0 0;
  color: #637287;
  font-size: 13px;
  line-height: 1.8;
}

.home-page .disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 12px 16px;
  border: 1px solid #f0dfb9;
  color: #795722;
  background: #fff9eb;
  text-align: center;
}

.home-page .site-footer {
  max-width: 1180px;
  padding-top: 8px;
  border-top: 1px solid #e2e9f1;
}

/* ---------- 全部公开报告 ---------- */
.reports-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #122033;
}

.reports-header {
  color: #fff;
  background-color: #0a3168;
  background-image: url("/home-hero-bg.jpg");
  background-position: center 68%;
  background-repeat: no-repeat;
  background-size: cover;
}

.reports-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 68px;
}

.reports-hero p {
  margin: 0 0 9px;
  color: #b7d4f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.reports-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.reports-hero span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.reports-main {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 54, 94, .06);
}

.reports-search-wrap {
  min-width: 0;
  flex: 1;
}

.reports-search-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  outline: none;
  color: #122033;
  background: #f9fbfd;
  font: inherit;
  font-size: 14px;
}

.reports-search-wrap input:focus {
  border-color: #4d91d9;
  box-shadow: 0 0 0 3px rgba(77, 145, 217, .14);
}

.reports-market-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef4fa;
}

.reports-market-tabs button {
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 7px;
  color: #53657a;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.reports-market-tabs button:hover {
  color: #154f91;
  background: rgba(255, 255, 255, .72);
}

.reports-market-tabs button.active {
  color: #fff;
  background: #154f91;
}

.reports-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 2px 12px;
}

.reports-list-heading p {
  margin: 0 0 4px;
  color: #52708f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.reports-list-heading h2 {
  margin: 0;
  color: #122033;
  font-size: 22px;
}

.reports-list-heading > span {
  color: #66758a;
  font-size: 13px;
}

.reports-list {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.reports-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 90px 110px;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid #e7edf4;
  color: inherit;
  text-decoration: none;
}

.reports-row:last-of-type {
  border-bottom: 0;
}

.reports-row:hover {
  background: #f6f9fc;
}

.reports-company {
  min-width: 0;
}

.reports-company strong,
.reports-company small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-company strong {
  color: #154f91;
  font-size: 15px;
  font-weight: 650;
}

.reports-company small {
  margin-top: 5px;
  color: #7a8797;
  font-size: 12px;
}

.reports-code,
.reports-date {
  color: #66758a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.reports-date {
  color: #7a8797;
  font-size: 12px;
}

.reports-row[hidden] {
  display: none;
}

.reports-empty {
  margin: 0;
  padding: 42px 24px;
  color: #66758a;
  font-size: 14px;
  text-align: center;
}

.reports-empty.hidden {
  display: none;
}

.reports-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 2px 0;
}

.reports-pagination[hidden] {
  display: none;
}

.reports-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  color: #41566f;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.reports-page-btn:hover:not(:disabled) {
  border-color: #8ab5e0;
  color: #155fb2;
}

.reports-page-btn[aria-current="page"] {
  border-color: #155fb2;
  color: #fff;
  background: #155fb2;
}

.reports-page-btn:disabled {
  color: #b7c3d3;
  cursor: not-allowed;
}

.reports-back-home {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  color: #155fb2;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.reports-back-home:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reports-page .disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 12px 16px;
  border: 1px solid #f0dfb9;
  color: #795722;
  background: #fff9eb;
  text-align: center;
}

.reports-page .site-footer {
  max-width: 1180px;
  padding-top: 8px;
  border-top: 1px solid #e2e9f1;
}

/* ---------- 概念龙头清单 ---------- */
.concept-page {
  min-height: 100vh;
  color: #122033;
  background: #f8fafc;
}

.concept-header {
  color: #fff;
  background-color: #0a3168;
  background-image: url("/home-hero-bg.jpg");
  background-position: center 68%;
  background-repeat: no-repeat;
  background-size: cover;
}

.concept-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 68px;
}

.concept-hero p {
  margin: 0 0 9px;
  color: #b7d4f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.concept-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.concept-hero span {
  display: block;
  max-width: 780px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.7;
}

.concept-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.concept-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 26px;
  border: 1px solid #d7e5f4;
  border-radius: 14px;
  background: #edf5fd;
}

.concept-method > div:first-child {
  min-width: 0;
}

.concept-method p,
.concept-basis p,
.leader-list-heading p,
.concept-sources > div > p {
  margin: 0 0 5px;
  color: #52708f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.concept-method h2,
.concept-basis h2,
.leader-list-heading h2,
.concept-sources h2 {
  margin: 0;
  color: #122033;
  font-size: 22px;
  letter-spacing: -.02em;
}

.concept-method > div:first-child > span {
  display: block;
  margin-top: 10px;
  color: #53657a;
  font-size: 13px;
  line-height: 1.7;
}

.concept-method dl {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  margin: 0;
}

.concept-method dl > div {
  min-width: 104px;
  padding: 13px 14px;
  border: 1px solid #d6e5f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.concept-method dt {
  color: #154f91;
  font-size: 17px;
  font-weight: 750;
}

.concept-method dd {
  margin: 4px 0 0;
  color: #66758a;
  font-size: 11px;
}

.concept-search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 54, 94, .05);
}

.concept-search-bar input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 10px 13px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  outline: 0;
  color: #122033;
  background: #f9fbfd;
  font: inherit;
  font-size: 14px;
}

.concept-search-bar input:focus {
  border-color: #4d91d9;
  box-shadow: 0 0 0 3px rgba(77, 145, 217, .14);
}

.concept-search-bar > span {
  padding-right: 8px;
  color: #66758a;
  font-size: 12px;
  white-space: nowrap;
}

.concept-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52708f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.concept-sort select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  color: #122033;
  background: #f9fbfd;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}

.concept-sort-note {
  margin: -8px 0 20px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.7;
}

.concept-sort-date {
  margin-left: 6px;
  white-space: nowrap;
}

.concept-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.concept-card-score {
  padding: 2px 8px;
  border-radius: 999px;
  color: #154f91;
  background: #eaf2fb;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.concept-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 54, 94, .04);
}

.concept-card:hover {
  border-color: #b8cee5;
  box-shadow: 0 10px 26px rgba(22, 54, 94, .08);
  transform: translateY(-1px);
}

.concept-card[hidden] {
  display: none;
}

.concept-card-main {
  color: inherit;
  text-decoration: none;
}

.concept-card-kicker {
  color: #52708f;
  font-size: 11px;
  font-weight: 700;
}

.concept-card h2 {
  margin: 7px 0 9px;
  color: #154f91;
  font-size: 21px;
}

.concept-card p {
  margin: 0;
  color: #5d6d80;
  font-size: 13px;
  line-height: 1.7;
}

.concept-card-leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.concept-card-leaders span {
  padding: 4px 7px;
  border-radius: 6px;
  color: #52667c;
  background: #f0f5fa;
  font-size: 11px;
}

.concept-card-link {
  margin-top: auto;
  color: #155fb2;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.concept-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.concept-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  color: #66758a;
  text-align: center;
}

.concept-empty.hidden {
  display: none;
}

.concept-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 4px;
}

.concept-pagination[hidden] {
  display: none;
}

.concept-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  color: #41566f;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.concept-page-btn:hover:not(:disabled) {
  border-color: #8ab5e0;
  color: #155fb2;
}

.concept-page-btn[aria-current="page"] {
  border-color: #155fb2;
  color: #fff;
  background: #155fb2;
}

.concept-page-btn:disabled {
  color: #b7c3d3;
  cursor: not-allowed;
}

.concept-disclaimer,
.leader-action-note {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 12px 16px;
  border: 1px solid #f0dfb9;
  border-radius: 9px;
  color: #795722;
  background: #fff9eb;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.concept-page .site-footer {
  max-width: 1180px;
  padding-top: 8px;
  border-top: 1px solid #e2e9f1;
}

.concept-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #7a8797;
  font-size: 12px;
}

.concept-breadcrumb a {
  color: #155fb2;
  text-decoration: none;
}

.concept-basis {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #d7e5f4;
  border-radius: 14px;
  background: #edf5fd;
}

.concept-basis > span {
  color: #53657a;
  font-size: 13px;
  line-height: 1.75;
}

.concept-basis > small {
  color: #758398;
  font-size: 11px;
  white-space: nowrap;
}

.leader-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 2px 12px;
}

.leader-list-heading > span,
.leader-list-heading > a {
  color: #66758a;
  font-size: 12px;
}

.leader-list-heading > a {
  color: #155fb2;
  font-weight: 650;
  text-decoration: none;
}

.leader-list {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.leader-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 118px auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e7edf4;
}

.leader-row:last-child {
  border-bottom: 0;
}

.leader-row:hover {
  background: #f9fbfd;
}

.leader-company {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.leader-company > div {
  min-width: 0;
}

.leader-company h2 {
  margin: 1px 0 5px;
  overflow: hidden;
  color: #154f91;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-company p {
  margin: 0;
  overflow: hidden;
  color: #738196;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-code {
  color: #66758a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.leader-report-state {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  text-align: center;
}

.leader-report-state.ready {
  color: #176b3a;
  background: #eaf8ef;
}

.leader-report-state.pending {
  color: #66758a;
  background: #eef2f6;
}

.leader-actions {
  display: flex;
  gap: 7px;
}

.leader-actions a {
  min-width: 78px;
  padding: 8px 11px;
  border: 1px solid #154f91;
  border-radius: 8px;
  color: #fff;
  background: #154f91;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.leader-actions a:hover {
  background: #1c67b5;
}

.leader-actions a.secondary {
  color: #154f91;
  background: #fff;
}

.leader-actions a.secondary:hover {
  background: #edf5fd;
}

.leader-action-note {
  max-width: none;
  margin-top: 16px;
  border-color: #dce5ef;
  color: #66758a;
  background: #fff;
}

.concept-sources {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.concept-sources ul {
  margin: 0;
  padding-left: 18px;
}

.concept-sources li {
  margin: 0 0 8px;
  color: #66758a;
  font-size: 13px;
  line-height: 1.6;
}

.concept-sources li:last-child {
  margin-bottom: 0;
}

.concept-sources a {
  color: #155fb2;
}

.related-concepts {
  margin-top: 30px;
}

.related-concepts > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-concepts > div:last-child a {
  padding: 7px 12px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  color: #41566f;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

.related-concepts > div:last-child a:hover {
  border-color: #8ab5e0;
  color: #155fb2;
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-method {
    align-items: stretch;
    flex-direction: column;
  }

  .concept-method dl {
    width: 100%;
  }

  .concept-method dl > div {
    min-width: 0;
    flex: 1;
  }

  .concept-basis {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .concept-basis > small {
    grid-column: 2;
  }

  .leader-row {
    grid-template-columns: minmax(0, 1fr) 84px auto;
  }

  .leader-report-state {
    display: none;
  }
}

@media (max-width: 640px) {
  .concept-header .home-nav {
    width: min(100% - 32px, 600px);
    min-height: 66px;
  }

  .concept-header .home-nav-links > a:nth-child(2),
  .concept-header .home-nav-links > a:nth-child(4) {
    display: none;
  }

  .concept-hero,
  .concept-main {
    width: min(100% - 32px, 600px);
  }

  .concept-hero {
    padding: 44px 0 52px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept-method {
    padding: 20px;
  }

  .concept-method dl {
    gap: 5px;
  }

  .concept-method dl > div {
    padding: 10px 6px;
  }

  .concept-method dt {
    font-size: 14px;
  }

  .concept-search-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .concept-search-bar > span {
    padding: 0 4px 2px;
  }

  .concept-sort {
    justify-content: space-between;
  }

  .concept-basis {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .concept-basis > small {
    grid-column: 1;
  }

  .leader-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 14px;
  }

  .leader-code {
    align-self: start;
  }

  .leader-actions {
    grid-column: 1 / -1;
    padding-left: 52px;
  }

  .leader-actions a {
    min-width: 0;
    flex: 1;
  }

  .concept-sources {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .reports-header .home-nav {
    width: min(100% - 32px, 680px);
    min-height: 66px;
  }

  .reports-header .home-nav-links > a:nth-child(3) {
    display: none;
  }

  .reports-hero,
  .reports-main {
    width: min(100% - 32px, 680px);
  }

  .reports-hero {
    padding: 44px 0 52px;
  }

  .reports-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .reports-market-tabs {
    width: 100%;
  }

  .reports-market-tabs button {
    min-width: 0;
    flex: 1;
    padding-inline: 8px;
  }

  .reports-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 14px;
  }

  .reports-code {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }

  .reports-date {
    display: none;
  }
}

@media (max-width: 820px) {
  .home-header {
    min-height: 520px;
    background-position: center bottom;
  }

  .home-nav {
    width: min(100% - 32px, 720px);
    min-height: 68px;
    gap: 14px;
  }

  .home-nav-links {
    gap: 14px;
    margin-right: 58px;
  }

  .home-nav-links > a {
    font-size: 12px;
  }

  .home-page .auth-widget .user-email,
  .home-page .auth-widget .credits-pill,
  .home-page .auth-widget #buy-credits-btn,
  .home-page .auth-widget #logout-btn {
    display: none;
  }

  .home-hero {
    width: min(100% - 32px, 720px);
    padding: 56px 0 88px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .home-subtitle {
    font-size: 15px;
  }

  .home-main {
    width: min(100% - 32px, 720px);
  }

  .home-support-grid {
    grid-template-columns: 1fr;
  }

  .home-concept-grid {
    grid-template-columns: 1fr;
  }

  .home-model-promo {
    min-height: 230px;
  }
}

@media (max-width: 520px) {
  .site-language-switch {
    top: 72px;
  }

  .home-header {
    min-height: 610px;
    background-size: auto 100%;
  }

  .home-nav {
    min-height: 64px;
  }

  .home-brand {
    font-size: 20px;
  }

  .home-nav-links {
    gap: 10px;
    margin-right: 0;
  }

  .home-page .home-nav-links > a,
  .concept-header .home-nav-links > a,
  .reports-header .home-nav-links > a {
    display: none;
  }

  .home-page .auth-widget button,
  .home-page .auth-widget a {
    padding: 5px 10px;
  }

  .home-hero {
    padding: 62px 0 104px;
  }

  .home-eyebrow {
    font-size: 10px;
  }

  .home-hero h1 {
    max-width: 350px;
    margin: 0 auto;
    font-size: 38px;
    line-height: 1.2;
  }

  .home-subtitle {
    max-width: 330px;
    margin: 15px auto 22px;
    font-size: 14px;
  }

  .home-market-tabs {
    width: 100%;
  }

  .home-market-tabs .market-tab {
    min-width: 0;
    flex: 1;
  }

  .home-search-box {
    padding: 6px;
    flex-direction: column;
    gap: 6px;
  }

  .home-search-box .input-wrap input {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .home-search-box > button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .home-trust-note {
    margin-top: 16px;
    font-size: 12px;
  }

  .home-main {
    padding-top: 12px;
  }

  .home-concepts {
    margin-bottom: 30px;
  }

  .home-concepts-heading {
    align-items: flex-start;
  }

  .home-concepts-heading > div > span {
    max-width: 245px;
    font-size: 12px;
  }

  .home-concept-card-head,
  .home-concept-stocks {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-concept-stock {
    gap: 8px;
  }

  .home-concept-stock-actions {
    gap: 4px;
  }

  .home-concept-stock-actions a {
    padding: 6px;
    font-size: 10px;
  }

  .home-recent-list {
    min-height: 0;
  }

  .home-section-heading h2,
  .home-model-promo h2 {
    font-size: 20px;
  }

  .home-recent-list .home-recent-row,
  .home-recent-list button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 14px;
  }

  .home-stock-code {
    display: none;
  }

  .home-model-promo {
    min-height: 0;
    padding: 22px;
  }

  .home-model-promo img {
    width: 42px;
    height: 42px;
  }

  .home-pricing-note {
    flex-direction: column;
    gap: 5px;
  }

  .home-page .site-footer {
    gap: 12px 16px;
  }
}

/* ---------- 指标型模型结果卡上的「横向对比」入口 ---------- */
.model-card-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.model-compare-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 10px; font-weight: 600; text-decoration: none; }
.model-compare-link:hover { text-decoration: underline; }

/* ---------- 多股横向对比页 ---------- */
.model-compare-page { max-width: 1100px; }
.model-compare-hero { background: #fff; border-radius: 14px; box-shadow: 0 1px 5px rgba(0,0,0,.07); padding: 26px 28px; margin-bottom: 20px; }
.model-compare-hero > span { color: var(--accent); font-size: 11px; font-weight: 600; }
.model-compare-hero h1 { margin: 8px 0 10px; font-size: 24px; color: var(--primary); }
.model-compare-hero p { margin: 0 0 12px; color: var(--grey); font-size: 13px; line-height: 1.7; }
.model-compare-back { color: var(--accent); font-size: 12px; text-decoration: none; }
.model-compare-back:hover { text-decoration: underline; }

.vc-login { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; color: var(--grey); }
.vc-login p { margin: 0 0 16px; }

.vc-controls { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.vc-add label { display: block; font-size: 11px; font-weight: 600; color: var(--grey); margin-bottom: 6px; }
.vc-add-row { display: flex; gap: 8px; align-items: stretch; }
.vc-market { border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font-family: inherit; font-size: 13px; background: #fff; color: var(--text); }
.vc-input-wrap { position: relative; }
.vc-code { width: 200px; max-width: 46vw; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-family: inherit; font-size: 13px; outline: none; }
.vc-code:focus { border-color: var(--accent); }
.vc-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.vc-suggest li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.vc-suggest li:hover { background: var(--bg); }
.vc-suggest li span:last-child { color: var(--grey); }
.vc-cap { margin: 6px 0 0; font-size: 10px; color: var(--grey); }

.vc-btn { border: 1px solid var(--accent); background: var(--primary); color: #fff; border-radius: 8px; padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.vc-btn:hover { background: var(--accent); }
.vc-btn:disabled { background: var(--grey); border-color: var(--grey); cursor: default; opacity: .6; }
.vc-btn.secondary { background: #fff; color: var(--grey); border-color: var(--border); }
.vc-btn.tiny { padding: 4px 9px; font-size: 11px; }
.vc-run { text-align: right; }
.vc-pending-note { margin: 0 0 8px; font-size: 11px; color: var(--warn-text); }
.vc-need-credits { margin: 8px 0 0; font-size: 12px; color: var(--err-text); }
.vc-need-credits a { color: var(--accent); }
.vc-reuse-note { margin: 12px 2px 0; font-size: 10px; color: var(--grey); }
.vc-table-tools { display: flex; justify-content: flex-end; margin: 0 0 8px; }

.vc-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.vc-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.vc-table th, .vc-table td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 9px 11px; text-align: right; white-space: nowrap; }
.vc-table th:last-child, .vc-table td:last-child { border-right: none; }
.vc-table thead th { position: sticky; top: 0; background: #f3f8fd; color: var(--primary); font-weight: 600; vertical-align: bottom; }
.vc-table th i { display: block; font-style: normal; font-weight: 400; font-size: 9px; color: var(--grey); margin-top: 2px; }
.vc-sortable { cursor: pointer; user-select: none; }
.vc-sortable:hover { background: #e8f1fb; }
.vc-sortable.active { color: var(--accent); }
.vc-arrow { color: var(--accent); }
.vc-col-company { text-align: left; }
.vc-table td.vc-col-company { position: sticky; left: 0; background: #fff; }
.vc-table thead th.vc-col-company { position: sticky; left: 0; z-index: 1; background: #f3f8fd; }
.vc-col-company a { color: var(--accent); text-decoration: none; font-weight: 600; }
.vc-col-company small { display: block; color: var(--grey); font-weight: 400; font-size: 10px; margin-top: 1px; }
.vc-seed-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; vertical-align: middle; }
.vc-pos { color: #1a7f37; }
.vc-neg { color: var(--err-text); }
.vc-na { color: var(--grey); font-style: italic; font-size: 11px; }
.vc-status { text-align: left; color: var(--grey); }
.vc-row-error .vc-status { color: var(--err-text); }
.vc-empty { text-align: center; color: var(--grey); padding: 26px 12px; }
.vc-x { border: none; background: none; color: var(--grey); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; }
.vc-x:hover { color: var(--err-text); }

@media (max-width: 760px) {
  .vc-controls { flex-direction: column; align-items: stretch; }
  .vc-run { text-align: left; }
  .vc-code { width: 100%; max-width: none; }
}

/* ---------- 如果—那么：线索到影响的两阶段分析 ---------- */
.ifthen-page { margin: 0; background: #f5f3ee; color: #14202b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
.ifthen-header { background: #0d2638; color: #fff; padding: 0 28px 82px; }
.ifthen-nav { max-width: 1120px; margin: 0 auto; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ifthen-brand { color: #fff; font-weight: 750; font-size: 17px; text-decoration: none; letter-spacing: .02em; }
.ifthen-nav > div { display: flex; gap: 24px; }
.ifthen-nav > div a { color: #aabac6; text-decoration: none; font-size: 12px; }
.ifthen-nav > div a:hover, .ifthen-nav > div a.active { color: #fff; }
.ifthen-hero { max-width: 1120px; margin: 72px auto 0; }
.ifthen-eyebrow { margin: 0 0 18px; color: #79c3bc; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.ifthen-hero h1 { margin: 0; max-width: 780px; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px, 6.3vw, 76px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.ifthen-hero > p:last-child { max-width: 650px; margin: 28px 0 0; color: #bdc9d1; font-size: 15px; line-height: 1.8; }
.ifthen-main { max-width: 1120px; margin: -38px auto 80px; padding: 0 24px; }
.ifthen-input-card, .ifthen-confirm-card, .ifthen-result > section, .ifthen-status { background: #fff; border: 1px solid #ddd9d0; border-radius: 16px; box-shadow: 0 10px 35px rgba(20,32,43,.06); }
.ifthen-input-card { padding: 34px 38px; }
.ifthen-step-label { display: flex; align-items: center; gap: 9px; color: #527a77; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ifthen-step-label span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e0efec; color: #285c58; }
.ifthen-input-card h2 { margin: 18px 0 8px; font: 500 27px/1.25 Georgia, "Songti SC", serif; }
.ifthen-input-card > p { color: #6b747b; font-size: 13px; }
#ifthen-form, #why-form { margin-top: 22px; }
#ifthen-input, #why-input, #confirmed-clue { box-sizing: border-box; width: 100%; min-height: 128px; resize: vertical; border: 1px solid #cfd3d3; border-radius: 11px; padding: 16px 18px; color: #14202b; background: #fbfbf8; font: inherit; font-size: 14px; line-height: 1.7; outline: none; }
#ifthen-input:focus, #why-input:focus, #confirmed-clue:focus { border-color: #427c78; box-shadow: 0 0 0 3px rgba(66,124,120,.11); }
.ifthen-form-footer, .ifthen-confirm-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.ifthen-form-footer span { color: #7f888e; font-size: 11px; }
#why-input { min-height: 104px; font-size: 16px; }
.why-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.why-examples > span { color: #7f888e; font-size: 11px; }
.ifthen-page .why-examples button { padding: 7px 12px; border: 1px solid #d5e4e1; border-radius: 999px; background: #f3f8f7; color: #285c58; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; }
.ifthen-page .why-examples button:hover { border-color: #427c78; background: #e0efec; }
#why-input-hint.over { color: #a63c2e; }
.ifthen-page button { border: 0; border-radius: 8px; padding: 12px 19px; background: #185f5a; color: #fff; font: 650 12px/1 inherit; cursor: pointer; }
.ifthen-page button:hover { background: #104b47; }
.ifthen-page button:disabled { opacity: .55; cursor: default; }
.ifthen-page button.secondary { color: #52616a; background: #eef0ed; }
.ifthen-privacy { margin: 13px 0 0; font-size: 10px !important; color: #92989b !important; }
.ifthen-status { margin-top: 18px; padding: 22px 26px; display: flex; gap: 15px; align-items: center; }
.ifthen-status.hidden, .ifthen-workspace.hidden,
.ifthen-input-card.hidden, .ifthen-how.hidden { display: none; }
.ifthen-status strong { font-size: 13px; }.ifthen-status p { margin: 4px 0 0; font-size: 12px; color: #66727a; }
.ifthen-status.error { border-color: #e8c5bf; background: #fff8f6; }.ifthen-status.error strong { color: #a63c2e; }.ifthen-status a { color: #185f5a; }
.ifthen-status button { margin-top: 10px; }
.ifthen-spinner { width: 19px; height: 19px; border: 2px solid #c7deda; border-top-color: #185f5a; border-radius: 50%; animation: ifthen-spin .8s linear infinite; }
@keyframes ifthen-spin { to { transform: rotate(360deg); } }
.ifthen-workspace { margin-top: 20px; }
.ifthen-confirm-card { padding: 34px 38px; }
.ifthen-confirm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin: 20px 0; }
.ifthen-badge { display: inline-block; margin-bottom: 8px; padding: 4px 8px; background: #f1e7d2; color: #795b20; border-radius: 999px; font-size: 10px; font-weight: 700; }
.ifthen-confirm-head h2 { margin: 0; max-width: 720px; font: 500 25px/1.4 Georgia, "Songti SC", serif; }
.ifthen-source-score { min-width: 155px; padding: 12px; border-left: 2px solid #70a7a1; color: #6c777e; font-size: 10px; }
.ifthen-source-score b { display: block; margin: 4px 0; color: #185f5a; font-size: 17px; }.ifthen-source-score small { display: block; line-height: 1.45; }
.ifthen-source-preview { padding: 14px 16px; background: #f3f6f5; border-radius: 9px; }.ifthen-source-preview span { display: block; color: #748079; font-size: 9px; text-transform: uppercase; }.ifthen-source-preview a { color: #185f5a; font-size: 12px; font-weight: 650; }.ifthen-source-preview p { max-height: 76px; overflow: hidden; margin: 8px 0 0; color: #778087; font-size: 10px; line-height: 1.55; }
.ifthen-summary { margin: 22px 0; padding: 19px 21px; border: 1px solid #e5e2da; border-radius: 10px; }.ifthen-summary h3, .ifthen-confirm-grid h3 { margin: 0 0 8px; font-size: 12px; }.ifthen-summary p { margin: 0; color: #4f5a62; font-size: 13px; line-height: 1.75; }
.ifthen-confirm-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-bottom: 22px; }.ifthen-confirm-grid section { padding: 18px; background: #fbfaf7; border-radius: 10px; }.ifthen-confirm-grid ul { margin: 0; padding-left: 17px; color: #59646b; font-size: 11px; line-height: 1.7; }
.ifthen-facts { padding: 0 !important; list-style: none; }.ifthen-facts li { display: flex; gap: 9px; margin-bottom: 10px; }.ifthen-facts li > span { flex: none; height: fit-content; padding: 2px 6px; background: #e8efed; color: #366963; border-radius: 4px; font-size: 9px; }.ifthen-facts strong { display: block; color: #26333b; font-size: 11px; }.ifthen-facts p { margin: 2px 0 0; color: #7b8388; font-size: 10px; }
.ifthen-clue-label { display: block; margin: 5px 0 8px; color: #24343d; font-size: 12px; font-weight: 700; }.ifthen-scope { margin: 12px 0; color: #667179; font-size: 11px; }.ifthen-confirm-note { text-align: right; color: #8b9296; font-size: 10px; }
/* 计费相关：导航余额、输入卡的两步收费说明、确认前的付费区 */
.ifthen-account { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 11px; }.ifthen-account b { color: #fff; font-weight: 650; }.ifthen-account a { color: #86c8c1 !important; }.ifthen-account.low { border-color: rgba(226,170,120,.55); background: rgba(226,170,120,.12); }.ifthen-account.low b { color: #f0c99b; }
.ifthen-cost-note { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ebe8e0; }.ifthen-cost-note > div { display: flex; flex-direction: column; gap: 3px; }.ifthen-cost-note b { color: #1d4a46; font-size: 11px; }.ifthen-cost-note span { color: #7b8388; font-size: 10px; line-height: 1.6; }
.ifthen-checkout { margin-top: 18px; padding: 16px 18px; background: #f4f7f5; border: 1px solid #dde5e1; border-radius: 11px; }.ifthen-checkout.insufficient { background: #fdf6ee; border-color: #ecd6b8; }
.ifthen-checkout-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }.ifthen-checkout-cost b { color: #14202b; font-size: 14px; }.ifthen-checkout-cost small { flex-basis: 100%; color: #7f888d; font-size: 10px; }
.ifthen-checkout-balance { padding: 2px 9px; background: #e2ebe7; border-radius: 999px; color: #3d635e; font-size: 10px; }.ifthen-checkout-balance.low { background: #f5e2c9; color: #8a5a20; }
.ifthen-buy-cta { display: inline-block; padding: 12px 19px; border-radius: 8px; background: #b3702c; color: #fff !important; font: 650 12px/1 inherit; text-decoration: none; }.ifthen-buy-cta:hover { background: #9a5f22; }
.ifthen-how { padding-top: 58px; }.ifthen-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }.ifthen-how-grid article { padding: 25px; border-top: 1px solid #bcc5c2; }.ifthen-how-grid b { color: #7ca29d; font: 500 28px Georgia, serif; }.ifthen-how-grid h3 { margin: 10px 0 6px; font-size: 14px; }.ifthen-how-grid p { margin: 0; color: #727b80; font-size: 11px; line-height: 1.7; }
.ifthen-result { display: grid; gap: 22px; }.ifthen-result > section { padding: 32px 36px; }.ifthen-result-hero { background: #102e3f !important; color: #fff; border: 0 !important; }.ifthen-result-hero .ifthen-step-label { color: #86c8c1; }.ifthen-result-hero h1, .ifthen-result-hero h2 { max-width: 880px; margin: 20px 0; font: 500 30px/1.45 Georgia, "Songti SC", serif; }.ifthen-result-hero > p:not(.ifthen-date) { max-width: 880px; color: #cfdae0; font-size: 13px; line-height: 1.8; }.ifthen-date { float: right; margin: -19px 0 0; color: #94aab6; font-size: 10px; }
.ifthen-section-head { margin-bottom: 20px; }.ifthen-section-head span { color: #4d8b85; font-size: 9px; font-weight: 700; letter-spacing: .18em; }.ifthen-section-head h2 { margin: 5px 0 0; font: 500 23px Georgia, "Songti SC", serif; }.ifthen-section-head p { margin: 5px 0 0; color: #7b858a; font-size: 10px; }
.ifthen-chains { display: grid; gap: 10px; }.ifthen-chains article { padding: 15px 17px; border: 1px solid #e1dfd8; border-radius: 9px; }.ifthen-chains header { display: flex; justify-content: space-between; color: #3c4b54; font-size: 11px; font-weight: 700; }.ifthen-chains header span { color: #6a8f8b; font-size: 9px; }.ifthen-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }.ifthen-chain b { padding: 6px 9px; background: #f0f4f2; border-radius: 5px; font-size: 10px; }.ifthen-chain i { color: #70918e; font-style: normal; }
.ifthen-impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.ifthen-impact { padding: 17px; border: 1px solid #e0ddd5; border-left: 3px solid #a5aaa8; border-radius: 9px; }.ifthen-impact.positive, .ifthen-asset.positive { border-left-color: #39866d; }.ifthen-impact.negative, .ifthen-asset.negative { border-left-color: #b35a4d; }.ifthen-impact header { display: flex; align-items: center; gap: 9px; }.ifthen-impact header span { padding: 3px 7px; background: #edf1ef; border-radius: 10px; font-size: 9px; }.ifthen-impact header b { font-size: 12px; }.ifthen-impact header i { margin-left: auto; color: #7f888d; font-size: 9px; font-style: normal; }.ifthen-impact > small { display: block; margin-top: 6px; color: #58817d; font-size: 9px; }.ifthen-impact > p { color: #566169; font-size: 11px; line-height: 1.65; }
.ifthen-page details { border-top: 1px solid #e5e3dc; padding-top: 9px; }.ifthen-page summary { color: #4a7773; font-size: 10px; cursor: pointer; }.ifthen-page details h4 { margin: 10px 0 3px; font-size: 10px; }.ifthen-page details ul { margin: 0; padding-left: 17px; color: #70797e; font-size: 10px; line-height: 1.6; }
.ifthen-asset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.ifthen-asset { border: 1px solid #dedbd3; border-left: 4px solid #9da5a2; border-radius: 10px; padding: 18px; }.ifthen-asset header { display: flex; justify-content: space-between; gap: 15px; }.ifthen-asset header span { color: #879096; font-size: 9px; }.ifthen-asset h3 { margin: 4px 0; font-size: 15px; }.ifthen-asset h3 a { color: #185f5a; text-decoration: none; }.ifthen-asset header > b { height: fit-content; color: #52656c; font-size: 9px; }.ifthen-asset > p { color: #59656c; font-size: 11px; line-height: 1.65; }.ifthen-asset dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 0; background: #f6f6f2; }.ifthen-asset dl div { padding: 8px; }.ifthen-asset dt { color: #8b9295; font-size: 8px; }.ifthen-asset dd { margin: 2px 0 0; font-size: 10px; }.ifthen-asset > h4 { margin: 10px 0 5px; font-size: 9px; color: #6e777b; }.ifthen-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }.ifthen-tags li { padding: 3px 7px; background: #eef2ef; border-radius: 4px; color: #4f6562; font-size: 9px; }.ifthen-priced { margin: 12px 0; padding: 10px; background: #fbf7ee; }.ifthen-priced b { font-size: 9px; }.ifthen-priced p { margin: 3px 0 0; color: #6d685c; font-size: 10px; line-height: 1.55; }
.ifthen-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.ifthen-scenarios article { padding: 17px; background: #f7f7f3; border-radius: 9px; }.ifthen-scenarios h3 { margin: 0 0 10px; font-size: 13px; }.ifthen-scenarios p, .ifthen-scenarios li { color: #606b71; font-size: 10px; line-height: 1.65; }.ifthen-scenarios h4 { margin-bottom: 4px; font-size: 9px; }.ifthen-scenarios ul { margin: 0; padding-left: 16px; }
.ifthen-debate { background: #e8f0ee !important; }.ifthen-debate > div:first-child > span { color: #467771; font-size: 9px; font-weight: 700; }.ifthen-debate > div:first-child h2 { margin: 8px 0; font: 500 21px/1.45 Georgia, serif; }.ifthen-debate > div:first-child p { color: #536762; font-size: 11px; }.ifthen-debate-grid, .ifthen-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }.ifthen-debate-grid article { padding: 17px; background: rgba(255,255,255,.65); border-radius: 8px; }.ifthen-debate-grid h3, .ifthen-bottom-grid h2 { margin: 0 0 8px; font-size: 12px; }.ifthen-debate-grid ul, .ifthen-bottom-grid ul { margin: 0; padding-left: 17px; color: #52615f; font-size: 10px; line-height: 1.7; }
.ifthen-bottom-grid { margin-top: 0; }.ifthen-bottom-grid article { padding: 23px; background: #fff; border: 1px solid #ddd9d0; border-radius: 12px; }.ifthen-sources ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 20px; padding: 0; list-style: none; }.ifthen-sources li { display: flex; gap: 8px; min-width: 0; }.ifthen-sources li span { color: #79918e; font-size: 9px; }.ifthen-sources a { overflow: hidden; color: #426d69; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.ifthen-new { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }.ifthen-empty { color: #8a9194; font-size: 11px; }
.ifthen-footer { max-width: 1120px; margin: 0 auto; padding: 26px 24px 38px; border-top: 1px solid #d7d3ca; display: flex; gap: 20px; color: #7b8488; font-size: 10px; }.ifthen-footer a { color: inherit; text-decoration: none; }

.ifthen-visibility-toggle { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #667179; font-size: 11px; cursor: pointer; }.ifthen-visibility-toggle input { width: 15px; height: 15px; accent-color: #185f5a; }.ifthen-visibility-toggle a { color: #185f5a; }
.ifthen-visibility-switch { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }.ifthen-visibility-switch span { color: #bcd0d6; font-size: 11px; }.ifthen-visibility-switch button { background: rgba(255,255,255,.12); }.ifthen-visibility-switch button:hover { background: rgba(255,255,255,.2); }

/* 广场 / 我的清单 列表页 */
.ifthen-header-compact { padding-bottom: 46px; }
.ifthen-hero-compact { margin-top: 48px; }.ifthen-hero-compact h1 { font-size: clamp(30px, 4.6vw, 46px); }
.ifthen-list-card-wrap { padding: 30px 34px; }
.ifthen-list-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 20px; }.ifthen-list-heading p { margin: 0 0 4px; color: #6a8f8b; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.ifthen-list-heading h2 { margin: 0; font: 500 22px Georgia, "Songti SC", serif; }.ifthen-list-heading > span { color: #7b8488; font-size: 11px; }
.ifthen-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ifthen-list-card { display: block; padding: 20px 22px; background: #fff; border: 1px solid #ddd9d0; border-radius: 13px; color: inherit; text-decoration: none; box-shadow: 0 8px 26px rgba(20,32,43,.05); transition: box-shadow .15s, transform .15s; }.ifthen-list-card:hover { box-shadow: 0 12px 32px rgba(20,32,43,.1); transform: translateY(-1px); }
.ifthen-list-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.ifthen-list-status { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; background: #edf1ef; color: #52656c; }.ifthen-list-status.done { background: #e2ede9; color: #1d4a46; }.ifthen-list-status.error { background: #fbe9e5; color: #a63c2e; }.ifthen-list-status.pending { background: #f1e7d2; color: #795b20; }
.ifthen-list-tag { padding: 3px 8px; background: #f1efe9; border-radius: 999px; color: #71797d; font-size: 9px; }.ifthen-list-tag.public { background: #e2ebe7; color: #3d635e; }.ifthen-list-tag.private { background: #eee; color: #7c7c7c; }
.ifthen-list-card-head time { margin-left: auto; color: #9aa1a5; font-size: 9px; }
.ifthen-list-card h3 { margin: 0 0 6px; font: 500 15px/1.4 Georgia, "Songti SC", serif; }
.ifthen-list-card h3 a { color: inherit; text-decoration: none; }.ifthen-list-card h3 a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ifthen-list-card p { margin: 0; color: #667179; font-size: 11px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ifthen-list-error { color: #a63c2e !important; }
.ifthen-list-card-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.ifthen-list-card .ifthen-list-delete { padding: 5px 10px; background: transparent; border: 1px solid #e3b6ac; border-radius: 6px; color: #a63c2e; font-size: 10px; font-weight: 650; }
.ifthen-list-card .ifthen-list-delete:hover { background: #fdf1ef; }
.ifthen-list-card .ifthen-list-delete:disabled { opacity: .5; cursor: default; }
.ifthen-list-empty { padding: 30px; text-align: center; color: #8a9194; font-size: 12px; background: #fff; border: 1px dashed #ddd9d0; border-radius: 12px; }.ifthen-list-empty a { color: #185f5a; }
.ifthen-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.ifthen-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; background: #fff; border: 1px solid #ddd9d0; color: #4a5359; font-size: 11px; text-decoration: none; }.ifthen-page-btn.active { background: #185f5a; border-color: #185f5a; color: #fff; }.ifthen-page-btn.disabled { opacity: .4; }

@media (max-width: 760px) {
  .ifthen-header { padding: 0 18px 65px; }.ifthen-nav { flex-wrap: wrap; height: auto; padding: 14px 0; }.ifthen-nav > div { flex-wrap: wrap; row-gap: 8px; gap: 12px; }.ifthen-hero { margin-top: 45px; }.ifthen-main { padding: 0 12px; }.ifthen-input-card, .ifthen-confirm-card, .ifthen-result > section { padding: 24px 20px; }.ifthen-form-footer, .ifthen-confirm-head { align-items: stretch; flex-direction: column; }.ifthen-form-footer button { width: 100%; }.ifthen-source-score { min-width: 0; }.ifthen-confirm-grid, .ifthen-how-grid, .ifthen-impact-grid, .ifthen-asset-grid, .ifthen-scenarios, .ifthen-debate-grid, .ifthen-bottom-grid, .ifthen-sources ol { grid-template-columns: 1fr; }.ifthen-confirm-actions button { flex: 1; padding: 12px 8px; }.ifthen-cost-note { grid-template-columns: 1fr; gap: 10px; }.ifthen-confirm-actions { flex-direction: column; align-items: stretch; }.ifthen-buy-cta { text-align: center; }.ifthen-date { float: none; margin: 12px 0; }.ifthen-result-hero h1, .ifthen-result-hero h2 { font-size: 24px; }.ifthen-asset dl { grid-template-columns: 1fr 1fr 1fr; }.ifthen-list-grid { grid-template-columns: 1fr; }.ifthen-list-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- 个股页价格走势图（public/chart.js + klinecharts） ---- */
/* canvas 容器的高度写死在CSS里：图表是异步渲染的，高度留不住就会在数据回来那一刻把下面的
   报告正文整体往下顶一次(CLS)。骨架屏在 .is-ready 之前一直显示，chart.js 渲染成功才撤。 */
.price-chart { margin: 18px 0 22px; padding: 16px 18px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.price-chart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.price-chart-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--primary); }
.price-chart-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.price-chart-price { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.price-chart-price small { font-size: 11px; font-weight: 400; color: var(--grey); }
.price-chart-change { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-chart-asof { font-size: 11px; color: var(--grey); }
.price-chart-canvas { height: 320px; border-radius: 6px; background: linear-gradient(100deg, #f2f5f8 30%, #e8edf2 50%, #f2f5f8 70%) 0 0 / 300% 100%; animation: price-chart-skeleton 1.4s ease-in-out infinite; }
.price-chart.is-ready .price-chart-canvas { background: none; animation: none; }
.price-chart-note { margin: 8px 0 0; font-size: 11px; color: var(--grey); }
@keyframes price-chart-skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .price-chart-canvas { animation: none; } }
@media (max-width: 760px) {
  .price-chart { padding: 14px 12px 10px; }
  .price-chart-canvas { height: 240px; }
  .price-chart-summary { margin-left: 0; }
  .price-chart-price { font-size: 17px; }
}

/* 报告页顶部的每日行情卡片（server/lib/liveMarket.js） */
.live-market { margin: 0 0 22px; padding: 16px 18px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.article .live-market-title { margin: 0 0 10px; padding: 0; border: none; font-size: 15px; font-weight: 600; color: var(--primary); }
.article .live-market-table { margin: 0 0 8px; }
.article .live-market-table th { width: 34%; background: #f7f9fc; color: var(--text); font-weight: 600; }
.article .live-market-table td { font-variant-numeric: tabular-nums; }
.article .live-market-table tbody tr:nth-child(even) { background: transparent; }
.live-market-note { margin: 0; color: var(--grey); font-size: 12px; line-height: 1.6; }
@media (max-width: 720px) {
  .live-market { padding: 14px 12px 10px; }
  .article .live-market-table th { width: 40%; }
}

/* 报告正文里的数据图（server/lib/reportCharts.js 从表格生成，仅HTML页有） */
.report-charts { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 8px; }
.report-chart { flex: 1 1 260px; max-width: 100%; margin: 0; padding: 10px 12px 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.report-chart-wide { flex-basis: 100%; }
.report-chart svg { display: block; width: 100%; height: auto; }
.report-chart figcaption { margin-top: 4px; text-align: center; font-size: 13px; color: var(--grey); }

.order-section-title { margin: 0 0 8px; font-size: 13px; color: var(--grey); font-weight: 600; }
.order-range { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.order-range button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; color: inherit; }
.order-range button.is-active { background: #111; border-color: #111; color: #fff; }
.order-filter { margin-top: 16px; }
.order-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.order-stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.order-stat span { display: block; font-size: 11px; color: var(--grey); }
.order-stat strong { display: block; margin-top: 2px; font-size: 16px; }
.order-unpaid { border-style: dashed; }
.order-delete-btn { border: 1px solid var(--err-text); color: var(--err-text); background: #fff; border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.order-delete-btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) { .order-stats { grid-template-columns: repeat(2, 1fr); } }

/* 广场公开问答详情页（squareDetailPage.js）：免责声明与底部按钮之间留白 */
.ifthen-workspace > .ifthen-privacy { margin: 22px 0 18px; }
