/* ============================================================
   戴婧媛作品集 · THE FLIP SIDE
   感性/理性双色人格引擎 · 粒子硬币 · 实验排版
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-2: #101016;
  --ink: #f2efe9;
  --ink-70: rgba(242, 239, 233, 0.72);
  --ink-45: rgba(242, 239, 233, 0.45);
  --ink-25: rgba(242, 239, 233, 0.25);
  --line: rgba(242, 239, 233, 0.14);
  --en-display: "Clash Display", "Noto Sans SC", sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --gut: clamp(20px, 4.5vw, 64px);
}

body[data-mode="sense"] {
  --accent: #ff5c39;
  --accent-soft: rgba(255, 92, 57, 0.12);
  --accent-dim: rgba(255, 92, 57, 0.5);
}
body[data-mode="reason"] {
  --accent: #4dc3ff;
  --accent-soft: rgba(77, 195, 255, 0.12);
  --accent-dim: rgba(77, 195, 255, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--zh);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.6s;
}

::selection { background: var(--accent); color: #0b0b0e; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- 颗粒噪点 ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 70; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}
/* 理性模式：蓝图网格 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 195, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 195, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0; transition: opacity 0.6s;
}
body[data-mode="reason"]::before { opacity: 1; }

main { position: relative; z-index: 1; }

/* ---------- 自定义光标 ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  display: none;
}
#cursor-dot { width: 6px; height: 6px; background: var(--accent); }
#cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--accent-dim);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}
#cursor-ring.hovering { width: 56px; height: 56px; background: var(--accent-soft); }
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor canvas, body.has-cursor .vpanel { cursor: none; }
  body.has-cursor #cursor-dot, body.has-cursor #cursor-ring { display: block; }
}

/* ---------- 顶部 HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hud .brand {
  font-family: var(--en-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.14em; text-decoration: none; color: #fff;
}
.hud nav { display: flex; gap: clamp(12px, 2vw, 26px); }
.hud nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-decoration: none; color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s; text-transform: uppercase;
}
.hud nav a::before { content: "§ "; opacity: 0; transition: opacity 0.25s; }
.hud nav a:hover, .hud nav a.active { color: #fff; }
.hud nav a:hover::before, .hud nav a.active::before { opacity: 1; }
@media (max-width: 900px) { .hud nav { display: none; } }

/* ---------- 汉堡菜单（仅窄屏） ---------- */
.hud-burger {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hud-burger span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
body.menu-open .hud-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hud-burger span:nth-child(2) { opacity: 0; }
body.menu-open .hud-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) { .hud-burger { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3.4vh, 30px);
  transform: translateY(-102%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }
/* 菜单展开时让顶栏透明置顶，汉堡（×）保持可点 */
body.menu-open .hud { z-index: 220; background: transparent; backdrop-filter: none; border-color: transparent; }
.mobile-menu .mm-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.mobile-menu a {
  font-family: var(--en-display); font-weight: 600;
  font-size: clamp(26px, 6.5vw, 38px); letter-spacing: 0.06em;
  text-decoration: none; color: var(--ink-70); text-transform: uppercase;
  transition: color 0.25s, letter-spacing 0.35s;
}
.mobile-menu a:hover { color: var(--accent); letter-spacing: 0.12em; }

/* ---------- 人格开关 ---------- */
.flip-switch {
  position: fixed; bottom: 26px; right: var(--gut); z-index: 95;
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(11, 11, 14, 0.7); backdrop-filter: blur(10px);
  overflow: hidden;
}
.flip-switch button {
  border: 0; background: transparent; color: var(--ink-45);
  font-family: var(--zh); font-size: 13px; letter-spacing: 0.2em;
  padding: 10px 18px; transition: all 0.35s;
}
.flip-switch button.on { background: var(--accent); color: #0b0b0e; font-weight: 700; }
.flip-switch .tick { font-family: var(--mono); font-size: 10px; opacity: 0.6; }
@media (max-width: 700px) {
  .flip-switch { bottom: 14px; right: 12px; transform: scale(0.85); transform-origin: bottom right; }
  .flip-switch button { padding: 8px 14px; font-size: 12px; }
}

/* 阅读进度 */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 99; transition: background 0.6s;
}

/* ---------- 首屏：粒子沙漏 ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.hero-inner {
  position: relative; z-index: 2; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gut) clamp(48px, 8vh, 90px);
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
/* 文字块收缩到内容宽度，把右侧硬币区域还给 canvas 点击 */
.hero-kicker, .hero-title, .hero-hint { width: fit-content; }
.hero-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.hero-title {
  font-family: var(--en-display); font-weight: 600;
  font-size: clamp(52px, 11vw, 150px); line-height: 0.98;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.hero-title .row2 { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-hint {
  margin-top: 34px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.2em; color: var(--ink-45);
}
button.hero-hint { display: block; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button.hero-hint:hover b { text-decoration: underline; text-underline-offset: 4px; }
.hero-hint b { color: var(--accent); font-weight: 500; }
.hero-corner {
  position: absolute; z-index: 2; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; color: var(--ink-25); pointer-events: none;
}
.hero-corner.status { color: var(--ink-45); }
.hero-corner .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 9px;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-corner.tr { top: 74px; right: var(--gut); text-align: right; }
.hero-corner.bl { bottom: 20px; left: var(--gut); }
@media (max-width: 700px) { .hero-corner.tr { display: none; } }

/* ---------- 走马灯 ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: var(--bg-2);
}
.marquee-track { display: flex; width: max-content; animation: mq 30s linear infinite; }
.marquee span {
  font-family: var(--en-display); font-weight: 500;
  font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.14em;
  padding: 0 1.8em; white-space: nowrap; color: var(--ink-45); text-transform: uppercase;
}
.marquee span i { font-style: normal; color: var(--accent); padding-left: 1.8em; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 章节骨架 ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gut) 0; }
.sec-head { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); margin-bottom: clamp(40px, 6vh, 70px); flex-wrap: wrap; }
.sec-no {
  font-family: var(--en-display); font-weight: 600;
  font-size: clamp(72px, 10vw, 140px); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-25);
  user-select: none;
}
.sec-titles .zh {
  font-weight: 900; font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: 0.06em; line-height: 1.15;
}
.sec-titles .zh .accent { color: var(--accent); }
.sec-titles .en {
  margin-top: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase;
}
.sec-lead { max-width: 680px; color: var(--ink-70); font-size: 15px; margin-top: 20px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; } .reveal.d3 { transition-delay: 0.36s; }

/* 乱码解码标题 */
.scr { display: inline-block; }

/* 理性模式批注层 */
.spec { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }
body[data-mode="reason"] .spec { display: inline-block; }
/* 页脚署名与 EOF 属版权信息区，两种人格模式保持一致 */
.colophon-foot .spec { display: inline-block; }

/* ---------- 关于 ---------- */
.about-statement {
  font-weight: 900; font-size: clamp(26px, 4vw, 44px); line-height: 1.5;
  letter-spacing: 0.04em; max-width: 900px;
}
.about-statement em { font-style: normal; color: var(--accent); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 6vh, 64px); align-items: start; }
.about-body p { margin-bottom: 1.2em; font-size: 15.5px; color: var(--ink-70); }
.about-body strong { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 22px; } }

.belief {
  margin-top: clamp(48px, 8vh, 80px); max-width: 860px;
  border-left: 3px solid var(--accent); padding-left: clamp(20px, 3vw, 40px);
}
.belief p.main {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 30px); line-height: 1.9; letter-spacing: 0.04em;
}
.belief p.after { margin-top: 20px; font-size: 14.5px; color: var(--ink-45); }

/* ---------- 经历 ---------- */
.ledger-intro { max-width: 780px; font-size: 15.5px; color: var(--ink-70); }
.ledger-intro p { margin-bottom: 1.15em; }
.ledger-intro strong { color: var(--ink); }
.job-card { margin-top: clamp(40px, 6vh, 60px); border-top: 2px solid var(--ink); padding-top: 28px; }
.job-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.job-name { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; letter-spacing: 0.03em; }
.job-sub { font-size: 13.5px; color: var(--ink-45); letter-spacing: 0.08em; }
.job-date { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.1em; }
@media (max-width: 700px) {
  .job-sub { font-size: 12px; letter-spacing: 0.04em; }
  .job-date { font-size: 11px; }
  .job-row { gap: 8px 12px; }
}

.facet-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 46px); }
.facet h4 {
  font-size: 14px; letter-spacing: 0.16em; font-weight: 900;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.facet h4::before { content: "▸ "; color: var(--accent); }
.facet h4 .en { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--ink-25); margin-top: 5px; letter-spacing: 0.2em; text-transform: uppercase; }
.facet li { list-style: none; font-size: 13.5px; line-height: 1.9; margin-bottom: 14px; color: var(--ink-70); }
.facet li strong { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .facet-grid { grid-template-columns: 1fr; } }

.edu-skill { margin-top: clamp(44px, 7vh, 68px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.edu-skill h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); font-weight: 500; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.edu-skill p { font-size: 14px; margin-bottom: 12px; color: var(--ink-70); }
.edu-skill strong { color: var(--ink); }
@media (max-width: 860px) { .edu-skill { grid-template-columns: 1fr; } }

/* ---------- 项目：横向卷轴 ---------- */
.voyage-hint {
  display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  color: var(--ink-25); text-transform: uppercase;
}
.voyage-hint .line { flex: 1; height: 1px; background: var(--line); }
.voyage {
  display: flex; gap: clamp(26px, 3.5vw, 50px);
  align-items: flex-start; /* 卡片各自高度，短卡不被拉伸留白 */
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 30px var(--gut) 40px; cursor: grab;
  scrollbar-width: none;
}
.voyage::-webkit-scrollbar { display: none; }
.voyage.dragging { cursor: grabbing; scroll-snap-type: none; }

.vpanel {
  scroll-snap-align: center; flex: none;
  width: clamp(300px, 72vw, 500px);
  border: 1px solid var(--line); background: var(--bg-2);
  padding: clamp(20px, 2.4vw, 32px);
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.vpanel:nth-child(odd) { transform: rotate(-1.2deg); }
.vpanel:nth-child(even) { transform: rotate(1.2deg); }
.vpanel:hover { transform: rotate(0); border-color: var(--accent-dim); }
.vpanel .vimg { position: relative; overflow: hidden; margin-bottom: 20px; }
.vpanel .vimg img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.vpanel .vimg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: color; opacity: 0.35;
  transition: opacity 0.6s;
}
.vpanel:hover .vimg img { filter: grayscale(0); transform: scale(1.04); }
.vpanel:hover .vimg::after { opacity: 0; }
.vpanel .vimg.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vpanel .vimg.duo img { aspect-ratio: 1; }
.vpanel .vimg.duo::after { display: none; }
.vpanel .vimg.duo .cell { position: relative; overflow: hidden; }
.vpanel .vimg.duo .cell::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: color; opacity: 0.35; transition: opacity 0.6s;
}
.vpanel:hover .vimg.duo .cell::after { opacity: 0; }

.vpanel .vidx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; }
.vpanel h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; letter-spacing: 0.04em; margin: 8px 0 4px; }
.vpanel .txt { font-size: 13.5px; line-height: 1.9; color: var(--ink-70); max-height: clamp(430px, 56vh, 640px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.vpanel .txt::-webkit-scrollbar { width: 3px; }
.vpanel .txt::-webkit-scrollbar-thumb { background: var(--line); }
.vpanel .txt p { margin-bottom: 1em; }
.vpanel .txt strong { color: var(--ink); font-weight: 700; }
.vpanel .txt .label {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; color: #0b0b0e; background: var(--accent);
  padding: 2px 8px; margin-right: 0.8em; transform: translateY(-1px);
}
.vpanel .sys-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.vpanel .sys-block h5 { font-size: 14.5px; font-weight: 900; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 8px; }
.vpanel .sys-block h5::before { content: "— "; color: var(--accent); }
.vpanel .sys-block li { list-style: none; font-size: 13px; line-height: 1.85; margin-bottom: 10px; color: var(--ink-70); }
.vpanel .sys-block li strong { color: var(--ink); font-weight: 700; }

.voyage-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; }
.voyage-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-70);
  font-size: 17px; transition: all 0.3s;
}
.voyage-nav button:hover { border-color: var(--accent); color: var(--accent); }
.voyage-nav .counter { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--ink-45); min-width: 72px; text-align: center; }

.tools-note {
  margin-top: clamp(44px, 6vh, 64px);
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  font-size: 13px; color: var(--ink-45); font-family: var(--mono); letter-spacing: 0.04em;
}
.tools-note b { color: var(--accent); font-weight: 500; }
@media (max-width: 800px) { .tools-note { grid-template-columns: 1fr; } }

/* ---------- 抽引 ---------- */
.pull { max-width: 820px; margin: clamp(60px, 10vh, 110px) auto; padding: 0 var(--gut); }
.pull p {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(21px, 3vw, 34px); line-height: 1.95; letter-spacing: 0.04em;
}
.pull p::before { content: "「"; color: var(--accent); }
.pull p::after { content: "」"; color: var(--accent); }
.pull cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-45); }
.pull.center { text-align: center; }

/* ---------- 长文 ---------- */
.essay { max-width: 740px; margin: 0 auto; }
.essay .note-front {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-45); line-height: 2;
  padding: 20px 24px; border: 1px dashed var(--line); margin-bottom: 44px; letter-spacing: 0.06em;
}
.essay section { margin-top: clamp(56px, 9vh, 90px); }
.essay .sec-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--accent); -webkit-text-stroke: 0; line-height: 1.6; }
.essay h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: 0.05em; margin: 8px 0 4px; }
.essay .sec-en { font-family: var(--en-display); font-weight: 500; font-size: 14px; color: var(--ink-25); letter-spacing: 0.08em; text-transform: uppercase; }
.essay p { margin: 1.3em 0; font-size: 15.5px; line-height: 2; color: var(--ink-70); text-align: justify; }
.essay p strong { color: var(--ink); font-weight: 700; }
.essay section > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 900; font-size: 3.2em;
  float: left; line-height: 0.9; margin: 0.06em 0.14em 0 0; color: var(--accent);
}
.essay figure { margin: 40px 0; position: relative; overflow: hidden; }
.essay figure img {
  width: 100%; filter: grayscale(1) contrast(1.08) brightness(0.9);
  transition: filter 0.6s;
}
.essay figure::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: color; opacity: 0.3; transition: opacity 0.6s;
}
.essay figure:hover img { filter: grayscale(0); }
.essay figure:hover::after { opacity: 0; }
.essay blockquote {
  margin: 2em 0; padding-left: 22px; border-left: 2px solid var(--accent);
  color: var(--ink-45); font-size: 14.5px; line-height: 2;
}
.essay blockquote strong { color: var(--ink-70); }
.essay .field { margin: 1.4em 0; padding: 18px 22px; border: 1px dashed var(--line); background: var(--bg-2); }
.essay .field p { margin: 0.8em 0; font-size: 14px; color: var(--ink-45); text-align: left; }
.essay .field strong { color: var(--ink); }
.dual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 34px 0; }
.dual-list > div { border: 1px solid var(--line); padding: 22px; background: var(--bg-2); }
.dual-list h4 { font-size: 16px; font-weight: 900; margin-bottom: 10px; }
.dual-list h4::before { content: "▸ "; color: var(--accent); }
.dual-list .now { font-size: 13px; color: var(--ink-45); margin-bottom: 12px; line-height: 1.9; }
.dual-list p { font-size: 13.5px; margin: 0; text-align: left; color: var(--ink-70); }
@media (max-width: 760px) { .dual-list { grid-template-columns: 1fr; } }

.refs { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-45); line-height: 2.1; }
.refs i { font-family: var(--en-display); font-weight: 500; }

/* ---------- 听读用玩 ---------- */
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 70px); }
@media (max-width: 860px) { .likes-grid { grid-template-columns: 1fr; } }
.like-group { margin-bottom: clamp(38px, 5vh, 56px); }
.like-group > h3 {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: 0.08em;
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px;
}
.like-group > h3 .en { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; }
.like-group h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-25); font-weight: 500; margin: 22px 0 10px; text-transform: uppercase; }
.tool {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px;
  padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.85;
  transition: background 0.3s, transform 0.3s;
}
.tool:hover { background: var(--accent-soft); transform: translateX(6px); }
.tool .name { font-weight: 700; letter-spacing: 0.02em; }
.tool .desc { color: var(--ink-45); }
.tool.dead .name { color: var(--ink-25); text-decoration: line-through; font-weight: 400; }
.tool.dead .desc { color: var(--ink-25); }
@media (max-width: 560px) { .tool { grid-template-columns: 86px 1fr; } }

/* 旅行照片 */
.travel-head { display: flex; align-items: baseline; justify-content: space-between; margin: clamp(56px, 8vh, 84px) 0 22px; }
.travel-head h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: 0.08em; }
.travel-head span { font-family: var(--mono); font-size: 11px; color: var(--ink-25); letter-spacing: 0.14em; }
.travel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.travel-grid figure { position: relative; overflow: hidden; }
.travel-grid img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  transition: filter 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.travel-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: color; opacity: 0.35; transition: opacity 0.6s;
}
.travel-grid figure:hover img { filter: grayscale(0); transform: scale(1.05); }
.travel-grid figure:hover::after { opacity: 0; }
.travel-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 2;
  padding: 30px 12px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  background: linear-gradient(transparent, rgba(11, 11, 14, 0.85)); color: var(--ink);
  opacity: 0; transition: opacity 0.4s;
}
.travel-grid figure:hover figcaption { opacity: 1; }
@media (max-width: 760px) { .travel-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 尾声 ---------- */
.colophon {
  margin-top: clamp(80px, 12vh, 150px);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vh, 140px) var(--gut) 60px;
  text-align: center; position: relative; overflow: hidden;
}
.colophon .big {
  font-family: var(--en-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 160px); line-height: 0.95; letter-spacing: 0.01em;
}
.colophon .big .row2 { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: all 0.4s; }
.colophon .big .row2:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.heinlein {
  max-width: 700px; margin: clamp(50px, 8vh, 80px) auto 0;
  font-family: var(--en-display); font-weight: 500; font-style: italic;
  font-size: clamp(13.5px, 1.7vw, 16px); line-height: 2; color: var(--ink-45);
}
.heinlein cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--ink-25); }
.contact-hi { margin-top: clamp(50px, 8vh, 80px); font-size: clamp(20px, 2.8vw, 30px); font-weight: 900; letter-spacing: 0.06em; }
.contact-links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.contact-links a, .colophon-links a {
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  color: var(--ink-45); letter-spacing: 0.08em; padding-bottom: 3px;
  border-bottom: 1px solid var(--line); transition: color 0.25s, border-color 0.25s;
}
.contact-links a:hover, .colophon-links a:hover { color: var(--accent); border-color: var(--accent); }
.colophon-links { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.colophon-foot {
  margin-top: clamp(60px, 9vh, 90px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-25); text-transform: uppercase;
}
@media (max-width: 700px) {
  .colophon-foot { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}

/* ---------- Craft 原文对齐增补 ---------- */
/* 关于页照片：原图即横版拍立得，放大直接贴在自我介绍右侧（无外加框） */
.statement-wrap { position: relative; }
.about-photo {
  position: absolute; right: 0; top: 50%;
  width: clamp(230px, 24vw, 330px);
  transform: translateY(-50%) rotate(-3.5deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 900px) {
  .about-photo { position: static; transform: rotate(-3.5deg); margin: 24px 0 6px 6px; }
}
.about-photo img { width: 100%; display: block; }
.about-photo:hover { transform: translateY(-50%) rotate(0deg) scale(1.05); }
@media (max-width: 900px) {
  .about-photo:hover { transform: rotate(0deg) scale(1.05); }
}

/* 文本面板视觉：蓝图格 + 巨号描边数字 */
.vpanel .vtxt {
  position: relative; overflow: hidden; margin-bottom: 20px; height: 190px;
  border: 1px dashed var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
  display: flex; align-items: flex-end; padding: 10px 16px;
}
.vpanel .vtxt .num {
  font-family: var(--en-display); font-weight: 700; font-size: 128px; line-height: 0.78;
  color: transparent; -webkit-text-stroke: 1px var(--ink-25);
  transition: all 0.5s; user-select: none;
}
.vpanel:hover .vtxt .num { -webkit-text-stroke-color: var(--accent); color: var(--accent-soft); }

/* 三图 / 七图拼版 */
.vpanel .vimg.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vpanel .vimg.trio img { aspect-ratio: 3 / 4; }
.vpanel .vimg.grid7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vpanel .vimg.grid7 img { aspect-ratio: 1; }
.vpanel .vimg.grid7 img:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }

/* 项目内功能列表 */
.vpanel .txt ul.vlist { margin: 0 0 1em; }
.vpanel .txt ul.vlist li { list-style: none; font-size: 13px; line-height: 1.85; margin-bottom: 10px; color: var(--ink-70); padding-left: 14px; position: relative; }
.vpanel .txt ul.vlist li::before { content: "·"; position: absolute; left: 0; color: var(--accent); }
.vpanel .txt ul.vlist li strong { color: var(--ink); font-weight: 700; }

.tools-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
/* 章节收尾分隔符：细线夹一句 */
.sec-end {
  display: flex; align-items: center; gap: 22px;
  margin: clamp(54px, 8vh, 84px) auto 0; max-width: 720px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em;
  color: var(--accent); white-space: nowrap;
}
.sec-end::before, .sec-end::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 听·图条 */
.lstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.lstrip figure { position: relative; overflow: hidden; }
.lstrip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.9); transition: filter 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.lstrip figure::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: 0.35; transition: opacity 0.6s; }
.lstrip figure:hover img { filter: grayscale(0); transform: scale(1.05); }
.lstrip figure:hover::after { opacity: 0; }

/* 旅行横滑图条 */
.tgroup { margin-bottom: 34px; }
.tgroup-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--ink-45); margin-bottom: 12px; }
.tgroup-name span { color: var(--accent); }
.tstrip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.tstrip::-webkit-scrollbar { display: none; }
.tstrip img { flex: none; height: clamp(220px, 30vw, 330px); width: auto; filter: grayscale(1) contrast(1.06) brightness(0.92); transition: filter 0.5s; }
.tstrip img:hover { filter: grayscale(0); }
@media (max-width: 640px) { .tstrip img { height: 200px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
