/* ============================================================
   BlockReal — 独立区块链应用案例刊物  (Editorial re-skin)
   底座: Tooplate Compass (去模板化: 墨黑+纸白+朱砂红, 衬线+等宽)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #f4f3ef;   /* 纸白 (低彩度中性, 非奶油色) */
  --surface:   #fbfaf7;   /* 抬升/卡面 */
  --ink:       #1b1a18;   /* 近黑墨色 */
  --ink-soft:  #3a3733;   /* 次级墨 */
  --muted:     #5f5c56;   /* 弱化文字 (AA on --bg) */
  --rule:      #dddbd3;   /* 细分隔线 */
  --rule-soft: #e8e6df;
  --accent:      #c0392b; /* 朱砂/砖红 编辑墨点 */
  --accent-deep: #9a2b20; /* 链接/hover 深色版 (AA) */
  --accent-tint: rgba(192,57,43,0.08);
  --dark:      #191816;   /* 深色页脚/反白区 */

  --serif: "Newsreader", "Noto Serif SC", Georgia, "Songti SC", "SimSun", serif;
  --sans:  system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max-w:  1240px;
  --measure: 68ch;

  --s-sm: clamp(1rem, 2vw, 2rem);
  --s-md: clamp(2rem, 5vw, 4.5rem);
  --s-lg: clamp(3.5rem, 9vh, 8rem);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* small mono label (克制使用: eyebrow 配额) */
.eyebrow {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

/* ============================================================ NAV */
.nav-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, padding .3s ease;
}
.nav-bar.scrolled {
  background: rgba(244,243,239,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
  padding-top: .8rem; padding-bottom: .8rem;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav-logo:hover { color: var(--ink); opacity: .85; }
.nav-logo .dot { color: var(--accent); }
.nav-links { list-style: none; }
.nav-links--desktop { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .02em; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta-link { color: var(--accent-deep) !important; font-weight: 600 !important; }

.lang-switch { position: relative; font-family: var(--mono); }
.lang-switch summary {
  list-style: none; cursor: pointer; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); padding: .3rem .1rem;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { color: var(--accent-deep); }
.lang-dropdown {
  position: absolute; right: 0; top: 130%; background: var(--surface);
  border: 1px solid var(--rule); min-width: 130px; padding: .3rem 0;
  box-shadow: 0 12px 30px rgba(27,26,24,0.1); z-index: 120;
}
.lang-dropdown a {
  display: block; padding: .5rem .9rem; font-size: .78rem; color: var(--ink-soft);
  text-transform: none; letter-spacing: 0;
}
.lang-dropdown a:hover { background: var(--accent-tint); color: var(--accent-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 200; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 1.6px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(4.6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-4.6px); }
.nav-links--mobile { display: none; }

/* ============================================================ HERO / 头版 */
.hero { padding: clamp(7rem, 16vh, 11rem) 0 var(--s-md); border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-issue {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center;
}
.hero-issue .sep { width: 1px; height: 12px; background: var(--rule); display: inline-block; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.025em; margin-bottom: 1.5rem; max-width: 16ch;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-lead {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 400;
  line-height: 1.6; color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.8rem;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; font-size: .85rem; color: var(--muted); }
.hero-meta a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.hero-meta a:hover { color: var(--accent-deep); border-color: var(--accent); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

/* ============================================================ 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  padding: .8rem 1.5rem; border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .1s ease; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ============================================================ §9 转化卡 (编辑体) */
.conv-card {
  background: var(--surface); border: 1.5px solid var(--ink);
  padding: 1.6rem 1.5rem 1.5rem; position: relative;
  box-shadow: 10px 10px 0 var(--accent-tint);
}
.conv-kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .8rem;
}
.conv-card h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: .6rem; }
.conv-benefit { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.1rem; }
.conv-benefit strong { color: var(--accent-deep); font-weight: 700; }
.conv-code-row {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  border: 1px dashed var(--rule); border-bottom: 1px solid var(--ink);
  background: var(--bg); padding: .7rem .8rem; margin-bottom: 1rem;
}
.conv-code-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.conv-code { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); flex: 1 1 auto; }
.pk-copy {
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; padding: .45rem .9rem;
  cursor: pointer; min-height: 44px; transition: background .2s ease;
}
.pk-copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.conv-cta { width: 100%; }
.conv-note { font-family: var(--sans); font-size: .74rem; line-height: 1.55; color: var(--muted); margin-top: .9rem; }
.conv-note sup, .conv-benefit sup { color: var(--accent); }

/* ============================================================ PROLOGUE / 卷首 */
.prologue { padding: var(--s-lg) 0; background: var(--surface); border-bottom: 1px solid var(--rule); }
.prologue-inner { max-width: 62ch; margin: 0 auto; }
.prologue-label { margin-bottom: var(--s-sm); }
.prologue-text { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.7; color: var(--ink); }
.prologue-text + .prologue-text { margin-top: 1.3em; }
.prologue-text.lead::first-letter {
  font-family: var(--serif); font-weight: 700; float: left; font-size: 4.2em;
  line-height: .78; margin: .06em .1em 0 0; color: var(--accent);
}
.pullquote { margin: var(--s-md) 0; padding: 1.4rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pullquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--accent-deep); letter-spacing: -0.01em; }
.pullquote cite { display: block; margin-top: 1rem; font-family: var(--mono); font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================ FEATURED / 头条案例 (sticky) */
.featured { position: relative; background: var(--bg); }
.featured-bg { position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 0; display: flex; align-items: center; }
.feat-panel {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s cubic-bezier(.25,.46,.45,.94);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: clamp(1rem, 6vw, 7rem);
}
.feat-panel.active { opacity: 1; }
.feat-panel .feat-numeral {
  font-family: var(--serif); font-weight: 700; font-size: clamp(14rem, 40vw, 40rem);
  line-height: .8; color: var(--accent); opacity: .07; user-select: none;
}
.featured-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 20%, rgba(244,243,239,.6) 45%, rgba(244,243,239,0) 80%); z-index: 1; pointer-events: none; }
.featured-chapters { position: relative; z-index: 2; margin-top: -100vh; padding: var(--s-lg) 0; }
.featured-head { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter) var(--s-sm); }
.chapter { max-width: var(--max-w); margin: 0 auto; padding: 8vh var(--gutter); min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.chapter-max { max-width: 52ch; }
.chapter-index { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.chapter-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.1rem; max-width: 20ch; }
.chapter-body { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); margin-bottom: .8rem; }
.chapter-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--accent-deep); }
.chapter-link svg { width: 15px; height: 15px; transition: transform .3s ease; }
.chapter-link:hover { color: var(--ink); }
.chapter-link:hover svg { transform: translateX(4px); }

/* ============================================================ SECTION 通用 */
.section { padding: var(--s-lg) 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--s-md); padding-bottom: 1.1rem; border-bottom: 1px solid var(--ink); }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.section-sub { font-size: .95rem; color: var(--muted); max-width: 40ch; }
.section-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ============================================================ 案例索引 (卡网格, 无图) */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.case-item {
  background: var(--bg); padding: 1.8rem 1.6rem; display: flex; flex-direction: column;
  min-height: 220px; transition: background .3s ease; position: relative;
}
.case-item:hover { background: var(--surface); }
.case-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.case-num { position: absolute; top: 1.3rem; right: 1.6rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.case-title { font-size: 1.4rem; font-weight: 600; line-height: 1.2; margin-bottom: .7rem; }
.case-item:hover .case-title { color: var(--accent-deep); }
.case-desc { font-size: .9rem; line-height: 1.65; color: var(--muted); margin-bottom: 1.1rem; flex: 1; }
.case-more { font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.case-more::after { content: "→"; transition: transform .25s ease; }
.case-item:hover .case-more { color: var(--accent-deep); }
.case-item:hover .case-more::after { transform: translateX(4px); }

/* 工具条 */
.tool-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tool-card { background: var(--bg); padding: 1.6rem 1.5rem; transition: background .3s ease; }
.tool-card:hover { background: var(--surface); }
.tool-card .case-cat { color: var(--ink-soft); }
.tool-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.tool-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }

/* ============================================================ 编辑通知块 (callout) */
.notice { border: 1px solid var(--ink); background: var(--surface); padding: 1.5rem 1.6rem; max-width: var(--measure); margin: 0 auto; }
.notice + .notice { margin-top: 1.2rem; }
.notice.accent { border-color: var(--accent); background: var(--accent-tint); }
.notice-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .6rem; display: block; }
.notice p { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); }
.notice p strong { color: var(--ink); }
.trust-note { font-size: .82rem; line-height: 1.65; color: var(--muted); max-width: var(--measure); margin: var(--s-sm) auto 0; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ============================================================ 正文/阅读版式 (文章 & 政策) */
.article-head { padding: clamp(7rem, 15vh, 10rem) 0 var(--s-sm); border-bottom: 1px solid var(--ink); }
.article-head .wrap { max-width: 820px; }
.article-cat { margin-bottom: 1.4rem; }
.article-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.article-dek { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 400; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.4rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--muted); }
.article-meta a { color: var(--ink-soft); }
.article-meta a:hover { color: var(--accent-deep); }
.article-meta .am-dot { color: var(--rule); }

.article-body { max-width: var(--measure); margin: 0 auto; padding: var(--s-md) var(--gutter) var(--s-lg); }
.article-body > * { max-width: 100%; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; margin: 2.4em 0 .7em; padding-top: .3em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; margin: 1.8em 0 .5em; }
.article-body p { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); margin: 0 0 1.15em; }
.article-body p strong, .article-body li strong { color: var(--ink); font-weight: 700; }
.article-body a { border-bottom: 1px solid var(--accent-tint); }
.article-body a:hover { border-color: var(--accent); }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-body li { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: .55em; }
.article-body ul li::marker { color: var(--accent); }

/* 导语框 / 类比框 */
.analogy-box, .lead-box { border-left: none; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--accent); padding: 1.3rem 1.4rem; margin: 0 0 1.8em; }
.analogy-box p { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); }

/* 目录 */
.toc { border: 1px solid var(--rule); background: var(--surface); padding: 1.2rem 1.4rem; margin: 0 0 2em; }
.toc-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { font-size: .92rem; line-height: 1.5; margin-bottom: .4em; color: var(--ink-soft); }
.toc a { color: var(--ink-soft); border: none; }
.toc a:hover { color: var(--accent-deep); }

/* 表格 (编辑体) */
.table-scroll { overflow-x: auto; margin: 0 0 1.8em; border: 1px solid var(--rule); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; background: var(--surface); }
.compare-table th, .compare-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.55; }
.compare-table thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bg); background: var(--ink); border-bottom: none; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td strong { color: var(--ink); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--rule); padding: 1.1em 0; }
.faq-item h3 { font-size: 1.1rem; margin: 0 0 .5em; }
.faq-item p { margin: 0; font-size: .98rem; }

/* DIY 框 */
.diy-box { border: 1px solid var(--ink); padding: 1.4rem 1.5rem; margin: 2em 0; background: var(--surface); }
.diy-box .notice-label { margin-bottom: .8rem; }

/* 工具 UI (计算器等) */
.tool-box { border: 1.5px solid var(--ink); background: var(--surface); padding: 1.5rem 1.5rem; margin: 1.8em 0; }
.tool-box label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.tool-input, .tool-box input[type=text] {
  width: 100%; font-family: var(--mono); font-size: .98rem; padding: .7rem .8rem;
  border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 0;
}
.tool-input:focus, .tool-box input:focus { outline: none; border-color: var(--accent); }
.tool-btn { margin-top: .9rem; }
.addr-out, .tool-out { margin-top: 1rem; font-size: .92rem; line-height: 1.6; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--rule); border-top: 2px solid var(--rule); padding: .9rem 1rem; }
.addr-out.ok { border-top-color: #1f8a5b; }
.addr-out.bad { border-top-color: var(--accent); }
.addr-out strong { color: var(--ink); }
/* eth converter rows */
.u-row { display: flex; align-items: center; gap: .8rem; margin: 0 0 .8rem; }
.u-row label { flex: 0 0 62px; font-family: var(--mono); font-size: .82rem; text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin: 0; }
.u-row input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: .95rem; padding: .65rem .75rem; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); }
.u-row input:focus { outline: none; border-color: var(--accent); }
.u-hint { font-size: .78rem; color: var(--muted); margin: .3rem 0 0; }

/* 转化卡内嵌 (文章内) */
.conv-inline { border: 1.5px solid var(--ink); background: var(--surface); padding: 1.6rem 1.6rem 1.5rem; margin: 2.4em 0; box-shadow: 8px 8px 0 var(--accent-tint); }
.conv-inline h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.conv-inline > p:first-of-type { font-size: .95rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1rem; }

/* 相关阅读 */
.related-articles { border-top: 1px solid var(--ink); margin-top: 2.4em; padding-top: 1.4em; }
.related-articles h2 { font-size: 1.3rem; margin: 0 0 .8em; }
.related-articles ul { list-style: none; padding: 0; margin: 0; }
.related-articles li { border-bottom: 1px solid var(--rule); padding: .7em 0; }
.related-articles a { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); border: none; }
.related-articles a:hover { color: var(--accent-deep); }

/* 作者/step 卡 */
.step-card { border: 1px solid var(--rule); background: var(--surface); padding: 1.6rem 1.6rem; margin: 1.8em 0; }
.step-card h2 { margin-top: 0; }

/* ============================================================ FOOTER */
.site-footer { background: var(--dark); color: #f4f3ef; padding: var(--s-lg) 0 var(--s-md); }
.footer-safety { font-size: .8rem; line-height: 1.7; color: rgba(244,243,239,.55); max-width: 90ch; margin-bottom: var(--s-md); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gutter); padding-bottom: var(--s-md); border-bottom: 1px solid rgba(244,243,239,.12); }
.footer-brand-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.1; margin-bottom: 1rem; color: #fff; }
.footer-brand-title .dot { color: var(--accent); }
.footer-brand-desc { font-size: .85rem; line-height: 1.7; color: rgba(244,243,239,.5); max-width: 34ch; }
.footer-col-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,243,239,.4); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .88rem; color: rgba(244,243,239,.75); border: none; }
.footer-col a:hover { color: #fff; }
.footer-cta { border: 1px solid rgba(244,243,239,.2); padding: 1.2rem 1.2rem; }
.footer-cta p { font-size: .84rem; color: rgba(244,243,239,.6); line-height: 1.6; margin-bottom: .9rem; }
.footer-cta .conv-code { color: #fff; font-size: 1.05rem; }
.footer-cta .pk-copy { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: var(--s-sm); }
.footer-copy { font-size: .76rem; color: rgba(244,243,239,.35); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { font-size: .78rem; color: rgba(244,243,239,.5); border: none; }
.footer-nav a:hover { color: #fff; }

/* ============================================================ REVEAL (SEO-safe: 仅 js 时隐藏) */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================ 响应式 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--s-md); }
  .tool-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links--desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-links--mobile {
    display: flex; position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 320px;
    background: var(--dark); flex-direction: column; align-items: flex-start; gap: 1.4rem;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    z-index: 150; overflow-y: auto; padding: 5.5rem var(--gutter) 3rem; list-style: none;
  }
  .nav-links--mobile.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,.3); }
  .nav-links--mobile a { font-size: 1.05rem; color: rgba(244,243,239,.85); min-height: 44px; display: flex; align-items: center; }
  .nav-links--mobile a:hover { color: #fff; }
  .nav-close-wrap { align-self: flex-end; }
  .nav-close { background: none; border: none; color: rgba(244,243,239,.6); font-size: 2rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
  .nav-links--mobile .lang-mobile { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: rgba(244,243,239,.5); display: flex; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(244,243,239,.15); width: 100%; }
  .hero { padding-top: 6.5rem; }
  .case-grid { grid-template-columns: 1fr; }
  .featured-bg { display: none; }
  .featured-chapters { margin-top: 0; padding: var(--s-md) 0; }
  .chapter { min-height: auto; padding: 2.2rem var(--gutter); border-bottom: 1px solid var(--rule); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  /* §9 转化卡移动端首屏: 排到 hero 文案前 */
  .hero-grid .hero-aside { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .feat-panel { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; }
}
