/* ============================================================
 * EKOOOOO — 深色创意开发者风格
 * 黑底 / 细发丝线 / 电光蓝点缀 / 等宽小标注
 * ============================================================ */

@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ============================================================
 * 主题
 * 深色是这个站的本色; 浅色是给白天/亮环境的第二套皮。
 * 主色是琥珀金 —— 暖调, 和照片里的暖光、雪地蓝调都合得来。
 * 颜色一律走变量, 组件里不写死。
 * ============================================================ */
:root, :root[data-theme="dark"] {
  --bg: #0a0908;                /* 微暖的黑, 配暖色比纯冷黑协调 */
  --panel: #100e0c;
  --ink: #f0ece2;               /* 暖白 */
  --ink-dim: rgba(240, 236, 226, 0.55);
  --ink-faint: rgba(240, 236, 226, 0.32);
  --hairline: rgba(240, 236, 226, 0.14);
  --line-soft: rgba(240, 236, 226, 0.07);
  --veil: rgba(10, 9, 8, 0.85);
  --veil-strong: rgba(10, 9, 8, 0.97);
  --veil-fade: rgba(10, 9, 8, 0);
  --backdrop: rgba(6, 5, 4, 0.82);
  --shadow: rgba(0, 0, 0, 0.55);
  --accent: #e8a13c;            /* 琥珀金 */
  --accent-soft: rgba(232, 161, 60, 0.12);
  --accent-line: rgba(232, 161, 60, 0.45);
  --accent-glow: rgba(232, 161, 60, 0.1);
  --on-accent: #17130c;         /* 金底上用深字, 比白字清楚 */
  --stroke-ink: rgba(240, 236, 226, 0.22);   /* 大字描边 */
  --img-line: rgba(240, 236, 226, 0.16);
  --grain-opacity: 0.045;
  --cat-body: #f0ece2;
  --hero-base: 208, 202, 190;   /* 像素流场基色: 暖灰, 冷灰配暖黑底会发生硬 */
  --display: "Syne", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ring-blend: multiply;      /* screen 在浅底上等于看不见 */
  --wordmark-blend: normal;    /* difference 在暖底上会脏, 直接用墨色更干净 */
  --bg: #faf8f3;                /* 奶油白, 不用纯白 —— 和暖金是一家人 */
  --panel: #ffffff;
  --ink: #1a1714;
  --ink-dim: rgba(26, 23, 20, 0.66);
  --ink-faint: rgba(26, 23, 20, 0.46);
  --hairline: rgba(26, 23, 20, 0.16);
  --line-soft: rgba(26, 23, 20, 0.08);
  --veil: rgba(250, 248, 243, 0.88);
  --veil-strong: rgba(250, 248, 243, 0.97);
  --veil-fade: rgba(250, 248, 243, 0);
  --backdrop: rgba(28, 24, 18, 0.42);
  --shadow: rgba(60, 45, 20, 0.16);
  --accent: #b8761a;            /* 白底上金色要压深, 否则字读不清 */
  --accent-soft: rgba(184, 118, 26, 0.1);
  --accent-line: rgba(184, 118, 26, 0.45);
  --accent-glow: rgba(184, 118, 26, 0.12);
  --on-accent: #fffdf8;
  --stroke-ink: rgba(26, 23, 20, 0.28);
  --img-line: rgba(26, 23, 20, 0.14);
  --grain-opacity: 0.022;
  --cat-body: #3a322a;          /* 浅底上白猫会消失, 换成深色 */
  --hero-base: 120, 116, 108;   /* 流场基色同理要压深 */
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 噪点颗粒 ----------
 * 视口大小的固定层 + 平移背景图做抖动 (steps(4) 每秒只重绘 ~4 次)。
 * 不用 200%×200%+transform, 避免在高 dpr 手机上生成 4 倍视口的合成层。 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { background-position: 0 0; }
  25% { background-position: -13px 9px; }
  50% { background-position: 11px -7px; }
  75% { background-position: -7px -13px; }
  100% { background-position: 0 0; }
}

/* ---------- 光标跟随环 ---------- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  z-index: 210;
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s, height 0.25s, margin 0.25s, opacity 0.4s;
  mix-blend-mode: var(--ring-blend, screen);
}
.cursor-ring.is-active { opacity: 0.9; }
.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
}
@media (hover: none) { .cursor-ring { display: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, var(--veil), var(--veil-fade));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav__brand sup { color: var(--accent); font-size: 9px; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 0.25s;
  white-space: nowrap; /* 窄屏下不许 "画廊" 拆成上下两个字 */
}
.nav__links a:hover { color: var(--ink); }
.nav__no {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  margin-right: 6px;
  vertical-align: super;
}
.nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
}
.nav__theme {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  color: var(--ink-dim);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  cursor: pointer;
  margin-right: 4px;
  transition: border-color 0.25s, color 0.25s;
}
.nav__theme:hover { border-color: var(--accent); color: var(--ink); }

.nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
@media (max-width: 640px) { .nav__status { display: none; } }
@media (max-width: 480px) { .nav__no { display: none; } } /* 省出宽度, 保住导航单行不溢出 */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__frame {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(calc(100% - 2 * var(--pad)), 1280px);
  height: min(64vh, 620px);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.hero__corner {
  position: absolute;
  color: var(--ink-dim);
  line-height: 1.9;
}
.hero__corner-strong { color: var(--ink); font-weight: 500; }
.hero__corner--tl { top: 18px; left: 20px; }
.hero__corner--tr { top: 18px; right: 20px; text-align: right; }
.hero__corner--bl { bottom: 18px; left: 20px; }
.hero__corner--br { bottom: 18px; right: 20px; text-align: right; }

.hero__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.hero__wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 11vw, 168px);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
  mix-blend-mode: var(--wordmark-blend, difference);
  animation: wordmark-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}
.hero__sub {
  color: var(--ink-faint);
  animation: wordmark-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards;
}
/* 手机上 clamp 下限 44px 会让 7 个字母超出 375px 视口被两侧裁切 */
@media (max-width: 480px) {
  .hero__wordmark { font-size: clamp(30px, 10vw, 44px); }
}
@keyframes wordmark-in {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  transition: color 0.25s;
}
.hero__scroll:hover { color: var(--ink); }
.hero__scroll-arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- 画廊 ---------- */
.gallery {
  position: relative;
  min-height: 100vh;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  /* 竖划让给页面滚动, 横划保留给甩图 —— 不设的话真机上滚动手势会取消触摸事件, 摸不出图 */
  touch-action: pan-y;
  /* 轻微氛围光 */
  background:
    radial-gradient(600px 400px at 80% 15%, var(--accent-glow), transparent 70%),
    radial-gradient(500px 400px at 15% 85%, var(--line-soft), transparent 70%);
  cursor: crosshair;
}
.gallery__labels { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.gallery__label { position: absolute; color: var(--ink-faint); }
.gallery__label em { font-style: normal; color: var(--ink-dim); margin-left: 8px; }
.gallery__label--tl { top: 84px; left: var(--pad); }
.gallery__label--tr { top: 84px; right: var(--pad); }
.gallery__label--bl { bottom: 28px; left: var(--pad); }
.gallery__label--br { bottom: 28px; right: var(--pad); }

/* 交互提示 —— 一行小字融进角标体系 (底部居中), 甩图时自动隐去 */
.gallery__label--bc {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  white-space: nowrap;
  transition: opacity 0.6s;
}
.gallery__label--bc.is-dim { opacity: 0; }
/* 窄屏底部一行放不下三个标注: 坐标和装饰标让位给提示 */
@media (max-width: 640px) {
  .gallery__label--bl, .gallery__label--br { display: none; }
}

.gallery__stage { position: absolute; inset: 0; z-index: 3; }
.trail-img {
  position: absolute;
  width: clamp(150px, 17vw, 250px);
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  pointer-events: auto; /* 可点击打开照片详情; 悬停时照片会暂停消失 */
  cursor: pointer;
  will-change: transform, opacity;
  box-shadow: 0 24px 60px var(--shadow);
}
.trail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--img-line);
}

/* ---------- 影像志（画廊延伸区） ---------- */
.gsets {
  padding: clamp(64px, 9vh, 110px) var(--pad);
  border-bottom: 1px solid var(--hairline);
}
.gsets__head { margin-bottom: clamp(24px, 4vh, 40px); }
.gsets__kicker { color: var(--accent); margin-bottom: 14px; }
.gsets__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.05;
}
.gsets__title-en {
  display: inline-block;
  margin-left: 14px;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
}
.gsets__desc { color: var(--ink-faint); margin-top: 10px; }
.gsets__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.gset-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  text-align: left;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.gset-card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.gset-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.gset-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gset-card:hover .gset-card__cover img { transform: scale(1.05); }
.gset-card__period {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--veil);
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 4px 10px;
  color: var(--ink);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gset-card__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  padding: 14px 16px 4px;
}
.gset-card__count { color: var(--ink-faint); padding: 0 16px; }

/* 档案卡: 纯排版 (大数字 + 描边), 和照片卡拉开层次 */
.gset-card--archive {
  padding: 18px 16px;
  justify-content: space-between;
  background: var(--line-soft);
}
.gset-card--archive .gset-card__period { position: static; align-self: flex-start; }
.gset-card__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-ink);
  margin: 14px 0 8px;
}
.gset-card--archive .gset-card__count { padding: 0; }
.gset-card--archive:hover .gset-card__num { -webkit-text-stroke-color: var(--accent); }

/* ---------- 影像志 / 档案 全屏查看层 ---------- */
/* 三种弹层各挂各的 body class 锁滚动 —— 叠开再关任何一层都不会误解锁 */
body.modal-lock, body.pmodal-lock, body.gv-lock { overflow: hidden; }
.gv { position: fixed; inset: 0; z-index: 310; }
.gv[hidden] { display: none; }
.gv__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gv__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: var(--veil);
}
.gv__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(64px, 10vh, 96px) var(--pad) 96px;
  outline: none;
}
/* 内容统一收进一根阅读栏 */
.gv__panel > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.gv__kicker { color: var(--accent); margin-bottom: 14px; }
.gv__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.gv__essay {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.1;
  margin-bottom: clamp(32px, 5vh, 48px);
}
.gv__body--set { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 56px); }
.gv__fig { margin: 0; }
.gv__photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--img-line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.25s;
}
.gv__photo img { width: 100%; height: auto; display: block; }
.gv__photo:hover { border-color: var(--accent-line); }
.gv__cap {
  display: flex;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  margin-top: 10px;
}
.gv__month {
  color: var(--ink-dim);
  font-weight: 500;
  margin: clamp(28px, 4vh, 40px) 0 14px;
}
.gv__month:first-child { margin-top: 0; }
.gv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.gv__grid .gv__photo { aspect-ratio: 3 / 4; overflow: hidden; }
.gv__grid .gv__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 工具箱 ---------- */
.tools { padding: clamp(80px, 12vh, 140px) var(--pad); }
.tools__head { margin-bottom: clamp(32px, 5vh, 56px); }
.tools__kicker { color: var(--accent); margin-bottom: 16px; }
.tools__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
}
.tools__title-en {
  display: inline-block;
  margin-left: 18px;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
}
.tools__desc { color: var(--ink-faint); margin-top: 14px; }

.tools__list { border-top: 1px solid var(--hairline); }
.tool-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto auto 40px;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(20px, 3.2vh, 34px) 8px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  overflow: hidden;
}
/* tool row 同时带 .tool-row 和 [data-reveal] 两个同优先级选择器;
 * 用更高优先级把「浮现」和「hover 边框色」合进一条 transition,
 * 否则文件后面的 [data-reveal] 会覆盖掉边框色过渡, 导致 hover 边框瞬变。 */
.tools__list .tool-row {
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}
.tool-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent-soft));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.tool-row:hover::before { transform: scaleY(1); }
.tool-row:hover { border-bottom-color: var(--accent-line); }
.tool-row > * { position: relative; }

.tool-row__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.tool-row__main { min-width: 0; }
.tool-row__name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-row:hover .tool-row__name { transform: translateX(10px); }
.tool-row__desc {
  display: block;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-row__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 5px 12px;
  white-space: nowrap;
}
.tool-row__status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.tool-row__status--live { color: var(--accent); }
.tool-row__status--live::before { content: "● "; }
.tool-row__status--soon { color: var(--ink-faint); }
.tool-row__arrow {
  font-size: 20px;
  color: var(--ink-faint);
  transition: transform 0.35s, color 0.35s;
  text-align: right;
}
.tool-row:hover .tool-row__arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}
.tool-row--soon { cursor: default; }
.tool-row--soon:hover::before { transform: scaleY(0); }
.tool-row--soon:hover .tool-row__name { transform: none; }
.tool-row--soon:hover .tool-row__arrow { transform: none; color: var(--ink-faint); }
.tool-row--soon .tool-row__name,
.tool-row--soon .tool-row__desc { opacity: 0.45; }

@media (max-width: 720px) {
  .tool-row { grid-template-columns: 36px 1fr 40px; }
  .tool-row__tag { display: none; }
  .tool-row__status { display: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 10vh, 120px) var(--pad) 0;
  overflow: hidden;
  background: radial-gradient(800px 500px at 50% 120%, var(--accent-glow), transparent 70%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 8vh, 96px);
}
.footer__grid--now { grid-template-columns: 2fr 1fr 1fr 1fr; }
/* 媒体块在后, 同优先级后者胜 —— 单写 .footer__grid 就能盖掉四列变体 */
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__now-line { color: var(--ink-dim); padding: 4px 0; font-size: 14px; }
.footer__kicker { color: var(--accent); margin-bottom: 18px; }
/* 节气标注: 小字, 主色, 像一枚印 */
.footer__term {
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

/* 三行长句的诗性文案: 字号不能太大, 靠字距和行距撑出呼吸感 ——
   这类文字挤在一起就没味道了 */
.footer__bio-text {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 2.5;
  color: var(--ink-dim);
  letter-spacing: 0.16em;      /* 字距是这种排版的灵魂 */
  font-weight: 400;
  max-width: 26em;
}
/* 首字微微提亮, 像一段的起手 */
.footer__bio-text::first-line { color: var(--ink); }
.footer__col-title { color: var(--ink-faint); margin-bottom: 14px; }
.footer__link {
  display: block;
  padding: 4px 0;
  color: var(--ink-dim);
  transition: color 0.25s, transform 0.25s;
}
.footer__link:hover { color: var(--ink); transform: translateX(6px); }

.footer__wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 12.5vw, 260px);
  line-height: 0.72;
  text-align: center;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-ink);
  user-select: none;
  transform: translateY(12%);
}
.footer__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* 窄屏加上备案号后允许换行 */
  gap: 8px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
}
.footer__icp { color: var(--ink-faint); transition: color 0.25s; }
.footer__icp:hover { color: var(--ink); }

/* ---------- 弹窗（工具嵌入） ---------- */
.modal { position: fixed; inset: 0; z-index: 300; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(94vw, 1400px);
  height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--line-soft);
}
.modal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: none;
}
.modal__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.modal__url {
  flex: 1;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}
.modal__btn {
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-dim);
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.modal__btn:hover { border-color: var(--accent); color: var(--ink); }
.modal__body { position: relative; flex: 1; background: #fff; }
.modal__body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--accent);
  letter-spacing: 0.3em;
  z-index: 2;
  transition: opacity 0.4s;
}
.modal__loading.is-done { opacity: 0; pointer-events: none; }
.modal__loading-dots { animation: pulse 1s infinite; }
.modal__foot {
  padding: 8px 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  text-align: center;
}
@media (max-width: 640px) {
  .modal__url { display: none; }
  .modal__panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- 照片详情弹窗 ---------- */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pmodal[hidden] { display: none; }
.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pmodal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: min(92vw, 520px);
  max-height: 92vh; /* 旧浏览器回退 */
  max-height: 92dvh;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 120px var(--shadow);
  animation: pmodal-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 图区固定高: 未加载不塌陷, 竖横图切换按钮不跳位; 横图上下留黑边与底色融合 */
.pmodal__img {
  display: block;
  flex: none;
  width: 100%;
  height: 58vh;
  height: 58dvh;
  object-fit: contain;
  background: var(--bg);
}
.pmodal__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--hairline);
  min-height: 0;
  overflow-y: auto; /* 矮视口(手机横屏)长说明时可滚, 关闭按钮永远够得着 */
}
.pmodal__row,
.pmodal__row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pmodal__row { color: var(--ink-dim); }
.pmodal__row2 { color: var(--ink-faint); flex-wrap: wrap; } /* 窄屏 date 换行而不是被挤成竖条 */
.pmodal__mood {
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 5px 12px;
  color: var(--ink);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pmodal__mood:empty { display: none; }
.pmodal__title { font-family: var(--display); font-weight: 700; font-size: 18px; overflow-wrap: break-word; }
.pmodal__title:empty { display: none; }
.pmodal__note { color: var(--ink-dim); font-size: 14px; line-height: 1.8; overflow-wrap: break-word; }
.pmodal__note:empty { display: none; }
.pmodal__nav { display: flex; gap: 8px; flex: none; }
.pmodal__btn {
  border: 1px solid var(--hairline);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-dim);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.pmodal__btn:hover { border-color: var(--accent); color: var(--ink); }
@keyframes pmodal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .pmodal { padding: 12px; }
  .pmodal__img { height: 50vh; height: 50dvh; }
  .pmodal__meta { padding: 14px 16px 16px; }
}

/* ---------- 像素猫 (彩蛋) ---------- */
.cat {
  position: fixed;
  bottom: 6px;
  left: 0;
  z-index: 230; /* 盖过内容和颗粒层, 让位给弹窗(300+) */
  cursor: pointer;
  will-change: transform;
}
.cat__px { position: absolute; top: 0; left: 0; background: transparent; }

/* ---------- 站内终端 (彩蛋) ---------- */
.term {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 340;
  height: min(54vh, 460px);
  display: flex;
  flex-direction: column;
  background: var(--veil-strong);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 30px 80px var(--shadow);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  animation: term-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.term[hidden] { display: none; }
@keyframes term-in {
  from { transform: translateY(-18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.term__tag {
  position: absolute;
  top: 10px;
  right: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
.term__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 8px;
  color: var(--ink-dim);
}
.term__body .t-line { white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.t-cmd { color: var(--ink); }
.t-accent { color: var(--accent); }
.t-dim { color: var(--ink-faint); }
.t-pre { white-space: pre; overflow-x: auto; line-height: 1.35; }
.term__line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--hairline);
}
.term__prompt { color: var(--accent); white-space: nowrap; }
.term__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  caret-color: var(--accent);
}

/* ---------- 滚动浮现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 降低动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain,
  .hero__scroll-arrow,
  .nav__dot { animation: none; }
  .hero__wordmark,
  .hero__sub,
  .modal__panel,
  .pmodal__panel,
  .term,
  .modal__loading-dots { animation: none; }
  /* 只压位移/缩放, 保留边框色渐变 (与 tool-row 同一标准) */
  .gset-card:hover, .gset-card:hover .gset-card__cover img { transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
