/* ---------- 本地字体（自托管，国内可直连） ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/instrument-serif-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/instrument-serif-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../assets/fonts/inter-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/brush.woff2) format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/noto-serif-sc-normal.woff2) format('woff2');
}

/* ==========================================================================
   猪皮的摄影日记 — 三本画册 · 翻页阅读 · 全屏作品页
   ========================================================================== */

/* ---------- 主题 ---------- */
:root {
  color-scheme: light;

  --paper: #f6f4ef;
  --paper-2: #ecebe4;
  --paper-glass: rgba(246, 244, 239, 0.86);

  --ink: #14130f;
  --ink-2: #6a655a;
  --ink-3: #a29c90;

  --line: rgba(20, 19, 15, 0.13);
  --line-strong: rgba(20, 19, 15, 0.24);
  --gold: #a8854a;

  --page: #f7f3e7;
  --page-2: #efece2;
  --paper-noise: url("../assets/paper.jpg");

  --head-h: 64px;

  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --display: 'Instrument Serif', 'Noto Serif SC', serif;
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;

  --pad: clamp(20px, 4.6vw, 60px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0d0d0b;
  --paper-2: #171715;
  --paper-glass: rgba(13, 13, 11, 0.82);

  --ink: #f0ede5;
  --ink-2: #a09a8e;
  --ink-3: #6f6a60;

  --line: rgba(240, 237, 229, 0.14);
  --line-strong: rgba(240, 237, 229, 0.28);
  --gold: #c9a558;

  --page: #e9e5da;
  --page-2: #dedace;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: #0d0d0b; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink-3); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

section { scroll-margin-top: calc(var(--head-h) + 12px); }



/* ---------- 自定义光标 ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 3000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
  transition: opacity 0.3s ease, width 0.32s var(--ease), height 0.32s var(--ease);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
}
.cursor-ring.is-press {
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
}
.cursor-label {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translateY(0.5px);
}
.cursor-ring.has-label .cursor-label { opacity: 1; }

body.cursor-on,
body.cursor-on * { cursor: none !important; }
/* 全屏时自定义光标层不在全屏元素内，恢复系统光标 */
body.is-fs,
body.is-fs * { cursor: auto !important; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  transition: background 0.45s var(--ease), color 0.35s var(--ease), box-shadow 0.45s var(--ease);
}
.topbar.is-scrolled {
  background: var(--paper-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.head {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}

.me { display: flex; align-items: center; gap: 11px; padding: 4px 6px 4px 0; border-radius: 999px; }
.me-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.me:hover .me-avatar { transform: scale(1.08); }
.topbar.is-scrolled .me-avatar { border-color: var(--line-strong); }
.me-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  opacity: 0.95;
}
.me-tag {
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: 0.5;
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  line-height: 1;
}
.topbar.is-scrolled .me-tag { border-color: var(--line-strong); }

.head-right { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.head-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.head-nav a,
.head-nav button {
  display: flex;
  align-items: baseline;
  gap: 7px;
  position: relative;
  padding: 4px 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: inherit;
  opacity: 0.9;
}
.head-nav i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #d9ba80;
  transform: translateY(-3px);
}
.topbar.is-scrolled .head-nav i { color: var(--gold); }
.head-nav a::after,
.head-nav button::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.head-nav a:hover::after,
.head-nav button:hover::after { transform: scaleX(1); transform-origin: left; }

.theme-btn {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.theme-btn:hover { opacity: 1; transform: rotate(18deg); }
.theme-btn svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: #f5f2e9;
  background: #060a12;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  transform: scale(1.02);
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn {
  from { transform: scale(1.08); opacity: 0.4; }
  to   { transform: scale(1.02); opacity: 1; }
}

/* 暗角：压住左下标题区与右下索引区，同时保住富士山与街灯 */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(115% 82% at 0% 102%, rgba(3, 6, 14, 0.88) 0%, rgba(3, 6, 14, 0.58) 30%, rgba(3, 6, 14, 0) 62%),
    radial-gradient(78% 62% at 102% 100%, rgba(3, 6, 14, 0.72) 0%, rgba(3, 6, 14, 0.30) 42%, rgba(3, 6, 14, 0) 68%),
    linear-gradient(to top, rgba(3, 6, 14, 0.95) 0%, rgba(3, 6, 14, 0.76) 11%, rgba(3, 6, 14, 0.42) 25%, rgba(3, 6, 14, 0.10) 39%, rgba(3, 6, 14, 0) 54%),
    linear-gradient(to bottom, rgba(3, 6, 14, 0.46) 0%, rgba(3, 6, 14, 0) 22%),
    linear-gradient(to right, rgba(3, 6, 14, 0.35) 0%, rgba(3, 6, 14, 0) 42%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: absolute;
  left: var(--pad);
  bottom: clamp(96px, 12.5vh, 126px);
  z-index: 2;
  max-width: min(760px, 62vw);
  animation: heroUp 1.2s var(--ease) 0.25s both;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.55vw, 84px);
  line-height: 1.14;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.34);
}
.hero-sub {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.16em;
  color: rgba(245, 242, 233, 0.66);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.hero-cta i {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 242, 233, 0.42);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s;
}
.hero-cta:hover i { background: #f5f2e9; color: #0b0f18; border-color: #f5f2e9; }

/* 底部画册索引 */
.hero-cats {
  position: absolute;
  right: var(--pad);
  bottom: clamp(96px, 12.5vh, 126px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 1.8vw, 26px);
  padding-top: 11px;
  border-top: 1px solid rgba(245, 242, 233, 0.2);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75);
  animation: heroUp 1.2s var(--ease) 0.55s both;
}
.hero-cats-label {
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: rgba(245, 242, 233, 0.55);
  margin-right: clamp(4px, 0.8vw, 12px);
}
.hero-cats a { display: flex; align-items: baseline; gap: 8px; transition: color 0.35s; }
.hero-cats a i {
  font-style: normal;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #d9ba80;
}
.hero-cats a:hover { color: #d9ba80; }

/* 底栏 */
.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad) clamp(18px, 2.6vh, 26px);
  border-top: 1px solid rgba(245, 242, 233, 0.12);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(245, 242, 233, 0.52);
  animation: heroUp 1.2s var(--ease) 0.7s both;
}
.hero-coord { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-coord i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #d9ba80; opacity: 0.9; }
.hero-social { display: flex; gap: 18px; letter-spacing: 0.16em; }
.hero-social a { transition: color 0.3s; }
.hero-social a:hover { color: #f5f2e9; }
.hero-social sup { font-size: 7px; opacity: 0.6; margin-left: 2px; }
.hero-scroll { display: flex; align-items: center; gap: 10px; letter-spacing: 0.26em; white-space: nowrap; }
.hero-scroll span {
  display: block;
  width: 46px; height: 1px;
  background: linear-gradient(to right, rgba(245, 242, 233, 0.1), rgba(245, 242, 233, 0.8));
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, #fff, transparent);
  transform: translateX(-100%);
  animation: scrollSlide 2.6s var(--ease) infinite;
}
@keyframes scrollSlide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}


/* ---------- 首页视频 ---------- */
/* 视频数据（磨砂玻璃卡） */
/* 右侧「视频」按钮（液态玻璃胶囊） */
.video-btn {
  position: absolute;
  right: 0;
  top: 44%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 13px;
  border-radius: 999px 0 0 999px;
  background: rgba(16, 18, 22, 0.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-right: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px rgba(0, 0, 0, 0.28);
  color: #fff;
  transition: transform 0.5s var(--ease), background 0.4s;
}
.video-btn:hover { transform: translateX(-6px); background: rgba(24, 26, 32, 0.42); }
.vb-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.vb-ico svg { width: 13px; height: 13px; fill: #fff; margin-left: 1px; }
.vb-label { font-size: 11.5px; letter-spacing: 0.2em; }

@media (max-width: 900px) {
  .video-btn { top: auto; bottom: 120px; padding: 11px 16px 11px 11px; }
}

/* ---------- 视频弹层 ---------- */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 8, 7, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.vmodal.is-open { opacity: 1; visibility: visible; }
.vmodal-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.08));
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.vmodal.is-open .vmodal-glass { opacity: 1; }
.vmodal-stage {
  position: relative;
  width: min(1180px, 100%);
  max-height: 100%;
  transform: scale(0.965);
  filter: blur(10px);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.vmodal.is-open .vmodal-stage { transform: none; filter: blur(0); }
.vmodal video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  display: block;
}

.video-stats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.2s;
}
.vmodal.is-open .video-stats { opacity: 1; }

/* 视频正上方的液态玻璃数据面板 */
.vs-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 16px);
  padding: 13px 22px 15px;
  border-radius: 16px;
  background:
    radial-gradient(130% 200% at 4% -20%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.045) 52%, rgba(255, 255, 255, 0.11));
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.vs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.vs-head .vs-title {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-head .vs-src {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}
.vs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px clamp(10px, 1.6vw, 24px);
  list-style: none;
}
.vs-bar li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.vs-bar b {
  font-family: var(--serif);
  font-size: clamp(11.5px, 1.05vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.vs-bar i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.vmodal.is-open .vs-panel { animation: vsIn 0.7s var(--ease) 0.25s both; }
@keyframes vsIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vmodal-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 32px);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 18px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 18, 0.3);
  transition: color 0.3s, border-color 0.3s;
}
.vmodal-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

@media (max-width: 900px) {
  .vmodal .video-stats { position: static; margin-top: 14px; }
  .vmodal-stage { width: 100%; }
}

/* ---------- 三本书 ---------- */
.works { padding: clamp(40px, 6vw, 78px) var(--pad) clamp(50px, 7vw, 90px); }

.shelf {
  text-align: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.shelf.is-revealing { opacity: 0; transform: translateY(10px); }
.shelf-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--ink-3);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.shelf-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 46px);
}

.booklet {
  position: relative;
  width: clamp(148px, 16vw, 196px);
  aspect-ratio: 0.71;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: #eadcbd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10%;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 226, 180, 0.16),
    inset 0 0 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  transform: perspective(1000px) translateY(0);
  text-align: center;
}
.booklet:hover {
  transform: perspective(1000px) translateY(-12px) rotateY(-7deg);
  box-shadow:
    0 38px 66px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 226, 180, 0.22),
    inset 0 0 70px rgba(0, 0, 0, 0.28);
}
.booklet-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}
.booklet-kicker {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(234, 220, 189, 0.62);
}
.booklet-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.2em;
  color: #f3e6c8;
  line-height: 1;
}
.booklet-en {
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(234, 220, 189, 0.66);
}
.booklet-count {
  position: absolute;
  bottom: 9%;
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(234, 220, 189, 0.55);
}


/* ---------- 开书封面 ---------- */
.intro-cover {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.86s cubic-bezier(0.38, 0, 0.16, 1), opacity 0.3s ease;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.intro-cover.is-in { opacity: 1; }
.intro-cover.is-open { transform: rotateY(-172deg); }

.ic-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 4px 8px 8px 4px;
}
.ic-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10%;
  background: linear-gradient(140deg, var(--c1, #4a6350), var(--c2, #2a3b31));
  color: #eadcbd;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 226, 180, 0.16),
    inset 0 0 70px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.ic-front .booklet-kicker { font-size: 8px; letter-spacing: 0.3em; color: rgba(234, 220, 189, .62); }
.ic-front .booklet-title {
  font-family: var(--serif); font-weight: 900; line-height: 1;
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 0.2em; color: #f3e6c8;
}
.ic-front .booklet-en {
  font-family: var(--display); font-style: italic; font-size: 11px;
  letter-spacing: 0.18em; color: rgba(234, 220, 189, .66);
}
.ic-front .booklet-count {
  position: absolute; bottom: 9%;
  font-family: var(--display); font-style: italic; font-size: 11px;
  letter-spacing: 0.12em; color: rgba(234, 220, 189, .55);
}
.ic-front .booklet-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(to right, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
}
.ic-back {
  transform: rotateY(180deg);
  background: var(--page);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.07);
}

/* ---------- 阅读器 ---------- */
.reader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
}
.works.is-reading .shelf { display: none; }
.works.is-reading .reader { display: flex; }

.book {
  position: relative;
  width: min(1080px, 94vw);
  aspect-ratio: 1.55;
  -webkit-perspective: 2400px;
  perspective: 2400px;
}
.reader.is-intro .book { animation: bookIntro 0.55s var(--ease) both; }
.reader.is-outro .book { animation: bookOutro 0.5s var(--ease) both; }
@keyframes bookIntro {
  from { opacity: 0; transform: perspective(2200px) rotateY(-16deg) scale(0.93); }
  to   { opacity: 1; transform: none; }
}
@keyframes bookOutro {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: perspective(2200px) rotateY(14deg) scale(0.94); }
}

.spread {
  position: absolute;
  inset: 0;
  -webkit-perspective: 2400px;
  perspective: 2400px;
  background: var(--page);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.page {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--page);
  cursor: zoom-in;
}
.page--left { left: 0; border-radius: 5px 0 0 5px; }
.page--right { right: 0; border-radius: 0 5px 5px 0; }
/* 右页书脊阴影（原先由翻页纸提供，纸收起后固定到页面上） */
.page--right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}
.page--left { transition: opacity 0.45s var(--ease); }
.page img,
.leaf-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--pad-y, 3.4%) var(--pad-x, 4.2%);
}

.spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 7%;
  transform: translateX(-50%);
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.10) 36%,
    rgba(0, 0, 0, 0.22) 50%,
    rgba(0, 0, 0, 0.10) 64%,
    rgba(0, 0, 0, 0) 100%);
  z-index: 6;
  pointer-events: none;
}


/* 文字页（序） */
.page-text {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 6% 7.8%;
  overflow-y: auto;
  background-color: var(--page);
  background-image: var(--paper-noise);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #2a2721;
  font-family: var(--serif);
  font-size: clamp(10.5px, 0.88vw, 12.6px);
  line-height: 1.82;
  letter-spacing: 0.02em;
  text-align: justify;
  -webkit-overflow-scrolling: touch;
}
.page-text::-webkit-scrollbar { width: 4px; }
.page-text::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); }
.pt-inner { display: flex; flex-direction: column; gap: 0.62em; }
.pt-inner p { margin: 0; }
.pt-kicker {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1em;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.pt-lead { margin-top: 0.4em; color: #4a463d; }
.pt-quote {
  font-weight: 600;
  color: #16150f;
  border-left: 2px solid var(--gold);
  padding-left: 0.75em;
}
.pt-sign {
  text-align: right;
  font-family: var(--display);
  font-style: italic;
  font-size: 1em;
  color: #6a655a;
  margin-top: 0.3em;
}

/* 翻动纸页 */
.leaf {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 100%;
  transform-origin: left center;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0.95s cubic-bezier(0.38, 0, 0.16, 1);
  transition: transform 0.95s cubic-bezier(0.38, 0, 0.16, 1);
  z-index: 10;
}
.leaf.is-turn { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); }
.leaf.from-left { left: 0; transform-origin: right center; }
.leaf.from-left.is-turn { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.leaf.no-anim { transition: none !important; }

.leaf-face {
  position: absolute;
  inset: 0;
  background: var(--page);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.leaf-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}
.leaf-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  background: var(--page);
}

/* 悬停翻页 UI */
.nav-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 20%;
  z-index: 14;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  cursor: pointer;
}
.spread:hover .nav-zone { opacity: 1; }
.nav-zone--prev { left: 0; }
.nav-zone--next { right: 0; }

.nav-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 10, 0.46);
  color: #fff;
  font-size: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: scale(0.86);
  transition: transform 0.38s var(--ease), background 0.3s;
}
.nav-zone:hover .nav-arrow { transform: scale(1.06); background: rgba(12, 12, 10, 0.66); }

/* 页角翻起 */
.nav-zone::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0;
  border-color: transparent;
  transition: border-width 0.42s var(--ease);
  filter: drop-shadow(-3px -3px 6px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.nav-zone--prev::after {
  left: 0;
  border-color: transparent transparent var(--page) transparent;
}
.nav-zone--next::after {
  right: 0;
  border-color: transparent transparent var(--page) transparent;
}
.nav-zone:hover::after { border-width: 0 0 64px 64px; }

/* 阅读器控制条 */
.reader-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: wrap;
  justify-content: center;
}

.close-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.close-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.book-nav {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.book-nav:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.book-nav:disabled { opacity: 0.28; cursor: default; }

.book-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  min-width: 140px;
  justify-content: center;
}
.book-meta i { font-style: normal; color: var(--ink-3); }


/* ---------- Safari：去掉透视投影，翻页只做正交收窄，避免落页前照片位移 ---------- */
html[data-browser="safari"] .book,
html[data-browser="safari"] .spread {
  -webkit-perspective: none;
  perspective: none;
}

/* 极稳翻页模式：整本淡出淡入，无 3D */
.spread {
  transition: opacity 0.18s ease, transform 0.22s var(--ease);
}
.spread.is-flipping {
  opacity: 0;
  transform: scale(0.986);
}

/* ---------- 全屏作品页 ---------- */
.post {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(10, 10, 8, 0.6);
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.post.is-open { opacity: 1; visibility: visible; }

.post-blur {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.25) brightness(0.5);
  transform: scale(1.12);
}
.post-blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.5);
}

.post-card {
  position: relative;
  display: flex;
  width: min(1120px, 96vw);
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 40px));
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s var(--ease);
}
.post.is-open .post-card { transform: none; }

.post-media {
  flex: 1 1 auto;
  min-width: 0;
  background: #0b0b0a;
  display: grid;
  place-items: center;
}
.post-media img {
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 40px));
  object-fit: contain;
}

.post-text {
  display: none;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 40px));
  overflow-y: auto;
  padding: clamp(26px, 4vw, 52px) clamp(24px, 4vw, 60px);
  background: var(--page);
  color: #2a2721;
  font-family: var(--serif);
  font-size: clamp(12px, 1.02vw, 14px);
  line-height: 1.95;
  text-align: justify;
}
.post.is-text .post-media { background: var(--page); }
.post-text::-webkit-scrollbar { width: 4px; }
.post-text::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); }

.post-side {
  width: clamp(280px, 30%, 350px);
  flex: none;
  border-left: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.post-user { display: flex; align-items: center; gap: 12px; }
.post-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.post-user-text { display: flex; flex-direction: column; line-height: 1.3; }
.post-user-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.post-user-text span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.post-fields { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; }
.field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.field:first-child { border-top: 1px solid var(--line); }
.field dt {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.field dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.post-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.post-idx { font-family: var(--display); font-style: italic; color: var(--gold); }
.post-tag { font-family: var(--serif); }

.post-close {
  position: absolute;
  top: 10px; right: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s, transform 0.3s;
}
.post-close:hover { background: rgba(0, 0, 0, 0.6); transform: rotate(90deg); }


/* ---------- 三个玻璃窗口 ---------- */
.galleries {
  padding: clamp(26px, 4vw, 58px) var(--pad) clamp(44px, 6vw, 86px);
}
.galleries-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 1440px;
  margin: 0 auto;
}
.glass {
  position: relative;
  aspect-ratio: 1.62;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #0b0b09;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.glass-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}
.glass-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 8, 12, 0.86) 0%, rgba(6, 8, 12, 0.38) 26%, rgba(6, 8, 12, 0) 56%),
    linear-gradient(to bottom, rgba(6, 8, 12, 0.38) 0%, rgba(6, 8, 12, 0) 32%);
}
.glass-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.glass-num {
  position: absolute;
  top: 22px; left: 24px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
}
.glass-pill {
  position: absolute;
  top: 16px; right: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(18, 20, 24, 0.26);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.glass-foot {
  position: absolute;
  left: 24px; right: 24px; bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #fff;
}
.glass-foot b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 30px);
  letter-spacing: 0.14em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.glass-foot em {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
}
.glass-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.glass-hover i {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 12, 16, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.glass:hover .glass-hover,
.glass:focus-visible .glass-hover { opacity: 1; }
.glass:hover .glass-img { transform: scale(1.08); }
.glass:hover .glass-frame { border-color: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

@media (max-width: 900px) {
  .galleries-inner { grid-template-columns: 1fr; }
  .glass { aspect-ratio: 1.5; }
}

/* ---------- 全部照片（8KRAW 式齐边网格） ---------- */
.gal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  background: #0a0a09;
  color: #ece7db;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.gal.is-open { opacity: 1; visibility: visible; }
.gal-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 3vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gal-head { display: flex; align-items: baseline; gap: 12px; }
.gal-cat { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); letter-spacing: 0.16em; }
.gal-en { font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: 0.12em; color: var(--gold); }
.gal-count { font-size: 12px; letter-spacing: 0.1em; color: rgba(236, 231, 219, 0.5); }
.gal-close {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(236, 231, 219, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.3s, border-color 0.3s;
}
.gal-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.gal-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px clamp(8px, 1.4vw, 20px) 60px;
  -webkit-overflow-scrolling: touch;
}
.gal-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1840px;
  margin: 0 auto;
}
.gal-row { display: flex; gap: 8px; }
.gal-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #15140f;
  cursor: pointer;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.gal-item:hover img { transform: scale(1.045); filter: brightness(1.08); }

/* ---------- 联系 ---------- */
.contact {
  padding: clamp(70px, 10vw, 130px) var(--pad);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.contact-inner { max-width: 1100px; }
.contact-eyebrow { font-size: 11px; letter-spacing: 0.4em; color: var(--gold); margin-bottom: 14px; }
.contact-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0.14em;
  margin-bottom: clamp(28px, 4vw, 50px);
}
.contact-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(22px, 4vw, 52px); }

.wechat-card {
  border: 1px solid var(--line);
  padding: 24px 28px;
  min-width: min(340px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.4s;
}
.wechat-card:hover { border-color: var(--line-strong); }
.wechat-label { font-size: 11.5px; letter-spacing: 0.2em; color: var(--ink-2); }
.wechat-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wechat-id {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.copy-btn {
  border: 1px solid var(--line);
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.is-done { background: var(--gold); color: #0d0d0b; border-color: var(--gold); }
.wechat-hint { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.35s var(--ease);
}
.socials a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.ico {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 0.35s, color 0.35s;
}
.socials a:hover .ico { background: rgba(255, 255, 255, 0.16); color: inherit; }
.ico-svg {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sname { font-size: 12.5px; letter-spacing: 0.06em; }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.foot-mid { font-family: var(--display); font-style: italic; letter-spacing: 0.04em; }
.foot a { transition: color 0.3s; }
.foot a:hover { color: var(--gold); }

/* ---------- 序（全屏文字） ---------- */
.lore {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(70px, 12vh, 150px) clamp(28px, 6vw, 84px) 80px;
  background: rgba(10, 9, 8, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s var(--ease), visibility 0.42s;
}
.lore.is-open { opacity: 1; visibility: visible; }

.lore-inner {
  width: min(680px, 100%);
  max-height: 76vh;
  overflow-y: auto;
  padding: 4px 10px;
  color: #ece7db;
  font-family: var(--serif);
  font-size: clamp(12.5px, 1.1vw, 15px);
  line-height: 1.98;
  letter-spacing: 0.02em;
  text-align: justify;
}
.lore-inner::-webkit-scrollbar { width: 4px; }
.lore-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }

.lore-body .pt-inner { gap: 0.9em; }
.lore-body .pt-kicker {
  color: var(--gold);
  font-size: 1.05em;
  letter-spacing: 0.5em;
}
.lore-body .pt-lead { color: rgba(236, 231, 219, 0.78); }
.lore-body .pt-quote {
  color: #f8f2e3;
  border-left: 2px solid var(--gold);
  padding-left: 0.85em;
  font-weight: 600;
}
.lore-body .pt-sign {
  text-align: right;
  color: rgba(236, 231, 219, 0.62);
  font-family: var(--display);
  font-style: italic;
}
.lore-body p { margin: 0; }
.lore-body .pt-inner { min-height: 1px; }

.lore-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.3s, transform 0.3s;
}
.lore-close:hover { color: #fff; transform: rotate(90deg); }
.lore-hint {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* ---------- 微信二维码 ---------- */
.wx {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(8, 8, 6, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.wx.is-open { opacity: 1; visibility: visible; }

.wx-card {
  position: relative;
  width: min(360px, 92vw);
  background: #f7f4ec;
  color: #16150f;
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.965);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.wx.is-open .wx-card { transform: none; opacity: 1; }

.wx-close {
  position: absolute;
  top: 10px; right: 13px;
  font-size: 15px;
  color: #9a9488;
  transition: color 0.3s, transform 0.3s;
}
.wx-close:hover { color: #16150f; transform: rotate(90deg); }
.wx-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.wx-name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.1em; }
.wx-loc { font-size: 12px; color: #9a9488; letter-spacing: 0.12em; margin-bottom: 16px; }
.wx-qr { width: min(238px, 66vw); margin: 0 auto 14px; border: 1px solid rgba(0, 0, 0, 0.08); }
.wx-hint { font-size: 12px; color: #9a9488; letter-spacing: 0.06em; }

/* ---------- 显现 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  :root { --head-h: 58px; }
  .hero-cats { display: none; }
  .hero-content { max-width: 78vw; }
  .me-tag { display: none; }
  .post-card { flex-direction: column; max-height: calc(100vh - 24px); }
  .post-media img { max-height: 52vh; }
  .post-side {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 40vh;
  }
}

@media (max-width: 760px) {
  .book { aspect-ratio: 0.92; width: min(520px, 92vw); }
  .page--left { display: none; }
  .page--right { width: 100%; }
  .leaf { left: 0; width: 100%; }
  .riffle-leaf { left: 0; width: 100%; }
  .page-text {
    padding: 4.8% 6%;
    font-size: 9.6px;
    line-height: 1.72;
  }
  .pt-inner { gap: 0.45em; }
  .spine { display: none; }
  .contact-body { flex-direction: column; }
  .wechat-card { width: 100%; }
  .me-name { font-size: 15px; }
  .shelf-inner { gap: 18px; }
  .booklet { width: clamp(130px, 27vw, 168px); }
  .nav-zone { width: 24%; }
}

@media (max-width: 560px) {
  .book-nav { width: 40px; height: 40px; font-size: 14px; }
  .socials a { padding: 7px 14px 7px 7px; }
  .sname { font-size: 12px; }
  .head-right { gap: 14px; }
  .me-name { font-size: 14px; letter-spacing: 0.08em; }
  .head-nav { gap: 14px; }
  .head-nav a,
  .head-nav button { font-size: 12px; letter-spacing: 0.08em; }
  .head-nav i { display: none; }
  .theme-btn { width: 28px; height: 28px; }
  .hero-content { bottom: 104px; max-width: 86vw; }
  .hero-name { font-size: clamp(34px, 10.5vw, 46px); letter-spacing: 0.08em; }
  .hero-sub { font-size: 12px; letter-spacing: 0.1em; }
  .hero-cta { margin-top: 22px; }
  .hero-coord, .hero-social { display: none; }
  .hero-foot { justify-content: flex-end; padding-bottom: 20px; }
  .hero-media img { object-position: 54% 50%; }
  .post-side { padding: 16px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal, .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; transform: none; }
  .hero-content, .hero-cats, .hero-foot { animation: none; }
  .leaf { transition: none !important; }
}
