/* ==========================================================================
   site.css —— 全站组件样式（依赖 tokens.css 的变量）
   古风私塾：提亮的宣纸底、茶褐墨字、印章式强调；左固定栏 + 右长滚动版式不变。
   结构：基础 → 外壳/侧栏 → 排版 → 按钮 → 区块 → 卡片 → 首页 →
        子页组件 → 留言板 → 热点雷达 → 页脚 → 响应式 → 动效
   ========================================================================== */

/* ---------- 1. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  /* 宣纸：提亮的暖米底 + 两层极淡纸纹（横竖经纬），远看是纸，近看才有纤维感 */
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 86, 52, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 86, 52, .013) 0 1px, transparent 1px 4px);
  color: var(--ink-2);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip 不产生滚动容器，position:sticky 才能正常工作 */
  overflow-x: clip;
}

/* 旧纸氛围：暖光 + 纸边微暗，只做氛围，不做大面积渐变 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 820px at 88% -16%, rgba(255, 253, 247, .62), transparent 60%),
    radial-gradient(760px 560px at 6% 110%, rgba(120, 90, 52, .07), transparent 68%);
  box-shadow: inset 0 0 140px rgba(120, 90, 52, .05);
}

/* 参考图原画做整页底纹：压到很淡，只留屋脊、松影与云纹的影子 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/academy-bg.jpg") center center / cover no-repeat;
  opacity: .11;
  filter: saturate(.5) contrast(.9);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }
::selection { background: rgba(122, 74, 43, .18); color: var(--ink); }

/* hidden 必须压住组件自己的 display（作者样式优先级高于 UA 的 [hidden]） */
[hidden] { display: none !important; }

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 外壳：左固定栏 + 右内容 ---------- */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 var(--rail-w);
  width: var(--rail-w);
  height: 100vh;
  padding: clamp(38px, 6vh, 72px) clamp(18px, 2vw, 36px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  /* 侧栏与正文之间一道淡墨竖线，像册页的折缝 */
  box-shadow: inset -1px 0 0 var(--line-soft);
}
.rail::-webkit-scrollbar { display: none; }

.rail__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vh, 40px);
  min-height: 100%;
}

.rail__name {
  display: block;
  font-family: var(--ff-kai);
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .05em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.rail__name:hover { color: var(--blue); }

.rail__role {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.rail__tagline {
  margin-top: 16px;
  max-width: 100%;
  font-size: .94rem;
  line-height: 1.78;
  color: var(--ink-2);
}

/* 侧栏导航：默认淡墨小字，选中项左侧一条 32px 墨褐横线 */
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 40px;
}

.rail__link {
  position: relative;
  padding: 8px 0;
  font-family: var(--ff-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-3);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.rail__link:hover { color: var(--ink); transform: translateX(2px); }
.rail__link:hover::before { width: 24px; }
.rail__link.is-active { color: var(--ink); font-weight: 700; }
.rail__link.is-active::before { width: 32px; }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 12px;
}
.rail__cta { align-self: flex-start; }

.social { display: flex; align-items: center; gap: 12px; }
.social__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease);
}
.social__btn svg { width: 18px; height: 18px; }
.social__btn:hover {
  color: var(--blue);
  border-color: var(--line);
  transform: translateY(-2px);
}

/* 右内容区 */
.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(44px, 7vh, 84px) clamp(16px, 2.4vw, 40px) 0;
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

/* 按页面放宽内容宽度（参考站首页窄、列表页宽） */
.page-home     { --content-max: 1060px; }
.page-about    { --content-max: 940px; }
.page-projects { --content-max: 1080px; }
.page-guestbook{ --content-max: 980px; }
.page-trends   { --content-max: 1160px; }

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4,
.h1, .h2, .h3 {
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  text-wrap: balance;
}

/* 标题与正文都用宋体，靠字重、字号与字距分层 */
.h1 {
  font-family: var(--ff-kai);
  font-size: var(--fs-display);
  line-height: 1.26;
  letter-spacing: .04em;
}
.h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-kai);
  font-size: var(--fs-h2);
  letter-spacing: .04em;
}
/* 区块标题右侧一条双细线，像旧书里的小节分隔 */
.h2::after {
  content: "";
  flex: 1 1 auto;
  min-width: 36px;
  height: 4px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}
.h3 { font-size: var(--fs-h3); line-height: 1.45; letter-spacing: .02em; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.78;
  max-width: 62ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tnum { font-variant-numeric: tabular-nums; }

/* 小标签：用「」括住，像书眉上的注文 */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: .2em;
  font-family: var(--ff-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--blue);
}
.eyebrow::before { content: "「"; font-size: 1.05em; opacity: .85; }
.eyebrow::after { content: "」"; font-size: 1.05em; opacity: .85; }
.eyebrow--light { color: var(--blue); }

/* 主色强调（细下划线，不做大色块） */
.mark {
  color: var(--blue);
  border-bottom: 1px solid var(--blue-tint);
}

strong { color: var(--ink); font-weight: 600; }

/* ---------- 4. 布局 ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(32px, 4.4vw, 54px); }
.section--paper2 { background: transparent; }
.section--plain { background: transparent; }

.sec-head { max-width: 660px; }
.sec-head .h2 { margin-top: 12px; }
.sec-head .lead { margin-top: 14px; }
.sec-head__more { margin-top: 14px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--center .h2 { justify-content: center; }
.sec-head--center .h2::after { display: none; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--gap-lg); }
.row { display: flex; align-items: center; gap: var(--gap-sm); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }

/* ---------- 5. 按钮 / 文字链 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .74em 1.3em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.btn:active { transform: translateY(1px); }

/* 主按钮做成印章：实心墨褐 + 米色字 */
.btn--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--ink-invert);
}
.btn--primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--ink-invert);
}

/* 历史类名保留：都是描边风格 */
.btn--dark { border-color: var(--blue); color: var(--blue); }
.btn--dark:hover { background: var(--blue-soft); }

.btn--ghost { border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); background: transparent; }

.btn--light { border-color: var(--blue); color: var(--blue); }
.btn--light:hover { background: var(--blue-soft); }

.btn--outline-light { border-color: var(--line-strong); color: var(--ink); }
.btn--outline-light:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.btn--lg { padding: .86em 1.55em; font-size: .92rem; }
.btn--sm { padding: .46em .9em; font-size: .76rem; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--ff-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--blue);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow:hover { gap: .8em; border-bottom-color: var(--blue); }

/* ---------- 6. 卡片 / 标签 / 胶囊 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

/* 卡片内再压一道细框，像笺纸的边线 */
.card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.card__title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); }
.card__desc { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.75; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .28em .7em;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-full);
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .03em;
  background: var(--paper-3);
  color: var(--ink-2);
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.tag--live { background: var(--blue-soft); border-color: var(--blue-tint); color: var(--blue); }
.tag--beta { background: var(--amber-soft); border-color: rgba(110, 77, 34, .28); color: var(--amber); }
.tag--private { background: transparent; border-color: var(--line); color: var(--ink-3); }

.step-no {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: .12em;
}

/* ---------- 7. 首页：自我介绍 ---------- */
/* 首屏整块装进一个匾额式双线框：外粗内细 + 右上角云纹线脚 */
.intro {
  position: relative;
  padding: clamp(26px, 3.2vw, 40px) clamp(22px, 2.8vw, 34px);
  margin-bottom: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: rgba(253, 249, 240, .72);
  background-image: url("../img/flourish.svg");
  background-repeat: no-repeat;
  background-position: right 14px top 12px;
  background-size: 132px auto;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
  pointer-events: none;
}

.intro__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--blue);
}
.intro__status::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  /* 光晕画在元素自身盒子里（不再用 box-shadow 外扩），否则翻页时
     会从下一页左边缘漏出 3px，在首屏右侧留下一个漂浮的小点 */
  background: radial-gradient(circle,
    transparent 0 2px,
    var(--blue) 2px 3px,
    rgba(122, 74, 43, .16) 3px 6px);
}

.intro__title {
  margin-top: 22px;
  font-family: var(--ff-kai);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--ink);
}
.intro__title em { font-style: normal; color: var(--blue); }

.intro__lead {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 第 1 页改成个人简介：左文右照，窄屏照片居上 */
.intro__profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.intro__main { min-width: 0; }

/* 左右两栏后首屏标题变窄：缩小一号，并保证每句不拆行 */
.intro__profile .intro__title {
  font-size: clamp(1.75rem, 2.4vw, 2.1rem);
  line-height: 1.5;
}
.intro__profile .intro__title span { display: block; white-space: nowrap; }

.intro__photo {
  width: clamp(200px, 22vw, 270px);
  margin: 2px 0 0;
  align-self: center;
  padding: 9px 9px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(253, 249, 240, .92);
  box-shadow: 0 12px 28px -22px rgba(90, 62, 32, .5);
}
.intro__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 16%;
  border: 1px solid var(--line-soft);
  /* 与纸色统一：轻微褪色 + 降饱和，避免照片在宣纸上太跳 */
  filter: sepia(.18) saturate(.82) contrast(.94);
}
.intro__photo figcaption {
  margin-top: 7px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-align: center;
  color: var(--ink-3);
}

.intro__cv {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  max-width: 58ch;
}
.intro__cv li {
  position: relative;
  padding-left: 17px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-2);
}
.intro__cv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--blue);
  transform: rotate(45deg);
}
.intro__cv-tag {
  display: inline-block;
  margin-right: 5px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--blue);
}
.intro__cv-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .02em;
  font-weight: 500;
  color: var(--ink-3);
}
.intro__cv-note {
  margin-top: 14px;
  max-width: 58ch;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-3);
}
.intro__reply {
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.intro__nowrap { white-space: nowrap; }

.intro__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.facts {
  display: grid;
  /* 中间一列文字最长，多给一点宽度，避免「家长咨/询」单字换行 */
  grid-template-columns: 1fr 1.35fr .9fr;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.facts dt {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--blue);
}
.facts dd {
  margin-top: 6px;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 首屏多页：原生横向滑动 + scroll-snap 分页；箭头/圆点由 site.js 接管 */
.intro__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.intro__track::-webkit-scrollbar { display: none; }

.intro__page {
  flex: 0 0 100%;
  min-width: 0;
  /* 右侧留 12px 空白：翻页后 scrollLeft 只能落到整数像素，
     上一页会露出不到 1px；没有这段空白，漏出的就是文字笔画 */
  padding-right: 12px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.intro__hint {
  margin-top: 16px;
  max-width: 52ch;
  font-family: var(--ff-sans);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink-3);
}

.intro__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.intro__dots { display: flex; align-items: center; gap: 8px; }
.intro__dot {
  position: relative;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.intro__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line-strong);
  transition: background-color .2s var(--ease);
}
.intro__dot:hover::before { background: var(--blue-tint); }
.intro__dot.is-active::before { background: var(--blue); }

.intro__count {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.intro__count b { font-weight: 500; color: var(--ink); }

.intro__arrows { display: flex; gap: 8px; margin-left: auto; }
.intro__arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.intro__arrow:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.intro__arrow:disabled { opacity: .35; cursor: default; }

/* ---------- 8. 产品卡 ---------- */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--blue-tint);
  box-shadow: var(--shadow-md);
}
/* 与 .card 同款笺纸内框 */
.product::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  border: 1px solid var(--blue-tint);
  color: var(--blue);
}
.product__icon svg { width: 20px; height: 20px; }
.product__name { margin-top: 2px; font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.product__desc { flex: 1; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.75; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--line-soft);
}

.product--feature { border-color: var(--blue-tint); background: var(--paper-2); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--ff-mono);
  font-size: .74rem;
  padding: .34em .8em;
  border-radius: var(--r-full);
  background: var(--paper-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: .06em;
}

/* ---------- 9. 能力 / 服务列表 ---------- */
.feature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line-soft);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature__no {
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--blue);
  padding-top: .3em;
}
.feature__body h3 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.feature__body p { margin-top: 5px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.75; }

/* 报价行 */
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { font-weight: 600; color: var(--ink); }
.price-row__note { margin-top: 2px; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 500; }
.price-row__val {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: .88rem;
  color: var(--blue);
  white-space: nowrap;
}

/* ---------- 10. CTA 区块（内嵌面板，不再整屏反色） ---------- */
/* 收尾的整块面板：墨底米字，像题签 */
.dark {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--deep);
  border-radius: var(--r-lg);
  color: var(--ink-invert);
}
/* 内嵌一道米色细框，像装裱的边 */
.dark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(251, 244, 228, .16);
  pointer-events: none;
}
.dark::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 185, 138, .14), transparent 70%);
  pointer-events: none;
}
.dark .h1, .dark .h2 { color: var(--ink-invert); }
.dark .h2::after {
  border-top-color: rgba(251, 244, 228, .32);
  border-bottom-color: rgba(251, 244, 228, .14);
}
.dark .lead { color: rgba(251, 244, 228, .82); }
.dark .muted { color: rgba(251, 244, 228, .62); }
.dark .eyebrow { color: #D9BE93; }
/* 墨底上主按钮反过来：米底墨字，比红底更清楚 */
.dark .btn--primary {
  background: var(--ink-invert);
  border-color: var(--ink-invert);
  color: var(--deep);
}
.dark .btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.dark .btn--ghost { border-color: rgba(251, 244, 228, .35); color: var(--ink-invert); }
.dark .btn--ghost:hover { border-color: var(--ink-invert); color: var(--ink-invert); background: transparent; }
.dark .btn--light { border-color: rgba(251, 244, 228, .45); color: var(--ink-invert); }
/* 墨底上的描边按钮必须换成米色字，否则正文墨色会整个看不见 */
.dark .btn--outline-light { border-color: rgba(251, 244, 228, .32); color: var(--ink-invert); }
.dark .btn--outline-light:hover {
  border-color: var(--ink-invert);
  color: var(--ink-invert);
  background: rgba(251, 244, 228, .08);
}

.cta {
  max-width: var(--content-max);
  margin-inline: auto;
  margin-block: var(--section-y);
  padding: clamp(30px, 4.2vw, 50px);
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gap-lg);
  align-items: center;
}
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 11. 页脚 ---------- */
.footer {
  margin-top: clamp(48px, 7vw, 84px);
  padding-block: 34px 44px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
/* 页脚上方一条水墨学堂：全站收尾都落在同一幅画上 */
.footer::before {
  content: "";
  display: block;
  height: clamp(92px, 10.5vw, 120px);
  margin-bottom: clamp(22px, 3vw, 32px);
  background: url("../img/academy.svg") center bottom / auto 100% no-repeat;
  opacity: .5;
}
.footer .wrap { max-width: var(--content-max); }

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
/* 页脚小印：褐底米心 */
.brand__mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  border-radius: 1px;
  background: var(--blue);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--ink-invert);
  border-radius: 0;
}

.footer__desc {
  margin-top: 10px;
  max-width: 40ch;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink-2);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  max-width: 380px;
  padding-top: 4px;
}
.footer__nav a {
  font-family: var(--ff-mono);
  font-size: .74rem;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--blue); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-3);
}
.footer__bottom a:hover { color: var(--blue); }

/* ---------- 12. 子页页头 ---------- */
/* 与首页首屏同一套匾额框：子页进来第一眼就是同一间学堂 */
.pagehead {
  position: relative;
  margin-bottom: clamp(26px, 3.6vw, 42px);
  padding: clamp(24px, 3vw, 34px) clamp(22px, 2.8vw, 34px) clamp(26px, 3.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: rgba(253, 249, 240, .72);
  background-image: url("../img/flourish.svg");
  background-repeat: no-repeat;
  background-position: right 14px top 12px;
  background-size: 132px auto;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
  pointer-events: none;
}
.pagehead .h1 { margin-top: 16px; font-size: clamp(1.85rem, 2.9vw, 2.55rem); }
.pagehead .lead { margin-top: 14px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.crumb a { transition: color .2s var(--ease); }
.crumb a:hover { color: var(--blue); }
.crumb span { opacity: .5; }

/* ---------- 13. 细节组件 ---------- */
/* 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: var(--gap-lg); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--paper);
  border: 1px solid var(--blue);
}
.timeline__year {
  font-family: var(--ff-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
}

/* 键值表 */
.kv { display: grid; gap: 0; }
.kv__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.kv__row:last-child { border-bottom: 0; }
.kv__row dt {
  font-family: var(--ff-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-3);
}
.kv__row dd { margin: 0; color: var(--ink-2); font-weight: 500; }

/* 联系方式卡片（点击复制） */
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-card:hover {
  border-color: var(--blue-tint);
  background: var(--paper-3);
}
.contact-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
}
.contact-card__icon svg { width: 17px; height: 17px; }
.contact-card__body { flex: 1; min-width: 0; }
.contact-card__label {
  display: block;
  font-size: .8rem;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.contact-card__value {
  display: block;
  font-family: var(--ff-mono);
  font-size: .92rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-card__hint {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--blue);
  white-space: nowrap;
}

/* 复制成功提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: 10px 20px;
  border: 1px solid var(--blue-tint);
  border-radius: var(--r-sm);
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: .76rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 表单 */
.form .field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.75; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: .9; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(122, 74, 43, .10);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237A4A2B' stroke-width='1.6'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--blue); }
.faq__q svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: .5; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 22px; color: var(--ink-2); font-size: var(--fs-sm); max-width: 68ch; }

/* 页内子导航 */
.subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 242, 225, .93);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.subnav__inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__link {
  padding: 13px 14px;
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--ink-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.subnav__link:hover { color: var(--ink); }
.subnav__link.is-active { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- 14. 留言板 ---------- */
.gb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.gb__wall { display: flex; flex-direction: column; gap: var(--gap-md); }
.gb__contact { display: grid; gap: 10px; }

/* 表单卡不跟着 hover 浮起 */
.gb__form.card:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }

.msg-list { display: flex; flex-direction: column; gap: 12px; }

.msg {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 17px 19px;
}
.msg--owner { background: var(--blue-soft); border-color: var(--blue-tint); }
.msg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.msg__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.msg__badge {
  font-family: var(--ff-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .14em .5em;
  border-radius: var(--r-full);
  background: var(--blue);
  color: var(--ink-invert);
}
.msg__time {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.msg__text { font-size: var(--fs-sm); font-weight: 500; line-height: 1.85; color: var(--ink-2); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-3);
}
.empty svg { width: 26px; height: 26px; margin: 0 auto 12px; opacity: .45; }
.empty p { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.empty span { font-size: var(--fs-xs); }

/* ---------- 15. 滚动显现 ---------- */
/* 只在 <html class="js"> 时才隐藏 —— 脚本没跑就保持可见 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 16. 热点雷达 ---------- */
.radar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-bottom: var(--gap-md);
}
.radar-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.radar-time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.radar-time.is-stale::before { background: var(--amber); }
.radar-note {
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--ink-3);
}

.radar-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: var(--gap-lg);
}
.src-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  padding: .42em .8em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.src-chip:hover { border-color: var(--blue-tint); color: var(--blue); }
.src-chip.is-on {
  background: var(--blue-soft);
  border-color: var(--blue-tint);
  color: var(--blue);
}
.src-chip__n { font-size: .9em; opacity: .6; margin-left: .5em; }

.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
  align-items: stretch;
}
.radar-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.trend-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 18px 18px 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.trend-card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
.trend-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.trend-card__name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.trend-card__count {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-3);
}

.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.trend-item:last-child { border-bottom: 0; }
.trend-rank {
  flex: none;
  width: 18px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.6;
}
.trend-item:nth-child(1) .trend-rank,
.trend-item:nth-child(2) .trend-rank,
.trend-item:nth-child(3) .trend-rank { color: var(--blue); font-weight: 700; }

.trend-body { flex: 1; min-width: 0; }
.trend-link {
  display: -webkit-box;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--ink-2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .18s var(--ease);
}
.trend-link:hover { color: var(--blue); }
.trend-hot {
  display: block;
  margin-top: 3px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--ink-3);
}

/* 点赞：低调的上箭头 + 计数 */
.like {
  flex: none;
  appearance: none;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.like svg { width: 13px; height: 13px; flex: none; }
.like__n {
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.like.has-n { color: var(--ink-2); }
.like:hover { color: var(--blue); background: var(--blue-soft); }
.like.is-on { background: var(--blue-soft); border-color: var(--blue-tint); color: var(--blue); }
.like:active { transform: scale(.94); }

.radar-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.radar-foot {
  margin-top: var(--gap-lg);
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: .76rem;
  line-height: 1.9;
  color: var(--ink-3);
}
.radar-foot b { color: var(--ink-2); font-weight: 600; }

/* 首页预览：两列排布，落单的第三张占满一行 */
.page-home .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-home .radar-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- 17. 通用小件 ---------- */
.tag-live, .tag-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 500;
  padding: .28em .7em;
  border-radius: var(--r-full);
}
.tag-live { background: var(--mint-soft); color: var(--mint); }
.tag-soft { background: var(--amber-soft); color: var(--amber); }

/* 动态时间线（首页「最近在做的事」） */
.feed { display: grid; gap: 0; }
.feed__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--gap-md);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feed__item:last-child { border-bottom: 0; }
.feed__date {
  font-family: var(--ff-mono);
  font-size: .74rem;
  color: var(--blue);
  opacity: .8;
  padding-top: 3px;
}
.feed__title {
  margin-bottom: 3px;
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
}
.feed__desc { font-size: .96rem; font-weight: 500; line-height: 1.75; color: var(--ink-2); }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1440px) {
  .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb { grid-template-columns: minmax(0, 1fr); }
  .page-projects .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .page-home .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --rail-w: auto; }

  .shell { display: block; }

  .rail {
    position: relative;
    height: auto;
    width: 100%;
    padding: 26px clamp(20px, 5vw, 40px) 0;
    overflow: visible;
    border-bottom: 1px solid var(--line-soft);
  }
  .rail__inner { gap: 18px; min-height: 0; }

  .rail__name { font-size: 1.7rem; display: inline-block; }
  .rail__role { margin-top: 8px; font-size: .86rem; }
  .rail__tagline { display: none; }

  .rail__nav {
    flex-direction: row;
    gap: 4px;
    padding: 0 clamp(20px, 5vw, 40px);
    margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail__nav::-webkit-scrollbar { display: none; }
  .rail__link {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: .74rem;
    letter-spacing: .08em;
    border-bottom: 2px solid transparent;
  }
  .rail__link::before { display: none; }
  .rail__link:hover { transform: none; }
  .rail__link.is-active { border-bottom-color: var(--blue); }

  .rail__foot { display: none; }

  .main { padding: 32px clamp(20px, 5vw, 40px) 0; }

  /* 窄屏去掉右上角云纹，避免压住首屏标签文字 */
  .intro, .pagehead { background-image: none; }

  /* 个人简介页改单列：照片置顶居中，文字在下 */
  .intro__profile { grid-template-columns: minmax(0, 1fr); }
  .intro__photo {
    order: -1;
    width: min(190px, 54%);
    margin: 0 auto;
  }

  /* 竖屏只露出画心，再淡一点 */
  body::after { opacity: .07; background-position: center 38%; }

  .sec-head .h2 { font-size: 1.3rem; }

  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .facts dd { margin-top: 2px; }

  .footer__top { flex-direction: column; gap: 22px; }
  .footer__nav { max-width: none; }

  .page-home .radar-grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .radar-grid > :last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --fs-display: 1.75rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .kv__row { grid-template-columns: 78px minmax(0, 1fr); }
  .feed__item { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .feed__date { padding-top: 0; }
  .radar-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 24px 20px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; }
  .intro__actions { flex-direction: column; align-items: stretch; }
  .intro__actions .btn { justify-content: center; }
  .product__foot { flex-wrap: wrap; }
  .contact-card__value { font-size: .78rem; }
  .sec-head .h2 { gap: 12px; }
}

/* ---------- 19. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
