/* ============================================================
   向小园 · 个人主页
   纯静态、无外部依赖：字体全部使用系统字体，国内访问不受影响
   ============================================================ */

:root {
  --bg: #f6f2ea;
  --bg-2: #eee7da;
  --surface: #fffdf9;
  --ink: #1f1c18;
  --ink-2: #4d473f;
  --ink-3: #8a8277;
  --line: rgba(31, 28, 24, 0.1);
  --line-2: rgba(31, 28, 24, 0.18);
  --accent: #dd7a34;
  --accent-ink: #b0561a;
  --accent-soft: rgba(221, 122, 52, 0.14);
  --sky: #7aa6de;
  --glow-a: rgba(238, 148, 78, 0.34);
  --glow-b: rgba(122, 166, 222, 0.3);
  --band-bg: #1d1b18;
  --band-ink: #f4efe6;
  --band-ink-2: #b7afa2;
  --band-line: rgba(244, 239, 230, 0.12);
  --shadow-1: 0 1px 2px rgba(31, 28, 24, 0.05), 0 10px 30px -14px rgba(31, 28, 24, 0.2);
  --shadow-2: 0 2px 6px rgba(31, 28, 24, 0.05), 0 34px 70px -30px rgba(31, 28, 24, 0.38);
  --media-dim: 0;
  --grain-opacity: 0.4;
  --grain-blend: multiply;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong",
    Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13120f;
    --bg-2: #1c1a17;
    --surface: #1b1916;
    --ink: #f2ede4;
    --ink-2: #c6beb1;
    --ink-3: #8c8478;
    --line: rgba(242, 237, 228, 0.09);
    --line-2: rgba(242, 237, 228, 0.17);
    --accent: #f0955a;
    --accent-ink: #f4a770;
    --accent-soft: rgba(240, 149, 90, 0.14);
    --glow-a: rgba(240, 149, 90, 0.16);
    --glow-b: rgba(122, 166, 222, 0.14);
    --band-bg: #1f1d19;
    --band-line: rgba(244, 239, 230, 0.1);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 34px 70px -30px rgba(0, 0, 0, 0.8);
    --media-dim: 0.22;
    --grain-opacity: 0.5;
    --grain-blend: soft-light;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #13120f;
  --bg-2: #1c1a17;
  --surface: #1b1916;
  --ink: #f2ede4;
  --ink-2: #c6beb1;
  --ink-3: #8c8478;
  --line: rgba(242, 237, 228, 0.09);
  --line-2: rgba(242, 237, 228, 0.17);
  --accent: #f0955a;
  --accent-ink: #f4a770;
  --accent-soft: rgba(240, 149, 90, 0.14);
  --glow-a: rgba(240, 149, 90, 0.16);
  --glow-b: rgba(122, 166, 222, 0.14);
  --band-bg: #1f1d19;
  --band-line: rgba(244, 239, 230, 0.1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 34px 70px -30px rgba(0, 0, 0, 0.8);
  --media-dim: 0.22;
  --grain-opacity: 0.5;
  --grain-blend: soft-light;
  color-scheme: dark;
}

/* ---------- 基础 ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* 纸张颗粒感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

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

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  margin: 0 0.1em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.82em;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn .i { font-size: 17px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px -12px rgba(31, 28, 24, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(31, 28, 24, 0.6); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }

.btn-block { width: 100%; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-color: var(--line);
}

.nav-inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 15px;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn .i { font-size: 17px; grid-area: 1 / 1; }
.icon-btn .i-moon { display: none; }

:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding: clamp(28px, 4.4vw, 60px) var(--gutter) 0;
  text-align: center;
  isolation: isolate;
  overflow-x: clip; /* 光晕超出屏幕时不撑宽手机页面 */
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.hero-glow-a {
  width: min(680px, 90vw);
  aspect-ratio: 1;
  left: max(-200px, -12vw);
  top: -180px;
  background: radial-gradient(circle, var(--glow-a), transparent 66%);
}
.hero-glow-b {
  width: min(640px, 90vw);
  aspect-ratio: 1;
  right: max(-220px, -14vw);
  top: 120px;
  background: radial-gradient(circle, var(--glow-b), transparent 66%);
}

.hero-inner {
  max-width: 980px;
  margin-inline: auto;
}

.avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}
.avatar img {
  position: absolute;
  inset: 24px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line), var(--shadow-2);
}
.avatar-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 36s linear infinite;
}
.avatar-ring text {
  font-family: var(--font-mono);
  font-size: 11.2px;
  letter-spacing: 0.24em;
  fill: var(--ink-3);
}
.avatar::after {
  /* 小小的“在线”状态点 */
  content: "";
  position: absolute;
  right: 33px;
  bottom: 33px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4cc27a;
  box-shadow: 0 0 0 4px var(--surface);
}

@keyframes spin { to { transform: rotate(360deg); } }

.hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14.5px;
  color: var(--ink-2);
}
.hello strong { color: var(--ink); font-weight: 650; }
.hello-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 6.8vw, 84px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.scribble {
  position: relative;
  display: inline-block;
  color: var(--accent-ink);
  white-space: nowrap;
}
.scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 340;
  stroke-dashoffset: 0;
  opacity: 0.75;
}
.js .scribble path { stroke-dashoffset: 340; }
.js .hero-title.is-in .scribble path {
  animation: draw 1.1s 0.55s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead {
  max-width: 34em;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.9;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 程序坞 ---------- */

.dock-wrap {
  margin-top: clamp(48px, 5.5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock {
  --base: 58px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: calc(var(--base) + 22px);
  padding: 0 12px 11px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dock-item {
  --s: 1;
  position: relative;
  width: calc(var(--base) * var(--s));
  height: calc(var(--base) * var(--s));
  flex: none;
  transition: width 0.18s ease-out, height 0.18s ease-out;
}
.dock-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
  transition: transform 0.3s var(--ease);
}
.dock-item img.full-bleed { transform: scale(0.84); }
.dock-item:active img { transform: scale(0.92); }
.dock-item:active img.full-bleed { transform: scale(0.78); }

/* 运行中指示点 */
.dock-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.7;
}

/* 悬停标签 */
.dock-item::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s, transform 0.18s;
}
.dock-item:hover::before,
.dock-item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock-hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- 数据条 ---------- */

.stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2px;
  padding: 30px 12px 28px;
}
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stats dt {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 通用区块 ---------- */

.section {
  padding: clamp(80px, 11vw, 140px) var(--gutter);
}
.section-tight { padding-block: 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow span::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.sec-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.sec-sub {
  max-width: 26em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 作品 ---------- */

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

.work {
  --c: var(--accent);
  --c-on: #fff;
  --bar: #f3f3f3;
  --bar-ink: #8b8b8b;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.work:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--c) 40%, var(--line));
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background: var(--media);
  overflow: hidden;
  isolation: isolate;
}
.work-media::before {
  /* 深色模式下稍微压暗浅色背景，避免刺眼 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  opacity: var(--media-dim);
}

.work-num {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--num, color-mix(in srgb, var(--c) 72%, #000));
  opacity: 0.8;
}

.work-shot {
  position: absolute;
  z-index: 1;
  left: 9%;
  right: 9%;
  top: 15%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--bar);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 30px 60px -24px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease);
}
.work:hover .work-shot { transform: translateY(-10px) scale(1.015); }

.work-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: var(--bar);
  border-bottom: 1px solid rgba(127, 127, 127, 0.14);
}
.work-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}
.work-bar i:nth-child(2) { background: #febc2e; }
.work-bar i:nth-child(3) { background: #28c840; }
.work-bar span {
  flex: 1;
  margin-right: 38px;
  text-align: center;
  font-size: 11px;
  color: var(--bar-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-shot img { width: 100%; height: auto; }

.work-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
}

.work-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.work-icon {
  width: 60px;
  height: 60px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}
.work-icon.full-bleed { transform: scale(0.86); }

.work-name {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.work-name span {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.work-tagline {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--ink-2);
}

.work-desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  text-wrap: pretty;
}

.work-desc,
.work-points { margin-bottom: 24px; }

.work-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--ink-2);
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.go b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: var(--c-on);
  transition: transform 0.4s var(--ease);
}
.go .i { font-size: 15px; stroke-width: 2.4; }
.work:hover .go b { transform: rotate(45deg); }

/* 主推作品：横向大卡 */
.work-feature {
  grid-column: 1 / -1;
  flex-direction: row;
}
.work-feature .work-media {
  flex: 0 0 58%;
  aspect-ratio: auto;
  min-height: 460px;
}
.work-feature .work-shot {
  left: 8%;
  right: -6%;
  top: 13%;
  border-radius: 14px 0 0 0;
}
.work-feature .work-body {
  padding: clamp(28px, 3.4vw, 48px);
  justify-content: center;
}
.work-feature .work-icon { width: 68px; height: 68px; }
.work-feature .work-name { font-size: 26px; }
.work-feature .work-tagline { font-size: 19px; }
.work-feature .work-desc { font-size: 16px; }

.work-feature .work-desc { margin-bottom: 0; }
.work-points {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.work-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.work-points .i {
  margin-top: 4px;
  padding: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  stroke-width: 3;
}
:root[data-theme="dark"] .work-points .i { color: color-mix(in srgb, var(--c) 60%, #fff); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .work-points .i { color: color-mix(in srgb, var(--c) 60%, #fff); }
}

/* 下一件作品 */
.next {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(22px, 3vw, 36px);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
}
.next-text { flex: 1; }
.next-actions { display: flex; gap: 10px; }
.next h3 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
}
.next p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.next-mark {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 16px;
  background: var(--bg-2);
}
.next-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
.next-mark i:nth-child(2) { animation-delay: 0.2s; }
.next-mark i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- 深色面板（联系区） ---------- */

.band {
  position: relative;
  padding: clamp(44px, 6vw, 84px) clamp(24px, 5vw, 72px);
  border-radius: clamp(26px, 3vw, 40px);
  background: var(--band-bg);
  color: var(--band-ink);
  overflow: hidden;
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 149, 90, 0.24), transparent 65%);
}
.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  left: -200px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 166, 222, 0.16), transparent 65%);
}
.band .eyebrow { color: #f4a770; }

/* ---------- 关于 ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.about-text .sec-title { margin-bottom: 28px; }
.about-text p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about-text p + p { margin-top: 16px; }

.trio {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.trio li {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.trio b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
.trio li:nth-child(2) b { color: var(--accent-ink); }
.trio span {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-3);
  text-wrap: balance;
}

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transform: rotate(1.6deg);
  transition: transform 0.6s var(--ease);
}
.card:hover { transform: rotate(0deg) translateY(-4px); }
.card::before {
  /* 名片上的胶带 */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 104px;
  height: 28px;
  margin-left: -52px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: rotate(-3deg);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-2);
}
.card-top img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
}
.card-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.card-handle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.card-facts {
  display: grid;
  gap: 14px;
  padding: 24px 0 26px;
}
.card-facts div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  font-size: 15px;
}
.card-facts dt { color: var(--ink-3); }
.card-facts dd { color: var(--ink); }
.card-facts a {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.2s, color 0.2s;
}
.card-facts a:hover { color: var(--accent-ink); border-color: var(--accent); }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card-actions .btn { padding: 0 16px; }

/* ---------- 联系 & 页脚 ---------- */

.contact {
  padding: 0 var(--gutter) clamp(80px, 10vw, 130px);
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--band-ink) 35%, #f4a770 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.contact-title span { display: inline-block; } /* 按短语换行，不在词中间断开 */
.contact-sub {
  margin-top: 16px;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--band-ink-2);
}

.mail {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  background: rgba(255, 255, 255, 0.05);
}
.mail-addr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--band-ink);
  transition: color 0.2s;
}
.mail-addr .i { font-size: 22px; color: #f4a770; }
.mail-addr:hover { color: #fff; }
.mail-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--band-ink);
  color: var(--band-bg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.mail-copy:hover { transform: translateY(-1px); }
.mail-copy:active { transform: scale(0.97); }
.mail-copy .i { font-size: 16px; }
.mail-copy.is-done { background: #7fd3a1; color: #0b2417; }

.footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-inner p a { color: var(--ink-2); }
.footer-inner p a.beian { color: var(--ink-3); }
.footer nav { display: flex; gap: 24px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 入场动画 ---------- */

/* 入场用独立的 translate 属性，不和元素自身的 transform（悬停、倾斜）冲突 */
.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  translate: none;
}
.js .work[data-reveal] {
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease),
    transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s;
}
.js .card[data-reveal] {
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}

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

@media (max-width: 1080px) {
  .work-feature .work-media { flex-basis: 52%; min-height: 400px; }
}

@media (max-width: 900px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .work-feature { flex-direction: column; }
  .work-feature .work-media { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 10.4; }
  .work-feature .work-shot { left: 9%; right: 9%; top: 15%; border-radius: 12px 12px 0 0; }
  .about { grid-template-columns: 1fr; }
  .card { max-width: 440px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .works { grid-template-columns: 1fr; }
  .dock { --base: 44px; gap: 7px; padding: 0 9px 9px; border-radius: 19px; height: calc(var(--base) + 18px); }
  .next { flex-wrap: wrap; }
  .next-actions { width: 100%; }
  .next-actions .btn { flex: 1; }
  .mail { flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; width: 100%; max-width: 360px; }
  .mail-copy { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .dock { --base: 36px; gap: 6px; padding: 0 8px 8px; border-radius: 16px; height: calc(var(--base) + 16px); }
  .dock-item::after { bottom: -6px; width: 3px; height: 3px; margin-left: -1.5px; }
  .avatar { width: 148px; height: 148px; }
  .avatar img { inset: 24px; width: 100px; height: 100px; }
  .avatar::after { right: 30px; bottom: 30px; width: 16px; height: 16px; }
  .work-body { padding: 22px 20px 20px; }
  .work-icon,
  .work-feature .work-icon { width: 52px; height: 52px; }
  .work-name,
  .work-feature .work-name { font-size: 19px; }
  .work-feature .work-tagline { font-size: 16.5px; }
  .work-feature .work-desc { font-size: 15px; }
  .work-name span { display: block; margin-left: 0; font-size: 13px; }
  .work-foot { flex-wrap: wrap; }
  .br-wide { display: none; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin-inline: auto; }
  .hero-cta .btn-primary { grid-column: 1 / -1; }
  .hello { font-size: 13.5px; padding: 6px 14px; gap: 8px; }
  .stats dt { font-size: 13px; }
  .trio { grid-template-columns: 1fr; gap: 0; }
  .trio li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 14px 0; }
  .trio span { margin-top: 0; }
  .card { transform: none; padding: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js .scribble path { stroke-dashoffset: 0; }
}
