/* ============================================================
   元气笔记 GENKI NOTES
   主题：黑 · 白 · 一点金
   ============================================================ */

:root {
  /* 色彩 */
  --paper:       #f6f3ec;
  --paper-2:     #efe9dd;
  --ink:         #131311;
  --ink-soft:    #2b2a26;
  --grey:        #76716a;
  --grey-light:  #a9a39a;
  --line:        rgba(19, 19, 17, .12);
  --gold:        #c4a35a;
  --gold-deep:   #a37f36;
  --gold-light:  #e2cc94;
  --black:       #0e0e0d;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --ease: cubic-bezier(.22, .68, .24, .96);
  --nav-h: 76px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张颗粒纹理 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .5;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

/* 图片加载失败时的优雅降级 */
.img-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(196, 163, 90, .06) 0 12px, transparent 12px 24px),
    var(--paper-2);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .4em;
  text-indent: .4em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 90%); margin-inline: auto; }
.section { padding: 120px 0; }

::selection { background: var(--gold); color: var(--black); }

/* ---------- 通用文字元素 ---------- */
.gold {
  color: var(--gold-deep);
  position: relative;
  white-space: nowrap;
}
.gold::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: .55;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section-label .line {
  width: 42px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  letter-spacing: .04em;
}
.section-title em {
  font-style: normal;
  color: var(--gold-deep);
  position: relative;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .32em;
  background: var(--gold-light);
  opacity: .35;
  z-index: -1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 64px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .section-label { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s, gap .3s;
  white-space: nowrap;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold-deep); border-color: var(--gold); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 15px;
  letter-spacing: .12em;
  font-weight: 500;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--solid:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(163, 127, 54, .55);
}
.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost span { transition: transform .3s var(--ease); }
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}
.btn--ghost:hover span { transform: translateX(5px); }

/* ---------- 加载遮罩 ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .9s var(--ease), visibility .9s;
}
.preloader.hidden { transform: translateY(-100%); visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader__seal {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--black);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader__text {
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: .5em;
  text-indent: .5em;
  font-size: 15px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 163, 90, .45); }
  50% { transform: scale(.94); box-shadow: 0 0 0 14px rgba(196, 163, 90, 0); }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(246, 243, 236, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(1180px, 90%);
  height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 13px; }
.nav__seal {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  border-radius: 4px;
  transition: transform .4s var(--ease), background .3s;
}
.nav__brand:hover .nav__seal { transform: rotate(-6deg) scale(1.05); background: var(--gold-deep); color: var(--paper); }
.nav__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.nav__name em {
  font-family: var(--latin);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--grey);
  font-weight: 500;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a {
  font-size: 14.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav__links > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links > a:hover, .nav__links > a.active { color: var(--gold-deep); }
.nav__links > a:hover::after, .nav__links > a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  border: 1px solid var(--ink);
  padding: 9px 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .3s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav__cta span { transition: transform .3s; }
.nav__cta:hover span { transform: translateX(4px); }

.nav__burger { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 1002; }
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(196, 163, 90, .10), transparent 60%),
    var(--paper);
}
.hero__bg-word {
  position: absolute;
  top: 50%; right: -3%;
  transform: translateY(-50%);
  font-family: var(--latin);
  font-size: clamp(180px, 30vw, 420px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 19, 17, .07);
  user-select: none;
  pointer-events: none;
}
.hero__vertical {
  position: absolute;
  right: 4.5%;
  top: 22%;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .8em;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero__vertical::after {
  content: "";
  width: 1px; height: 70px;
  background: linear-gradient(var(--gold), transparent);
}

.hero__inner { width: min(1180px, 90%); margin-inline: auto; position: relative; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--grey);
  margin-bottom: 30px;
}
.hero__eyebrow .line { width: 56px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.4rem, 9.5vw, 8.4rem);
  line-height: 1.08;
  letter-spacing: .06em;
  position: relative;
  display: inline-block;
}
.hero__title span { position: relative; z-index: 1; }
.hero__title::after {
  content: "";
  position: absolute;
  left: .08em; bottom: .06em;
  width: 1.18em; height: .14em;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, transparent 100%);
  opacity: .85;
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  margin: 34px 0 18px;
  letter-spacing: .06em;
}
.hero__desc { color: var(--grey); font-size: 15.5px; letter-spacing: .03em; }
.hero__desc br { display: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 40px 0 56px; }

.hero__meta { display: flex; align-items: center; gap: 30px; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong {
  font-family: var(--latin);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.hero__meta span { font-size: 12.5px; color: var(--grey); letter-spacing: .14em; margin-top: 4px; }
.hero__meta i { width: 1px; height: 38px; background: var(--line); }

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--grey);
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(var(--gold) 0%, var(--gold) 40%, transparent 40%);
  background-size: 100% 250%;
  animation: scrollLine 2.2s linear infinite;
}
@keyframes scrollLine {
  0% { background-position: 0 100%; }
  100% { background-position: 0 0; }
}

/* ---------- 金句滚动带 ---------- */
.marquee {
  background: var(--black);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid rgba(196, 163, 90, .35);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--paper);
  padding: 0 34px;
  white-space: nowrap;
}
.marquee__group i { color: var(--gold); font-style: normal; font-size: 13px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 关于 ---------- */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: center;
}
.about__photo { position: relative; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s;
  position: relative;
  z-index: 2;
}
.about__photo:hover img { filter: grayscale(.15) contrast(1.02); }
/* 自绘抽象封面本身就是黑白金，不走灰度滤镜 */
.about__photo img.cover-art,
.about__photo:hover img.cover-art { filter: none; }
.about__photo-frame {
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold);
  z-index: 1;
  transition: transform .5s var(--ease);
}
.about__photo:hover .about__photo-frame { transform: translate(-6px, -6px); }
.about__photo-tag {
  position: absolute;
  bottom: -16px; left: 32px;
  z-index: 3;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  padding: 9px 18px;
}
.about__text { margin: 30px 0 10px; display: flex; flex-direction: column; gap: 16px; }
.about__text p { color: var(--ink-soft); font-size: 15.5px; letter-spacing: .02em; }
.about__sign {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 14.5px;
  letter-spacing: .08em;
  margin: 22px 0 30px;
}

/* ---------- 数据 ---------- */
.stats {
  background: var(--black);
  color: var(--paper);
  padding: 84px 0;
  position: relative;
}
.stats::before, .stats::after {
  content: "";
  position: absolute;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, .5), transparent);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--latin);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--grey-light);
}

/* ---------- 最新笔记 ---------- */
.notes { background: var(--paper); }
.notes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 44px;
}
.note-card { display: flex; flex-direction: column; }
.note-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 2.7;
  background: var(--paper-2);
}
.note-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.02);
  transition: transform .8s var(--ease), filter .6s;
}
.note-card:hover .note-card__media img { transform: scale(1.08); filter: grayscale(.2); }
/* 自绘抽象封面本身就是黑白金，不走灰度滤镜 */
.note-card__media img.cover-art { filter: none; transform: scale(1.01); }
.note-card:hover .note-card__media img.cover-art { filter: none; transform: scale(1.045); }
.note-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--gold);
  transition: border-width .35s var(--ease);
  pointer-events: none;
}
.note-card:hover .note-card__media::after { border-width: 5px; }

.note-card__cat {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .2em;
  padding: 7px 14px;
  background: rgba(14, 14, 13, .9);
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}
.note-card__body { padding: 26px 4px 0; flex: 1; display: flex; flex-direction: column; }
.note-card__meta {
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--grey);
  margin-bottom: 12px;
}
.note-card__title {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  margin-bottom: 12px;
}
.note-card__title a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease), color .3s;
  padding-bottom: 3px;
}
.note-card:hover .note-card__title a { background-size: 100% 1.5px; color: var(--gold-deep); }
.note-card__excerpt {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.85;
  flex: 1;
}
.note-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--ink);
  font-weight: 500;
}
.note-card__more span { transition: transform .3s var(--ease); }
.note-card:hover .note-card__more { color: var(--gold-deep); }
.note-card:hover .note-card__more span { transform: translateX(6px); }

/* ---------- 分类 ---------- */
.categories { background: var(--paper-2); }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 44px 38px 38px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s var(--ease), background .4s;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--gold-deep), #6f5420);
  opacity: 0;
  transition: opacity .4s;
}
.cat-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 110px; height: 110px;
  border: 1px solid rgba(196, 163, 90, .4);
  border-radius: 50%;
  transition: transform .5s var(--ease);
}
.cat-card:hover { transform: translateY(-8px); }
.cat-card:hover::before { opacity: 1; }
.cat-card:hover::after { transform: scale(1.5); }
.cat-card > * { position: relative; z-index: 1; }
.cat-card__no {
  font-family: var(--latin);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: auto;
}
.cat-card:hover .cat-card__no { color: var(--paper); }
.cat-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 26px 0 10px;
}
.cat-card p { font-size: 13.5px; color: var(--grey-light); transition: color .3s; }
.cat-card:hover p { color: rgba(255,255,255,.85); }
.cat-card__count {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold-light);
}

/* ---------- 时间线 ---------- */
.timeline { background: var(--paper); }
.timeline__list {
  position: relative;
  margin-left: 8px;
  padding-left: 54px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.timeline__item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 36px; }
.timeline__dot {
  position: absolute;
  left: -61px;
  top: 6px;
  width: 13px; height: 13px;
  background: var(--paper);
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  transition: background .3s, box-shadow .3s;
}
.timeline__item:hover .timeline__dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(196, 163, 90, .18);
}
.timeline__item time {
  font-family: var(--latin);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-deep);
  padding-top: 2px;
}
.timeline__item h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.timeline__item p { color: var(--grey); font-size: 14.5px; }

/* ---------- 订阅 ---------- */
.subscribe {
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(196, 163, 90, .13), transparent 65%),
    var(--black);
  color: var(--paper);
  padding: 120px 0;
  text-align: center;
}
.subscribe .section-label { justify-content: center; color: var(--gold-light); }
.subscribe__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  margin-bottom: 22px;
}
.subscribe__desc { color: var(--grey-light); font-size: 15px; line-height: 2; }
.subscribe__form {
  display: flex;
  max-width: 560px;
  margin: 44px auto 0;
  border-bottom: 1px solid rgba(246, 243, 236, .35);
  transition: border-color .3s;
}
.subscribe__form:focus-within { border-color: var(--gold); }
.subscribe__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 16px 6px;
  letter-spacing: .04em;
}
.subscribe__form input::placeholder { color: var(--grey-light); }
.subscribe__form button {
  background: var(--gold);
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 14px 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .3s, transform .3s var(--ease);
}
.subscribe__form button:hover { background: var(--gold-light); transform: translateY(-2px); }
.subscribe__form button span { transition: transform .3s; }
.subscribe__form button:hover span { transform: translateX(4px); }
.subscribe__note {
  margin-top: 20px;
  font-size: 13.5px;
  letter-spacing: .1em;
  color: var(--gold-light);
  min-height: 20px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #080807;
  color: var(--paper);
  padding-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer .nav__seal { background: var(--gold-deep); color: var(--paper); }
.footer .nav__name { color: var(--paper); }
.footer__brand p {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--grey-light);
  letter-spacing: .08em;
  line-height: 2;
}
.footer__col h5 {
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.footer__col a {
  display: block;
  color: var(--grey-light);
  font-size: 14px;
  padding: 6px 0;
  transition: color .3s, padding-left .3s;
}
.footer__col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer__bottom {
  border-top: 1px solid rgba(246, 243, 236, .1);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--grey-light);
}
.footer__made em { font-style: normal; color: var(--gold); margin: 0 4px; }
.footer__icp { color: var(--grey-light); text-decoration: none; border-bottom: 1px solid rgba(201,162,90,.35); transition: color .25s; margin-left: 6px; }
.footer__icp:hover { color: var(--gold); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--gold);
  font-size: 19px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-deep); color: var(--paper); transform: translateY(-4px); }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__scroll-line { animation: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 70px; }
  .about__photo { max-width: 420px; }
  .hero__vertical { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .section { padding: 86px 0; }

  /* 移动端菜单 */
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links > a { font-size: 20px; font-family: var(--serif); }
  .nav__cta { font-family: var(--sans) !important; font-size: 15px !important; margin-top: 10px; }

  .hero__bg-word { right: -12%; }
  .hero__meta { gap: 22px; }
  .hero__meta strong { font-size: 1.7rem; }
  .hero__desc br { display: block; }

  .notes__grid { grid-template-columns: 1fr; gap: 52px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 26px; margin-bottom: 48px; }
  .section-head--center { align-items: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 50px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .br-mobile { display: block; }

  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__meta { flex-wrap: wrap; gap: 20px; }
  .hero__meta i { display: none; }
  .hero__scroll { display: none; }

  .marquee__group span { font-size: 14.5px; padding: 0 22px; letter-spacing: .14em; }

  .about__photo-frame { inset: 14px -14px -14px 14px; }
  .about__photo-tag { left: 18px; }

  .categories__grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 0; padding: 36px 30px; }

  .timeline__list { padding-left: 34px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .timeline__dot { left: -41px; }

  .subscribe { padding: 86px 0; }
  .subscribe__form { flex-direction: column; border-bottom: none; gap: 16px; }
  .subscribe__form input { border-bottom: 1px solid rgba(246, 243, 236, .35); text-align: center; }
  .subscribe__form button { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { justify-content: center; text-align: center; }

  .to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}
