/* =========================================================
   Shanye 山野 — personal site
   冷调靛蓝 / 纸白 / 琥珀信号色
   编辑式卡片网格 · 克制交互 · 一次性淡入
   ========================================================= */

:root {
  --paper: #e9e7e0;
  --card: #f8f8f4;
  --card-2: #fbfbf8;
  --card-3: #f1f0ea;
  --ink: #14171c;
  --ink-2: #1b1f26;
  --muted: #656b73;
  --line: rgba(20, 23, 28, 0.2);
  --line-soft: rgba(20, 23, 28, 0.11);
  --indigo: #3b4cf0;
  --indigo-deep: #1b27a8;
  --amber: #f2a93b;
  --amber-deep: #a9720f;
  --dark: #0a0c10;
  --dark-2: #10141a;
  --dark-line: rgba(240, 238, 229, 0.22);
  --dark-muted: #a8adb4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "SF Mono", Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 英文句子比中文长：行高兜底 + 长单词允许断行，避免卡片文字溢出 */
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* 纸纹 */
body::after {
  position: fixed;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.045;
  pointer-events: none;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

::selection { background: var(--amber); color: var(--ink); }

/* ---------- 基础排版原子 ---------- */

.section-kicker,
.card-label,
.project-meta,
.micro-copy,
.project-index,
.visual-caption,
.footer-title,
.capability-head,
.capability-output span,
.practice-summary span,
.project-note,
.identity-footnote,
.live-dot,
.footer-note > span,
.art-credit {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.07em;
}

.mono,
.card-label,
.section-kicker,
.project-index,
.project-meta,
.footer-title,
.practice-summary span,
.capability-head,
.capability-output span,
.visual-caption,
.footer-note > span {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.micro-copy,
.identity-footnote,
.project-note,
.art-credit,
.live-dot,
.capability-head,
.practice-summary span {
  text-transform: none;
  letter-spacing: 0.05em;
}

/* ---------- 导航 ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 2.3vw;
  border-bottom: 1px solid var(--line);
  background: rgba(233, 231, 224, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.name-pill,
.nav-links a,
.nav-links .lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.name-pill {
  gap: 10px;
  padding: 0 14px;
  font-weight: 500;
}

.name-pill strong { font-weight: 600; letter-spacing: -0.01em; }

.pill-divider { width: 1px; height: 14px; background: var(--line); }
.nav-links { display: flex; align-items: center; gap: 7px; }
.nav-links a { padding: 0 15px; }

.name-pill:hover,
.nav-links a:hover,
.nav-links .lang-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* 语言切换：与导航胶囊同一套外观，按钮里显示另一种语言的名字 */
.nav-links .lang-toggle {
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ---------- 页面骨架 ---------- */

.page-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-left: 2.3vw;
  padding-right: 2.3vw;
}

#top, #projects, #about, #contact { scroll-margin-top: 88px; }

.intro-shell { padding-top: 19px; padding-bottom: 34px; }

.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 1px 12px;
  color: var(--muted);
}

/* ---------- Hero 网格 ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, 93px);
  gap: 16px;
}

.hero-card,
.project-info,
.project-visual,
.capability-card,
.about-copy-card,
.about-graphic-card,
.contact-card,
.footer-card,
.all-work-card {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--card-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 9px 24px rgba(20, 23, 28, 0.045);
  animation: hero-enter 640ms var(--ease) both;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.hero-card:nth-child(2) { animation-delay: 45ms; }
.hero-card:nth-child(3) { animation-delay: 90ms; }
.hero-card:nth-child(4) { animation-delay: 135ms; }
.hero-card:nth-child(5) { animation-delay: 180ms; }
.hero-card:nth-child(6) { animation-delay: 225ms; }
.hero-card:nth-child(7) { animation-delay: 270ms; }

.hero-card:hover {
  border-color: rgba(20, 23, 28, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 13px 30px rgba(20, 23, 28, 0.075);
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 37px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  color: var(--muted);
}

/* 身份卡 */
.identity-card {
  --scene-h: clamp(186px, 13.2vw, 210px);
  grid-column: 1 / span 4;
  grid-row: 1 / span 4;
  container-type: inline-size;
}

.identity-card::before {
  position: absolute;
  top: 37px;
  right: 0;
  left: 0;
  height: calc(26px + var(--scene-h));
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 23, 28, 0.13) 1px, transparent 0),
    linear-gradient(135deg, #e6ecff 0%, #cdd6ff 52%, #f3dcbe 100%);
  background-size: 13px 13px, 100% 100%;
  content: "";
}

.identity-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 17px 18px 15px;
}

.identity-scene {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--scene-h);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(20, 23, 28, 0.24);
  border-radius: 9px;
  background: #f6f7fb;
  box-shadow: 0 8px 18px rgba(20, 23, 28, 0.12);
  animation: scene-enter 720ms 170ms var(--ease) both;
}

.identity-scene img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 420ms var(--ease);
}

.identity-card:hover .identity-scene img { transform: scale(1.022); }

.identity-stamp {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  min-width: 52px;
  height: 25px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(20, 23, 28, 0.45);
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.95);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.identity-copy { display: grid; min-width: 0; gap: 9px; }
.identity-copy .micro-copy { margin: 0; color: var(--muted); }

.identity-card h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(24px, 6.4cqi, 33px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.identity-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 18px 17px;
  border-top: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 12.5px;
}

/* 简介卡 */
.intro-card {
  grid-column: 5 / span 4;
  grid-row: 1 / span 2;
  background: var(--card-2);
}

.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--font-sans); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }

.intro-card-content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 13px 14px;
}

.intro-card-content > p {
  grid-column: 1 / -1;
  max-width: 580px;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16.5px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.intro-meta div { min-width: 0; }
.intro-meta dt,
.intro-meta dd { margin: 0; font-size: 9.5px; line-height: 1.3; }
.intro-meta dt { color: var(--muted); letter-spacing: 0.04em; }
.intro-meta dd { margin-top: 5px; font-size: 11px; line-height: 1.35; }

/* 按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.primary-button {
  align-self: end;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button:hover { transform: translateY(-2px); }
.primary-button:hover { border-color: var(--indigo); background: var(--indigo); color: #fff; }

.arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 0.8;
  transition: transform 220ms var(--ease);
}

.case-link .arrow,
.footer-card a .arrow { margin-left: auto; }
a:hover .arrow,
.case-link:hover .arrow,
.footer-action:hover .arrow { transform: translate(2px, -2px); }

/* 开放问题卡（靛蓝） */
.open-card {
  grid-column: 9 / span 2;
  grid-row: 1 / span 2;
  border-color: var(--indigo-deep);
  background: var(--indigo);
  color: #f5f5f2;
}

.open-card .card-label { border-color: rgba(255, 255, 255, 0.36); background: transparent; color: #e8ebff; }

.field-note-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px 11px;
}

.field-note-body strong {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.field-note-body p { margin: 0; font-size: 12.5px; line-height: 1.45; }

.text-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  color: #f4f4ef;
  font-size: 12px;
  transition: background-color 180ms ease;
}

.text-action:hover { background: rgba(0, 0, 0, 0.14); }

/* 论文卡（墨色） */
.output-card {
  grid-column: 11 / span 2;
  grid-row: 1 / span 2;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.output-card .card-label { border-color: rgba(235, 234, 228, 0.27); background: transparent; color: rgba(235, 234, 228, 0.68); }

.output-word {
  padding: 9px 12px 1px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.output-meta { display: grid; gap: 3px; margin: 6px 12px 7px; }
.output-meta div { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px solid rgba(235, 234, 228, 0.22); }
.output-meta dt,
.output-meta dd { margin: 0; font-size: 8.5px; line-height: 1.3; }
.output-meta dt { color: rgba(235, 234, 228, 0.55); }
.output-meta dd { text-align: right; }

.quiet-button {
  min-height: 34px;
  margin: auto 10px 10px;
  border-color: rgba(235, 234, 228, 0.4);
  color: rgba(235, 234, 228, 0.82);
  font-size: 10.5px;
}

.quiet-button:hover { border-color: var(--amber); background: var(--amber); color: var(--ink); }

/* 能力速览卡 */
.skills-card { grid-column: 1 / span 4; grid-row: 5 / span 2; background: var(--card-3); }

.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px 13px 10px; }

.skill-list div {
  min-width: 0;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.skill-list div:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line-soft); }
.skill-list span,
.skill-list strong { display: block; }
.skill-list span { color: var(--muted); font-size: 9.5px; letter-spacing: 0.04em; }
.skill-list strong { margin-top: 4px; font-size: 11.5px; font-weight: 500; line-height: 1.3; }

/* 项目预览卡 */
.hero-project-card {
  grid-column: 5 / span 6;
  grid-row: 3 / span 4;
  background: var(--card-2);
}

.hero-product-preview {
  position: relative;
  flex: 1;
  margin: 11px;
  overflow: hidden;
  border: 1px solid rgba(27, 39, 168, 0.26);
  border-radius: 9px;
  background: linear-gradient(128deg, #e9edff 0%, #f4f5fb 58%, #fff2dd 100%);
}

.hero-product-preview img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 61%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 420ms var(--ease);
}

.hero-project-card:hover .hero-product-preview img { transform: translateY(-2px) scale(1.015); }

.hero-preview-note {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 39%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border-left: 1px solid rgba(27, 39, 168, 0.22);
  background: rgba(251, 251, 248, 0.8);
}

.hero-preview-note span,
.hero-preview-note small { color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.hero-preview-note strong { margin: 11px 0 auto; font-size: clamp(13px, 1.2vw, 17px); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }

.hero-project-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 0 11px 11px; }
.hero-project-bottom h2 { margin: 4px 0 0; font-size: 26px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.hero-case-link { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 11.5px; transition: color 180ms ease; }
.hero-case-link:hover { color: var(--indigo); }

.square-action {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 17px;
  transition: transform 200ms var(--ease), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.square-action:hover { transform: translateY(-2px); border-color: var(--indigo); background: var(--indigo); color: #fff; }

/* 索引卡 */
.explore-card { grid-column: 11 / span 2; grid-row: 3 / span 4; }

.explore-link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: background-color 180ms ease;
}

.explore-link:last-child { border-bottom: 0; }
.explore-link:hover { background: var(--amber); }
.explore-link small { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }

/* ---------- 精选项目 ---------- */

.projects-section { padding-bottom: 76px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  padding: 0 0 15px;
}

.section-title {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.section-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: right; }

.project-row {
  display: grid;
  grid-template-columns: minmax(290px, 0.98fr) minmax(0, 2.02fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.project-info {
  display: flex;
  min-height: 472px;
  flex-direction: column;
  padding: 18px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 25px rgba(20, 23, 28, 0.045);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.project-index { margin: 0 0 17px; color: var(--muted); }
.project-info h2 { margin: 0; font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; }
.project-type { max-width: 360px; margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; letter-spacing: -0.005em; }

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 18px;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 11px 11px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts div:nth-child(even) { padding-right: 0; padding-left: 11px; border-left: 1px solid var(--line); }
.project-facts dt,
.project-facts dd { margin: 0; font-size: 11.5px; line-height: 1.45; }
.project-facts dt { color: var(--muted); }
.project-facts dd { letter-spacing: -0.005em; }

.project-footer { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.project-meta span:last-child { text-align: right; }

.case-link {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 5px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.project-visual {
  position: relative;
  min-height: 472px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 23, 28, 0.075);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.project-row:hover .project-info { border-color: rgba(20, 23, 28, 0.42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(20, 23, 28, 0.065); }
.project-row:hover .project-visual { border-color: rgba(20, 23, 28, 0.42); box-shadow: 0 17px 36px rgba(20, 23, 28, 0.105); }

.project-palimpsest { grid-template-columns: minmax(0, 2.02fr) minmax(290px, 0.98fr); }
.project-palimpsest .project-visual { order: 1; }
.project-palimpsest .project-info { order: 2; }

/* 视觉面板 */
.editorial-visual { display: flex; flex-direction: column; }

.editorial-head,
.editorial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.editorial-head { min-height: 42px; border-bottom: 1px solid currentColor; }
.editorial-foot { min-height: 48px; border-top: 1px solid currentColor; opacity: 0.82; }

.editorial-stage {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.38fr) minmax(206px, 0.62fr);
  gap: 26px;
  min-height: 0;
  padding: 24px;
}

.editorial-image {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(20, 23, 28, 0.1);
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 440ms var(--ease);
}

.project-row:hover .editorial-image img { transform: translateY(-3px) scale(1.016); }

.editorial-feature { display: flex; flex-direction: column; justify-content: flex-end; padding: 3px 0; }
.editorial-feature > span { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.editorial-feature strong { margin: 15px 0 0; font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; line-height: 1.24; letter-spacing: -0.02em; }
.editorial-feature p { margin: 12px 0 0; font-size: 13px; line-height: 1.55; }
.editorial-feature small { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.stage-split { grid-template-columns: minmax(206px, 0.62fr) minmax(0, 1.38fr); }
.stage-split .editorial-image { order: 2; }
.stage-split .editorial-feature { justify-content: center; }

/* 四种项目配色 */
.visual-indigo {
  border-color: #1b2596;
  background: linear-gradient(150deg, #3340cf 0%, #222da6 100%);
  color: #f0f1fb;
}
.visual-indigo .editorial-feature > span { color: #b9c0f0; }
.visual-indigo .editorial-feature p { color: #d3d7f4; }
.visual-indigo .editorial-feature small { color: #a8afd8; }
.visual-indigo .editorial-image { background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); }

.visual-cool {
  border-color: rgba(27, 39, 168, 0.34);
  background: linear-gradient(150deg, #eef0f8 0%, #e2e6f4 100%);
  color: var(--ink);
}
.visual-cool .editorial-feature p { color: #4b525d; }

.visual-moss {
  border-color: #0e1614;
  background: linear-gradient(150deg, #1b2a23 0%, #101815 100%);
  color: #eef0ec;
}
.visual-moss .editorial-feature > span { color: #93a49a; }
.visual-moss .editorial-feature p { color: #c3cdc5; }
.visual-moss .editorial-feature small { color: #8d9a92; }
.visual-moss .editorial-image { background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }

.visual-sand {
  border-color: rgba(117, 91, 70, 0.44);
  background: linear-gradient(150deg, #f3ecdd 0%, #e6ddcc 100%);
  color: var(--ink);
}
.visual-sand .editorial-feature p { color: #6b5c4c; }

/* 合作桥接卡 */
.all-work-card {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 16px;
  min-height: 268px;
  margin-top: 52px;
  padding: 15px;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 11px 28px rgba(20, 23, 28, 0.06);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.all-work-card:hover { border-color: rgba(20, 23, 28, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(20, 23, 28, 0.09); }

.work-bridge-copy { display: flex; flex-direction: column; padding: 5px 6px; }

.work-bridge-copy > span,
.work-bridge-art > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-bridge-copy strong { margin-top: auto; font-size: clamp(22px, 2.4vw, 38px); font-weight: 600; line-height: 1.22; letter-spacing: -0.025em; }
.work-bridge-copy strong .arrow { margin-left: 4px; }
.work-bridge-copy p { max-width: 400px; margin: 14px 0 1px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* 四条主线之外的散点兴趣：胶囊标签，第一枚用琥珀点出 */
.interest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; padding: 0; list-style: none; }
.interest-tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.interest-tags li:first-child { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.all-work-card:hover .interest-tags li:not(:first-child) { border-color: rgba(20, 23, 28, 0.38); color: var(--ink); }

.work-bridge-art {
  position: relative;
  display: flex;
  min-height: 236px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(124deg, #dbe2ff 0%, #efd9d3 54%, #f6dcaa 100%);
}

.work-bridge-art img {
  width: 84%;
  max-width: 620px;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 440ms var(--ease);
}

.all-work-card:hover .work-bridge-art img { transform: translateY(-3px) scale(1.015); }
.work-bridge-art > span { position: absolute; right: 10px; bottom: 9px; color: rgba(20, 23, 28, 0.62); }

/* ---------- 能力与方法（深色区） ---------- */

.dark-section {
  position: relative;
  margin-top: 10px;
  background: var(--dark);
  color: #f0eee5;
  box-shadow: 0 -10px 30px rgba(20, 23, 28, 0.08);
}

.dark-shell { padding-top: 72px; padding-bottom: 72px; }

.dark-heading { align-items: flex-end; }
.dark-heading .section-title { border-color: var(--dark-line); }
.dark-heading p { color: rgba(235, 234, 228, 0.72); }

.practice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
}

.practice-summary div { min-height: 88px; padding: 15px 17px; border-right: 1px solid var(--dark-line); }
.practice-summary div:last-child { border-right: 0; }
.practice-summary span { color: var(--dark-muted); }
.practice-summary strong { display: block; margin-top: 19px; font-size: 14px; font-weight: 500; line-height: 1.4; }

.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }

.capability-card {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  padding: 17px;
  border-color: var(--dark-line);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.capability-card:hover { border-color: rgba(240, 238, 229, 0.55); background: rgba(255, 255, 255, 0.035); }

.capability-head { display: flex; justify-content: space-between; gap: 16px; color: var(--dark-muted); }
.capability-head span:first-child { color: var(--amber); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.capability-card h3 { margin: 32px 0 10px; font-size: clamp(21px, 1.9vw, 29px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.capability-card > p { max-width: 540px; margin: 0; color: #c7c9c1; font-size: 14px; line-height: 1.6; }

.capability-methods { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 22px; padding: 0; list-style: none; }
.capability-methods li { color: #d5d7d0; font-size: 11.5px; line-height: 1.5; }
.capability-methods li:not(:last-child)::after { margin: 0 8px; color: #6f7269; content: "/"; }

.capability-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--dark-line);
}

.capability-output span { color: var(--dark-muted); }
.capability-output strong { font-size: 12.5px; font-weight: 500; text-align: right; }

/* 关于我 */
.about-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 16px; margin-top: 48px; }

.about-copy-card,
.about-graphic-card {
  min-height: 528px;
  overflow: hidden;
  border-color: var(--dark-line);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.about-copy-card { display: flex; flex-direction: column; }
.about-copy-card .card-label { border-color: var(--dark-line); background: transparent; color: var(--dark-muted); }

.about-large { max-width: 720px; margin: 26px 19px 20px; font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; line-height: 1.32; letter-spacing: -0.025em; }

.about-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 19px 18px; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.about-story p { margin: 0; padding: 13px 14px 14px 0; color: #d1d3cc; font-size: 12.5px; line-height: 1.62; }
.about-story p + p { padding-left: 14px; border-left: 1px solid var(--dark-line); }
.about-story span { display: block; margin-bottom: 8px; color: var(--dark-muted); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: auto 19px 16px; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.about-facts div { padding: 10px 9px 11px 0; border-right: 1px solid var(--dark-line); }
.about-facts div:not(:first-child) { padding-left: 10px; }
.about-facts div:last-child { border-right: 0; }
.about-facts dt,
.about-facts dd { margin: 0; }
.about-facts dt { color: var(--dark-muted); font-size: 10px; letter-spacing: 0.05em; }
.about-facts dd { margin-top: 8px; font-size: 12.5px; line-height: 1.35; }

.about-small { max-width: 600px; margin: 0 19px 20px; color: var(--dark-muted); font-size: 12.5px; line-height: 1.6; }

.about-graphic-card {
  position: relative;
  background-color: var(--dark-2);
  background-image: linear-gradient(rgba(240, 238, 229, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 238, 229, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #f0eee5;
}

.about-graphic-card::before {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 72% 20%, rgba(59, 76, 240, 0.32), transparent 36%),
    radial-gradient(circle at 25% 78%, rgba(242, 169, 59, 0.2), transparent 32%);
  filter: blur(18px);
  content: "";
}

.about-graphic-card .card-label { position: relative; z-index: 1; border-color: var(--dark-line); background: transparent; color: var(--dark-muted); }

.about-illustration-wrap {
  position: relative;
  z-index: 1;
  height: 224px;
  margin: 15px 15px 0;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 9px;
  background: #fbfbf8;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.about-illustration-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 440ms var(--ease); }
.about-graphic-card:hover .about-illustration-wrap img { transform: scale(1.018); }
.about-illustration-wrap span { position: absolute; right: 8px; bottom: 7px; padding: 5px 7px; border: 1px solid rgba(20, 23, 28, 0.22); border-radius: 6px; background: rgba(251, 251, 248, 0.92); color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; }

.process-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 10px 15px 15px; list-style: none; }
.process-list li { min-height: 128px; padding: 11px; border: 1px solid var(--dark-line); border-radius: 8px; background: rgba(10, 12, 16, 0.68); transition: background-color 220ms ease, transform 220ms var(--ease); }
.process-list li:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.process-list li span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 14px; font-weight: 500; }
.process-list li p { margin: 26px 0 0; font-size: 13px; line-height: 1.4; letter-spacing: -0.01em; }

/* ---------- 页脚 ---------- */

.site-footer { padding-top: 82px; padding-bottom: 28px; }

.contact-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 250px;
  padding: 24px;
  background: linear-gradient(118deg, #dee3ff 0%, #c6cfff 55%, #f0d6cd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(20, 23, 28, 0.08);
}

.contact-card .micro-copy { margin: 0; color: var(--muted); }
.contact-card h2 { max-width: 780px; margin: 10px 0 0; font-size: clamp(28px, 3.9vw, 58px); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em; }
.contact-context { max-width: 660px; margin: 16px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.contact-button { flex: 0 0 auto; margin-bottom: 2px; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.contact-button:hover { border-color: var(--indigo); background: var(--indigo); color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 16px; margin-top: 16px; }
.footer-card { display: flex; min-height: 214px; flex-direction: column; padding: 16px; background: #f6f6f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 20px rgba(20, 23, 28, 0.04); }
.footer-title { margin: 0 0 18px; color: var(--muted); }

.footer-card a,
.footer-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 1px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.footer-card a:hover { color: var(--indigo); }
.footer-card > span b { font-weight: 400; color: var(--muted); }

.footer-note p { max-width: 320px; margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.footer-note .art-credit { margin-top: 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.footer-note > span { margin-top: auto; color: var(--muted); font-size: 10px; }

.footer-action {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: color 180ms ease;
}

.footer-action b { color: var(--muted); font-weight: 400; }
.footer-action:hover { color: var(--indigo); }

/* ---------- 加密留言弹层 ---------- */

.msg-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.msg-modal[hidden] { display: none; }

.msg-backdrop { position: absolute; inset: 0; background: rgba(20, 23, 28, 0.44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: msg-fade 200ms ease both; }

.msg-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  box-shadow: 0 24px 60px rgba(20, 23, 28, 0.28);
  animation: msg-rise 280ms var(--ease) both;
}

.msg-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.94);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.msg-x {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.msg-x:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.msg-view { padding: 18px; }
.msg-title { margin: 0 0 8px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.26; letter-spacing: -0.02em; }
.msg-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.msg-label { display: block; margin: 0 0 6px; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; }

.msg-input,
.msg-textarea {
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.msg-textarea { resize: vertical; }
.msg-input:focus,
.msg-textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(59, 76, 240, 0.15); }

.msg-out { background: #f3f3ef; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; word-break: break-all; }

.msg-ok {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 4px 0 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}
.msg-err { min-height: 18px; margin: 0 0 4px; color: #a83a1f; font-size: 12.5px; line-height: 1.5; }
.msg-fp { margin: -2px 0 16px; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; }

.msg-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.msg-actions .button:disabled { opacity: 0.55; cursor: default; transform: none; }

@keyframes msg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes msg-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */

.site-toast {
  position: fixed;
  right: 50%;
  bottom: 25px;
  z-index: 100;
  display: flex;
  max-width: min(440px, calc(100vw - 28px));
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(20, 23, 28, 0.94);
  box-shadow: 0 14px 38px rgba(20, 23, 28, 0.26);
  color: #f7f7f4;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 18px);
  transition: opacity 220ms ease, transform 300ms var(--ease);
}

.site-toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.site-toast > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.site-toast p { margin: 0; font-size: 12.5px; line-height: 1.4; }

/* ---------- 一次性淡入 ---------- */

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.capability-grid .capability-card:nth-child(2) { --reveal-delay: 70ms; }
.capability-grid .capability-card:nth-child(3) { --reveal-delay: 90ms; }
.capability-grid .capability-card:nth-child(4) { --reveal-delay: 140ms; }
.about-grid .about-graphic-card { --reveal-delay: 90ms; }
.project-row[data-reveal] { --reveal-delay: 40ms; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scene-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* 简介卡在中等宽度下空间收紧：主 CTA 与导航、索引卡重复，此处收起，
   让三栏元信息拿到整行宽度，避免"注意力架构·\n自主系统"这类难看折行 */
@media (max-width: 1440px) {
  .intro-card .primary-button { display: none; }
  .intro-meta { gap: 10px; }
  /* 简介卡只有两行网格高，段落变长后降一号字，避免触到卡片底边被裁切 */
  .intro-card-content > p { font-size: 14px; line-height: 1.5; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, 88px); }
  .identity-card { grid-column: 1 / span 4; grid-row: 1 / span 4; }
  .intro-card { grid-column: 5 / span 4; grid-row: 1 / span 2; }
  .open-card { grid-column: 5 / span 2; grid-row: 3 / span 2; }
  .output-card { grid-column: 7 / span 2; grid-row: 3 / span 2; }
  .skills-card { grid-column: 1 / span 4; grid-row: 5 / span 2; }
  .hero-project-card { grid-column: 5 / span 4; grid-row: 5 / span 4; }
  .explore-card { grid-column: 1 / span 8; grid-row: 9 / span 1; flex-direction: row; }
  .explore-card .card-label { min-width: 130px; border-right: 1px solid var(--line); border-bottom: 0; }
  .explore-link { border-right: 1px solid var(--line); border-bottom: 0; }
  .explore-link:last-child { border-right: 0; }
  .project-row { grid-template-columns: minmax(250px, 0.92fr) minmax(0, 1.6fr); }
  .project-palimpsest { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.92fr); }
  .project-info, .project-visual { min-height: 505px; }
  .editorial-stage { grid-template-columns: minmax(0, 1.08fr) minmax(178px, 0.72fr); gap: 18px; padding: 18px; }
  .stage-split { grid-template-columns: minmax(178px, 0.72fr) minmax(0, 1.08fr); }
  .editorial-feature strong { font-size: 25px; }
  .about-copy-card, .about-graphic-card { min-height: 650px; }
}

@media (max-width: 900px) {
  .all-work-card { grid-template-columns: 1fr; }
  .work-bridge-copy { min-height: 190px; }
  .practice-summary { grid-template-columns: 1fr; }
  .practice-summary div { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .practice-summary div:last-child { border-bottom: 0; }
  .practice-summary strong { margin-top: 12px; }
  .capability-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-nav { min-height: 64px; padding: 9px 14px; }
  .name-pill { max-width: 232px; min-height: 36px; padding: 0 10px; overflow: hidden; font-size: 11.5px; white-space: nowrap; }
  .name-pill span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .pill-divider { height: 12px; }
  .nav-links { gap: 4px; }
  .nav-links a { min-width: 43px; min-height: 36px; justify-content: center; padding: 0 9px; font-size: 12px; }
  .nav-links .lang-toggle { min-width: 43px; min-height: 36px; justify-content: center; padding: 0 9px; font-size: 11px; }

  .page-shell { padding-right: 14px; padding-left: 14px; }
  .intro-shell { padding-top: 14px; padding-bottom: 38px; }
  .section-kicker { padding-bottom: 10px; font-size: 10px; }

  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; }
  .hero-card { min-height: 0; }
  .identity-card { grid-column: 1 / -1; grid-row: 1; min-height: 420px; }
  .intro-card { grid-column: 1 / -1; grid-row: 2; min-height: 290px; }
  .hero-project-card { grid-column: 1 / -1; grid-row: 3; min-height: 420px; }
  .skills-card { grid-column: 1 / -1; grid-row: 4; min-height: 192px; }
  .open-card { grid-column: 1; grid-row: 5; min-height: 250px; }
  .output-card { grid-column: 2; grid-row: 5; min-height: 250px; }
  .explore-card { grid-column: 1 / -1; grid-row: 6; min-height: 184px; flex-direction: column; }
  .explore-card .card-label { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .explore-link { border-right: 0; border-bottom: 1px solid var(--line); }
  .explore-link:last-child { border-bottom: 0; }

  .identity-body { padding: 15px; }
  .identity-card h1 { max-width: 15em; font-size: 30px; }
  .identity-footnote { padding: 11px 15px 15px; }
  .intro-card-content { display: flex; flex-direction: column; gap: 11px; padding: 14px; }
  .intro-card-content > p { font-size: 15.5px; }
  .intro-meta { width: 100%; margin-top: auto; }
  .primary-button { width: 100%; }
  /* 移动端有整行空间，把中等宽度下收起的 CTA 还回来，避免简介卡中间留空 */
  .intro-card .primary-button { display: inline-flex; }
  .hero-product-preview { min-height: 290px; }
  .hero-product-preview img { width: 100%; height: 64%; }
  .hero-preview-note { top: auto; bottom: 0; width: 100%; height: 36%; border-top: 1px solid rgba(27, 39, 168, 0.22); border-left: 0; }
  .hero-preview-note strong { margin: 7px 0 5px; font-size: 14px; }
  .field-note-body p { font-size: 13px; }
  .output-word { font-size: 32px; }

  .projects-section { padding-bottom: 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading p { font-size: 13.5px; text-align: left; }

  .project-row, .project-palimpsest { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
  .project-visual, .project-palimpsest .project-visual { order: -1; min-height: 470px; }
  .project-info, .project-palimpsest .project-info { order: 0; min-height: 0; padding: 15px; }
  .project-index { margin-bottom: 15px; }
  .project-info h2 { font-size: 36px; }
  .project-type { max-width: none; margin-top: 10px; font-size: 14.5px; }
  .project-facts { margin-top: 24px; margin-bottom: 20px; }
  .project-facts div { min-height: 66px; }
  .project-footer { margin-top: 0; }

  .editorial-head, .editorial-foot { padding-right: 13px; padding-left: 13px; font-size: 9px; }
  .editorial-stage, .stage-split { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .stage-split .editorial-image { order: -1; }
  .editorial-image { min-height: 218px; }
  .editorial-feature { min-height: 104px; padding: 0; justify-content: flex-start; }
  .editorial-feature strong { margin-top: 8px; font-size: 22px; }
  .editorial-feature small { display: none; }

  .all-work-card { min-height: 440px; margin-top: 36px; padding: 10px; }
  .work-bridge-copy { min-height: 190px; padding: 6px; }
  .work-bridge-copy strong { font-size: 24px; }
  .work-bridge-art { min-height: 232px; }
  .work-bridge-art img { width: 92%; }

  .dark-shell { padding-top: 56px; padding-bottom: 56px; }
  .capability-card { min-height: 272px; }
  .about-grid { margin-top: 38px; }
  .about-large { margin-right: 15px; margin-left: 15px; font-size: 24px; }
  .about-story { grid-template-columns: 1fr; margin-right: 15px; margin-left: 15px; }
  .about-story p { padding: 12px 0; }
  .about-story p + p { padding-left: 0; border-top: 1px solid var(--dark-line); border-left: 0; }
  .about-facts { grid-template-columns: 1fr; margin-right: 15px; margin-left: 15px; }
  .about-facts div, .about-facts div:not(:first-child) { padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .about-facts div:last-child { border-bottom: 0; }
  .about-facts dt, .about-facts dd { display: inline; }
  .about-facts dd { margin-left: 12px; }
  .about-small { margin-right: 15px; margin-left: 15px; }
  .about-illustration-wrap { height: 232px; }
  .process-list { padding: 10px 12px 12px; }
  .process-list li { min-height: 168px; }

  .site-footer { padding-top: 56px; padding-bottom: 17px; }
  .contact-card { align-items: flex-start; flex-direction: column; min-height: 290px; padding: 17px; }
  .contact-card h2 { font-size: 30px; }
  .contact-context { margin-top: 13px; }
  .contact-button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .footer-card { min-height: 176px; }
}

@media (max-width: 430px) {
  .name-pill { max-width: 168px; }
  .name-pill span:last-child { display: none; }
  .site-nav { gap: 8px; }
  .nav-links a { min-width: 42px; padding: 0 7px; }
  .identity-card h1 { font-size: 27px; }
  .project-visual { min-height: 456px; }
  .contact-card h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
