/* ═══════════════════════════════════════════════════════════
   陈星野 · The Renaissance Edition v2.1 — Pure Ivory
   全站纯米白：米黄 #f7f7ee + 橄榄墨黑 #292919 + 暖橙点睛
   去除明暗交替，统一一张米色信纸气质
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ── */
:root {
  /* Brand Neutrals */
  --ivory: #f7f7ee;
  --ivory-soft: #efeee2;
  --ivory-deep: #e7e6da;
  --ink: #292919;
  --ink-soft: #4a4a3b;
  --black: #000000;
  --white: #ffffff;
  --gray-mid: #8c8c8c;
  --gray-line: #ececec;

  /* Backgrounds */
  --bg: var(--ivory);
  --surface-paper: var(--white);
  --surface-soft: var(--ivory-soft);

  /* Accents */
  --accent: var(--ink);
  --accent-warm: #b67a3f;
  --magenta: #ff2d8f;        /* Shopify Editions 现代粉点睛 */
  --magenta-rgb: 255, 45, 143;

  /* Glass（浅色玻璃）*/
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(41, 41, 25, 0.18);
  --glass-blur: 14px;

  /* Borders */
  --border-paper: rgba(41, 41, 25, 0.12);
  --border-soft: rgba(41, 41, 25, 0.06);

  /* RGB */
  --ivory-rgb: 247, 247, 238;
  --ink-rgb: 41, 41, 25;
  --white-rgb: 255, 255, 255;
  --warm-rgb: 182, 122, 63;

  /* Semantic */
  --success: #1f9d55;
  --error: #d92d20;

  /* Easing */
  --ease-shopify: cubic-bezier(0.41, 0.19, 0.13, 0.95);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-base: 0.6s;
  --t-fast: 0.3s;

  /* Fonts */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, system-ui, 'PingFang SC', sans-serif;
  --font-serif: 'Instrument Serif', 'Noto Serif SC', Georgia, serif;
  --font-serif-zh: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;

  --container: 1280px;
}

/* ── 2. Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--ivory); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 28px;
  width: 100%;
}
@media (min-width: 900px) {
  .container { padding-left: 88px; }
}

/* 衬线斜体点睛词 */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}

.eyebrow {
  display: inline-block;
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 24px;
}

/* 所有 section 统一米色（去除黑米交替）*/
.section-paper,
.section-dark {
  background: var(--ivory);
  color: var(--ink);
}

/* ── 3. 导航（始终墨黑文字 on 米底）── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: transparent;
  color: var(--ink);
  transition: background var(--t-base) var(--ease-shopify),
              backdrop-filter var(--t-base) var(--ease-shopify),
              padding var(--t-base) var(--ease-shopify);
}
.nav.scrolled {
  background: rgba(247, 247, 238, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo { display: flex; align-items: center; gap: 12px; font: 500 0.875rem var(--font-sans); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 2px;
  background: var(--ink);
  position: relative;
}
.logo-mark::after {
  content: '⊕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ivory);
}
.logo-text { display: inline-flex; align-items: baseline; gap: 8px; }
.logo-edition {
  font: 400 0.875rem var(--font-serif);
  font-style: italic;
  opacity: 0.55;
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font: 500 0.8125rem var(--font-sans);
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity var(--t-base) var(--ease-shopify);
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta { padding: 4px 11px; font-size: 0.68rem; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span {
  width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-fast) var(--ease-shopify), opacity var(--t-fast) var(--ease-shopify);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 3b. 左侧固定锚目录 ── */
.side-toc {
  position: fixed;
  left: 28px; bottom: 32px;
  z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity var(--t-base) var(--ease-shopify);
}
.side-toc a {
  display: inline-flex; align-items: center;
  transition: color var(--t-base) var(--ease-shopify),
              opacity var(--t-base) var(--ease-shopify);
}
.side-toc a::before {
  content: '';
  display: inline-block;
  width: 0; height: 1px;
  background: currentColor;
  margin-right: 0;
  transition: width var(--t-base) var(--ease-shopify),
              margin var(--t-base) var(--ease-shopify);
}
.side-toc a:hover { opacity: 1; }
.side-toc a.active { opacity: 1; }
.side-toc a.active::before { width: 10px; margin-right: 10px; }
@media (max-width: 900px) { .side-toc { display: none; } }

/* ── 4. Buttons（统一墨黑药丸）── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px;
  font: 600 0.72rem var(--font-sans);
  color: var(--white); background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 9999px;
  transition: background var(--t-base) var(--ease-shopify),
              color var(--t-base) var(--ease-shopify),
              transform var(--t-fast) var(--ease-shopify);
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ink-rgb), 0.25); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary svg { transition: transform var(--t-base) var(--ease-shopify); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px;
  font: 500 0.72rem var(--font-sans);
  color: var(--ink); background: transparent;
  border: 1px solid var(--border-paper);
  border-radius: 9999px;
  transition: background var(--t-base) var(--ease-shopify),
              color var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify),
              transform var(--t-fast) var(--ease-shopify);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ink-rgb), 0.25); }

/* ── 5. HERO（Shopify Editions 版式：油画大图 + 白线题字框 + 左竖列 + 右罗马数字）── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
  padding: 120px clamp(40px, 6vw, 100px) 110px clamp(80px, 10vw, 160px);
  background: var(--ivory);
  color: var(--white);
  isolation: isolate;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Stage 1 揭开起点：圆形剪裁 0% → 120% */
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
  perspective: 1200px;     /* 3D 视差容器 */
}
.hero-bg-video, .hero-bg-img { transform-style: preserve-3d; backface-visibility: hidden; }
.hero-bg-img,
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 1;
  will-change: transform;
  transform: scale(1.04);
  transition: transform 0.9s var(--ease-shopify);
  filter: contrast(0.95) saturate(0.92);
}
/* 视频未加载时显示 poster 兜底 */
.hero-bg-video[poster] {
  background-image: var(--poster-fallback, none);
  background-size: cover;
  background-position: 50% 45%;
}
/* 渐晕：四角加暗、中央留亮，让中央白线题字框可读 */
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.35) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Hero 角落元信息 */
.hero-meta {
  position: absolute; top: 96px;
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  animation: heroMetaIn 1s var(--ease-shopify) 0.5s forwards;
  z-index: 4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-meta-tl { left: 6vw; }
.hero-meta-tr { right: 6vw; }
.meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(var(--magenta-rgb), 0.7);
  animation: dotPulseMagenta 2.4s var(--ease-shopify) infinite;
}
.meta-sep { display: inline-block; width: 18px; height: 1px; background: var(--white); opacity: 0.55; }
@keyframes heroMetaIn { to { opacity: 0.9; } }
@keyframes dotPulseMagenta { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.8); } }

/* 左侧竖列章节名 / 右侧罗马数字（Shopify 签名）*/
.hero-chapters {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 14px;
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  animation: heroMetaIn 1s var(--ease-shopify) 0.7s forwards;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero-chapters-left { left: 6vw; align-items: flex-start; }
.hero-chapters-right { right: 6vw; align-items: flex-end; font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 400; }
.hero-chapters li { line-height: 1; }

/* 左下白细线题字框（v2.3：让出视频中央的小女孩 + 红车 + 小马驹）*/
.hero-frame {
  position: relative;
  z-index: 5;
  width: min(440px, 100%);
  padding: 36px 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  text-align: left;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  animation: frameIn 1.2s var(--ease-shopify) 0.3s both;
}
@keyframes frameIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.frame-decor {
  position: absolute; top: -7px; right: 24px;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--magenta);
  color: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(var(--magenta-rgb), 0.7);
  animation: dotPulseMagenta 2.4s var(--ease-shopify) infinite;
}
.frame-decor svg { color: var(--white); }

.version-badge {
  position: relative; overflow: hidden;
  height: 1.4em;
  display: inline-flex; align-items: center;
  font: 500 0.6875rem var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  margin: 0;
  padding: 0; text-align: left;
}
.version-badge .v-default,
.version-badge .v-hover {
  display: block;
  transition: transform var(--t-base) var(--ease-shopify);
}
.version-badge .v-hover {
  position: absolute; top: 100%; left: 0;
  color: var(--magenta);
  white-space: nowrap;
  opacity: 1;
}
.version-badge:hover { opacity: 1; }
.version-badge:hover .v-default,
.version-badge:hover .v-hover { transform: translateY(-100%); }

.frame-version { margin-bottom: 20px; }

.frame-title {
  font: 500 clamp(1.85rem, 3.2vw, 2.6rem) var(--font-sans);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.frame-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--white);
  font-weight: 400;
}
.frame-sub {
  font: 400 1rem var(--font-sans);
  line-height: 1.6;
  color: var(--white);
  opacity: 0.85;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.frame-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { color: var(--ink); background: var(--white); border-color: var(--white); }
.hero .btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 0.65rem var(--font-sans);
  letter-spacing: 0.22em;
  color: var(--white);
  opacity: 0.8;
  z-index: 4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--white), transparent);
  animation: scrollPulse 2.2s var(--ease-shopify) infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.55); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── 5c. Stage 4 送场 curtain：纯对角扫掀 + 暖金粒子飘散 ── */
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.curtain-paper {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  will-change: clip-path;
  /* 初始：四个顶点收拢在底边 → 不可见 */
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  /* 大幅加柔 drop-shadow：50px 模糊半径 */
  filter: drop-shadow(0 -10px 50px rgba(0, 0, 0, 0.20));
}

/* —— 暖金粒子飘散（呼应视频里红车火花的暖色） —— */
.curtain-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  will-change: opacity;
}
.particle {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  background: radial-gradient(circle, rgba(255, 225, 170, 1) 0%, rgba(255, 175, 95, 0.55) 60%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 6px 1px rgba(255, 200, 130, 0.55),
    0 0 14px 3px rgba(255, 165, 90, 0.28);
  animation: particleDrift var(--dur, 5s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}
@keyframes particleDrift {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  15%  { opacity: 1; }
  60%  { opacity: 0.9; }
  100% { transform: translate(var(--drift-x, 12px), var(--drift-y, -70px)) scale(0.3); opacity: 0; }
}

/* ── 5b. Marquee ── */
.marquee {
  padding: 26px 0;
  border-block: 1px solid var(--border-paper);
  overflow: hidden;
  background: var(--ivory-soft);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: marqueeScroll 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item {
  font: 500 clamp(1.25rem, 2.4vw, 1.85rem) var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.m-item:nth-child(4n+1) {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
  text-transform: none;
  letter-spacing: -0.01em;
}
.m-star { font-size: 1.1rem; color: var(--ink); opacity: 0.35; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 6. 章节起首：首字下沉宋体 + 章节标记（Shopify Sidekick 同款）── */
.chapter-mark {
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.chapter-mark::before {
  content: '';
  display: inline-block;
  width: 36px; height: 1px;
  background: currentColor;
}

.dropcap-head {
  font-family: var(--font-serif-zh);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 22em;
}
.dropcap-head .dc-first {
  font-family: var(--font-serif-zh);
  font-weight: 400;
  font-size: clamp(5.5rem, 11vw, 9rem);
  line-height: 0.9;
  vertical-align: text-top;
  margin-right: 0.05em;
  margin-left: -0.04em;
  display: inline-block;
  float: left;
  color: var(--ink);
  padding-top: 0.05em;
  padding-right: 0.04em;
}
.dropcap-head .serif-accent {
  font-family: var(--font-serif-zh);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}
.dropcap-sub {
  font: 400 1.0625rem var(--font-sans);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.7;
  max-width: 42em;
  margin: 0 0 56px;
}

/* ── 7. Intro ── */
.intro { padding-block: clamp(100px, 14vh, 140px); }
.intro-title {
  font: 500 clamp(1.75rem, 4vw, 3rem) var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 20em;
  color: var(--ink);
}
.big-num {
  font: 500 clamp(2.5rem, 6vw, 4.5rem) var(--font-sans);
  color: var(--accent-warm);
  letter-spacing: -0.03em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ── 8. Section 通用 ── */
.capabilities, .projects, .about, .contact {
  padding-block: clamp(60px, 10vh, 120px) clamp(96px, 14vh, 140px);
}
.section-head { max-width: 44em; margin-bottom: 56px; }
.section-title {
  font: 500 clamp(2rem, 4.5vw, 3.25rem) var(--font-sans);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-desc {
  font: 400 1.0625rem var(--font-sans);
  line-height: 1.65;
  opacity: 0.7;
  margin-top: 18px;
  color: var(--ink);
}

/* 章节间用细分隔线代替明暗切换 */
.section-paper + .section-paper,
.capabilities + .projects,
.projects + .about,
.about + .contact {
  border-top: 1px solid var(--border-soft);
}

/* ── 9. 模块卡 ── */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  background: var(--surface-paper);
  color: var(--ink);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: 28px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify),
              box-shadow var(--t-base) var(--ease-shopify),
              filter var(--t-base) var(--ease-shopify),
              opacity var(--t-base) var(--ease-shopify);
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card.is-clickable { cursor: pointer; }
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}
.fc-stretched {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: inherit;
}
.fc-stretched:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}
/* hover：白底净面 + 左暖橙 / 右薰衣草双侧外发光 + 柔投影（图 4 Sidekick bubble 同款）*/
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--ink-rgb), 0.04);
  box-shadow:
    34px 30px 72px -8px rgba(167, 139, 250, 0.48),     /* 右侧薰衣草外发光 */
    -34px 30px 72px -8px rgba(255, 153, 102, 0.34),    /* 左侧暖橙外发光 */
    0 24px 50px -10px rgba(var(--ink-rgb), 0.20),      /* 底部柔阴影 */
    0 3px 8px rgba(var(--ink-rgb), 0.05);              /* 紧贴近影 */
}
/* 同伴卡片在某张被 hover 时自动 blur + 退后 */
.grid-features:hover .feature-card:not(:hover) {
  filter: blur(2.5px) brightness(0.94);
  opacity: 0.5;
  transform: scale(0.985);
}

.fc-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: var(--ivory-soft);
  color: var(--ink);
  margin-bottom: 18px;
  transition: transform var(--t-base) var(--ease-shopify);
}
.feature-card:hover .fc-icon { transform: rotate(-4deg) scale(1.05); }

.fc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.fc-index {
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}
.fc-role {
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3px 10px;
  border: 1px solid var(--border-paper);
  border-radius: 9999px;
}
.feature-card h3 {
  font: 600 1.25rem var(--font-sans);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--ink);
}
.fc-desc {
  font: 400 0.9375rem var(--font-sans);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.75;
}
.fc-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 20px 0;
}
.fc-result {
  display: flex; align-items: center; gap: 8px;
  font: 400 0.875rem var(--font-sans);
  color: var(--ink);
  opacity: 0.7;
  padding-top: 16px;
  border-top: 1px solid var(--border-paper);
}
.fc-result strong {
  font-weight: 600;
  opacity: 1;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-warm);
  font-size: 1.05em;
}

/* ── 10. Tags ── */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font: 500 0.6875rem var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-paper);
  border-radius: 9999px;
  transition: background var(--t-base) var(--ease-shopify),
              color var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify);
}
.tag:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ── 11. About ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text {
  font: 400 1.0625rem var(--font-sans);
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.85;
  margin: 24px 0 32px;
}
.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  display: block;          /* num + suffix 同一行（baseline 对齐）*/
  transition: border-color var(--t-base) var(--ease-shopify),
              box-shadow var(--t-base) var(--ease-shopify),
              transform var(--t-base) var(--ease-shopify);
}
.stat:hover {
  border-color: rgba(var(--ink-rgb), 0.04);
  transform: translateY(-4px);
  box-shadow:
    28px 24px 60px -8px rgba(167, 139, 250, 0.40),
    -28px 24px 60px -8px rgba(255, 153, 102, 0.28),
    0 18px 40px -10px rgba(var(--ink-rgb), 0.18);
}
.stat-num {
  font: 500 clamp(2.4rem, 4.2vw, 3.2rem) var(--font-sans);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font: 400 1.25rem var(--font-serif);
  font-style: italic;
  color: var(--accent-warm);
  margin-left: 6px;
}
.stat-label {
  display: block;          /* 单独成行 */
  font: 500 0.65rem var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin-top: 14px;
}

/* 各章节简介强制一行 */
.capabilities .dropcap-sub,
.projects .dropcap-sub,
.shortcuts .dropcap-sub.sc-sub {
  white-space: nowrap;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 11b. Shortcuts 章节：关键词云 + 浮动 bubble ── */
.shortcuts {
  position: relative;
  overflow: hidden;
}
.shortcuts-stage {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 600px;
  margin-top: 64px;
}
.sc-word {
  position: absolute;
  font-family: var(--font-sans);
  color: var(--ink);
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transform-origin: 50% 50%;
  transition: opacity 0.55s var(--ease-shopify),
              transform 0.55s var(--ease-shopify),
              color 0.55s var(--ease-shopify),
              font-weight 0.55s var(--ease-shopify);
  animation: scFloat 4s var(--ease-shopify) infinite;
  animation-delay: var(--d, 0s);
}
.sc-word.sc-lg { font-size: 1.5rem; font-weight: 600; opacity: 0.62; }
.sc-word.sc-md { font-size: 1.1rem;  font-weight: 500; opacity: 0.5; }
.sc-word.sc-sm { font-size: 0.9rem;  font-weight: 400; opacity: 0.35; }
.sc-word:hover { opacity: 1; transform: translateY(-3px) scale(1.05); }
.sc-word.active {
  /* 被 bubble 覆盖时直接隐藏自身，避免双份文案；visibility 绕过 opacity transition */
  visibility: hidden !important;
  transform: none !important;
}
@keyframes scFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.sc-bubble {
  position: absolute;
  top: 28%;
  left: 30%;
  width: max-content;          /* 宽度跟随内容自动撑开 */
  max-width: 540px;             /* 极端情况兜底 */
  padding: 13px 18px 11px;
  background: var(--white);
  border-radius: 16px;
  box-shadow:
    22px 18px 50px -8px rgba(167, 139, 250, 0.46),
    -22px 18px 50px -8px rgba(255, 153, 102, 0.30),
    0 12px 28px -8px rgba(var(--ink-rgb), 0.18);
  z-index: 6;
  pointer-events: none;
  will-change: transform, opacity;
}
.sc-bubble-title {
  font: 600 1.05rem var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 4px;
}
.sc-bubble-desc {
  font: 400 0.78rem var(--font-sans);
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.72;
  margin: 0 0 9px;
  white-space: nowrap;          /* 二级文案强制单行，bubble 宽度跟随 */
}
.sc-bubble-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 3px;
  font: 500 0.7rem var(--font-sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify);
}
.sc-bubble-cta:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.50);
}
.sc-bubble-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  border-radius: 50%;
  color: var(--white);
  font-size: 9px;
  line-height: 1;
}

/* ── 12. Contact（米底）── */
.contact-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact-title {
  font: 500 clamp(2.25rem, 5vw, 3.5rem) var(--font-sans);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
.contact-sub {
  font: 400 1.0625rem var(--font-sans);
  color: var(--ink);
  opacity: 0.7;
  margin: 20px 0 44px;
}
.contact-mail {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  margin-bottom: 40px;
  font: 500 0.875rem var(--font-sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-paper);
  border-radius: 9999px;
  transition: background var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify),
              color var(--t-base) var(--ease-shopify);
}
.contact-mail:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.mail-copy {
  font: 600 0.6875rem var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  opacity: 0.7;
}

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-paper);
  border-radius: 9999px;
  transition: background var(--t-base) var(--ease-shopify),
              color var(--t-base) var(--ease-shopify),
              border-color var(--t-base) var(--ease-shopify),
              transform var(--t-base) var(--ease-shopify);
}
.social-link:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* ── 13. Footer ── */
.footer {
  padding: 32px 0;
  background: var(--ivory-soft);
  border-top: 1px solid var(--border-paper);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font: 400 0.8125rem var(--font-sans);
  color: var(--ink);
  opacity: 0.75;
}
.link {
  position: relative;
  color: var(--ink);
  opacity: 1;
  transition: opacity var(--t-base) var(--ease-shopify);
}
.link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-base) var(--ease-shopify);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 14. Toast ── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  background: var(--ink); color: var(--ivory);
  border-radius: 9999px;
  font: 500 0.875rem var(--font-sans);
  box-shadow: 0 12px 40px rgba(var(--ink-rgb), 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease-shopify),
              transform var(--t-base) var(--ease-shopify);
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 15. 通用入场动画 ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; }
[data-reveal].in { animation: fadeUp 0.9s var(--ease-shopify) forwards; }
.stagger-item { opacity: 0; }
.stagger-item.in { animation: fadeUp 0.8s var(--ease-shopify) forwards; animation-delay: var(--random-delay, 0s); }

/* 标题逐词揭示 */
.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
  padding-bottom: 0.06em;
}
.split-word {
  display: inline-block;
  transform: translateY(110%);
  filter: blur(6px);
  transition: transform 1s var(--ease-shopify), filter 0.8s var(--ease-shopify);
  transition-delay: var(--word-delay, 0s);
}
.split-ready .split-word { transform: translateY(0); filter: blur(0); }

/* ── 16. 响应式 ── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .container { padding-left: 28px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .nav { padding: 12px 20px; }
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0;
    padding: 80px 24px 28px;
    flex-direction: column; gap: 4px;
    background: rgba(247, 247, 238, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-paper);
    transform: translateY(-110%);
    transition: transform var(--t-base) var(--ease-shopify);
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link {
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-paper);
  }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 96px 20px 80px; justify-content: center; align-items: center; }
  .hero-meta { top: 76px; font-size: 0.6rem; gap: 8px; }
  .hero-meta-tl { left: 20px; }
  .hero-meta-tr { right: 20px; }
  .hero-chapters { display: none; }
  .hero-frame { width: 100%; padding: 30px 24px 28px; }
  /* 移动端关掉同伴 blur，触屏不需要 */
  .grid-features:hover .feature-card:not(:hover) {
    filter: none; opacity: 1; transform: none;
  }
  /* Shortcuts 章节移动端降级：词云改为流式排版，bubble 改为底部静态卡 */
  .shortcuts-stage {
    height: auto; min-height: 0;
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 32px;
  }
  .sc-word {
    position: static !important;
    top: auto !important; left: auto !important;
    animation: none;
    opacity: 0.75;
    transform: none !important;
  }
  .sc-word.sc-lg { font-size: 1.05rem; }
  .sc-word.sc-md { font-size: 0.92rem; }
  .sc-word.sc-sm { font-size: 0.8rem; }
  .sc-bubble {
    position: static;
    width: 100%;
    margin-top: 28px;
    transform: none !important;
  }
  .hero-bg-img, .hero-bg-video { object-position: 55% 45%; }
  /* 移动端降级：隐藏 video，用 poster 静态图垫底 */
  .hero-bg-video { display: none; }
  .hero-bg-wrap {
    background-image: url('assets/images/hero-edition.jpg');
    background-size: cover;
    background-position: 55% 45%;
    /* 移动端跳过 Stage 1 clip 揭开 */
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .frame-cta { flex-direction: column; align-items: stretch; }
  .frame-cta .btn-primary, .frame-cta .btn-ghost { justify-content: center; }
  .m-item { font-size: 1.1rem; }
  .marquee-track { gap: 24px; animation-duration: 32s; }
  section { padding-block: 72px; }
  .dropcap-head { font-size: clamp(1.5rem, 5vw, 2rem); }
  .dropcap-head .dc-first { font-size: clamp(4rem, 16vw, 6rem); }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px 14px 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-mail { font-size: 0.9375rem; padding: 14px 22px; flex-direction: column; gap: 10px; }
  * { will-change: auto; }
}

/* ── 17. Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .stagger-item, .mega-word, .split-word {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-glass, .hero-bg-img, .hero-bg-video, .hero-construct { transform: none !important; opacity: 1 !important; }
  .hero-bg-wrap { clip-path: none !important; -webkit-clip-path: none !important; }
  .hero-curtain { height: 0 !important; }
  .scroll-line { animation: none; }
}
