/* ============================================================
   Nano · 7Nanometer — 个人作品集
   设计：暗夜科技 · 编辑风
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 色彩 */
  --bg: #08080a;
  --bg-2: #0e0e11;
  --card: #121216;
  --card-2: #17171c;
  --fg: #f2f0eb;
  --fg-2: #a5a4ab;
  --fg-3: #66656e;
  --accent: #ff5c00;
  --accent-soft: rgba(255, 92, 0, 0.12);
  --accent-2: #3ce0aa;
  --line: rgba(242, 240, 235, 0.08);
  --line-2: rgba(242, 240, 235, 0.14);

  /* 字体 */
  --font-sans: "NotoSansSC-Sub", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-display: "Space Grotesk", "NotoSansSC-Sub", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-black: "Archivo Black", "Space Grotesk", "NotoSansSC-Sub", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "NotoSansSC-Sub", monospace;

  /* 节奏 */
  --gutter: clamp(20px, 4vw, 48px);
  --max-w: 1240px;
  --sec-pad: clamp(90px, 14vh, 160px);
  --radius: 14px;

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #35353d; }

img { display: block; max-width: 100%; height: auto; }

/* 模式视图的显示控制（hidden 属性优先，防被 flex/grid 覆盖） */
[hidden] { display: none !important; }

/* ---------- 银河背景层 ---------- */
#galaxy {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.galaxy__nebula {
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 40% at 66% 28%, rgba(96, 116, 228, 0.13), transparent 68%),
    radial-gradient(ellipse 42% 30% at 26% 60%, rgba(128, 92, 214, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 38% at 82% 78%, rgba(255, 92, 0, 0.045), transparent 70%);
  animation: nebulaDrift 26s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-1.6%, 1.2%) scale(1.045); }
}

main, .footer { position: relative; z-index: 1; }

/* ---------- 右侧跟随目录 ---------- */
.toc {
  position: fixed;
  right: clamp(16px, 1.8vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 176px;
  padding: 16px 18px 12px;
  background: rgba(13, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
.toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-bottom: 11px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.toc__title i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 92, 0, 0.55);
  flex: none;
}
.toc__title .mono {
  margin-left: auto;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--fg-3);
}
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { display: block; }
.toc__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  margin: 1px -9px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-3);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.toc__list a em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--fg-3);
  width: 18px;
  flex: none;
  transition: color 0.25s;
  font-variant-numeric: tabular-nums;
}
.toc__list a:hover { color: var(--fg); background: rgba(242, 240, 235, 0.05); }
.toc__list a.is-current {
  color: var(--accent);
  background: var(--accent-soft);
}
.toc__list a.is-current em { color: var(--accent); }

/* 回到顶部 */
.toc__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  transition: color 0.25s;
}
.toc__top .mono {
  margin-left: auto;
  font-size: 13px;
  transition: transform 0.35s var(--ease-out);
}
.toc__top:hover { color: var(--accent); }
.toc__top:hover .mono { transform: translateY(-3px); }

/* 中等屏幕：只保留编号（窄条形态） */
@media (max-width: 1499px) {
  .toc { width: auto; padding: 12px 8px; right: 10px; }
  .toc__title { display: none; }
  .toc__list a { justify-content: center; padding: 7px 4px; margin: 1px 0; gap: 0; }
  .toc__list a em { width: auto; font-size: 11px; }
  .toc__list a span { display: none; }
  .toc__top { justify-content: center; }
  .toc__top-label { display: none; }
  .toc__top .mono { margin-left: 0; }
}
/* 小屏幕：隐藏 */
@media (max-width: 1199px) {
  .toc { display: none; }
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); }

strong { color: var(--fg); font-weight: 700; }

em { font-style: normal; }

/* ---------- 加载遮罩 ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; gap: 22px; justify-items: center; }
.loader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.02em;
}
.loader__logo em { color: var(--accent); font-style: normal; }
.loader__bar {
  width: 150px; height: 2px;
  background: var(--line-2);
  overflow: hidden;
  border-radius: 2px;
}
.loader__bar i {
  display: block; height: 100%; width: 40%;
  background: var(--accent);
  animation: load 1s var(--ease-io) infinite;
}
@keyframes load {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(400%); }
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  border: 1px solid rgba(255, 92, 0, 0.45);
  border-radius: 7px;
  padding: 2px 7px 1px;
  line-height: 1.3;
}
.nav__brand-name { font-size: 15px; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-size: 13.5px;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav__links a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--fg-3);
  margin-right: 5px;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover i { color: var(--accent); }

.nav__meta { display: flex; align-items: center; }
.nav__mail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  transition: color 0.25s;
}
.nav__mail:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 112px var(--gutter) 0;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 16px;
}

/* 背景元素：暖色星云光晕（银河的暖侧） */
.hero__glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -280px; top: -320px;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.13) 0%, rgba(255, 92, 0, 0.04) 38%, transparent 68%);
  filter: blur(22px);
  pointer-events: none;
  animation: glowFloat 16s ease-in-out infinite alternate;
}
.hero__glow::after {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  left: -520px; top: 480px;
  background: radial-gradient(circle, rgba(60, 224, 170, 0.06) 0%, transparent 65%);
}
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 50px) scale(1.08); }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--fg-3);
  margin-bottom: 30px;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 42px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 16px;
}

.hero__title { line-height: 1; }
.hero__line { display: block; overflow: hidden; }
.hero__word {
  display: inline-block;
  font-family: var(--font-black);
  font-size: clamp(72px, 14.5vw, 190px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.1;
  padding-right: 0.05em;
}
.hero__dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(255, 92, 0, 0.6), 0 0 90px rgba(255, 92, 0, 0.3);
  animation: dotPulse 3.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 92, 0, 0.6), 0 0 90px rgba(255, 92, 0, 0.3); }
  50% { transform: scale(0.86); box-shadow: 0 0 18px rgba(255, 92, 0, 0.45), 0 0 60px rgba(255, 92, 0, 0.18); }
}
.hero__sub-line { display: block; margin-top: 6px; overflow: hidden; }
.hero__latin {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6.4vw, 86px);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 240, 235, 0.34);
  padding-right: 0.08em;
}

.hero__roles {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 3.6vh, 38px);
}
.hero__role-sep {
  color: var(--fg-3);
  font-size: 15px;
  font-family: var(--font-mono);
}

/* 身份切换按钮（点击切换视角） */
.role-tab {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 2px 2px 12px;
  font-family: inherit;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.3s;
}
.role-tab:hover { color: var(--fg); }
.role-tab[aria-selected="true"],
.role-tab[aria-pressed="true"] { color: var(--accent); }
.role-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 激活指示条：在两个按钮之间平滑滑动 */
.role-tab__indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255, 92, 0, 0.6);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
  pointer-events: none;
}

/* 左侧跟随的身份切换（.rail）：宽屏为左缘竖条，窄屏自动变成底部胶囊。
   滚过首屏（Hero 那组按钮离开视野）后才浮现，避免同屏出现两组开关。 */
.rail {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: max-content; /* 不让 left:50% 把可用宽度砍半导致文字折行 */
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 11px;
  background: rgba(13, 13, 16, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(18px);
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.rail.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out), visibility 0s;
}
.rail__label { display: none; }
.rail__tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
}
.rail .role-tab {
  padding: 4px 2px 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.rail__sep { font-size: 12px; color: var(--fg-3); }
.rail .role-tab__indicator { top: 0; bottom: auto; }

/* 宽屏（≥1400px）：变回左侧竖条形态（两个字身份名竖排） */
@media (min-width: 1400px) {
  .rail {
    left: clamp(16px, 1.8vw, 30px);
    bottom: auto;
    top: 50%;
    flex-direction: column;
    gap: 11px;
    padding: 15px 13px 13px;
    border-radius: var(--radius);
    transform: translateX(-16px) translateY(-50%);
  }
  .rail.is-on { transform: translateX(0) translateY(-50%); }
  .rail__label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-indent: 0.3em; /* 抵消末字后多出的字距，保持视觉居中 */
    color: var(--fg-3);
  }
  .rail__tabs { gap: 12px; align-items: flex-start; }
  .rail__sep { display: none; }
  .rail .role-tab {
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 6px 3px;
    font-size: 13.5px;
    letter-spacing: 0.16em;
    line-height: 1.15;
  }
}

/* 切换时 Hero 文字的淡出 / 淡入 */
.hero__lede, .stats-set {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero__lede.is-fading, .stats-set.is-fading {
  opacity: 0 !important;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.hero__lede {
  margin-top: 22px;
  color: var(--fg-2);
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.95;
  max-width: 46em;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3.8vh, 40px);
}

/* 右侧装饰：位置坐标 */
.hero__aside {
  position: absolute;
  right: 0;
  bottom: 8%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: right;
}
.hero__aside-line {
  width: 64px; height: 1px;
  background: var(--line-2);
  margin-top: 8px;
  flex: none;
}
.hero__aside-txt {
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-align: left;
}
.hero__aside-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 7px;
  vertical-align: 1px;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(60, 224, 170, 0.4); }
  50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(60, 224, 170, 0); }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn--solid {
  background: var(--accent);
  color: #0d0d0d;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -10px rgba(255, 92, 0, 0.55);
}
.btn--solid:hover svg { transform: translateX(4px); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--fg-2);
}
.btn--ghost:hover {
  border-color: var(--fg-2);
  color: var(--fg);
  transform: translateY(-2px);
}

/* Hero 数据条 */
.hero__stats {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: clamp(22px, 3.5vh, 34px) 0 clamp(28px, 5vh, 52px);
}
.stats-set {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding-right: 24px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.5vw, 36px); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(2) .stat__num { color: var(--accent); }
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.hero__scroll span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-3);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px; height: 52px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollHint 2.2s var(--ease-io) infinite;
}
@keyframes scrollHint {
  0% { top: -40%; }
  100% { top: 120%; }
}

/* ---------- 通用 Section ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sec-pad) var(--gutter);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}
.section__no {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section__title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section__en {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.section__lede {
  color: var(--fg-2);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  max-width: 38em;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section__head + .section__lede { margin-top: 26px; }
.section__head:has(+ .work), .section__head:has(+ .skills), .section__head:has(+ .about) { margin-bottom: 60px; }
.section__head + .about, .section__head + .skills, .section__head + .contact { margin-top: clamp(40px, 6vh, 64px); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__lead p {
  color: var(--fg-2);
  font-size: clamp(15.5px, 1.55vw, 17.5px);
  line-height: 2.05;
}
.about__lead p + p { margin-top: 1.6em; }
.about__lead strong { position: relative; }
.about__lead strong::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.02em;
  width: 100%; height: 0.42em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}
.about__lead strong { z-index: 1; }

.about__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact__k {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.fact__v { font-size: 14.5px; color: var(--fg-2); line-height: 1.7; }

.about__motto {
  margin-top: clamp(56px, 8vh, 90px);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--fg);
}
.about__motto .mono { color: var(--accent); font-weight: 500; }

/* 创作观（创作板块内，作品列表之后） */
.beliefs { margin-bottom: clamp(44px, 6.5vh, 66px); }
.beliefs__label {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--fg-3);
  margin-bottom: clamp(26px, 4vh, 40px);
}
.beliefs__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3.8vw, 54px);
}
.belief {
  margin: 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 2px solid rgba(255, 92, 0, 0.55);
  display: flex;
  flex-direction: column;
}
.belief__quote {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  font-weight: 500;
  line-height: 2;
  color: var(--fg);
}
.belief__quote::before { content: "“"; color: var(--accent); }
.belief__quote::after { content: "”"; color: var(--accent); }
.belief__note {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--fg-3);
}
.belief__note strong { color: var(--fg-2); }
.belief__src {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  font-style: normal;
  opacity: 0.85;
}

/* 屏幕之外（爱好） */
.hobbies {
  margin-top: clamp(52px, 7.5vh, 84px);
  display: grid;
  gap: 14px;
}
.hobbies__label {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--fg-3);
}
.hobbies__list {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.9;
  color: var(--fg-2);
  word-break: keep-all; /* 只允许在 "·" 两侧换行，不把一个爱好词拆两半 */
}

/* ---------- Work / 项目 ---------- */
.work { display: grid; gap: clamp(80px, 12vh, 140px); }

.project { position: relative; }
.project__head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: clamp(24px, 3.4vh, 38px);
  flex-wrap: wrap;
}
.project__no {
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.project__name {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.project__cn {
  font-size: 0.46em;
  font-weight: 700;
  color: var(--fg-3);
  margin-left: 12px;
  letter-spacing: 0.02em;
}
.project__role {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--fg-3);
}

.project__body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start; /* 文字栏与截图栏顶端对齐（居中会让标题下方空出一大块） */
}
.project__body--flip { grid-template-columns: 1fr 1.25fr; }
/* 分离式：横图叠放在文字上方，竖图单独占右栏（NanoAnime） */
.project__body--split { grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 4.5vw, 64px); }
.project__body--flip .project__media { order: 2; }
.project__body--flip .project__info { order: 1; }

/* 截图区 */
.shots { position: relative; }
.shots--phone {
  display: flex;
  gap: clamp(10px, 1.6vw, 20px);
  align-items: flex-start;
}
.shots--phone .shot {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--card);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.55s;
}
.shots--phone .shot:nth-child(2) { transform: translateY(-22px); }
.shots--phone .shot:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 92, 0, 0.4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.shots--phone .shot:nth-child(2):hover { transform: translateY(-30px); }

.shots--desktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}
.shots--desktop .shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: 0 24px 55px -34px rgba(0, 0, 0, 0.9);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.55s;
}
.shots--desktop .shot:nth-child(2) { transform: translateY(34px); }
.shots--desktop .shot:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 92, 0, 0.4);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
  z-index: 2;
}
.shots--desktop .shot:nth-child(2):hover { transform: translateY(26px); }
.shots--desktop .shot--phone-side {
  grid-column: 1 / -1;
  max-width: 300px;
  justify-self: end;
  transform: translateY(0);
}
.shots--desktop .shot--phone-side:hover { transform: translateY(-6px); }

/* 搬进文字栏的横图对：沿用 .shots--desktop 的原尺寸并排，与下方文字留出呼吸 */
.project__info > .shots--pair { margin-bottom: clamp(52px, 6.5vh, 72px); }

/* 竖图独自占右栏：居中对齐（尺寸与原来一致） */
.shots--solo { display: grid; justify-items: center; }
.shots--solo .shot {
  width: min(100%, 300px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.92);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.55s;
}
.shots--solo .shot:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 92, 0, 0.4);
  box-shadow: 0 44px 84px -40px rgba(0, 0, 0, 0.85);
}

/* 项目信息 */
.project__desc {
  color: var(--fg-2);
  font-size: clamp(15px, 1.45vw, 16.5px);
  line-height: 1.85;
}
.project__facts {
  margin-top: 20px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.project__facts li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.75;
}
.project__facts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 7px; height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.project__facts .mono { color: var(--fg); font-size: 13.5px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}
.project:hover .tags span { border-color: var(--line-2); }
.tags span:hover { color: var(--accent); border-color: rgba(255, 92, 0, 0.4); }

/* 项目跳转按钮（GitHub / 在线访问） */
.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 10px 22px;
  color: var(--fg-2);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.proj-link__go {
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.proj-link:hover {
  color: var(--fg);
  border-color: var(--fg-2);
  transform: translateY(-2px);
}
.proj-link:hover .proj-link__go {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.proj-link--primary {
  color: var(--fg);
  border-color: rgba(255, 92, 0, 0.45);
  background: var(--accent-soft);
}
.proj-link--primary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 30px -14px rgba(255, 92, 0, 0.5);
}

/* ---------- Content / 内容创作 ---------- */
.content__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(48px, 7vh, 72px);
}
.cstat {
  background: var(--bg-2);
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 2.5vw, 34px);
  transition: background 0.35s;
}
.cstat:hover { background: var(--card); }
.cstat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cstat__num { color: var(--fg); }
.cstat:nth-child(1) .cstat__num { color: var(--accent); }
.cstat__label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.cstat__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

/* 分类卡片：瀑布流布局（卡片按列紧密堆叠，避免高度差造成的大空隙） */
.content__cols {
  columns: 2;
  column-gap: clamp(24px, 3.5vw, 44px);
  margin-bottom: clamp(40px, 6vh, 60px);
}
.column {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 42px);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  break-inside: avoid;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.column:last-child { margin-bottom: 0; }
.column:hover { border-color: var(--line-2); transform: translateY(-3px); }
/* 剪辑作品卡：带音符装饰 */
.column--mad {
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 130% at 92% 55%, rgba(255, 92, 0, 0.09), transparent 70%),
    var(--bg-2);
}
.column--mad::after {
  content: "♪";
  position: absolute;
  right: -8px;
  bottom: -26px;
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 92, 0, 0.09);
  pointer-events: none;
}
.column__name {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.column__desc {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--fg-3);
  margin-top: 6px;
}
.column__lede {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-2);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.column__list { margin-top: 6px; }
.column__list li {
  border-bottom: 1px dashed rgba(242, 240, 235, 0.05);
}
.column__list li:last-child { border-bottom: none; }
.column__list li > a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 26px 11px 0;
  font-size: 14.5px;
  color: var(--fg-2);
  transition: color 0.25s, padding-left 0.35s var(--ease-out);
}
.column__list li > a:hover { color: var(--fg); padding-left: 8px; }
.column__list .hot {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
/* 外链箭头：悬停时从右下浮现 */
.column__list li > a::after {
  content: "↗";
  position: absolute;
  right: 2px;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, -30%);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.column__list li > a:hover::after,
.column__list li > a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}



.content__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px clamp(20px, 2.6vw, 30px);
  transition: border-color 0.35s, background 0.35s, transform 0.4s var(--ease-out);
}
.link-card:hover {
  border-color: rgba(255, 92, 0, 0.4);
  background: var(--bg-2);
  transform: translateY(-3px);
}
.link-card__name { font-weight: 700; font-size: 15.5px; }
.link-card__id {
  font-size: 12px;
  color: var(--fg-3);
  margin-left: auto;
}
.link-card svg {
  width: 16px; height: 16px;
  color: var(--fg-3);
  transition: color 0.3s, transform 0.4s var(--ease-out);
  flex: none;
}
.link-card:hover svg { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- Skills ---------- */
.skills { display: grid; gap: clamp(40px, 6vh, 64px); }
.skill-group {
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.skill-group__head { display: flex; align-items: baseline; gap: 16px; }
.skill-group__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(255, 92, 0, 0.35);
  border-radius: 6px;
  width: 26px; height: 26px;
  display: inline-grid;
  place-items: center;
  flex: none;
  transform: translateY(-1px);
}
.skill-group__head h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.tag {
  font-size: 13.5px;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 17px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out);
}
.tag:hover {
  color: var(--fg);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.tag--key {
  color: var(--fg);
  border-color: rgba(255, 92, 0, 0.4);
  background: var(--accent-soft);
}
.tag--key:hover { border-color: var(--accent); }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: clamp(70px, 10vh, 110px); }
.contact__big {
  font-size: clamp(30px, 5.6vw, 74px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.32;
  margin-bottom: clamp(44px, 7vh, 72px);
}
.contact__big em {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.contact__big em::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.06em;
  width: 100%; height: 3px;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 2px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact__item {
  background: var(--bg-2);
  padding: clamp(24px, 3.2vw, 38px) clamp(22px, 2.8vw, 36px);
  display: grid;
  gap: 10px;
  transition: background 0.35s;
  position: relative;
  overflow: hidden;
}
.contact__item::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.contact__item:hover { background: var(--card); }
.contact__item:hover::before { transform: scaleX(1); }
.contact__k {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--fg-3);
}
.contact__v {
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 700;
  word-break: break-all;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.footer__mid { margin: 0 auto; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

/* ---------- 内容创作 · 同人企划卡片（游戏 Mod） ---------- */
.mod {
  margin-bottom: clamp(44px, 6.5vh, 66px);
  padding: clamp(22px, 3vw, 38px);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255, 92, 0, 0.06), transparent 55%),
    rgba(13, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
}
.mod__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: start;
}
.mod__media { justify-self: start; }
.mod__cover {
  width: min(100%, 260px);
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.55s;
}
.mod__cover:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 92, 0, 0.4);
  box-shadow: 0 40px 74px -34px rgba(0, 0, 0, 0.85);
}
.mod__tag { font-size: 10.5px; letter-spacing: 0.24em; color: var(--accent); }
.mod__name {
  margin-top: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.mod__sub { margin-top: 8px; font-size: 13.5px; color: var(--fg-3); }
.mod__desc {
  margin-top: 16px;
  font-size: clamp(14.5px, 1.4vw, 15.5px);
  line-height: 1.9;
  color: var(--fg-2);
}
.mod__facts {
  margin-top: 18px;
  display: grid;
  border-top: 1px solid var(--line);
}
.mod__facts li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-2);
}
.mod__facts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 6px; height: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.mod__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.mod__meta { font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); }

.mod__strip {
  margin-top: clamp(20px, 3vh, 30px);
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--line);
}
.mod__strip-cap { font-size: 10.5px; letter-spacing: 0.2em; color: var(--fg-3); margin-bottom: 14px; }
.mod__cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.mod__cards img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
}
.mod__cards img:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 0, 0.45);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9);
}

/* ---------- Guestbook / 留言墙 ---------- */
.section--guest { padding-bottom: clamp(70px, 10vh, 110px); }
.guest { display: grid; gap: clamp(28px, 4vh, 44px); margin-top: clamp(40px, 6vh, 64px); }

.guest__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.guest__lead {
  color: var(--fg-2);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 34em;
}
.guest__count { font-size: 12px; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }
.guest__count span { font-variant-numeric: tabular-nums; }

/* 留言表单：毛玻璃卡片 */
.guest-form {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: rgba(13, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
}
.guest-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.gfield { display: grid; gap: 8px; }
.gfield__k { font-size: 10.5px; letter-spacing: 0.2em; color: var(--fg-3); }
.gfield__input {
  width: 100%;
  background: rgba(242, 240, 235, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.gfield__input--area { resize: vertical; min-height: 96px; }
.gfield__input::placeholder { color: var(--fg-3); opacity: 1; }
.gfield__input:focus {
  outline: none;
  border-color: rgba(255, 92, 0, 0.55);
  background: rgba(242, 240, 235, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12);
}
.gfield__input.is-bad { border-color: rgba(255, 92, 0, 0.75); }

.guest-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 2vh, 20px);
}
.guest-form__hint { font-size: 11px; letter-spacing: 0.1em; color: var(--fg-3); }

.guest-submit {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 92, 0, 0.45);
  border-radius: 100px;
  padding: 11px 26px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.guest-submit__go { font-family: var(--font-mono); font-size: 12px; transition: transform 0.35s var(--ease-out), color 0.3s; }
.guest-submit:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -14px rgba(255, 92, 0, 0.5);
}
.guest-submit:hover .guest-submit__go { transform: translate(3px, -3px); }
.guest-submit:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.guest-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.guest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.guest-form__status { margin-top: 12px; font-size: 12px; letter-spacing: 0.04em; min-height: 1.2em; color: var(--fg-3); }
.guest-form__status.is-ok { color: var(--accent-2); }
.guest-form__status.is-err { color: var(--accent); }

/* 留言墙：瀑布流卡片 */
.guest-wall {
  columns: 3;
  column-gap: clamp(16px, 1.8vw, 22px);
}
.note {
  break-inside: avoid;
  margin-bottom: clamp(16px, 1.8vw, 22px);
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.note:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9);
}
.note__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note__avatar {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: hsl(var(--h, 24) 90% 62%);
  background: hsl(var(--h, 24) 90% 62% / 0.14);
  border: 1px solid hsl(var(--h, 24) 90% 62% / 0.35);
}
.note__name { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.note__time { margin-left: auto; font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-3); white-space: nowrap; }
.note__text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note--new { animation: noteIn 1.6s var(--ease-out); }
@keyframes noteIn {
  0% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.18); }
  100% { border-color: var(--line); box-shadow: none; }
}

.guest-empty {
  column-span: all;
  padding: 26px 0;
  text-align: center;
  color: var(--fg-3);
  font-size: 13.5px;
}
.guest-empty button {
  appearance: none;
  background: none;
  border: 0;
  margin-left: 10px;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 入场动画（滚动揭示） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hero 标题特殊入场：从遮罩中升起 */
.hero__word, .hero__latin { transform: translateY(115%); transition: transform 1.1s var(--ease-out); }
.hero__word { transition-delay: 0.15s; }
.hero__latin { transition-delay: 0.28s; }
.is-loaded .hero__word, .is-loaded .hero__latin { transform: none; }

.hero .reveal { transition-delay: calc(0.42s + var(--d, 0s)); }
.hero__roles.reveal { --d: 0.1s; }
.hero__lede.reveal { --d: 0.18s; }
.hero__cta.reveal { --d: 0.26s; }
.hero__eyebrow.reveal { --d: 0s; }

/* 数字滚动 */
.count { font-variant-numeric: tabular-nums; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .beliefs__list { grid-template-columns: 1fr; gap: 40px; }
  .project__body, .project__body--flip { grid-template-columns: 1fr; gap: 40px; }
  .project__body--flip .project__media { order: 0; }
  .project__body--flip .project__info { order: 0; }
  /* 分离式：手机单屏上「横图+文字」在前，竖图垫底 */
  .project__body--split .project__media { order: 2; }
  .project__body--split .project__info { order: 1; }
  .guest-form__grid { grid-template-columns: 1fr; }
  .guest-wall { columns: 2; }
  .mod__grid { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .nav__mail { display: none; } /* 邮箱在联系板块里也有，这里先让位给导航 */
  .stats-set { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(2) { border-left: 1px solid var(--line); }
  .content__stats { grid-template-columns: repeat(2, 1fr); }
  .skill-group { grid-template-columns: 1fr; gap: 22px; }
  .hero__scroll { display: none; }
  .hero__aside { display: none; }
}

/* 触屏设备：悬停效果不可用，外链箭头常驻显示 */
@media (hover: none) {
  .column__list li > a::after {
    opacity: 0.55;
    transform: translate(0, -50%);
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 15px; }
  .nav__links { display: none; }
  .nav__mail { font-size: 11px; }
  .nav__inner { height: 60px; }
  .hero { padding-top: 96px; }
  .hero__stats { padding-bottom: 36px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat__label { font-size: 11.5px; }
  .section__en { display: none; }
  .content__cols { columns: 1; }
  .content__links, .contact__grid { grid-template-columns: 1fr; }
  .shots--phone { gap: 10px; }
  .shots--phone .shot:nth-child(2) { transform: translateY(-12px); }
  .shots--desktop { grid-template-columns: 1fr; }
  .shots--desktop .shot:nth-child(2) { transform: none; }
  .shots--desktop .shot:nth-child(2):hover { transform: translateY(-6px); }
  .shots--desktop .shot--phone-side { max-width: 240px; }
  .shots--solo .shot { width: min(100%, 240px); }
  .guest-wall { columns: 1; }
  .guest-form__foot { flex-direction: column-reverse; align-items: stretch; }
  .guest-submit { justify-content: center; }
  .mod__grid { grid-template-columns: 1fr; gap: 22px; }
  .mod__media { justify-self: center; }
  .mod__cards { grid-template-columns: repeat(3, 1fr); }
  .mod__actions .proj-link { justify-content: center; }
  .footer__inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer__mid { order: -1; }
  .project__role { display: none; }
}

/* ---------- 无障碍 & 偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .hero__word, .hero__latin { opacity: 1; transform: none; }
}
