/* ==========================================================================
   六书进化 · 个人网站
   风格：深色建造日志（build log）
   取色唯一来源：下方 token，禁止逐 section 目测取色
   ========================================================================== */

:root {
  --bg:      #0B0C0E;
  --surface: #14161A;
  --line:    #23262B;
  --text:    #E8EAED;
  --muted:   #8A9099;
  --accent:  #3DDC97;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --wrap: 1440px;
  --gutter: 48px;
  --nav-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* 语言切换：默认隐藏，按 html[lang] 显示对应版本 */
[data-lang] { display: none; }
html[lang="zh"] [data-lang="zh"],
html[lang="en"] [data-lang="en"] { display: revert; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- 顶部细导航
   默认藏在视口上方，滚过首屏后滑入 */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(11, 12, 14, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform 0.32s ease;
}

body.is-scrolled .topbar { transform: none; }

.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.topbar__links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible { color: var(--text); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark__mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  flex: 0 0 auto;
}

.wordmark__text { font-size: 0.98rem; }

.lang {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang:hover, .lang:focus-visible {
  color: var(--text);
  border-color: var(--muted);
}

/* --------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--sm { min-height: 36px; padding: 0 16px; font-size: 0.84rem; }

.btn--accent { background: var(--accent); color: #06120C; }
.btn--accent:hover, .btn--accent:focus-visible { opacity: 0.85; }

.btn--ghost { border-color: var(--line); color: var(--text); background: none; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--muted); }

button.btn { font-family: inherit; }

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

.section {
  padding: 7.5rem 0;
  scroll-margin-top: var(--nav-h);
}

.section__label {
  margin-bottom: 26px;
  color: var(--muted);
}

.section__index {
  margin-top: 84px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section__head { margin-bottom: 62px; }

.h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h2--sm { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }
.h2--lg { font-size: clamp(1.6rem, 4.5vw, 3.9rem); line-height: 1.1; }

.h3 {
  font-size: clamp(1.02rem, 1.25vw, 1.24rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* -------------------------------------------------------------- HERO（全屏大图） */

.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-full__bgs { position: absolute; inset: 0; z-index: -1; }

.hero-full__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-full__bg.is-active { opacity: 1; }

/* 压暗：保证白字在任何背景上可读 */
.hero-full__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.62) 0%, rgba(4, 5, 7, 0.18) 32%, rgba(4, 5, 7, 0.28) 62%, rgba(4, 5, 7, 0.78) 100%);
}

/* 首屏 Muse 注册推广条 */
.promo-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 48px 9px 20px;
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.16), rgba(61, 220, 151, 0.06));
  border-bottom: 1px solid rgba(61, 220, 151, 0.35);
  font-size: 0.84rem;
  color: #fff;
}
.promo-bar__text { margin: 0; letter-spacing: 0.02em; }
.promo-bar__text strong { color: var(--accent); }
.promo-bar__btn {
  flex: none;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #06281b;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.promo-bar__btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(61, 220, 151, 0.45); }
.promo-bar__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.promo-bar__close:hover { color: #fff; }
.promo-bar.is-hidden { display: none; }
/* 可点击复制的邀请码 */
.promo-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(61, 220, 151, 0.12);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  padding: 2px 10px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.promo-code:hover { background: rgba(61, 220, 151, 0.25); }
@media (max-width: 700px) {
  .promo-bar { font-size: 0.76rem; gap: 10px; padding: 8px 40px 8px 12px; }
  .promo-bar__btn { padding: 5px 12px; }
  .promo-bar__full { display: none; }
  .promo-bar__short { display: inline; }
}

/* 顶部微信引流按钮：显眼、可点击复制 */
.wechat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.10);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(61, 220, 151, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.wechat-pill:hover,
.wechat-pill:focus-visible {
  background: rgba(61, 220, 151, 0.22);
  box-shadow: 0 0 26px rgba(61, 220, 151, 0.45);
  transform: translateY(-1px);
  outline: none;
}
.wechat-pill:active { transform: translateY(0); }
.wechat-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: wechat-pulse 2s ease-in-out infinite;
}
@keyframes wechat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, 0); }
}
@media (max-width: 700px) {
  .wechat-pill { padding: 6px 10px; font-size: 0.72rem; white-space: nowrap; }
  /* 手机顶部只留微信按钮：时钟隐藏、收窄边距 */
  #bjClock { display: none; }
  .hero-full__meta { gap: 10px; }
  .hero-full__top { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 701px) {
  .promo-bar__short { display: none; }
}

/* 3D 粒子层：盖在压暗层之上,叠加发光,不拦截点击 */
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.hero-full__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px var(--gutter);
}

.hero-full__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-full__nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.hero-full__nav a:hover,
.hero-full__nav a:focus-visible { color: #fff; }

.hero-full__nav .mono { color: rgba(255, 255, 255, 0.42); }

.hero-full__meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-full__meta .mono { color: rgba(255, 255, 255, 0.62); }

.hero-full__meta .lang {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.78);
}

.hero-full__meta .lang:hover,
.hero-full__meta .lang:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-full__body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 0 var(--gutter) 72px;
}

.hero-full__works {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.hero-full__works a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 320px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-full__works a:hover,
.hero-full__works a:focus-visible,
.hero-full__works a.is-active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.hero-full__works .mono { color: rgba(255, 255, 255, 0.4); }

.hero-full__works a:hover .mono,
.hero-full__works a:focus-visible .mono,
.hero-full__works a.is-active .mono { color: var(--accent); }

.hero-full__work-name { font-size: 0.95rem; letter-spacing: 0.04em; }

.hero-full__intro { max-width: 560px; }

.hero-full__kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.hero-full__status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.hero-full__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  flex: 0 0 auto;
}

.hero-full__title {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-full__sub {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  line-height: 1.75;
  margin-bottom: 38px;
}

.hero-full__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 17px 30px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-full__cta:hover,
.hero-full__cta:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #0B0C0E;
}

/* 首屏背景指示圆点：只在触屏为主的宽度下出现 */
.hero-full__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  z-index: 2;
}

.hero-full__dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-full__dots button.is-active { background: #fff; }

/* ------------------------------------------------------------- ABOUT */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 0;
  align-items: stretch;
}

/* 栏间通高竖细线（参考图有此分隔） */
.about__intro {
  padding-right: 42px;
  border-right: 1px solid var(--line);
}

/* 中文标题比英文占宽，此处单独压字号，避免硬折行 */
.about__intro .h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.16;
  margin-bottom: 24px;
}

.rows {
  padding-left: 42px;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.row:first-child .row__num { color: var(--accent); }

.row__body .h3 { margin-bottom: 10px; }

/* ---------------------------------------------------------- BUILDING */

.timeline {
  position: relative;
  margin-left: 6px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: var(--line);
}

.tl {
  position: relative;
  padding: 30px 0 30px 58px;
  border-top: 1px solid var(--line);
}

.tl:first-child { border-top: 0; }

.tl__node {
  position: absolute;
  left: 0;
  top: 36px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.tl:first-child .tl__node {
  background: var(--accent);
  border-color: var(--accent);
}

/* 滚动已过的节点转为青绿，编码「进度」 */
.tl.is-passed .tl__node {
  background: var(--accent);
  border-color: var(--accent);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.tl__date { display: block; margin-bottom: 10px; }
.tl__body .h3 { margin-bottom: 9px; }
.tl__body .note { max-width: 78ch; }

/* ----------------------------------------------------------- CONTENT */

.index__group { margin-bottom: 52px; }
.index__group:last-child { margin-bottom: 0; }

.index__topic {
  color: var(--text);
  padding-bottom: 14px;
}

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

.index__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 17px 0 17px 18px;
  border-bottom: 1px solid var(--line);
}

.index__row--marked { padding-left: 30px; }

.index__marker {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.index__title { font-size: 0.98rem; }
a.index__title { color: inherit; text-decoration: none; }
.index__meta { white-space: nowrap; }
.index__foot { margin-top: 34px; }

/* ------------------------------------------------------------ WORKS */

.works__intro { margin-top: 20px; max-width: 62ch; }

.works-grid {
  columns: 3;
  column-gap: 22px;
}

.work {
  break-inside: avoid;
  margin: 0 0 22px;
}

.work__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
}

.work__btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.work__btn:hover img,
.work__btn:focus-visible img { opacity: 0.88; }

.work figcaption { margin-top: 10px; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 5, 7, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
}

.lightbox[hidden] { display: none; }

.lightbox__fig {
  margin: 0;
  max-width: min(1100px, 88vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.lightbox__fig img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox__fig figcaption { color: var(--muted); }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { border-color: var(--muted); }

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
}

/* ----------------------------------------------------------- METHODS */

.methods__intro { margin-top: 20px; max-width: 64ch; }

.methods__group { margin-bottom: 60px; }
.methods__group:last-child { margin-bottom: 0; }

.methods__group-title {
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.methods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 28px;
  transition: border-color 0.2s ease;
}

.skill:hover { border-color: var(--muted); }

.skill__num {
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill .h3 { margin-bottom: 12px; }

/* ---------------------------------------------------------- SERVICES */

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

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr) 34px;
  gap: 36px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service__num { color: var(--text); }
.service__arrow { color: var(--accent); display: flex; }
.service__arrow svg { width: 22px; height: 22px; display: block; }

/* ----------------------------------------------------------- CONTACT */

.section--contact { padding-bottom: 5rem; }

.section--contact .h2--lg { margin-bottom: 46px; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.contact__links {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  margin-top: 110px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact__links .section__index {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact__link { white-space: nowrap; transition: color 0.15s ease; }
.contact__link:hover, .contact__link:focus-visible { color: var(--text); }

/* ------------------------------------------------------------ 交互反馈 */

.topbar__links a { position: relative; }

.topbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.topbar__links a:hover::after,
.topbar__links a:focus-visible::after { transform: scaleX(1); }

.service {
  transition: background-color 0.2s ease;
}

.service:hover { background-color: var(--surface); }

.service__arrow { transition: transform 0.22s ease; }

.service:hover .service__arrow { transform: translateX(6px); }

.index__title { transition: color 0.18s ease; }
.index__meta { transition: color 0.18s ease; }

.index__row:hover .index__title { color: #FFFFFF; }
.index__row:hover .index__meta { color: var(--text); }

.contact__link { transition: color 0.18s ease; }

/* ------------------------------------------------------------ 访客统计跑马灯 */

.ticker {
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  opacity: 0.45;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__set {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker__item { padding: 0 30px; }

.ticker .mono { font-size: 0.66rem; }

.ticker__sep { color: var(--accent); opacity: 0.55; }

.ticker b {
  color: inherit;
  font-weight: 400;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------- 动效（有目的的最小集） */

/* 只有 JS 确认可动时才隐藏待入场元素：无 JS 或「减少动态」偏好下内容始终可见 */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.motion-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.62s cubic-bezier(0.22, 0.61, 0.24, 1),
    transform 0.62s cubic-bezier(0.22, 0.61, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero-full__body { gap: 32px; }
  .hero-full__works a { min-width: 260px; }
  .about__grid { gap: 56px; }
  .service { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr) 28px; gap: 26px; }
}

@media (max-width: 980px) {
  .topbar__links { display: none; }
  .section { padding: 5.5rem 0; }
  .hero-full__body {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 44px;
    padding-bottom: 56px;
  }
  .hero-full__works { flex-direction: row; flex-wrap: wrap; gap: 0 28px; }
  .hero-full__works li { flex: 1 1 200px; }
  .hero-full__works a { min-width: 0; }
  .hero-full__intro { max-width: 640px; }
  .hero-full__dots { display: flex; }
  .works-grid { columns: 2; }
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about__intro { padding-right: 0; border-right: 0; }
  .rows { padding-left: 0; }
  .contact__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
  .contact__links .section__index { grid-column: 1 / -1; margin-bottom: 6px; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; --nav-h: 58px; }
  .section { padding: 4.25rem 0; }
  .section__head { margin-bottom: 42px; }
  .section__index { margin-top: 52px; }
  .hero-full__top { padding: 20px var(--gutter); }
  .hero-full__nav { display: none; }
  .hero-full__meta { gap: 16px; }
  .hero-full__body { padding-bottom: 44px; gap: 36px; }
  .hero-full__works a { padding: 10px 0; }
  .hero-full__cta { width: 100%; justify-content: center; }
  .works-grid { columns: 1; }
  .methods__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox { padding: 16px; gap: 8px; }
  .lightbox__prev, .lightbox__next { display: none; }
  .row { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .tl { padding-left: 44px; }
  .tl__node { top: 30px; }
  .service {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
    padding: 26px 0;
  }
  .service__title { grid-column: 2; }
  .service__desc { grid-column: 2; }
  .service__arrow { display: none; }
  .index__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contact__links { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .section--contact { padding-bottom: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 文章页 */
.post { padding: 7rem 0 4rem; }
.post__meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.post__cat { font-family: var(--mono, monospace); font-size: 0.75rem; letter-spacing: 0.2em; color: #34d399; text-transform: uppercase; }
.post__date { font-family: var(--mono, monospace); font-size: 0.8rem; color: #888; }
.post__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.6em; }
.post__entitle { color: #888; font-size: 1rem; margin-bottom: 2.5rem; }
.post__body { max-width: 42rem; font-size: 1.05rem; line-height: 1.9; color: #d4d4d4; }
.post__body h2 { font-size: 1.5rem; margin: 2.2em 0 0.8em; color: #fff; }
.post__body h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; color: #fff; }
.post__body p { margin: 0 0 1.2em; }
.post__body ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.post__body li { margin-bottom: 0.5em; }
.post__body blockquote { border-left: 3px solid #34d399; padding-left: 1.2em; margin: 1.5em 0; color: #a3a3a3; }
.post__body hr { border: none; border-top: 1px solid #222; margin: 2.5em 0; }
.post__back { display: inline-block; margin-top: 3rem; color: #888; text-decoration: none; font-size: 0.9rem; }
.post__back:hover { color: #34d399; }
