/* ==================================================================
   yeziyou — portfolio
   设计主题：清新薄荷 / 浅色柔和光斑 / 柔光玻璃 / 小圆角 / 极窄间隙
   ================================================================== */

/* ---------------------------------------------------------------- 1. 基础 */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

:root {
  color-scheme: light;
  scrollbar-color: #B7E3D4 #F2FAF7;

  /* 清新底色：薄荷奶白 */
  --bg: #F3FAF7;
  --bg-2: #FFFFFF;
  --bg-3: #E3F3ED;

  /* 柔光光斑（薄荷 / 天空 / 蜜桃） */
  --nebula-1: rgba(126, 226, 190, .55);
  --nebula-2: rgba(146, 206, 255, .46);
  --nebula-3: rgba(255, 196, 176, .44);

  --fg: #16342C;
  --fg-2: rgba(22, 52, 44, .72);
  --fg-3: rgba(22, 52, 44, .50);
  --fg-4: rgba(22, 52, 44, .32);

  --line: rgba(22, 92, 74, .14);
  --line-2: rgba(22, 92, 74, .28);

  /* 强调色：清新薄荷绿 + 天蓝 + 蜜桃（点缀） */
  --accent: #2FB08A;
  --accent-2: #12A277;
  --accent-ink: #0B6B52;
  --accent-dim: rgba(47, 176, 138, .45);
  --accent-soft: rgba(47, 176, 138, .14);
  --cyan: #4FBEE6;
  --peach: #FF9C86;

  /* 柔光玻璃 */
  --glass-bg: rgba(255, 255, 255, .60);
  --glass-line: rgba(22, 92, 74, .12);
  --glass-blur: blur(14px) saturate(160%);

  --r-pill: 9999px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --shadow-soft: 0 26px 60px -34px rgba(16, 96, 76, .50);

  --gap: 4px;
  --row: 4px;
  --meta-h: 96px;
  --cols: 4;

  --pad: clamp(18px, 3.2vw, 56px);
  --nav-h: 64px;
  --hero-base: clamp(30px, 6.5vh, 72px);

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .68, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 柔光层：固定视口，含底色的完整清新背景 */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(42% 38% at 12% 2%,   var(--nebula-1), transparent 66%),
    radial-gradient(40% 34% at 90% 10%,  var(--nebula-2), transparent 68%),
    radial-gradient(58% 50% at 50% 110%, var(--nebula-3), transparent 70%),
    radial-gradient(26% 22% at 80% 76%,  rgba(180, 240, 220, .50), transparent 72%);
  animation: nebulaDrift 36s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.6%, -2%, 0) scale(1.09); }
}

/* 清新粒子画布：固定最底层，全站可见 */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* 卡片 / 图片统一小圆角，柔和不生硬 */
.grid__card, .grid__media, .grid__media img,
.case__cover, .case__cover img, .case__fig, .case__fig img,
.about__portrait, .about__portrait img,
img, figure { border-radius: var(--r-md); }

.grid__media, .case__cover, .case__fig, .about__portrait { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #B7E3D4; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #8FD3BE; }

.u-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.u-accent { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- 2. 导航 */
/* 悬浮液态玻璃胶囊（参考 Space Voyage 的导航胶囊） */
.nav {
  position: fixed;
  top: 14px;
  left: var(--pad);
  right: var(--pad);
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease),
              opacity .5s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .80);
  border-color: var(--glass-line);
  box-shadow: 0 22px 52px -30px rgba(16, 96, 76, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* 首屏沉浸感：导航栏常驻可见；只在页顶隐藏 Scroll 提示，滚下去再出现 */
html.hero-immersive .hero__scroll { opacity: 0; }

.nav__brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__brand::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-dim);
  flex: none;
}

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__link::after { display: none; }
.nav__link:hover { color: var(--accent-ink); background: var(--accent-soft); }
.nav__link.is-active {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(47, 176, 138, .34);
}

/* ---------------------------------------------------------------- 3. 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

/* 中央舞台：参考 Space Voyage —— 大圆角卡片承载作品图，
   随鼠标轻微视差漂移，图片按节拍依次切换 */
.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.stage__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(32vh, 24vw, 320px);
  aspect-ratio: 0.94;
  transform: translate(-50%, -50%);
  border-radius: clamp(18px, 3.2vh, 32px);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 34px 70px -30px rgba(16, 96, 76, .38),
    0 0 0 1px rgba(22, 92, 74, .07),
    0 0 70px -14px rgba(47, 176, 138, .40);
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
}
.stage__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 30%, transparent 74%, rgba(255, 255, 255, .16));
}
.stage__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .5s var(--ease), transform 1.2s var(--ease-out);
}
.stage__img.is-live { opacity: 1; transform: scale(1); }

/* 顶部 Next 提示：下一件作品 */
.hero__next {
  position: absolute;
  top: calc(var(--nav-h) + 22px);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .9s var(--ease) .3s;
}
.is-ready .hero__next { opacity: 1; }
.hero__next-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-2);
}
.hero__next-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fg-3);
}
.hero__next-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-shadow: 0 2px 18px rgba(243, 250, 247, .9);
}

/* ===== 首屏「作品球」：封面等面积铺满整个球面，滚轮让整球绕垂直轴转动 ===== */
.cluster {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 0; height: 0;           /* 原点 = 屏幕中心，落点用负坐标散开 */
  will-change: transform;
  /* 立体感靠 JS 设在容器上的 perspective（= 球半径 × CAM）：
     照片平面朝镜头，靠三维位置的远近产生近大远小与前后遮挡 */
  opacity: 0;                    /* 入场淡入（照片慢慢浮现） */
  transition: opacity 1.1s var(--ease);
}
.cluster.is-ready { opacity: 1; }
.cluster__item {
  position: absolute;
  left: 0; top: 0;
  width: var(--w, 120px);        /* 宽度由 JS 落点数据给出（clamp 自适应） */
  aspect-ratio: var(--ar, 4/3);  /* 横竖比例混排（横图/竖图/方图），像参考图 */
  /* 兜底姿态（无 JS 时）：动画循环每帧会用落点 translate3d + 微倾覆写 */
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  will-change: transform;
  display: block;
  overflow: hidden;
  background: var(--bg-3);
  border-radius: 4px;            /* 参考图接近直角，只留极小的圆角 */
  /* 极轻投影：照片和浅色底之间只要一点分离感 */
  box-shadow: 0 8px 20px -12px rgba(16, 74, 58, .3);
  transition: box-shadow .4s var(--ease);
}
.cluster__item img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;             /* 占位图统一 4:3，裁切填满各自的横竖比例 */
  /* --mx = -1 时左右镜像（削弱同一张封面重复出现的机械感） */
  transform: scaleX(var(--mx, 1));
  transition: transform .5s var(--ease);
}
.cluster__item:hover {
  box-shadow:
    0 18px 36px -16px rgba(16, 74, 58, .45),
    0 4px 10px -6px rgba(16, 74, 58, .3);
}
.cluster__item:hover img { transform: scaleX(var(--mx, 1)) scale(1.05); }

/* 左侧作品名称列表：窗口式，可滚轮/拖动滚动条，上下边缘淡出 */
.stage__listwrap {
  position: absolute;
  left: var(--pad);
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  height: max(120px, min(clamp(180px, 38vh, 340px), calc(100vh - 500px)));
  display: flex;
  align-items: stretch;
  gap: 11px;
  opacity: 0;
  transition: opacity .9s var(--ease) .55s;
}
.stage__list {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}

/* 滚动条：细长胶囊，可拖动；滚轮 / 拖动都会带动窗口 */
.stage__scroll {
  position: relative;
  flex: none;
  width: 3px;
  pointer-events: none;
  touch-action: none;
}
.stage__scroll-thumb {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 30px;
  border-radius: 999px;
  background: rgba(21, 128, 99, .55);
  pointer-events: auto;
  cursor: grab;
  transition: transform .12s linear, background .3s var(--ease), opacity .3s var(--ease);
}
.stage__scroll-thumb:hover { background: var(--accent); }
.stage__scroll-thumb.is-drag { background: var(--accent); cursor: grabbing; }
.stage__scroll.is-hidden .stage__scroll-thumb { opacity: 0; pointer-events: none; }
.stage__list-track {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.is-ready .stage__listwrap { opacity: 1; }
.stage__list button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--fg-4);
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.stage__list button::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-dim);
  flex: none;
  opacity: 0;
  transform: scale(.3);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.stage__list button:hover { color: var(--fg-2); }
.stage__list button.is-active {
  color: var(--accent-ink);
  font-weight: 500;
  text-shadow: 0 0 20px rgba(47, 176, 138, .35);
}
.stage__list button.is-active::before { opacity: 1; transform: scale(1); }

/* 自定义星形光标（仅桌面端） */
.stage__cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  pointer-events: none;
  width: 0; height: 0;              /* 原点 = 鼠标实际位置 */
  opacity: 0;
  transition: opacity .3s var(--ease);
  will-change: transform;
}
.stage__cursor.is-on { opacity: 1; }

/* 一个星形，中心对准鼠标 */
.stage__cursor-star {
  position: absolute;
  left: -10px; top: -10px;
  width: 20px; height: 20px;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(47, 176, 138, .45));
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.stage__cursor-star i {
  display: block;
  width: 100%; height: 100%;
  background: var(--accent-ink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background .25s var(--ease);
}
/* 悬停作品卡片：星形放大并转为强调色 */
.stage__cursor.is-card .stage__cursor-star {
  transform: scale(1.4);
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px var(--accent-dim));
}
.stage__cursor.is-card .stage__cursor-star i { background: var(--accent); }

.stage__cursor-txt {
  position: absolute;
  left: 0; top: 15px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .95);
}
/* 桌面端首屏隐藏系统光标，交给自定义取景框光标 */
.hero.has-cursor, .hero.has-cursor * { cursor: none !important; }

.hero__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

/* 首屏顶部状态行：胶囊玻璃 */
.hero__status {
  position: absolute;
  top: calc(var(--nav-h) + 16px);
  left: var(--pad);
  right: var(--pad);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .8s var(--ease) .1s, transform .8s var(--ease) .1s;
}
.hero__status > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.hero__status .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 10px 2px rgba(255, 156, 134, .7);
  flex: none;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.is-ready .hero__status { opacity: 1; transform: none; }

/* 首屏只保留作品照片团；标题用 sr-only 供无障碍与 SEO */
/* 底部居中滚动提示（左侧竖排位置让给作品名称列表） */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--hero-base) * .32);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-4);
  opacity: 0;
  transition: opacity .9s var(--ease) .9s, color .3s;
}
.hero__scroll:hover { color: var(--accent); }
.is-ready .hero__scroll { opacity: 1; }
.hero__scroll .arw { animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(-4px); opacity: .4; }
  50%      { transform: translateY(4px);  opacity: 1; }
}

/* ---------------------------------------------------------------- 4. 作品区 */
.works {
  position: relative;
  padding-top: clamp(80px, 13vh, 170px);
  background: transparent;
}

.works__head {
  padding: 0 var(--pad) clamp(34px, 5.5vh, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}
.works__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(38px, 7.6vw, 114px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.012em;
  text-shadow: 0 0 50px rgba(126, 226, 190, .50);
}
.works__title em { font-style: normal; color: var(--accent); }
.works__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: right;
  line-height: 2.1;
  padding-bottom: .5em;
}

/* 分类筛选条 */
.works__filters {
  padding: 0 var(--pad) clamp(26px, 4.5vh, 54px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--fg-2);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), box-shadow .3s var(--ease);
}
.filter:hover { color: var(--accent-ink); border-color: var(--accent-dim); }
.filter.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 26px -16px var(--accent-dim);
}
.filter__n {
  font-size: 9px;
  letter-spacing: .04em;
  opacity: .72;
}
.filter.is-active .filter__n { opacity: .92; }

/* 瀑布流：flex 列容器，由 JS 把卡片按高度均衡分进各列，
   保证各列底部基本齐平，不会出现大片空洞 */
.grid-wrap { padding: 0 var(--pad); }

/* 首屏悬停照片时，页面底部显示作品名称（hero.js 使用） */
.scatter__caption {
  position: fixed;
  left: 50%;
  bottom: clamp(22px, 4vh, 44px);
  z-index: 90;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.2;
  color: var(--fg);
  text-shadow: 0 3px 22px rgba(243, 250, 247, .9);
  transition: opacity .35s var(--ease), transform .4s var(--ease-out);
}
.scatter__caption.is-on { opacity: 1; transform: translate(-50%, 0); }
.scatter__caption-idx {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .42em;
  letter-spacing: .1em;
  margin-right: .7em;
  vertical-align: .35em;
  color: var(--accent-ink);
}

.grid {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.grid__col {
  flex: 1 1 0;
  min-width: 0;
}

.grid__card {
  display: block;
  position: relative;
  margin-bottom: var(--gap);
  background: transparent;
  transition: box-shadow .5s var(--ease), transform .6s var(--ease-out);
}
.grid__card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.grid__card.is-hidden { display: none; }
.grid__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--bg-3);
}
.grid__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .9s var(--ease), filter .6s var(--ease);
  filter: brightness(1);
}
.grid__card:hover .grid__media img {
  transform: scale(1.05);
  filter: brightness(1.04) saturate(1.05);
}

.grid__meta {
  height: var(--meta-h);
  padding: 9px 3px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
}
.grid__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.grid__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(12.5px, .95vw, 14.5px);
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
.grid__card:hover .grid__title { color: var(--accent); }
.grid__year {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--fg-3);
}
/* 卡片下的简要说明：最多两行，超出省略 */
.grid__desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid__tags {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--fg-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid__idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--fg-4);
  transition: color .3s var(--ease);
}
.grid__card:hover .grid__idx { color: var(--accent); }

/* ---------------------------------------------------------------- 5. 页脚 */
.footer {
  margin-top: clamp(80px, 12vh, 170px);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 9vh, 110px) var(--pad) 34px;
}
.footer__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 22px;
}
.footer__mail {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 5.8vw, 80px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.12;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  word-break: break-all;
}
.footer__mail:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* 页脚电话：比邮箱小一号，同一行的第二联系入口 */
.footer__tel {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.35vw, 19px);
  letter-spacing: .04em;
  color: var(--fg-2);
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.footer__tel:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* 页脚右下角的复制按钮组 */
.footer__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.footer__row {
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 30px -4px var(--accent-dim);
}
.btn.is-done {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
/* 首屏主按钮：实心薄荷 */
.btn--primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 30px -16px var(--accent-dim);
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 18px 38px -16px var(--accent-dim);
}

/* ---------------------------------------------------------------- 6. 内页通用 */
.page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 110px)) var(--pad) 0;
}
.page__head { margin-bottom: clamp(44px, 7vh, 90px); }
.page__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.page__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 118px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.05em;
  overflow: hidden;
  padding-bottom: .1em;
}
.page__title .ch {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 120ms);
}
.is-ready .page__title .ch { transform: translateY(0); }
.page__lead {
  margin-top: 26px;
  max-width: 60ch;
  color: var(--fg-2);
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.9;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  color: var(--fg);
}
.prose p { color: var(--fg-2); line-height: 1.95; max-width: 68ch; }
.prose p + p { margin-top: 16px; }

.section-rule {
  height: 1px;
  background: var(--line);
  margin: clamp(52px, 8vh, 100px) 0;
}

/* ---------------------------------------------------------------- 7. 关于页 */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-3);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

.skills { display: grid; gap: 34px; }
.skills__group h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--fg-2);
  letter-spacing: .01em;
  background: rgba(255, 255, 255, .70);
  transition: border-color .3s, color .3s, background .3s;
}
.chip:hover {
  border-color: rgba(47, 176, 138, .45);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

/* 个人优势卡片 */
.strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.strength {
  padding: clamp(24px, 3vh, 34px) clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease);
}
.strength:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.strength__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--accent);
}
.strength__t {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--fg);
}
.strength__d {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-2);
}
.strength__ev {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--accent-ink);
}

.timeline { border-top: 1px solid var(--line); }
.timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 60px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fg-3);
  padding-top: 3px;
}
.timeline__role { font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; }
.timeline__org {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 7px;
}
.timeline__desc {
  margin-top: 12px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.85;
  max-width: 62ch;
}

/* ---------------------------------------------------------------- 8. 联系页 */
.contact__mail {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 6.4vw, 94px);
  font-weight: 400;
  letter-spacing: -.014em;
  line-height: 1.14;
  color: var(--fg);
  word-break: break-all;
  text-shadow: 0 0 50px rgba(126, 226, 190, .50);
  transition: color .35s var(--ease);
}
.contact__mail:hover { color: var(--accent-ink); }
/* 联系页电话：在巨大邮箱下面一行，字号明显小一档 */
.contact__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 44px);
  line-height: 1.2;
  color: var(--fg-2);
  transition: color .35s var(--ease);
}
.contact__tel:hover { color: var(--accent-ink); }
.contact__tel-label {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__facts {
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.contact__fact {
  padding: 26px 24px 30px 0;
  border-bottom: 1px solid var(--line);
}
.contact__fact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.contact__fact dd { font-size: 15px; color: var(--fg); }
.contact__fact dd a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
  word-break: break-all;
}
.contact__fact dd a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- 9. 作品详情 */
.case { padding-top: calc(var(--nav-h) + clamp(30px, 5vh, 60px)); }
.case__top {
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.back {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color .3s;
}
.back:hover { color: var(--accent); }
.case__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--accent);
}

.case__head { padding: 0 var(--pad); }
.case__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.4vw, 92px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.048em;
}
.case__subtitle {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.case__summary {
  margin-top: 24px;
  max-width: 62ch;
  color: var(--fg-2);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.9;
}

.case__meta {
  margin: clamp(36px, 6vh, 64px) var(--pad) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.case__meta > div {
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}
.case__meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.case__meta dd { font-size: 14.5px; color: var(--fg); line-height: 1.7; }

.case__cover {
  margin-top: clamp(40px, 7vh, 90px);
  padding: 0 var(--gap);
}
.case__cover img { width: 100%; height: auto; background: var(--bg-3); }

.case__body { padding: 0 var(--pad); }
.case__oversight { max-width: 74ch; }

.case__blocks {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vh, 88px);
}
.case__block {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 60px);
  padding: clamp(26px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.case__block h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.case__block p { color: var(--fg-2); line-height: 1.95; max-width: 66ch; }

.case__gallery {
  margin-top: clamp(48px, 7vh, 88px);
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.case__fig img { width: 100%; height: auto; background: var(--bg-3); }
.case__fig figcaption {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--fg-3);
}

.case__pager {
  margin-top: clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pager__link {
  padding: 30px 24px 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.pager__link:hover { background: var(--accent-soft); }
.pager__dir {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pager__name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -.025em;
  transition: color .3s var(--ease);
}
.pager__link:hover .pager__name { color: var(--accent); }
.pager__link--next { text-align: right; padding-right: 0; padding-left: 24px; }

/* ---------------------------------------------------------------- 10. 滚动动效 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .95s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 11. 响应式 */
@media (max-width: 1359px) { :root { --cols: 3; } }

@media (max-width: 1023px) {
  :root { --cols: 2; --meta-h: 90px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 340px; }
  .timeline__item, .case__block { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 900px) {
  /* 移动端：卡片上移让出底部文字区，名称列表隐藏（瀑布流里可见） */
  .stage__card {
    top: 42%;
    width: min(44vw, 32vh);
  }
  .stage__listwrap { display: none; }

  /* 移动端作品球：竖屏上 vmin = 屏宽，球径按宽度走，放大一点更饱满，并居中 */
  .cluster {
    scale: 1.15;
    top: 50%;
  }

  .scatter__caption { display: none; }
  .hero__next { gap: 8px; }
  .hero__next-label { font-size: 12.5px; }
  .hero__next-idx { font-size: 10.5px; }
  .hero__next-name { font-size: 13px; }
  .works__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .works__meta { text-align: left; padding-bottom: 0; }
  .nav__link { font-size: 10px; letter-spacing: .12em; padding: 8px 11px; }
}

@media (max-width: 620px) {
  :root { --meta-h: 86px; --pad: 16px; --nav-h: 56px; }
  .nav { padding: 0 6px 0 14px; }
  .nav__link { font-size: 9.5px; letter-spacing: .1em; padding: 7px 8px; }
  .nav__brand { font-size: 13.5px; }
  .hero__status { font-size: 9px; letter-spacing: .1em; }
  .hero__status > span { padding: 6px 10px; gap: 6px; }
  .hero__status > span:last-child { display: none; }
  /* Next 提示下移一行，避免和状态胶囊挤在一起 */
  .hero__next {
    top: calc(var(--nav-h) + 62px);
    left: var(--pad);
    transform: none;
  }
  .hero__next-label { display: none; }
  .grid__tags { display: none; }
  .footer__mail { font-size: clamp(22px, 8.4vw, 36px); }
  .case__gallery { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .works__filters { gap: 6px; }
  .filter { padding: 7px 12px; font-size: 10px; }
}

/* ---------------------------------------------------------------- 12. 无障碍 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .page__title .ch { transform: none; }
  .hero__status, .hero__scroll, .reveal { opacity: 1; transform: none; }
  .stage__cursor { display: none; }
}
