/* ============================================================
   盛牧磊 · 个人网站设计系统
   风格：Editorial Luxury · 暖奶油底 + 衬线标题 + 赤陶点缀
   质感来源：纸感颗粒 / 分层柔影 / 双层 bezel 卡片 / 滚动入场
   ============================================================ */

:root {
  /* 颜色 —— 暖色编辑风 */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --ink: #211E1A;
  --ink-2: #4A453E;
  --muted: #70685F;
  --line: #E7E0D5;
  --line-soft: #EFE9DF;

  --accent: #B5532E;        /* 赤陶 */
  --accent-ink: #8C3D1E;
  --accent-soft: #F4E7DF;

  /* 分类封面色 */
  --c-write: #B8893B;       /* 写作 · 暖金 */
  --c-write-2: #94691F;
  --c-money: #2F6B4F;       /* 财富 · 深绿 */
  --c-money-2: #1C4531;
  --c-grow: #3E6B92;        /* 成长 · 雾蓝 */
  --c-grow-2: #274B66;
  --c-1co: #B5532E;         /* 一人公司 · 赤陶 */
  --c-1co-2: #7E3A1C;
  --c-essay: #6E5A66;       /* 随笔 · 灰紫 */
  --c-essay-2: #483A4B;

  /* 排版 */
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 布局 */
  --maxw: 1320px;
  --page-pad: clamp(18px, 2.4vw, 34px);
  --radius: 16px;
  --radius-lg: 24px;
  --gap: 24px;

  /* 动效曲线（弹簧感） */
  --ease: cubic-bezier(.2,.7,.2,1);

  /* 分层柔影 */
  --shadow-sm: 0 1px 2px rgba(33,30,26,.04), 0 1px 1px rgba(33,30,26,.03);
  --shadow: 0 2px 8px rgba(33,30,26,.05), 0 18px 40px -18px rgba(33,30,26,.16);
  --shadow-lg: 0 30px 60px -24px rgba(33,30,26,.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.78;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* 纸感颗粒：固定、不挡点击 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

/* ---------- 字体工具 ---------- */
.serif { font-family: var(--font-serif); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { letter-spacing: -.022em; }
h2 { letter-spacing: -.016em; }
h3 { letter-spacing: -.008em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); margin: 0 0 .42em; }
h2 { font-size: clamp(27px, 3.6vw, 40px); margin: 0 0 .6em; }
h3 { font-size: 21px; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.22,1,.36,1), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), filter .22s var(--ease);
}
.btn:active { transform: scale(.965); transition-duration: .1s; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -14px rgba(140,61,30,.72);
}
.btn-primary::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .25s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); box-shadow: 0 10px 22px -16px rgba(140,61,30,.78); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(181,83,46,.55); color: var(--accent-ink); background: #fffaf5; transform: translateY(-1px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  border-bottom: 1px solid transparent;
  background: rgba(250,247,242,.78);
  -webkit-backdrop-filter: saturate(175%) blur(22px);
  backdrop-filter: saturate(175%) blur(22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  pointer-events: auto;
  transition: background .32s cubic-bezier(.32,.72,0,1), border-color .32s cubic-bezier(.32,.72,0,1), box-shadow .32s cubic-bezier(.32,.72,0,1);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -14px;
  height: 14px;
  background: linear-gradient(180deg, rgba(64,48,35,.055), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s cubic-bezier(.32,.72,0,1);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  height: 56px;
  margin: 0 auto;
  padding-inline: var(--page-pad);
}
.site-header.scrolled {
  background: rgba(250,247,242,.91);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}
.site-header.scrolled::after { opacity: .72; }
@media (hover: hover) {
  .site-header:hover,
  .site-header:focus-within {
    background: rgba(250,247,242,.965);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.98);
  }
  .site-header:hover::after,
  .site-header:focus-within::after { opacity: 1; }
}
.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent-ink); }
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}
.nav a.active {
  color: var(--accent-ink);
  font-weight: 600;
}
.nav a:focus-visible { outline: none; }
.nav a:active { color: var(--accent); }
.nav-toggle {
  display: none;
  position: relative;
  background: rgba(255,255,255,.42);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 38px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:active { transform: scale(.94); }
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-5px); }
.nav-toggle span:nth-child(3) { transform: translateY(5px); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- 区块 ---------- */
.section { padding: clamp(76px, 8vw, 108px) 0; }
.section-sm { padding: clamp(56px, 6vw, 78px) 0; }
.section-title { max-width: 700px; margin-bottom: clamp(34px, 4vw, 46px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(52px, 6.5vw, 82px) 0 clamp(68px, 7vw, 92px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  right: max(-14vw, -180px);
  top: -34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,83,46,.11) 0, rgba(184,137,59,.055) 38%, transparent 70%);
  filter: blur(8px);
  transform: translate3d(0, var(--hero-glow-y, 0), 0) scale(1.02);
  will-change: transform;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .75fr);
  gap: clamp(48px, 6vw, 76px);
  align-items: start;
}
.hero > .hero-grid {
  grid-template-areas:
    "copy portrait"
    "proof portrait";
  row-gap: 0;
}
.hero > .hero-grid .hero-copy { grid-area: copy; }
.hero > .hero-grid .avatar { grid-area: portrait; }
.hero > .hero-grid .hero-proof { grid-area: proof; align-self: end; }
.hero-grid.reverse { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); }
.hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 34em; }
.hero h1 { line-height: 1.16; letter-spacing: -.024em; text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions--center { justify-content: center; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(34px, 4.5vw, 54px);
  padding: 16px 0 0;
  border-top: 1px solid rgba(216,204,190,.72);
}
.hero-proof .stat {
  min-width: 0;
  padding: 8px 16px 4px;
  border-left: 1px solid rgba(216,204,190,.7);
  text-align: left;
}
.hero-proof .stat:first-child { border-left: 0; }
.hero-proof .stat .num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.9vw, 25px);
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
}
.hero-proof .label { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; letter-spacing: .04em; white-space: nowrap; }
.avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #efe7df, #f7f3ee);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 64px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .42s cubic-bezier(.22,1,.36,1), border-color .28s var(--ease), background .28s var(--ease);
}
.hero .avatar { width: min(100%, 380px); justify-self: end; }
.about-hero { gap: clamp(54px, 7vw, 88px); }
.about-hero .avatar { width: min(100%, 330px); justify-self: start; }

/* 关于页：底层信条重点板块 */
.belief-section { padding-top: clamp(64px, 7vw, 92px); padding-bottom: clamp(72px, 8vw, 108px); }
.belief-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
  padding: clamp(44px, 5.5vw, 72px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: #211E1A;
  box-shadow: 0 18px 42px -34px rgba(33,30,26,.48), inset 0 1px 0 rgba(255,255,255,.09);
}
.belief-panel::after {
  content: "“";
  position: absolute;
  z-index: -1;
  top: -68px;
  right: 34px;
  font-family: Georgia, serif;
  font-size: clamp(170px, 18vw, 260px);
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}
.belief-title {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: clamp(30px, 4vw, 58px);
  border-right: 1px solid rgba(255,255,255,.15);
}
.belief-title h2 {
  margin: 0;
  color: #F7F1E8;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.28;
}
.belief-copy blockquote {
  margin: 0;
  color: #FFF9F0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.25vw, 30px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.belief-copy p {
  max-width: 44em;
  margin: 22px 0 0;
  color: rgba(233,227,216,.68);
  font-size: 15px;
  line-height: 1.85;
}
.avatar::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid transparent;
  transition: border-color .5s var(--ease);
  pointer-events: none;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(var(--portrait-x, 0), var(--portrait-y, 0), 0) scale(var(--portrait-scale, 1));
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.avatar:hover { border-color: rgba(181,83,46,.28); }
.avatar:hover { --portrait-scale: 1.012; }
.avatar:hover::after { border-color: rgba(181,83,46,.35); }
.avatar:active { transform: scale(.99); transition-duration: .1s; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(33,30,26,.025);
  position: relative;
  transition: transform .34s cubic-bezier(.22,1,.36,1), border-color .26s var(--ease), background-color .26s var(--ease);
  will-change: transform;
}
.card::before { content: none; }
.card:hover {
  transform: translateY(-1px);
  background: #FFFCF8;
  border-color: rgba(181,83,46,.3);
}
.card:active { transform: scale(.99); transition-duration: .1s; }
.card h3 { margin-top: 0; transition: color .24s var(--ease), transform .34s cubic-bezier(.22,1,.36,1); }
.card:hover h3 { color: #2a211b; transform: translateY(-1px); }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* 产品卡：价格和行动层级更明确，指针下仅保留克制的暖光 */
.product-section-title {
  max-width: none;
  margin: 64px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.product-section-title:first-of-type { margin-top: 8px; }
.product-section-title h3 { font-size: clamp(24px, 3vw, 30px); text-wrap: balance; }
.product-grid { margin-bottom: 8px; }
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
}
.product-card > * { position: relative; z-index: 1; }
.product-card h3 { text-wrap: balance; }
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.product-price strong {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.product-price span { color: var(--muted); font-size: 13px; }
.product-cta { align-self: flex-start; margin-top: 16px; }
.product-card--signature {
  border-color: rgba(181,83,46,.3);
  background: #FBF3EC;
}
.product-card--signature .tag { background: var(--accent); color: #fff; }
.product-grid--single { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
.product-grid--single .product-card { grid-column: 1 / 2; }

/* 文章卡 */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .cover {
  position: relative;
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  overflow: hidden;
  color: #fff;
  transition: filter .32s var(--ease);
}
.post-card .cover::after {
  content: none;
}
.post-card .cover-cat, .post-card .cover-title { position: relative; z-index: 1; }
.post-card .cover-cat { font-size: 12px; letter-spacing: .14em; opacity: .92; margin-bottom: 8px; font-weight: 600; }
.post-card .cover-title { font-family: var(--font-serif); font-size: 19px; line-height: 1.35; font-weight: 600; }
.post-card .cover-deco { display: none; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: 12px; letter-spacing: .04em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.post-card p { font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.post-card .more { font-size: 14px; color: var(--accent-ink); font-weight: 500; transition: transform .34s cubic-bezier(.22,1,.36,1), color .22s var(--ease); }
.post-card:hover .cover { filter: brightness(1.035) saturate(1.025); }
.post-card:hover .more { transform: translateX(3px); color: var(--accent); }

/* 封面纯色（按分类） */
.cover--写作 { background: var(--c-write-2); }
.cover--财富 { background: var(--c-money-2); }
.cover--成长 { background: var(--c-grow-2); }
.cover--一人公司 { background: var(--c-1co-2); }
.cover--随笔 { background: var(--c-essay-2); }

/* ---------- 个人事业路径 ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.feature-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FBF8F3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.feature-flow::before { content: none; }
.feature-step {
  min-width: 0;
  padding: clamp(30px, 3vw, 42px);
  border-left: 1px solid rgba(216,204,190,.68);
}
.feature-step:first-child { border-left: 0; }
.step-index {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}
.feature-step h3 { margin: 0 0 12px; font-size: 22px; }
.feature-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-serif); font-size: 42px; color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; }

/* ---------- 带色区块 ---------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(180deg, #f4eee6, #eee7de);
  border-top: 1px solid rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(216,204,190,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  aspect-ratio: 1;
  right: -170px;
  bottom: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,83,46,.11), transparent 68%);
  pointer-events: none;
}
.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #211E1A;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  box-shadow: 0 18px 42px -34px rgba(33,30,26,.42);
}
.cta-box::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.16);
  pointer-events: none;
}
.cta-box::after {
  content: none;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #cfc7ba; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.cta-box .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- 文章详情 ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article-header { padding: clamp(56px, 7vw, 84px) 0 clamp(28px, 4vw, 40px); }
.article-header h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.28;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.article-body { font-size: 17.5px; line-height: 1.95; }
.article-body h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.article-body h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.article-body p { margin: 0 0 1.3em; }
.article-body ol, .article-body ul { padding-left: 1.4em; margin: 1.2em 0; }
.article-body li { margin: .55em 0; }
.article-body blockquote {
  margin: 1.6em 0; padding: 16px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 12px 12px 0;
  color: var(--ink-2); font-family: var(--font-serif);
}
.article-body pre {
  background: #211E1A; color: #f3efe8; padding: 18px 20px;
  border-radius: 12px; overflow: auto; font-size: 14px; line-height: 1.6;
}
.article-body code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.article-body :not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.article-body img { border-radius: 12px; margin: 1.4em 0; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- 页脚（深色底座） ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(50px, 5vw, 66px) 0 30px;
  background: #0F0E0C;
  color: #E9E3D8;
}
.site-footer .brand { color: #fff; }
.site-footer .muted { color: rgba(233,227,216,.7); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}
.footer-column { min-width: 0; }
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(233,227,216,.5);
  margin: 2px 0 16px;
}
.footer-grid a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: rgba(233,227,216,.76);
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-grid a:hover { color: #fff; transform: translateX(2px); }
.footer-bottom {
  margin-top: clamp(36px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(233,227,216,.5);
  font-size: 13px;
}

/* ---------- 滚动入场（仅在启用 JS 时隐藏，避免无 JS 空白） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .card.reveal.in:hover { transform: translateY(-1px); }
html.js .card.reveal.in:active { transform: scale(.99); }
html.gsap-ready .reveal { transition: none; }

/* GSAP ScrollTrigger：文章页只保留一条克制的阅读进度线 */
.reading-progress {
  position: fixed;
  z-index: 49;
  top: 55px;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent), #c58a54);
  opacity: .82;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 28px; }
  .footer-column { grid-column: span 2; }
  .footer-column:nth-last-child(-n + 2) { grid-column: span 3; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
  .hero-grid, .hero-grid.reverse { grid-template-columns: 1fr; gap: 38px; }
  .hero > .hero-grid {
    grid-template-areas:
      "copy"
      "portrait"
      "proof";
    row-gap: 38px;
  }
  .hero-grid.reverse .avatar { order: 2; }
  .hero-copy { max-width: 720px; }
  .hero .avatar, .about-hero .avatar { width: min(100%, 380px); justify-self: center; }
  .belief-panel { grid-template-columns: 1fr; gap: 30px; }
  .belief-title { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .grid-3, .stats { grid-template-columns: 1fr 1fr; }
  .feature-flow { grid-template-columns: 1fr; }
  .feature-step { border-left: 0; border-top: 1px solid rgba(216,204,190,.68); }
  .feature-step:first-child { border-top: 0; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250,247,242,.99);
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    backdrop-filter: saturate(150%) blur(20px);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 18px;
    padding: 10px 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 18px 44px -30px rgba(33,30,26,.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top right;
    transition: opacity .25s var(--ease), transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .nav a { min-height: 48px; padding: 11px 12px; border-radius: 10px; }
  .nav a::after { left: 12px; right: auto; bottom: 6px; width: 28px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .product-grid--single { grid-template-columns: 1fr 1fr; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 680px) {
  :root { --page-pad: 20px; }
  .header-inner { height: 54px; }
  .brand { font-size: 19px; }
  .hero { padding-top: 40px; }
  .hero-grid, .hero-grid.reverse { gap: 32px; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-proof .stat { border-left: 1px solid rgba(216,204,190,.7); }
  .hero-proof .stat:nth-child(odd) { border-left: 0; }
  .hero-proof .stat:nth-child(n + 3) { border-top: 1px solid rgba(216,204,190,.62); }
  .hero .avatar, .about-hero .avatar { width: min(100%, 320px); justify-self: center; }
  .belief-panel { padding: 36px 26px 40px; border-radius: 22px; }
  .belief-title h2 br { display: none; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .feature-step { padding: 28px 24px 30px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
  .footer-column { grid-column: auto; }
  .footer-column:nth-last-child(-n + 2) { grid-column: auto; }
  .footer-column:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .footer-column:last-child h4 { grid-column: 1 / -1; }
  .section { padding: 68px 0; }
  .cta-box { padding: 38px 22px 42px; }
  .article-header { padding-top: 48px; padding-bottom: 26px; }
  .hero::before { width: 500px; right: -320px; top: 22%; opacity: .72; }
  .product-section-title { margin-top: 48px; }
  .product-grid--single { grid-template-columns: 1fr; }
  .reading-progress { top: 53px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .avatar img { --portrait-x: 0 !important; --portrait-y: 0 !important; }
  .reading-progress { display: none; }
  .nav a::after { transition: none !important; }
}

/* 降低透明度偏好：磨砂导航转为更实色，避免可读性问题 */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: rgba(250, 247, 242, .98);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
  }
}

@media (prefers-contrast: more) {
  .site-header { background: rgba(250,247,242,.98); border-bottom-color: var(--ink-2); }
  .nav a::after { background: currentColor; }
}

/* 键盘可达性：清晰的可见焦点环（Apple 式克制但明确） */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
