/* ==========================================================================
   海峡研究 / Straits Research（新加坡 v3）
   身份池槽位 #5 深青绿 #0a1a18 → #3ca870 + #b8941f 琥珀 | 圆角方案 A 近直角
   字体 Outfit (Latin) + Noto Sans SC (中文)

   定位：公开信息整理工具 —— 整理已发布的公开资料，不下判断。
       非持牌、非顾问、不推荐证券、不给目标价、不提供交易执行。

   对比度：文本用 --brand-ink / --muted（对 paper 与 white 均 ≥4.5:1）；
          --brand 仅用于大字标题、边框与装饰。
   ========================================================================== */

:root {
  --deep: #0a1a18;
  --deep-2: #06110f;
  --mid: #1d6b4a;
  --brand: #2a8f61;
  --brand-ink: #1d6b4a;   /* 文本专用：对 paper/white 均 ≥4.5:1 */
  --muted: #5f7069;        /* 次要文字：对 paper ≥4.5:1 */
  --bright: #3ca870;
  --amber: #b8941f;
  --amber-soft: #d8b64a;
  --mint: #d7ecdd;
  --mint-wash: #eef6f0;
  --paper: #fbfcfb;
  --ink: #0d2420;
  --body: #4c5f5a;
  --anchor-offset: 24px;   /* 锚点跳转留白；JS scrollspy 读取同一个值 */
  --line: rgba(13, 36, 32, 0.14);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* 触控目标 ≥44px */
}

/* 配置占位容器：视觉上不显示，但保留在 DOM 中供合规扫描与爬虫读取 */
.cfg-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
}

.shell {
  padding-left: clamp(1.25rem, 6vw, 6.5rem);
  padding-right: clamp(1.25rem, 6vw, 6.5rem);
}

/* ---------- 顶部 ---------- */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 76px;
  padding: 0 clamp(1.25rem, 6vw, 6.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-ink);
}

.brand-mark {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--amber);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.87rem;
}

.site-nav a:hover,
.footer-links a:hover { color: var(--brand-ink); }

.header-action {
  margin-left: 1rem;
  padding-bottom: 2px;
  font-size: 0.87rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-height: 44px;          /* 触控目标 ≥44px（design-audit 要求） */
  padding: 0.4rem 0;
  font: 700 0.78rem inherit;
  background: none;
  border: 0;
}

/* 标题内换行：保留 DOM 文本中的空格，避免无障碍与文本提取时单词粘连 */
h1 br, h2 br { display: block; content: ""; }



/* ---------- 进群区块（并入分析板块） ---------- */

.join-block {
  max-width: 820px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.join-block h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
}

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

.join-list li {
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--brand);
  margin-bottom: 0.6rem;
  background: var(--mint-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--body);
}

.join-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.join-limits {
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.4rem;
  background: #f4e8c8;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.join-limits > p {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.join-limits ul {
  margin: 0;
  padding-left: 1.1rem;
}

.join-limits li {
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
  color: #4a3c10;
}

.join-note {
  margin: 0.9rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- 三步研究机制（How it works） ---------- */

.how-it-works {
  max-width: 820px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.how-it-works h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step-card {
  padding: 1.3rem 1.1rem;
  background: var(--bg-card, #f9fafb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-card .step-number {
  display: inline-block;
  font: 700 0.85rem Georgia, "Noto Serif SC", serif;
  color: var(--brand);
  background: var(--mint-wash);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  color: var(--ink);
  line-height: 1.25;
}

.step-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* ---------- 首页首屏：分析工具即页面顶部 ---------- */

.tool-lead {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: 3rem;
}

.tool-lead h1 {
  max-width: 900px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.tool-lead h1 i {
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: normal;
  font-weight: 400;
  color: var(--brand);
}

.tool-lead .lede {
  max-width: 660px;
  margin-bottom: 2rem;
}

/* 首屏内的费用披露紧贴表单，无需滚动即可见（底座 2.6） */
.tool-lead .fee-note { margin-top: 1.8rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 620px;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
}

.eyebrow span {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.1rem);
}

h2 i {
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: normal;
  font-weight: 400;
  color: var(--brand);
}

.lede {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.95rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 720;
  border-radius: var(--radius);
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--deep);
  color: #fff;
}

.button-amber {
  background: var(--amber);
  color: var(--deep);
}

.button-light {
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.text-action {
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

.hero-note {
  max-width: 500px;
  margin: 2.2rem 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: #64756f;
}

/* ---------- 右侧信息面板 ---------- */

.info-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 430px;
  padding: 1.6rem;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 16px 16px 0 var(--mint);
}

.panel-topline {
  position: absolute;
  top: 1.15rem;
  left: 1.6rem;
  right: 1.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  color: #7fa79a;
}

.topic-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  opacity: 0.68;
}

.topic-row.active { opacity: 1; }

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

.topic-num {
  font: 1rem Georgia, serif;
  color: var(--bright);
}

.topic-row strong { display: block; font-weight: 600; font-size: 0.95rem; }
.topic-row small { display: block; margin-top: 0.1rem; font-size: 0.68rem; color: #9fbdb3; }
.topic-row b { margin-left: auto; font-weight: 400; color: var(--amber-soft); }

.panel-ring {
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(60, 168, 112, 0.18);
  border-radius: 50%;
}

.panel-ring.ring-two {
  right: -250px;
  bottom: -300px;
  width: 540px;
  height: 540px;
}

/* ---------- 状态条 ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 1.2rem clamp(1.25rem, 6vw, 6.5rem);
  background: var(--mint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.trust-strip p { margin: 0; }
.trust-strip i { width: 5px; height: 5px; background: var(--mid); border-radius: 50%; }

/* 锚点跳转时为头部留出空间；JS scrollspy 读取同一变量，两处保持一致 */

:target,
.page-body h2,
.hero,
.section,
.rules-section,
.rhythm-section,
.faq-section,
.final-cta {
  scroll-margin-top: var(--anchor-offset);
}


/* ---------- 中文页：法务页语言范围说明 ---------- */

.legal-lang-notice {
  margin: 0;
  padding: 1rem clamp(1.25rem, 6vw, 6.5rem);
  background: #f4e8c8;
  border-bottom: 1px solid var(--amber);
  font-size: 0.83rem;
  line-height: 1.7;
  color: #4a3c10;
}

.legal-lang-notice strong { color: var(--ink); }
.legal-lang-notice a { border-bottom: 1px solid currentColor; }

/* ---------- 通用 section ---------- */

.section { padding-top: 8rem; padding-bottom: 7rem; }

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-intro p {
  max-width: 380px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--body);
}

.kicker {
  margin: 0 0 1.2rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
}

.fine-print {
  max-width: 760px;
  margin: 1.6rem 0 0;
  font-size: 0.73rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 话题卡 ---------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0;
}

.topic-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.topic-card:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }

.topic-card p {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.topic-card h3 {
  margin: 1rem 0 auto;
  font-size: clamp(1.3rem, 1.8vw, 1.95rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.topic-card > span {
  max-width: 200px;
  margin: 1.3rem 0;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--body);
}

.topic-card a {
  display: flex;
  justify-content: space-between;
  padding-top: 0.65rem;
  font-size: 0.77rem;
  font-weight: 750;
  border-top: 1px solid currentColor;
}

.tc-mint { background: var(--mint); }
.tc-wash { background: var(--mint-wash); }
.tc-amber { background: #f4e8c8; }
.tc-deep { background: var(--deep); color: #fff; }
.tc-deep > span { color: #a8c4bb; }

/* ---------- 制度说明（深色） ---------- */

.rules-section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  background: var(--mid);
  color: #fff;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.rules-section .kicker { color: var(--mint); }
.rules-section .section-intro p { color: #cfe6db; }

.rule-list {
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.rule-list span { font: 1rem Georgia, serif; color: var(--mint); }
.rule-list p { margin: 0; }
.rule-list strong, .rule-list small { display: block; }
.rule-list small { max-width: 470px; margin-top: 0.25rem; font-size: 0.81rem; color: #c8ded4; }

.rule-card {
  display: flex;
  grid-column: 2;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius);
}

.rule-card span { font-size: 0.63rem; font-weight: 750; letter-spacing: 0.1em; }
.rule-card p { max-width: 250px; margin: 0; font: 1.15rem/1.15 Georgia, serif; }

/* ---------- 内容清单 ---------- */

.content-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.content-list { border-top: 1px solid var(--line); }

.content-list > div {
  display: grid;
  grid-template-columns: 46px 1fr 1.35fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.content-list span { font: 1rem Georgia, serif; color: var(--mid); }
.content-list h3 { margin: 0; font-size: 1rem; }
.content-list p { margin: 0; font-size: 0.84rem; color: var(--body); }

.content-callout {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: var(--mint-wash);
  border-radius: var(--radius);
}

.content-callout p { margin: 0; font: 1.12rem Georgia, serif; }
.content-callout a { font-size: 0.79rem; font-weight: 750; white-space: nowrap; }

/* ---------- 社区节奏 ---------- */

.rhythm-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: #e3f0e7;
}

.rhythm-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin: 2rem 0 3.5rem;
}

.rhythm-title p { max-width: 380px; margin: 0; font-size: 0.89rem; color: #466053; }

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(13, 36, 32, 0.25);
}

.rhythm-steps article {
  min-height: 220px;
  padding: 1.35rem 1.3rem 1rem 0;
  border-right: 1px solid rgba(13, 36, 32, 0.25);
}

.rhythm-steps article + article { padding-left: 1.3rem; }
.rhythm-steps article:last-child { border-right: 0; }
.rhythm-steps span { font: 1rem Georgia, serif; color: var(--mid); }
.rhythm-steps h3 { margin: 2.6rem 0 0.55rem; font-size: 1rem; }
.rhythm-steps p { margin: 0; font-size: 0.81rem; color: #4c6358; }

/* ---------- FAQ ---------- */

.faq-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5.5rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-list details {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.35rem; font-weight: 400; line-height: 0.75; color: var(--mid); }
.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
  max-width: 620px;
  margin: 0.9rem 2rem 0.1rem 0;
  font-size: 0.87rem;
  color: var(--body);
}

.faq-list details p a { border-bottom: 1px solid var(--line); }

/* ---------- 结尾 CTA ---------- */

.final-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--deep);
  color: #fff;
}

.final-cta > div:last-child { max-width: 400px; }
.final-cta > div:last-child p { color: #a9c4ba; font-size: 0.9rem; }
.final-cta .button { margin-top: 0.8rem; }
.final-cta .kicker { color: var(--bright); }

/* ---------- 页脚 ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 3rem;
  padding: 3rem clamp(1.25rem, 6vw, 6.5rem);
  background: var(--deep-2);
  color: #a9bdb6;
  font-size: 0.75rem;
}

.site-footer .brand { color: #fff; }
.footer-brand p { margin: 1.2rem 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; align-content: start; }

.footer-disclosure { max-width: 470px; }
.footer-disclosure p { margin: 0 0 0.7rem; }
.footer-disclosure p:last-child { margin-bottom: 0; color: #7b918a; }


/* ---------- 同意条（PDPA / Consent Mode） ---------- */

.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem clamp(1.25rem, 6vw, 6.5rem);
  background: var(--deep);
  color: #cfe0da;
  border-top: 1px solid rgba(60, 168, 112, 0.3);
  box-shadow: 0 -8px 26px rgba(6, 17, 15, 0.22);
}

.consent-bar p {
  max-width: 720px;
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.6;
}

.consent-bar a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }

.consent-actions { display: flex; align-items: center; gap: 0.7rem; }

.consent-bar .button { min-height: 44px; padding: 0.85rem 1.25rem; font-size: 0.79rem; }
.consent-bar .button-primary { background: var(--bright); color: var(--deep-2); }

.consent-decline {
  background: transparent;
  color: #cfe0da;
  border: 1px solid rgba(207, 224, 218, 0.42);
}

.consent-decline:hover { border-color: #cfe0da; }

.consent-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* 触控目标 ≥44px */
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: #8fa9a1;
  border-bottom: 1px solid rgba(143, 169, 161, 0.4);
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 0;
  font-family: inherit;
}

.consent-reset:hover { color: #cfe0da; }

/* ---------- 头部"更多页面"下拉 ---------- */

.nav-more { position: relative; display: flex; align-items: center; }

.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.87rem;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-more-toggle:hover { color: var(--brand); }
.nav-more-toggle span { font-size: 0.66rem; }

.nav-more-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.85rem);
  z-index: 30;
  min-width: 210px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(6, 17, 15, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav-more-menu li { margin: 0; }

.nav-more-menu a {
  display: block;
  padding: 0.5rem 1.15rem;
  font-size: 0.84rem;
}

.nav-more-menu a:hover { background: var(--mint-wash); color: var(--brand-ink); }

.nav-more.open .nav-more-menu,
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-more.open .nav-more-toggle { color: var(--brand-ink); }

/* ---------- 长页面布局：目录 + 正文 ---------- */

.page-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.page-toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc-box { border-left: 2px solid var(--line); }

.toc-box > summary {
  padding: 0 0 0.7rem 1rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  list-style: none;
}

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

.toc-box ol {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
}

.toc-box li { margin: 0; }

.toc-box a {
  display: block;
  margin-left: -1rem;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6f8079;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc-box a:hover { color: var(--ink); }

.toc-box a.is-active {
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--brand);
}

.page-layout > .page-body {
  max-width: 820px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- 内页 ---------- */

.page-head {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 1rem; }

.page-body {
  max-width: 820px;
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.page-body h2 {
  margin: 3rem 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--body); font-size: 0.92rem; }
.page-body ul { padding-left: 1.2rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body a { border-bottom: 1px solid var(--line); }

.notice {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--mint-wash);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.notice p { margin: 0; color: var(--ink); font-size: 0.88rem; }

.updated {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7e918a;
}

/* ---------- 中文排版 ---------- */

html[lang^="zh"] body {
  font-family: "Noto Sans SC", Outfit, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

html[lang^="zh"] h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
html[lang^="zh"] h2 { font-size: clamp(1.7rem, 3.2vw, 2.9rem); }
html[lang^="zh"] .topic-card h3 { letter-spacing: -0.01em; line-height: 1.25; }
html[lang^="zh"] .lede { font-size: 1rem; }

/* ---------- 响应式 ---------- */

@media (max-width: 820px) {
  .site-header { min-height: 66px; gap: 1rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    display: none;
    padding: 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: grid; gap: 0.8rem; }
  .header-action { display: none; }

  /* 移动端：下拉改为就地展开的列表 */
  .nav-more { display: block; }
  .nav-more-menu {
    position: static;
    min-width: 0;
    padding: 0.3rem 0 0 0.9rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    display: none;
  }
  .nav-more.open .nav-more-menu { display: block; }
  .nav-more:hover .nav-more-menu { transform: none; }
  .nav-more-menu a { padding: 0.35rem 0.4rem; }

  /* 移动端目录：折叠面板置于正文之前 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
  }
  .page-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .toc-box { border-left: 0; }
  .toc-box > summary { padding-left: 0; }
  .toc-box ol { padding-left: 0; }
  .toc-box a {
    margin-left: 0;
    padding: 0.45rem 0 0.45rem 0.85rem;
  }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3.5rem; }
  .info-panel { min-height: 370px; box-shadow: 10px 10px 0 var(--mint); }

  .trust-strip { justify-content: flex-start; }
  .trust-strip i { display: none; }

  .section-intro, .rhythm-title { display: block; }
  .section-intro h2, .rhythm-title h2 { margin-top: 1.3rem; }

  .topic-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .topic-card { border-right: 1px solid var(--line); border-bottom: 0; }
  .topic-card:nth-child(2n) { border-right: 1px solid var(--line); }
  .topic-card:nth-child(n+3) { border-top: 0; }
  .topic-card:first-child { border-radius: var(--radius) 0 0 0; }
  .topic-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .topic-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .topic-card:last-child { border-radius: 0 0 var(--radius) 0; }

  .rules-grid, .content-section, .faq-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .rule-list, .rule-card, .content-callout { grid-column: 1; }
  .rule-card { display: block; }
  .rule-card p { margin: 1rem 0 1.3rem; }

  .rhythm-steps { grid-template-columns: 1fr 1fr; }
  .rhythm-steps article:nth-child(2) { border-right: 0; }
  .rhythm-steps article:nth-child(n+3) { border-top: 1px solid rgba(13, 36, 32, 0.25); }

  .final-cta { display: block; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .final-cta > div:last-child { margin-top: 2rem; }

  .site-footer { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 470px) {
  h1 { font-size: 2.5rem; }
  html[lang^="zh"] h1 { font-size: 2.05rem; }
  .topic-grid, .rhythm-steps { grid-template-columns: 1fr; }
  .topic-card { min-height: 200px; border-right: 1px solid var(--line); border-bottom: 0; }
  .topic-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .topic-card:nth-child(2), .topic-card:nth-child(3) { border-radius: 0; }
  .topic-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .rhythm-steps article,
  .rhythm-steps article:nth-child(2) {
    min-height: auto;
    padding: 1.25rem 0;
    border-right: 0;
    border-top: 1px solid rgba(13, 36, 32, 0.25);
  }
  .rhythm-steps article:first-child { border-top: 0; }
  .rhythm-steps h3 { margin: 1.2rem 0 0.5rem; }
  .content-list > div { grid-template-columns: 30px 1fr; }
  .content-list p { grid-column: 2; }
  .content-callout { display: block; }
  .content-callout a { display: block; margin-top: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .final-cta { display: block; }
  .site-footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}


/* ---------- 动效偏好：尊重系统设置（design-audit 必加项） ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 移动端触控目标（置于末尾以确保覆盖前面的基础规则） ---------- */

@media (max-width: 820px) {
  .footer-links {
    align-content: stretch;
  }

  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.2rem;
  }

  .brand {
    min-height: 44px;
  }
}

/* ---------- 浮动进群 CTA ----------
   仅在移动端出现；且需 JS 加 .is-visible（分析结果展开 + 滚过进群区后）。
   用的是与进群区同一个 data-cta="join" 标记 → 转化埋点自动生效。 */

.floating-join {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.05rem;
  background: var(--amber);
  color: var(--deep);
  font-size: 0.85rem;
  font-weight: 750;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(6, 17, 15, 0.34);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  text-decoration: none;
}

.floating-join svg { flex: 0 0 auto; }

.floating-join.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 620px) {
  .floating-join { display: inline-flex; }
  /* 窄屏只显示图标，避免遮挡内容 */
  .floating-join span { display: none; }
  .floating-join { padding: 0; width: 52px; justify-content: center; }
  .floating-join.is-visible span { display: inline; width: auto; }
  .floating-join.is-visible { padding: 0 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-join { transition: none; }
}
