/* ==========================================================================
   羽砂夏沧 · 个人小站
   --------------------------------------------------------------------------
   目录：
   01. 设计变量（颜色 / 字体 / 圆角 / 阴影）
   02. 基础重置与工具类
   03. 背景、噪点、鼠标光、进度条
   04. 顶部导航 & 手机菜单
   05. 首页 Hero 轮播
   06. 首页：导览 / 此刻 / 画面 / 今日一句
   07. 子页通用：标题区 / 名片 / 按钮
   08. 关于页
   09. 家乡页
   10. 页脚 / 返回顶部 / 灯箱 / 弹窗 / 提示条
   11. 响应式（手机端认真排版）
   12. 减少动态 / 省电模式 / 不支持毛玻璃的降级
   --------------------------------------------------------------------------
   ★ 想换主色：改 --accent / --accent-strong / --accent-soft 即可。
   ★ 想换背景：改 body 的 background-image 与 --wash-*。
   ★ 手机端排版集中在文件末尾的 @media，尽量只改那里。
   ========================================================================== */

/* ==========================================================================
   01. 设计变量
   ========================================================================== */
:root {
  /* 字体：不加载外部字体，打开速度更快；中文标题用楷体增加一点手写感 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "LXGW WenKai", "霞鹜文楷", "Kaiti SC", "STKaiti", "KaiTi",
    "Songti SC", "Noto Serif SC", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* 浅色主题：白 / 浅粉 / 奶油 / 高级灰 */
  color-scheme: light;
  --bg: #fbf8f6;
  --bg-soft: #f7f0ee;
  --ink: #2e2c31;
  --ink-2: #6d6871;
  --ink-3: #9a949d;
  --ink-4: #bcb5bd;
  --line: rgba(56, 48, 58, 0.09);
  --line-2: rgba(56, 48, 58, 0.16);
  --surface-solid: #fffdfb;
  --surface-soft: rgba(255, 255, 255, 0.56);
  --surface-mute: rgba(249, 242, 241, 0.82);
  --glass-1: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.38);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  /* 设置卡片单独用一组更实的底色，正文压在白底上更好读 */
  --panel-1: rgba(255, 253, 251, 0.86);
  --panel-2: rgba(250, 246, 246, 0.72);
  --accent: #e9a0b3;
  --accent-strong: #d67c93;
  --accent-ink: #a4576b;
  --accent-soft: #fbe7ec;
  --accent-wash: rgba(233, 160, 179, 0.14);
  --btn: #353238;
  --btn-hover: #47434b;
  --btn-ink: #fffaf8;
  --shadow-soft: 0 18px 50px -24px rgba(74, 51, 60, 0.22);
  --shadow-lift: 0 30px 76px -30px rgba(74, 51, 60, 0.34);
  --wash-1: rgba(249, 203, 216, 0.48);
  --wash-2: rgba(231, 224, 246, 0.52);
  --wash-3: rgba(255, 235, 214, 0.48);

  /* 手绘明信片配色 */
  --illus-sky: #fdf3ed;
  --illus-sun: #f0c2c9;
  --illus-cloud: #fffaf7;
  --illus-hill-far: #d8ddd0;
  --illus-hill: #c3cdbd;
  --illus-field: #eadfcb;
  --illus-field-line: rgba(126, 112, 94, 0.16);
  --illus-river: #cfdfe2;
  --illus-river-light: rgba(255, 255, 255, 0.5);
  --illus-road: #d8c9b9;
  --illus-road-line: rgba(255, 255, 255, 0.55);
  --illus-trunk: #9a8574;
  --illus-leaf: #aebda7;
  --illus-stem: #8f9c88;
  --illus-flower: #fffdf8;
  --illus-car: #d98fa1;
  --illus-wheel: #5e5960;
  --illus-roof: #b79a8c;
  --illus-wall: #e7d6c7;
  --illus-window: #f6e7b9;
  --illus-sign-post: #a78f7b;
  --illus-sign-board: #f3e5d6;
  --illus-ink: #7a6e66;

  /* 尺寸与缓动 */
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.25, 1);
  --header-offset: 110px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141318;
  --bg-soft: #1b191f;
  --ink: #f1edf1;
  --ink-2: #b8b1bb;
  --ink-3: #8f8893;
  --ink-4: #6d6672;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --surface-solid: #201e25;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-mute: rgba(39, 35, 43, 0.78);
  --glass-1: rgba(40, 37, 46, 0.72);
  --glass-2: rgba(27, 25, 32, 0.48);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --panel-1: rgba(39, 36, 45, 0.93);
  --panel-2: rgba(29, 27, 35, 0.87);
  --accent: #efadbd;
  --accent-strong: #f3bcc9;
  --accent-ink: #f0b3c2;
  --accent-soft: rgba(239, 173, 189, 0.13);
  --accent-wash: rgba(239, 173, 189, 0.08);
  --btn: #f2eef2;
  --btn-hover: #ffffff;
  --btn-ink: #1b181e;
  --shadow-soft: 0 22px 60px -26px rgba(0, 0, 0, 0.72);
  --shadow-lift: 0 34px 84px -30px rgba(0, 0, 0, 0.84);
  --wash-1: rgba(115, 59, 81, 0.26);
  --wash-2: rgba(73, 62, 100, 0.24);
  --wash-3: rgba(105, 75, 50, 0.18);

  --illus-sky: #1b1a21;
  --illus-sun: #c98799;
  --illus-cloud: #2a272f;
  --illus-hill-far: #2b322c;
  --illus-hill: #333d34;
  --illus-field: #332d27;
  --illus-field-line: rgba(255, 255, 255, 0.06);
  --illus-river: #253135;
  --illus-river-light: rgba(255, 255, 255, 0.12);
  --illus-road: #3c352e;
  --illus-road-line: rgba(255, 255, 255, 0.18);
  --illus-trunk: #5d4e43;
  --illus-leaf: #3e4a3f;
  --illus-stem: #596354;
  --illus-flower: #d7d1c8;
  --illus-car: #c88193;
  --illus-wheel: #151318;
  --illus-roof: #5b4c43;
  --illus-window: #b6a374;
  --illus-wall: #443a32;
  --illus-sign-post: #5a4c41;
  --illus-sign-board: #3f3730;
  --illus-ink: #a59a91;
}

/* ==========================================================================
   02. 基础重置与工具类
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(56rem 40rem at 3% -12%, var(--wash-1), transparent 62%),
    radial-gradient(48rem 36rem at 103% 2%, var(--wash-2), transparent 60%),
    radial-gradient(50rem 40rem at 50% 112%, var(--wash-3), transparent 64%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

body.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }

ol, ul { padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(68px, 8.4vw, 116px) 0;
}
.section--tight { padding-top: clamp(28px, 4vw, 50px); }
.section--last { padding-bottom: clamp(64px, 8vw, 104px); }

.glass {
  position: relative;
  background: linear-gradient(140deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.soft-card {
  background: linear-gradient(155deg, var(--surface-solid), var(--surface-mute));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* 小标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* 小标题 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow .num {
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.eyebrow .num::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--accent);
  opacity: 0.55;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(30px, 4.2vw, 48px);
}
.section-title {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
}
.section-title .dot { color: var(--accent-strong); }
.section-note {
  max-width: 330px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.85;
  text-align: right;
}
.section-note code,
.connect-hint code,
.dialog-card code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.capture-note {
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.7;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-out), background 0.3s ease,
    color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .icon { transform: translate(2px, -2px); }
.btn-primary,
.btn-dark {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: 0 12px 28px -16px rgba(20, 14, 20, 0.55);
}
.btn-primary:hover,
.btn-dark:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}
.btn-light {
  background: rgba(255, 253, 251, 0.94);
  color: #302c32;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.45);
}
.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.23);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease-out);
}
.text-link:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.text-link:hover .icon { transform: translateX(3px); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.text-btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease-out);
}
.text-btn:hover .icon { transform: rotate(180deg); }

/* 滚动入场：JS 会先给 html 加 .has-reveal，避免 JS 失效时内容被藏住 */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal .reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   03. 背景 / 噪点 / 鼠标光 / 进度条
   ========================================================================== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  will-change: transform;
}
.orb-1 {
  top: -16vw;
  left: -14vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle at 45% 45%, rgba(244, 190, 205, 0.42), rgba(244, 190, 205, 0) 68%);
  animation: orbDriftA 28s ease-in-out infinite alternate;
}
.orb-2 {
  top: 18vh;
  right: -16vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle at 50% 50%, rgba(214, 204, 242, 0.34), rgba(214, 204, 242, 0) 68%);
  animation: orbDriftB 34s ease-in-out infinite alternate;
}
.orb-3 {
  bottom: -24vw;
  left: 28vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 50% 50%, rgba(249, 221, 195, 0.34), rgba(249, 221, 195, 0) 68%);
  animation: orbDriftC 31s ease-in-out infinite alternate;
}

[data-theme="dark"] .orb { opacity: 0.5; }
[data-theme="dark"] .orb-1 {
  background: radial-gradient(circle at 45% 45%, rgba(130, 64, 88, 0.2), rgba(130, 64, 88, 0) 68%);
}
[data-theme="dark"] .orb-2 {
  background: radial-gradient(circle at 50% 50%, rgba(85, 72, 119, 0.22), rgba(85, 72, 119, 0) 68%);
}
[data-theme="dark"] .orb-3 {
  background: radial-gradient(circle at 50% 50%, rgba(119, 85, 56, 0.16), rgba(119, 85, 56, 0) 68%);
}

@keyframes orbDriftA {
  to { transform: translate3d(5vw, 4vh, 0) scale(1.06); }
}
@keyframes orbDriftB {
  to { transform: translate3d(-4vw, 5vh, 0) scale(1.04); }
}
@keyframes orbDriftC {
  to { transform: translate3d(-3vw, -4vh, 0) scale(1.05); }
}

/* 很淡的纸张噪点，增加质感但不会显脏 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("../img/noise.jpg");
  background-size: 128px 128px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .grain {
  opacity: 0.06;
  mix-blend-mode: screen;
}

/* 鼠标柔光：只在有鼠标且非省电模式时显示 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 178, 194, 0.22), rgba(238, 178, 194, 0) 66%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(226, 148, 170, 0.14), rgba(226, 148, 170, 0) 66%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--ink-3));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.85;
}

/* ==========================================================================
   04. 顶部导航 & 手机菜单
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  pointer-events: none;
  transition: top 0.35s var(--ease-soft);
}
.site-header.is-scrolled { top: 9px; }

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  min-height: 64px;
  margin-inline: auto;
  padding: 9px 12px 9px 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 42px -24px rgba(74, 51, 60, 0.42),
    inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  pointer-events: auto;
  transition: min-height 0.35s var(--ease-soft), background 0.35s ease,
    box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.is-scrolled .nav-shell {
  min-height: 57px;
  background: linear-gradient(135deg, var(--glass-1), var(--glass-2));
  box-shadow: 0 18px 46px -26px rgba(74, 51, 60, 0.5),
    inset 0 1px 0 var(--glass-highlight);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: linear-gradient(145deg, #f3bccb, #d991a6);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 7px 18px -9px rgba(180, 100, 122, 0.72);
  transition: transform 0.5s var(--ease-out), border-radius 0.5s var(--ease-out);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
  border-radius: 50%;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.brand-copy small {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 7.5px;
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-strong);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}
.nav-link.is-active {
  color: var(--ink);
  background: var(--surface-soft);
}
.nav-link.is-active::after { transform: translateX(-50%) scale(1); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.3s var(--ease-out);
}
.icon-btn:hover {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}
.icon-btn:active { transform: scale(0.94); }

.theme-toggle {
  position: relative;
  overflow: hidden;
}
.theme-toggle .icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s ease, transform 0.55s var(--ease-out);
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-80deg) scale(0.5);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(80deg) scale(0.5);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.menu-toggle:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: top 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 23px; }
body.menu-open .menu-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
body.menu-open .menu-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* 手机菜单 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 27, 34, 0.32);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.mobile-menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(86vw, 390px);
  height: 100%;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: linear-gradient(160deg, var(--glass-1), var(--glass-2));
  border-left: 1px solid var(--glass-border);
  box-shadow: -30px 0 80px -40px rgba(30, 20, 30, 0.6);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  backdrop-filter: blur(26px) saturate(155%);
  transform: translateX(101%);
  transition: transform 0.42s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-menu__label {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.3;
  transition: color 0.25s ease, padding-left 0.35s var(--ease-out);
}
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--accent-ink);
  padding-left: 8px;
}
.mobile-nav .idx {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 32px;
}
.mobile-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 12px;
  text-align: left;
}
.mobile-theme__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.mobile-theme__icon .icon {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.mobile-theme__icon .mobile-icon-moon { opacity: 1; transform: scale(1); }
.mobile-theme__icon .mobile-icon-sun { opacity: 0; transform: rotate(-70deg) scale(0.5); }
[data-theme="dark"] .mobile-theme__icon .mobile-icon-moon { opacity: 0; transform: rotate(70deg) scale(0.5); }
[data-theme="dark"] .mobile-theme__icon .mobile-icon-sun { opacity: 1; transform: scale(1); }
.mobile-menu__note {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   05. 首页 Hero 轮播
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 96px 0 0;
}
.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  height: clamp(570px, 76vh, 790px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 38px);
  background: #2b262c;
  box-shadow: 0 46px 110px -55px rgba(62, 39, 50, 0.6),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
  isolation: isolate;
  touch-action: pan-y;
}
.hero-shell:focus-visible {
  outline-offset: -5px;
  border-radius: clamp(26px, 3vw, 38px);
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(clamp(26px, 3vw, 38px) - 9px);
  pointer-events: none;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1s var(--ease-soft);
  pointer-events: none;
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.hero-slide.is-active img { transform: scale(1.075); }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23, 18, 24, 0.46) 0%, rgba(23, 18, 24, 0.18) 30%,
      rgba(23, 18, 24, 0.32) 62%, rgba(18, 14, 20, 0.8) 100%),
    radial-gradient(82% 72% at 50% 42%, rgba(20, 15, 22, 0.06) 24%, rgba(20, 15, 22, 0.34) 100%);
}
/* 初音 / 无职这两张原图偏亮，单独加深遮罩，保证白字可读 */
.hero-shell.is-bright-slide .hero-veil {
  background:
    linear-gradient(180deg, rgba(21, 17, 23, 0.56) 0%, rgba(21, 17, 23, 0.34) 30%,
      rgba(21, 17, 23, 0.44) 62%, rgba(17, 13, 19, 0.86) 100%),
    radial-gradient(88% 76% at 50% 42%, rgba(18, 14, 20, 0.2) 18%, rgba(18, 14, 20, 0.48) 100%);
}

/* 花瓣：5 个纯 CSS 小元素，省电模式 / 手机端会隐藏一部分 */
.hero-petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero-petals span {
  position: absolute;
  top: -6%;
  width: 9px;
  height: 9px;
  border-radius: 62% 12% 62% 12%;
  background: rgba(255, 211, 223, 0.72);
  opacity: 0;
  animation: petalFall 15s linear infinite;
}
.hero-petals span:nth-child(1) { left: 12%; animation-delay: 1s; animation-duration: 16s; }
.hero-petals span:nth-child(2) { left: 31%; width: 7px; height: 7px; animation-delay: 6s; animation-duration: 13s; }
.hero-petals span:nth-child(3) { left: 58%; width: 10px; height: 10px; animation-delay: 3s; animation-duration: 18s; }
.hero-petals span:nth-child(4) { left: 76%; animation-delay: 9s; animation-duration: 14s; }
.hero-petals span:nth-child(5) { left: 88%; width: 6px; height: 6px; animation-delay: 0s; animation-duration: 12s; }

@keyframes petalFall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translate3d(60px, 92vh, 0) rotate(330deg); opacity: 0; }
}

.hero-top {
  position: absolute;
  top: 28px;
  left: 30px;
  right: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  animation: fadeIn 1s 0.7s var(--ease-out) both;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4c3d0;
  box-shadow: 0 0 0 0 rgba(244, 195, 208, 0.6);
  animation: pulseDot 2.6s ease-out infinite;
}
.hero-time {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 64px 24px 118px;
  text-align: center;
  color: #fff;
}

.hero-avatar {
  position: relative;
  width: 98px;
  height: 98px;
  margin-bottom: 23px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 38px -16px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: heroItemIn 0.9s 0.1s var(--ease-out) both;
  transition: transform 0.6s var(--ease-out);
}
.hero-avatar:hover { transform: rotate(-3deg) scale(1.04); }
.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.hero-avatar::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9fc8aa;
  box-shadow: 0 0 0 4px rgba(159, 200, 170, 0.23);
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  animation: heroItemIn 0.9s 0.2s var(--ease-out) both;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  animation: heroItemIn 0.95s 0.3s var(--ease-out) both;
}
.hero-title-cn {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.7vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.09em;
  text-indent: 0.09em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 12px 46px rgba(0, 0, 0, 0.28);
}
.hero-title-en {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0.46em;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}
.hero-title-en::before,
.hero-title-en::after {
  content: "";
  width: 27px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}
.hero-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 20px;
  animation: heroItemIn 0.95s 0.44s var(--ease-out) both;
}
.hero-swap p {
  max-width: 92vw;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.hero-swap p.is-out { opacity: 0; transform: translateY(6px); }
.hero-swap p.is-in { animation: textSwapIn 0.42s var(--ease-out); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
  animation: heroItemIn 0.95s 0.58s var(--ease-out) both;
}
.hero-actions .btn { min-height: 46px; }

.hero-bottom {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 25px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #fff;
  animation: fadeIn 1s 0.8s var(--ease-out) both;
}
.hero-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.hero-counter #photoIndex {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.hero-counter i { font-style: normal; opacity: 0.42; }
.hero-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
}
.hero-arrow,
.hero-pause {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.3s var(--ease-out),
    border-color 0.25s ease;
}
.hero-arrow:hover,
.hero-pause:hover {
  background: rgba(255, 255, 255, 0.23);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.hero-arrow .icon,
.hero-pause .icon { width: 17px; height: 17px; }

.hero-pause { position: relative; }
.hero-pause .icon {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.hero-pause .icon-pause { opacity: 1; transform: scale(1); }
.hero-pause .icon-play { opacity: 0; transform: scale(0.6); }
.hero-pause[aria-pressed="true"] .icon-pause { opacity: 0; transform: scale(0.6); }
.hero-pause[aria-pressed="true"] .icon-play { opacity: 1; transform: scale(1); }

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.35s var(--ease-out), background 0.35s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.68); }
.hero-dot.is-active {
  width: 22px;
  background: rgba(255, 255, 255, 0.94);
}
.hero-caption {
  justify-self: end;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-align: right;
}
.hero-vertical {
  position: absolute;
  top: 50%;
  right: 27px;
  z-index: 4;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  pointer-events: none;
}

@keyframes heroItemIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes textSwapIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244, 195, 208, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(244, 195, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 195, 208, 0); }
}

/* ==========================================================================
   06. 首页：导览 / 此刻 / 画面 / 今日一句
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s ease,
    border-color 0.4s ease;
}
.guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(62% 62% at 100% 0%, var(--accent-wash), transparent 66%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.guide-card > * { position: relative; z-index: 1; }
.guide-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233, 160, 179, 0.42);
  box-shadow: var(--shadow-lift);
}
.guide-card:hover::after { opacity: 1; }

.card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.guide-avatar {
  width: 78px;
  height: 78px;
  margin-bottom: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px -16px rgba(70, 40, 50, 0.42);
  transform: rotate(-2deg);
  transition: transform 0.55s var(--ease-out);
}
.guide-card:hover .guide-avatar { transform: rotate(0) scale(1.02); }
.guide-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.guide-card:hover .guide-avatar img { transform: scale(1.06); }

.guide-body { margin-top: 28px; }
.guide-en {
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.guide-card h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}
.guide-desc {
  max-width: 245px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
}
.circle-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.35s ease, color 0.35s ease,
    transform 0.45s var(--ease-out), border-color 0.35s ease;
}
.circle-arrow .icon { width: 16px; height: 16px; }
.guide-card:hover .circle-arrow {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-ink);
  transform: rotate(3deg) scale(1.04);
}

.guide-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: auto;
  border: 1px dashed rgba(214, 124, 147, 0.55);
  border-radius: 24px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform: rotate(3deg);
  transition: transform 0.55s var(--ease-out);
}
.guide-card:hover .guide-stamp { transform: rotate(0) scale(1.03); }
.guide-stamp span {
  font-family: var(--font-display);
  font-size: 37px;
  line-height: 1;
}
.guide-stamp small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}
.guide-tags { padding-bottom: 24px; }
.guide-tags h3 { margin-top: 8px; }
.guide-tags .tag-list { margin-top: 16px; }
.guide-more { margin-top: auto; padding-top: 24px; align-self: flex-start; }

/* 首页的“好友入口”卡片：四个小头像围成一圈，和好友页的轨道呼应 */
.guide-friends h3 { font-size: 23px; }
.guide-friends .guide-desc { max-width: 220px; }
.friend-cluster {
  position: relative;
  width: 92px;
  height: 82px;
  margin-bottom: auto;
  transition: transform 0.55s var(--ease-out);
}
.guide-card:hover .friend-cluster { transform: translateY(-2px); }
.cluster-avatar {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: 0 8px 18px -12px rgba(70, 40, 50, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(70, 40, 50, 0.24);
  transition: transform 0.55s var(--ease-out);
}
.cluster-1 { top: 3px; left: 3px; }
.cluster-2 { top: 0; right: 4px; }
.cluster-3 { bottom: 3px; left: 10px; }
.cluster-4 { bottom: 0; right: 0; }
.cluster-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--accent-strong);
  box-shadow: 0 8px 18px -12px rgba(70, 40, 50, 0.48);
  transform: translate(-50%, -50%);
}
.cluster-heart .icon { width: 14px; height: 14px; }
.guide-card:hover .cluster-1 { transform: translate(-3px, -3px) rotate(-6deg); }
.guide-card:hover .cluster-2 { transform: translate(3px, -2px) rotate(5deg); }
.guide-card:hover .cluster-3 { transform: translate(-2px, 3px) rotate(4deg); }
.guide-card:hover .cluster-4 { transform: translate(3px, 2px) rotate(-5deg); }
.guide-card:hover .cluster-heart { transform: translate(-50%, -50%) scale(1.08); }
.cluster-heart { transition: transform 0.55s var(--ease-out); }

/* 此时此刻 */
.now-panel {
  position: relative;
  padding: clamp(24px, 3.3vw, 40px);
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.now-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 52%;
  height: 120%;
  background: radial-gradient(circle at 50% 50%, var(--accent-wash), transparent 68%);
  pointer-events: none;
}
.now-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.now-live {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fc8aa;
  box-shadow: 0 0 0 0 rgba(159, 200, 170, 0.55);
  animation: pulseSage 2.8s ease-out infinite;
}
.now-time {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.now-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 29px 0 27px;
}
.now-item {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.now-item:first-child { padding-left: 0; border-left: 0; }
.now-item:last-child { padding-right: 0; }
.now-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.now-label {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.now-item h3 {
  margin: 5px 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.now-item p:last-child {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}
.now-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10.5px;
}
#lastVisit { color: var(--ink-2); }

@keyframes pulseSage {
  0% { box-shadow: 0 0 0 0 rgba(159, 200, 170, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(159, 200, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 200, 170, 0); }
}

/* 喜欢的画面 */
.moment-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(185px, 232px));
  gap: 16px;
}
.moment {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-mute);
  text-align: left;
}
.moment:first-child { grid-row: span 2; }
.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(20, 15, 20, 0.2) 62%, rgba(20, 15, 20, 0.82) 100%);
}
.moment:hover img { transform: scale(1.045); }
.moment-cap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 17px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.moment-cap b {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.moment-hint {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.moment-hint .icon { width: 15px; height: 15px; }
.moment:hover .moment-hint { opacity: 1; transform: none; }

/* 今日一句 */
.split-grid {
  display: grid;
  grid-template-columns: 1.36fr 0.64fr;
  gap: 17px;
  align-items: stretch;
}
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: -56px;
  right: 26px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 240px;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}
#dailyQuote {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.quote-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.quote-foot cite {
  color: var(--ink-3);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.quote-card.is-swapping #dailyQuote,
.quote-card.is-swapping cite {
  opacity: 0;
  transform: translateY(6px);
}

.stats-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-solid), var(--surface-mute));
  box-shadow: var(--shadow-soft);
}
.stats-card .eyebrow { margin-bottom: 9px; }
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stat strong {
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--ink-3);
  font-size: 10.5px;
  text-align: right;
}
.stats-note {
  margin-top: auto;
  padding-top: 19px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.7;
}

/* ==========================================================================
   07. 子页通用：标题区 / 名片
   ========================================================================== */
.page-main { position: relative; z-index: 2; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(134px, 14vw, 174px) 0 clamp(30px, 4vw, 52px);
}
.page-hero::before {
  content: attr(data-word);
  position: absolute;
  top: 86px;
  right: -18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(110px, 19vw, 250px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  opacity: 0.032;
  pointer-events: none;
  user-select: none;
}
[data-theme="dark"] .page-hero::before { opacity: 0.045; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 33px;
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  animation: fadeUpSoft 0.8s 0.05s var(--ease-out) both;
}
.breadcrumb a { transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.68fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}
.page-title-wrap .eyebrow { animation: fadeUpSoft 0.85s 0.12s var(--ease-out) both; }
.page-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  animation: fadeUpSoft 0.95s 0.2s var(--ease-out) both;
}
.page-title em {
  position: relative;
  color: var(--accent-ink);
  font-style: normal;
}
.page-title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 5px;
  z-index: -1;
  height: 9px;
  border-radius: 6px;
  background: var(--accent-soft);
}
.page-title .dot { color: var(--accent-strong); }
.page-lead {
  margin-top: 21px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.95;
  letter-spacing: 0.03em;
  animation: fadeUpSoft 0.95s 0.3s var(--ease-out) both;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
  animation: fadeUpSoft 0.95s 0.4s var(--ease-out) both;
}
.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 10.5px;
}
.page-meta .icon { width: 13px; height: 13px; color: var(--accent-ink); }
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  animation: fadeUpSoft 0.95s 0.5s var(--ease-out) both;
}
.page-hero-actions .btn { min-height: 46px; }

@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.profile-card {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 370px;
  padding: 31px 25px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  transform: rotate(1.2deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease;
  animation: fadeIn 0.9s 0.42s var(--ease-out) both;
}
.profile-card:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.profile-sticker {
  position: absolute;
  top: -17px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 19px;
  transform: rotate(10deg);
}
.profile-avatar {
  width: 146px;
  height: 146px;
  margin: 0 auto 17px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 160, 179, 0.3));
  box-shadow: 0 18px 38px -19px rgba(80, 40, 55, 0.45);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-handle {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.profile-card h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.profile-loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 11px;
}
.profile-loc .icon { width: 14px; height: 14px; color: var(--accent-ink); }
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}
.profile-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10.5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fc8aa;
  box-shadow: 0 0 0 0 rgba(159, 200, 170, 0.55);
  animation: pulseSage 2.8s ease-out infinite;
}

/* ==========================================================================
   08. 关于页
   ========================================================================== */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 216px;
  padding: 25px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease,
    border-color 0.35s ease;
}
.connect-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 160, 179, 0.42);
  box-shadow: var(--shadow-lift);
}
.connect-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink);
}
.connect-icon .icon { width: 23px; height: 23px; }
.connect-card h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.connect-card p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.75;
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
}
.connect-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out);
}
.connect-card:hover .connect-link .icon { transform: translate(2px, -2px); }
.connect-hint {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 6.4vw, 86px);
  align-items: start;
}
.story-aside {
  position: sticky;
  top: 120px;
}
.story-aside .section-title { margin-top: 16px; }
.story-aside-note {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.85;
  max-width: 290px;
}
.story-sign {
  margin-top: 24px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.story-body { padding-top: 52px; }
.story-body p {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 2.05;
}
.story-body p strong { color: var(--ink); font-weight: 600; }
.story-body p:first-child::first-letter {
  float: left;
  margin: 6px 9px 0 0;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 41px;
  line-height: 0.9;
}
.story-quote {
  margin-top: 26px;
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.interest-card {
  position: relative;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-solid), var(--surface-mute));
  transition: transform 0.5s var(--ease-out), border-color 0.35s ease,
    box-shadow 0.5s ease;
}
.interest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 160, 179, 0.4);
  box-shadow: var(--shadow-soft);
}
.interest-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.interest-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.interest-num {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.interest-card h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.interest-en {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.interest-card > p:not(.interest-en) {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 8%;
  height: 1px;
  background: var(--line-2);
}
.timeline-item {
  position: relative;
  padding: 33px 20px 0 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 0 0 5px var(--bg);
}
.timeline-item.is-now::before { background: var(--accent); }
.timeline-tag {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.timeline-item h3 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.timeline-item p {
  max-width: 300px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 152px;
  gap: 14px;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-mute);
  text-align: left;
}
.photo-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.photo-item:nth-child(2) { grid-column: span 4; }
.photo-item:nth-child(3) { grid-column: span 3; }
.photo-item:nth-child(4) { grid-column: span 3; }
.photo-item:nth-child(5) { grid-column: span 4; }
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.95s var(--ease-out);
}
.photo-item:hover img { transform: scale(1.05); }
.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(20, 15, 20, 0.22) 62%, rgba(20, 15, 20, 0.84) 100%);
}
.photo-cap {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.photo-cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.photo-cap span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  letter-spacing: 0.16em;
}
.photo-zoom {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.photo-zoom .icon { width: 14px; height: 14px; }
.photo-item:hover .photo-zoom { opacity: 1; transform: none; }
.capture-note--gallery { margin-top: 16px; }

/* 留言板 */
.guestbook {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(28px, 5vw, 62px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
}
.guestbook-lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
}
.guest-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 24px;
}
.guest-field { display: flex; flex-direction: column; gap: 6px; }
.guest-field label {
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.guest-field input,
.guest-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
}
.guest-field input::placeholder,
.guest-field textarea::placeholder { color: var(--ink-4); }
.guest-field input:focus,
.guest-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.guest-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}
.guest-form-foot .btn { min-height: 42px; padding: 0 18px; font-size: 12px; }
.guest-count {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.guest-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.75;
}
.guest-note--error { color: var(--accent-ink); }

.guestbook-list-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guest-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.guest-list-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.guest-clear {
  color: var(--ink-3);
  font-size: 10px;
  transition: color 0.25s ease;
}
.guest-clear:hover,
.guest-clear.is-armed { color: var(--accent-ink); }
.guest-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 436px;
  margin-top: 14px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.guest-list::-webkit-scrollbar { width: 5px; }
.guest-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-2);
}
.guest-item {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-solid);
  animation: noteIn 0.35s var(--ease-out);
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.guest-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest-who {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.guest-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.guest-who strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guest-time {
  margin-left: auto;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}
.guest-delete {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.guest-item:hover .guest-delete { opacity: 1; }
.guest-delete:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.guest-msg {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.empty-state {
  margin-top: 15px;
  padding: 26px;
  border: 1px dashed var(--line-2);
  border-radius: 15px;
  color: var(--ink-3);
  font-size: 11px;
  text-align: center;
}
.guest-local-badge {
  margin-top: auto;
  padding-top: 15px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.guest-local-badge span { color: var(--accent); }

/* ==========================================================================
   09. 家乡页
   ========================================================================== */
.hometown-hero-grid { align-items: center; }
.postcard-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 555px);
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--glass-1), var(--glass-2));
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-highlight);
  transform: rotate(-1.4deg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  animation: postcardIn 1.05s 0.3s var(--ease-out) both,
    postcardFloat 7.5s 1.5s ease-in-out infinite;
}
@keyframes postcardIn {
  from { opacity: 0; transform: translateY(24px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.4deg); }
}
@keyframes postcardFloat {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-6px) rotate(-0.9deg); }
}
.tape {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(233, 160, 179, 0.36);
  opacity: 0.85;
}
.tape-1 { top: -11px; left: 38px; transform: rotate(-8deg); }
.tape-2 { right: 46px; bottom: -10px; transform: rotate(6deg); }
.postcard {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 21px;
  background: var(--illus-sky);
}
.postcard-art { width: 100%; height: 100%; }
.postcard-meta {
  position: absolute;
  top: 15px;
  left: 17px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(128, 112, 100, 0.22);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.62);
  color: #7c6e63;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .postcard-meta {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 24, 30, 0.55);
  color: #c7beb5;
}
.postmark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px dashed rgba(110, 95, 85, 0.42);
  border-radius: 50%;
  color: rgba(90, 76, 68, 0.68);
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.65;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(9deg);
}
[data-theme="dark"] .postmark { color: rgba(230, 220, 210, 0.5); border-color: rgba(255, 255, 255, 0.18); }
.postcard-stamp {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 47px;
  border: 1px dashed rgba(120, 100, 88, 0.4);
  background: rgba(255, 248, 240, 0.55);
  color: #9a7b6c;
  font-family: var(--font-display);
  font-size: 21px;
  transform: rotate(-3deg);
}
[data-theme="dark"] .postcard-stamp { background: rgba(30, 27, 33, 0.5); color: #d2b5a7; border-color: rgba(255, 255, 255, 0.16); }
.postcard-caption {
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 2;
  color: rgba(100, 83, 72, 0.72);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
}
[data-theme="dark"] .postcard-caption { color: rgba(226, 213, 201, 0.55); }

/* SVG 插画颜色全部走 CSS 变量，夜间会自动变暗 */
.illus-sky { fill: var(--illus-sky); }
.illus-sun { fill: var(--illus-sun); }
.illus-cloud { fill: var(--illus-cloud); }
.illus-hill-far { fill: var(--illus-hill-far); }
.illus-hill { fill: var(--illus-hill); }
.illus-field { fill: var(--illus-field); }
.illus-field-line { fill: none; stroke: var(--illus-field-line); stroke-width: 2; }
.illus-river { fill: var(--illus-river); }
.illus-river-light { fill: none; stroke: var(--illus-river-light); stroke-width: 2; stroke-linecap: round; }
.illus-road { fill: none; stroke: var(--illus-road); stroke-width: 43; stroke-linecap: round; }
.illus-road-line { fill: none; stroke: var(--illus-road-line); stroke-width: 3; stroke-dasharray: 12 13; stroke-linecap: round; }
.illus-birds { fill: none; stroke: var(--illus-ink); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.illus-house .illus-roof { fill: var(--illus-roof); }
.illus-house .illus-wall { fill: var(--illus-wall); }
.illus-window { fill: var(--illus-window); }
.illus-trunk { fill: var(--illus-trunk); }
.illus-leaf { fill: var(--illus-leaf); }
.illus-stem { fill: none; stroke: var(--illus-stem); stroke-width: 2.5; stroke-linecap: round; }
.illus-flower { fill: var(--illus-flower); }
.illus-car { fill: var(--illus-car); }
.illus-wheel { fill: var(--illus-wheel); }
.illus-sign-post { fill: var(--illus-sign-post); }
.illus-sign-board { fill: var(--illus-sign-board); }
.cloud-a { animation: cloudDrift 19s ease-in-out infinite alternate; }
.cloud-b { animation: cloudDrift 24s 2s ease-in-out infinite alternate-reverse; }
.car-float { animation: carBob 5.5s ease-in-out infinite; }
@keyframes cloudDrift {
  to { transform: translate3d(18px, 3px, 0); }
}
@keyframes carBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* 数字 */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 29px 26px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; }
.fact strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 57px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact strong .unit {
  margin-left: 3px;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.fact > span {
  display: block;
  margin-top: 11px;
  color: var(--ink-2);
  font-size: 11.5px;
}
.fact p {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.7;
}
.source-note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 9.5px;
  text-align: right;
}
.source-note a {
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.source-note a:hover { color: var(--accent-ink); border-color: var(--accent); }
.source-note--left { text-align: left; }

/* 关键词 */
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.keyword-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 28px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-solid), var(--surface-mute));
  transition: transform 0.5s var(--ease-out), border-color 0.35s ease,
    box-shadow 0.5s ease;
}
.keyword-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 160, 179, 0.38);
  box-shadow: var(--shadow-soft);
}
.keyword-watermark {
  position: absolute;
  right: -6px;
  bottom: -46px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 158px;
  line-height: 1;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.keyword-card h3 {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}
.keyword-en {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.keyword-card p:not(.eyebrow):not(.keyword-en) {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.85;
}
.keyword-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* 历史 */
.history-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.history-aside { position: sticky; top: 120px; }
.history-quote {
  margin-top: 25px;
  padding: 18px 0 18px 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
}
.history-quote cite {
  display: block;
  margin-top: 7px;
  color: var(--ink-3);
  font-style: normal;
  font-size: 10px;
}
.people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.people-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 9.5px;
}
.people-chip b {
  margin-right: 3px;
  color: var(--ink-2);
  font-weight: 600;
}
.history-timeline {
  position: relative;
  padding-left: 26px;
}
.history-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--line-2);
}
.history-item {
  position: relative;
  padding-bottom: 27px;
}
.history-item:last-child { padding-bottom: 0; }
.history-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -25px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.history-year {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.history-item h3 {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.history-item p {
  max-width: 540px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.85;
}

/* 风景 */
.place-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 212px;
  gap: 14px;
}
.place-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-mute);
  text-align: left;
}
.place-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.place-card:nth-child(2) { grid-column: span 5; }
.place-card:nth-child(3) { grid-column: span 5; }
.place-card:nth-child(4) { grid-column: span 12; }
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.place-card:hover img { transform: scale(1.045); }
.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 14, 18, 0.24) 60%, rgba(18, 14, 18, 0.84) 100%);
}
.place-index {
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 1;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(20, 16, 20, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.place-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 17px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.place-title {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}
.place-desc {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  line-height: 1.6;
}
.more-places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 9.5px;
}
.more-place {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 9.5px;
}

/* 味道 + 方言 */
.taste-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 17px;
  align-items: start;
}
.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.taste-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease;
}
.taste-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 160, 179, 0.36);
}
.taste-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 13px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.taste-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.taste-card p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.75;
}
.dialect-card {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: var(--radius-lg);
}
.dialect-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.dialect-word {
  margin-top: 23px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 63px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dialect-pinyin {
  margin-top: 3px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.dialect-meaning {
  min-height: 48px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dialect-card.is-swapping .dialect-word,
.dialect-card.is-swapping .dialect-pinyin,
.dialect-card.is-swapping .dialect-meaning {
  opacity: 0;
  transform: translateY(5px);
}
.dialect-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.dialect-count {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.dialect-note {
  margin-top: 11px;
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.6;
}

/* 家乡记忆 */
.memory-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.memory-prose .section-title { margin-top: 16px; }
.memory-prose > p {
  max-width: 560px;
  margin-top: 17px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 2;
}
.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}
.memory-actions .btn { min-height: 45px; }
.memory-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-xl);
  transform: rotate(1.4deg);
}
.memory-sticker {
  position: absolute;
  top: -14px;
  left: 25px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 17px;
  transform: rotate(-8deg);
}
.memory-quote {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.72;
  letter-spacing: 0.02em;
}
.memory-sign {
  display: block;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 10.5px;
}
.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   09.5 好友介绍页（friends.html）
   ========================================================================== */
.friends-hero-grid { align-items: center; }

.friend-hero-card {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  padding: 27px 25px 21px;
  border-radius: var(--radius-xl);
  text-align: center;
  transform: rotate(1deg);
  animation: fadeIn 0.9s 0.42s var(--ease-out) both;
}
.friend-orbit {
  position: relative;
  width: 232px;
  height: 232px;
  margin: 0 auto 15px;
}
.orbit-ring {
  position: absolute;
  inset: 24px;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  animation: orbitSpin 42s linear infinite;
}
.orbit-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-wash);
}
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3bccb, #d991a6);
  box-shadow: 0 14px 34px -14px rgba(168, 88, 112, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  transform: translate(-50%, -50%);
}
.orbit-avatar {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 9px 20px -11px rgba(70, 40, 50, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-shadow: 0 1px 5px rgba(70, 40, 50, 0.24);
  animation: orbitFloat 5.6s ease-in-out infinite;
}
.orbit-1 { top: 16px; left: 35px; animation-delay: 0.1s; }
.orbit-2 { top: 43px; right: 14px; animation-delay: 1.4s; }
.orbit-3 { bottom: 25px; right: 35px; animation-delay: 0.7s; }
.orbit-4 { bottom: 16px; left: 19px; animation-delay: 2.1s; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 头像的六种低饱和渐变色 */
.tone-rose { background: linear-gradient(145deg, #f2c0cd, #d68fa4); }
.tone-sage { background: linear-gradient(145deg, #c9d8c4, #9eb39b); }
.tone-lilac { background: linear-gradient(145deg, #dcd2ee, #b5a4d0); }
.tone-sand { background: linear-gradient(145deg, #eedac2, #cfb18e); }
.tone-sky { background: linear-gradient(145deg, #c9dbe4, #9db9c8); }
.tone-clay { background: linear-gradient(145deg, #e3c7bd, #c49c8f); }

.friend-hero-en {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
}
.friend-hero-title {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.friend-hero-desc {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.85;
}
.friend-hero-desc b {
  color: var(--accent-ink);
  font-weight: 600;
}
.friend-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.friend-hero-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 四格说明 */
.friend-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 26px;
  border-radius: var(--radius-lg);
}
.friend-rule {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.friend-rule:first-child { padding-left: 0; border-left: 0; }
.friend-rule:last-child { padding-right: 0; }
.friend-rule-index {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}
.friend-rule h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.friend-rule p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.75;
}

.friend-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 35px 0 17px;
}
.friend-board-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.friend-board-head h3 b {
  color: var(--accent-ink);
  font-weight: 600;
}
.friend-demo-note {
  max-width: 430px;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: right;
}
.friend-demo-note strong { color: var(--accent-ink); }
.friend-demo-note code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* 筛选 / 搜索 / 随机 */
.friend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.friend-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.friend-filter {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.5;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.friend-filter:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.friend-filter.is-active {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-ink);
}
.friend-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.friend-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-3);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.friend-search:focus-within {
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.friend-search .icon { width: 13px; height: 13px; flex: none; }
.friend-search input {
  width: 118px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}
.friend-search input::placeholder { color: var(--ink-4); }
.friend-random {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.friend-random:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.friend-random .icon { width: 13px; height: 13px; }

.friend-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}
.friend-status {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.friend-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--ink-3);
  font-size: 9px;
}
.friend-tip .icon {
  width: 12px;
  height: 12px;
  color: var(--accent-ink);
}
.friend-reset {
  border-bottom: 1px solid transparent;
  color: var(--accent-ink);
  font-size: 9px;
  transition: border-color 0.25s ease;
}
.friend-reset:hover { border-color: var(--accent); }

/* 好友卡片：默认 4 列；点开时跨 2 列 2 行，其他卡片自动让位 */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 12px;
  align-items: stretch;
}
.friend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--surface-solid), var(--surface-mute));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px -24px rgba(70, 50, 60, 0.25);
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease,
    box-shadow 0.4s ease, background 0.3s ease;
  animation: friendCardIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 34ms);
}
.friend-card > * { position: relative; z-index: 1; }
.friend-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--accent-wash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.friend-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 160, 179, 0.42);
  background-color: var(--surface-solid);
  background-image: linear-gradient(155deg, transparent, var(--accent-wash));
  box-shadow: var(--shadow-soft);
}
.friend-card.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow-soft);
}
.friend-card.is-filtered { display: none; }
.friend-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

/* 展开态：跨 2 列 × 2 行，像把一张小卡片摊开 */
.friend-card.is-open {
  grid-column: span 2;
  grid-row: span 2;
  z-index: 4;
  min-height: 360px;
  padding: 23px;
  cursor: default;
  border-color: rgba(214, 124, 147, 0.46);
  background-color: var(--surface-solid);
  background-image:
    radial-gradient(120% 100% at 100% 0%, var(--accent-wash), transparent 62%),
    linear-gradient(155deg, var(--surface-solid), var(--surface-mute));
  box-shadow: var(--shadow-lift);
}
.friend-card.is-open:hover { transform: none; }
.friend-card.is-open::before { opacity: 1; }

.friend-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 11px;
}
.friend-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-shadow: 0 1px 5px rgba(70, 40, 50, 0.22);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out),
    border-radius 0.45s var(--ease-out), font-size 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.friend-side {
  display: flex;
  align-items: center;
  gap: 7px;
}
.friend-no {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.friend-expand {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: transform 0.45s var(--ease-out), background 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}
.friend-expand:hover,
.friend-expand:focus-visible {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-ink);
}
.friend-expand:focus-visible { outline-offset: 2px; }
.friend-expand-icon {
  position: relative;
  width: 11px;
  height: 11px;
}
.friend-expand-icon::before,
.friend-expand-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
}
.friend-expand-icon::before {
  top: 0;
  left: 5px;
  width: 1px;
  height: 11px;
}
.friend-expand-icon::after {
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
}
.friend-card.is-open .friend-expand {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-ink);
  transform: rotate(45deg);
}
.friend-card.is-open .friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 22px;
  transform: rotate(-2deg);
}
.friend-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  transition: font-size 0.35s var(--ease-out);
}
.friend-handle {
  margin-top: 1px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}
.friend-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.65;
}
.friend-card.is-open .friend-name {
  margin-top: 3px;
  font-size: 24px;
}
.friend-card.is-open .friend-handle { font-size: 8px; }
.friend-card.is-open .friend-desc {
  display: block;
  overflow: visible;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.8;
  -webkit-line-clamp: unset;
}
.friend-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.friend-card.is-open .friend-foot { display: none; }
.friend-site {
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-go {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: transform 0.35s var(--ease-out), background 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}
.friend-go .icon { width: 11px; height: 11px; }
.friend-card:hover .friend-go {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-ink);
  transform: rotate(4deg) scale(1.04);
}
.friend-card.is-demo .friend-site { color: var(--ink-4); }

/* 点开后多出来的内容：标签 / 小站手记 / 真正的访问按钮 */
.friend-extra {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease-out), margin 0.5s var(--ease-out),
    opacity 0.3s ease, visibility 0s linear 0.5s;
}
.friend-extra-inner {
  min-height: 0;
  overflow: hidden;
}
.friend-card.is-open .friend-extra {
  grid-template-rows: 1fr;
  margin-top: 11px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.friend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.friend-tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.4;
}
.friend-note {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-wash);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.8;
}
.friend-note::before {
  content: "小站手记";
  display: block;
  margin-bottom: 2px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}
.friend-extra-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.friend-extra-foot .friend-site { max-width: 62%; }
.friend-visit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 9.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), background 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
}
.friend-visit:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}
.friend-visit.is-demo {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink-2);
}
.friend-visit.is-demo:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

@keyframes friendOpenIn {
  from {
    clip-path: inset(10% 12% 10% 12% round 18px);
    opacity: 0.58;
  }
  to {
    clip-path: inset(0 0 0 0 round 18px);
    opacity: 1;
  }
}

@keyframes friendCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.friend-empty {
  margin-top: 12px;
  padding: 34px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  color: var(--ink-3);
  font-size: 11px;
  text-align: center;
}

.friend-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 25px;
  padding: 25px 29px;
  border-radius: var(--radius-lg);
}
.friend-apply-copy h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.friend-apply-copy p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.8;
}
.friend-apply-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: none;
  flex-wrap: wrap;
}
.friend-apply-actions .btn { min-height: 44px; }

.friends-note {
  position: relative;
  z-index: 2;
  padding: 8px 0 52px;
}
.friends-note-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}
.friends-note-mark { color: var(--accent); font-size: 16px; }
.friends-note-inner p { max-width: 650px; }

/* ==========================================================================
   10. 页脚 / 返回顶部 / 灯箱 / 弹窗 / 提示条
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}
.footer-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.8fr;
  gap: 30px;
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-desc {
  max-width: 300px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.85;
}
.footer-col h3 {
  margin-bottom: 13px;
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-links a,
.footer-links button {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  transition: color 0.25s ease;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--accent-ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.7;
}
.footer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 9px;
  transition: color 0.25s ease;
}
.footer-tool:hover { color: var(--accent-ink); }
.footer-tool .icon { width: 13px; height: 13px; }
.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  color: var(--ink-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out),
    visibility 0.35s, color 0.25s ease, background 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--btn);
  color: var(--btn-ink);
}

/* 对话框基础 */
dialog {
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(22, 17, 23, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox {
  width: min(1100px, calc(100vw - 36px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 17px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.contact-dialog {
  width: min(450px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}
.dialog-card {
  position: relative;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lift);
  animation: dialogIn 0.35s var(--ease-out);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--ink-3);
  transition: background 0.25s ease, color 0.25s ease;
}
.dialog-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.dialog-card h2 {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}
.dialog-card > p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.85;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.dialog-actions .btn { min-height: 42px; }

/* ==========================================================================
   10.5 小站设置：画质 / 极简模式 / 我的日志
   --------------------------------------------------------------------------
   一张大卡片装下所有设置；「我的日志」在卡片内部切换成一个子页，
   两者共用同一套边框、圆角、字号和动效，保证是同一个世界里的东西。
   ========================================================================== */
.settings-btn { position: relative; }
.settings-btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.65s var(--ease-out), color 0.25s ease;
}
.settings-btn:hover .icon { transform: rotate(60deg); }

/* 对话框本身只负责定位，外观全部由卡片来画 */
.settings-dialog {
  width: min(760px, calc(100vw - 40px));
  max-width: none;
  max-height: min(90vh, 880px);
  max-height: min(90svh, 880px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.settings-dialog::backdrop {
  background: rgba(26, 19, 28, 0.5);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}
.settings-dialog[open] .settings-card {
  animation: settingsCardIn 0.48s var(--ease-out) both;
}
@keyframes settingsCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.settings-card {
  position: relative;
  max-height: min(90vh, 880px);
  max-height: min(90svh, 880px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background:
    radial-gradient(128% 96% at 0% 0%, var(--accent-wash), transparent 58%),
    linear-gradient(155deg, var(--panel-1), var(--panel-2));
  box-shadow: 0 46px 110px -46px rgba(48, 30, 42, 0.6),
    inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  backdrop-filter: blur(26px) saturate(155%);
}
.settings-card::-webkit-scrollbar { width: 7px; }
.settings-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
  background-color: var(--line-2);
}

/* 两个视图共用的排版 */
.settings-view { padding: clamp(22px, 3.2vw, 34px); }
.settings-view[hidden] { display: none; }
.settings-view.view-in-right { animation: settingsViewRight 0.46s var(--ease-out) both; }
.settings-view.view-in-left { animation: settingsViewLeft 0.46s var(--ease-out) both; }
@keyframes settingsViewRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes settingsViewLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.settings-heading { min-width: 0; }
.settings-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 33px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.settings-title .dot { color: var(--accent-strong); }
.settings-sub {
  max-width: 46ch;
  margin-top: 11px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.85;
}
.settings-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-2);
  transition: background 0.28s ease, color 0.25s ease,
    border-color 0.28s ease, transform 0.35s var(--ease-out);
}
.settings-close:hover {
  background: var(--surface-solid);
  border-color: var(--line-2);
  color: var(--ink);
  transform: scale(1.06);
}
.settings-close .icon { width: 16px; height: 16px; }

/* 「我的日志」入口 */
.settings-log-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--surface-soft), transparent 70%);
  text-align: left;
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease,
    background 0.3s ease, box-shadow 0.45s ease;
}
.settings-log-entry:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-wash), transparent 70%);
  box-shadow: 0 22px 46px -30px rgba(120, 60, 80, 0.55);
}
.settings-log-entry:active { transform: translateY(-1px) scale(0.996); }
.log-entry-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.log-entry-icon .icon { width: 21px; height: 21px; }
.log-entry-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.log-entry-eyebrow {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.log-entry-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.log-entry-note {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.log-entry-side {
  display: flex;
  align-items: center;
  flex: none;
  gap: 9px;
  color: var(--ink-3);
}
.log-entry-ver {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}
.log-entry-side .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out), color 0.3s ease;
}
.settings-log-entry:hover .log-entry-side .icon {
  color: var(--accent-ink);
  transform: translateX(3px);
}

/* 画质 + 极简模式：同一排，但各自独立 */
.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  margin-top: 14px;
}
.settings-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.block-label {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.quality-value {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.3s ease, background 0.3s ease;
}

/* 三档滑轨：轨道、三个刻度、一个可拖的圆钮 */
.quality-rail {
  position: relative;
  height: 42px;
  margin-top: 12px;
}
.quality-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-2);
}
.quality-fill {
  display: block;
  width: calc(12px + (100% - 24px) * var(--ratio, 1));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px -2px var(--accent-strong);
  transition: width 0.5s var(--ease-out);
}
.quality-stops {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.quality-stops i {
  width: 5px;
  height: 5px;
  margin: 0 -2.5px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 0 0 1px var(--line-2);
}
.quality-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.quality-range:focus { outline: none; }
.quality-range:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 999px;
}
.quality-range::-webkit-slider-runnable-track {
  height: 42px;
  border: 0;
  background: transparent;
}
.quality-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: 9px;
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 8px 18px -8px rgba(110, 55, 75, 0.7),
    0 0 0 5px var(--accent-wash);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease;
}
.quality-range:hover::-webkit-slider-thumb { transform: scale(1.06); }
.quality-range:active::-webkit-slider-thumb { transform: scale(1.14); }
.quality-range::-moz-range-track {
  height: 42px;
  border: 0;
  background: transparent;
}
.quality-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 8px 18px -8px rgba(110, 55, 75, 0.7),
    0 0 0 5px var(--accent-wash);
}
.quality-range::-moz-focus-outer { border: 0; }

.quality-scale {
  position: relative;
  height: 26px;
  margin-top: 2px;
}
.quality-tick {
  position: absolute;
  top: 0;
  left: calc(12px + (100% - 24px) * var(--pos, 0));
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.28s ease, background 0.28s ease,
    transform 0.28s var(--ease-out);
}
.quality-tick:hover { color: var(--ink); background: var(--surface-solid); }
.quality-tick.is-active { color: var(--accent-ink); font-weight: 600; }

.block-hint {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.7;
}
.quality-block .block-hint { min-height: 2.6em; }

/* 极简模式：和画质滑块并排，但是独立的一块 */
.settings-block.is-overridden { border-color: var(--line); }
.mini-block { display: flex; flex-direction: column; }
.mini-block.is-on { border-color: var(--accent); }
.mini-block .block-desc {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.75;
}
.mini-block .block-hint {
  margin-top: auto;
  padding-top: 8px;
  font-size: 9.5px;
}
.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-mute);
  box-shadow: inset 0 1px 2px rgba(56, 48, 58, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease;
}
/* 让开关的实际可点区域更大，手机上更好按 */
.switch::before {
  content: "";
  position: absolute;
  inset: -9px -6px;
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 4px 10px -4px rgba(60, 40, 50, 0.6);
  transition: transform 0.4s var(--ease-out), background 0.3s ease;
}
.switch[aria-checked="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.switch[aria-checked="true"] .switch-thumb { transform: translateX(21px); }

.settings-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* 日志子页 */
.settings-head--log { align-items: center; }
.log-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11px;
  transition: color 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, transform 0.35s var(--ease-out);
}
.log-back .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease-out);
}
.log-back:hover {
  border-color: var(--accent);
  background: var(--surface-solid);
  color: var(--ink);
}
.log-back:hover .icon { transform: translateX(-2px); }
.log-heading { margin-top: 18px; }
.log-list { display: grid; margin-top: 20px; }
.log-entry {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 22px;
  animation: logEntryIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.log-entry:last-child { padding-bottom: 0; }
@keyframes logEntryIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.log-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.log-rail::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: -22px;
  left: 50%;
  width: 1px;
  background: var(--line-2);
}
.log-entry:last-child .log-rail::before { display: none; }
.log-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  box-shadow: 0 0 0 4px var(--surface-soft);
}
.log-entry.is-latest .log-dot {
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.log-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.log-ver {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.log-entry.is-latest .log-ver { color: var(--accent-ink); }
.log-date {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.log-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.log-title {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.log-items {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.log-items li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}
.log-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* 设置打开时锁住页面滚动 */
body.panel-open { overflow: hidden; }

@media (max-width: 760px) {
  .settings-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
  }
  .settings-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 26px;
  }
  .settings-view { padding: 22px 18px 20px; }
  .settings-title { margin-top: 12px; font-size: 25px; }
  .settings-sub { font-size: 11.5px; }
  .settings-log-entry {
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 18px;
  }
  .log-entry-icon { width: 40px; height: 40px; border-radius: 13px; }
  .log-entry-title { font-size: 17px; }
  .log-entry-note { font-size: 10px; }
  .log-entry-ver { display: none; }
  .settings-row { grid-template-columns: 1fr; gap: 11px; }
  .settings-block { padding: 16px; border-radius: 18px; }
  .quality-block .block-hint { min-height: 0; }
  .mini-block .block-desc { margin-top: 10px; }
  .mini-block .block-hint { padding-top: 6px; }
  .log-back { padding: 6px 12px 6px 8px; }
  .log-heading { margin-top: 16px; }
  .log-title { font-size: 16px; }
  .log-items li { font-size: 11px; }
  .settings-foot { margin-top: 15px; padding-top: 12px; font-size: 9px; }
}

@media (max-width: 380px) {
  .settings-dialog { width: calc(100vw - 16px); }
  .settings-view { padding: 19px 15px 17px; }
  .settings-title { font-size: 23px; }
  .settings-close { width: 32px; height: 32px; }
  .quality-tick { font-size: 9.5px; }
  .log-entry-icon { display: none; }
  .settings-log-entry { gap: 10px; padding: 13px; }
}

/* 提示条 */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 27px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}
.toast {
  max-width: 86vw;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: var(--btn);
  box-shadow: var(--shadow-lift);
  color: var(--btn-ink);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }

/* 404 页面 */
.notfound {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 148px 20px 72px;
}
.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  text-align: center;
}
.notfound-code {
  margin: 16px 0 -23px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(108px, 20vw, 220px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  opacity: 0.18;
  user-select: none;
}
.notfound-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
}
.notfound-title .dot { color: var(--accent-strong); }
.notfound-lead {
  margin-top: 17px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.95;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
}

/* 页面淡出 */
html.is-leaving .site-header,
html.is-leaving main,
html.is-leaving .site-footer {
  opacity: 0;
  transition: opacity 0.17s ease;
}

/* ==========================================================================
   11. 响应式：认真排版手机端
   ========================================================================== */
@media (max-width: 1120px) {
  .hero-vertical { display: none; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-tags { grid-column: auto; min-height: 0; }
  .guide-tags .tag-list { margin-top: 14px; }
  .guide-more { padding-top: 20px; }
  .split-grid { grid-template-columns: 1.2fr 0.8fr; }
  .stat strong { font-size: 32px; }
  .connect-grid { gap: 13px; }
  .connect-card { padding: 22px; }
  .place-grid { grid-auto-rows: 195px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-tools { margin-left: auto; }
  .nav-shell { gap: 12px; }
  .site-header { padding: 0 18px; top: 12px; }

  .hero { padding-top: 87px; }
  .hero-shell {
    width: calc(100% - 36px);
    height: min(75svh, 690px);
    min-height: 550px;
  }
  .hero-content { padding: 62px 22px 112px; }
  .hero-bottom { left: 22px; right: 22px; }
  .hero-top { left: 22px; right: 22px; top: 23px; }

  .page-hero { padding-top: 128px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .profile-card { justify-self: start; max-width: 380px; transform: none; }
  .profile-card:hover { transform: translateY(-4px); }

  .story-grid,
  .history-grid,
  .memory-grid,
  .taste-layout { grid-template-columns: 1fr; gap: 36px; }
  .story-aside,
  .history-aside { position: static; }
  .story-aside-note { max-width: 440px; }
  .dialect-card { position: static; }

  .connect-grid { grid-template-columns: 1fr 1fr; }
  .connect-card:last-child { grid-column: span 2; min-height: 160px; }
  .guestbook { grid-template-columns: 1fr; }
  .guest-list { max-height: none; }

  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(1),
  .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .keyword-grid { grid-template-columns: 1fr; }
  .keyword-card { min-height: 225px; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before {
    left: 6px;
    right: auto;
    top: 0;
    bottom: 26px;
    width: 1px;
    height: auto;
  }
  .timeline-item { padding: 0 0 27px 30px; }
  .timeline-item::before { top: 5px; left: 0; }
  .timeline-item p { max-width: 540px; }

  .place-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .place-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .place-card:nth-child(2),
  .place-card:nth-child(3) { grid-column: span 1; }
  .place-card:nth-child(4) { grid-column: span 2; }

  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 175px; }
  .photo-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .photo-item:nth-child(1) { grid-column: span 2; }

  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .now-head { align-items: flex-start; flex-direction: column; gap: 17px; }
  .now-grid { grid-template-columns: 1fr; padding: 22px 0; }
  .now-item {
    padding: 17px 0 0;
    margin-top: 17px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .now-item:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .now-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 700px) {
  :root { --header-offset: 94px; }

  /* 手机竖屏时，把第一张壁纸的构图往右挪一点，别把角色的脸裁掉 */
  .hero-slide:nth-child(1) img { object-position: 70% 38%; }
  .hero-slide:nth-child(2) img { object-position: 56% 44%; }
  .hero-slide:nth-child(3) img { object-position: 52% 44%; }
  .page-hero::before { display: none; }
  .story-body { padding-top: 0; }

  .shell { width: calc(100% - 36px); }
  .section { padding: 63px 0; }
  .section--tight { padding-top: 26px; }
  .section--last { padding-bottom: 70px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 27px;
  }
  .section-note {
    max-width: none;
    text-align: left;
    font-size: 12px;
  }
  .section-title { font-size: clamp(29px, 8.8vw, 38px); margin-top: 12px; }

  .hero { padding-top: 79px; }
  .hero-shell {
    width: calc(100% - 24px);
    height: min(78svh, 660px);
    min-height: 545px;
    border-radius: 27px;
  }
  .hero-shell::after { inset: 9px; border-radius: 19px; }
  /* 手机竖屏改成左对齐：文字在左侧，角色留在右侧，脸不会被头像和标题压住 */
  .hero-content {
    align-items: flex-start;
    padding: 66px 24px 104px;
    text-align: left;
  }
  .hero-avatar { margin-left: 0; }
  .hero-title { align-items: flex-start; }
  .hero-title-en { justify-content: flex-start; }
  .hero-swap { justify-content: flex-start; }
  .hero-swap p { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn { flex: 0 1 auto; max-width: none; }
  .hero-top { top: 17px; left: 16px; right: 16px; }
  .hero-chip { padding: 6px 10px; font-size: 8px; letter-spacing: 0.12em; }
  .hero-time { font-size: 9px; }
  .hero-avatar { width: 84px; height: 84px; margin-bottom: 18px; }
  .hero-eyebrow { font-size: 7.5px; letter-spacing: 0.28em; }
  .hero-title { margin-top: 11px; gap: 7px; }
  .hero-title-cn { font-size: clamp(40px, 12.4vw, 55px); }
  .hero-title-en { font-size: 8px; letter-spacing: 0.34em; gap: 9px; }
  .hero-title-en::before,
  .hero-title-en::after { width: 19px; }
  .hero-swap { margin-top: 16px; }
  .hero-swap p {
    padding: 6px 14px;
    font-size: 12.5px;
    letter-spacing: 0.03em;
  }
  .hero-actions { width: 100%; justify-content: flex-start; gap: 8px; margin-top: 21px; }
  .hero-actions .btn {
    flex: 0 1 auto;
    max-width: none;
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }
  .hero-bottom {
    left: 15px;
    right: 15px;
    bottom: 16px;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .hero-controls { justify-self: end; gap: 7px; }
  .hero-arrow,
  .hero-pause { width: 35px; height: 35px; }
  .hero-dots { gap: 5px; padding: 0 2px; }
  .hero-dot.is-active { width: 18px; }
  .hero-caption { display: none; }
  .hero-petals span:nth-child(n + 4) { display: none; }

  .page-hero { padding-top: 114px; padding-bottom: 24px; }
  .page-hero::before { top: 74px; font-size: 115px; right: -8px; }
  .breadcrumb { margin-bottom: 22px; font-size: 10px; color: var(--ink-2); }
  .page-title { font-size: clamp(38px, 11vw, 54px); margin-top: 13px; }
  .page-lead { margin-top: 15px; font-size: 14px; line-height: 1.9; }
  .page-meta { margin-top: 18px; gap: 6px; }
  .page-meta span { font-size: 9.5px; padding: 5px 9px; }
  .page-hero-actions { margin-top: 23px; }
  .page-hero-actions .btn { min-height: 44px; font-size: 12px; }
  .profile-card { max-width: 100%; padding: 27px 20px 21px; }
  .profile-avatar { width: 126px; height: 126px; }
  .profile-sticker { right: 6px; width: 51px; height: 51px; font-size: 17px; }

  .guide-grid { grid-template-columns: 1fr; gap: 13px; }
  .guide-tags { grid-column: auto; }
  .guide-card { min-height: 235px; padding: 23px; }
  .guide-avatar { width: 68px; height: 68px; }
  .guide-body { margin-top: 23px; }
  .guide-card h3 { font-size: 23px; }
  .guide-stamp { width: 72px; height: 72px; }
  .guide-stamp span { font-size: 32px; }
  .circle-arrow { right: 19px; bottom: 19px; }

  .now-panel { padding: 23px 20px; border-radius: 27px; }
  .now-panel .section-title { font-size: 30px; }
  .now-live { font-size: 10px; padding: 7px 12px; }
  .now-item h3 { font-size: 21px; }

  .moment-grid {
    display: flex;
    gap: 12px;
    padding: 0 0 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .moment-grid::-webkit-scrollbar { display: none; }
  .moment,
  .moment:first-child {
    flex: 0 0 82%;
    height: 300px;
    grid-row: auto;
    scroll-snap-align: start;
  }
  .moment-cap { font-size: 15px; }

  .split-grid { grid-template-columns: 1fr; gap: 13px; }
  .quote-card { min-height: 285px; padding: 25px; border-radius: 27px; }
  #dailyQuote { margin-top: 29px; font-size: 21px; }
  .stats-card { padding: 24px; border-radius: 27px; }
  .stats-note { padding-top: 16px; }

  .connect-grid { grid-template-columns: 1fr; gap: 12px; }
  .connect-card,
  .connect-card:last-child { grid-column: auto; min-height: 0; padding: 22px; }
  .connect-card p { max-width: 330px; }
  .connect-icon { margin-bottom: 15px; }

  .story-aside .section-title { font-size: 33px; }
  .story-body p { font-size: 13px; line-height: 1.95; }
  .story-quote { font-size: 16px; }

  .interest-grid { grid-template-columns: 1fr; gap: 12px; }
  .interest-card { padding: 23px; }

  .timeline-item h3 { font-size: 20px; }

  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 148px; gap: 10px; }
  .photo-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .photo-item:nth-child(5) { grid-column: span 2; }
  .photo-cap { left: 13px; right: 13px; bottom: 11px; }
  .photo-cap strong { font-size: 13px; }

  .guestbook { padding: 22px; border-radius: 27px; gap: 28px; }
  .guestbook .section-title { font-size: 31px; }
  .guestbook-list-wrap { padding-top: 3px; }
  .guest-item { padding: 12px 13px; }
  .guest-delete { opacity: 1; }

  .footer-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 27px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .back-to-top { right: 16px; bottom: 16px; width: 41px; height: 41px; }
  .toast-stack { bottom: 18px; }

  .postcard-wrap {
    width: 100%;
    max-width: 520px;
    justify-self: start;
    padding: 11px;
    transform: none;
    animation: none;
  }
  .postcard { border-radius: 17px; }
  .postcard-meta { top: 11px; left: 12px; }
  .postmark { top: 13px; right: 13px; width: 60px; height: 60px; font-size: 5.8px; }
  .postcard-caption { left: 13px; bottom: 12px; font-size: 6.5px; }
  .postcard-stamp { right: 13px; bottom: 12px; width: 35px; height: 41px; font-size: 18px; }
  .tape-1 { left: 27px; }
  .tape-2 { right: 31px; }

  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 21px 15px; }
  .fact strong { font-size: clamp(34px, 9vw, 43px); }
  .fact > span { font-size: 10.5px; }
  .fact p { display: none; }
  .source-note { text-align: left; }

  .keyword-grid { grid-template-columns: 1fr; gap: 12px; }
  .keyword-card { min-height: 0; padding: 23px; }
  .keyword-card h3 { font-size: 23px; }
  .keyword-watermark { font-size: 120px; bottom: -36px; }
  .keyword-badge { margin-top: 18px; }

  .history-aside .section-title { font-size: 32px; }
  .history-timeline { padding-left: 23px; }
  .history-item::before { left: -22px; }
  .history-item h3 { font-size: 19px; }

  .place-grid { grid-template-columns: 1fr; grid-auto-rows: 225px; gap: 11px; }
  .place-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .place-card:nth-child(1) { height: 285px; }
  .place-title { font-size: 21px; }
  .more-places { gap: 6px; }
  .more-place { font-size: 9px; }

  .taste-grid { grid-template-columns: 1fr; gap: 10px; }
  .taste-card { padding: 19px; }
  .dialect-card { padding: 23px; border-radius: 25px; }
  .dialect-word { font-size: 50px; margin-top: 18px; }

  .memory-grid { gap: 30px; }
  .memory-prose > p { font-size: 12.5px; }
  .memory-card { padding: 29px; transform: none; }
  .memory-actions .btn { min-height: 43px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 28px); }
  .site-header { padding: 0 12px; }
  .nav-shell { padding: 8px 10px 8px 13px; min-height: 58px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; font-size: 18px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 6.5px; letter-spacing: 0.2em; }
  .nav-tools { gap: 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .menu-toggle { width: 37px; height: 37px; }

  .hero-shell { width: calc(100% - 16px); min-height: 520px; }
  .hero-content { padding: 62px 12px 98px; }
  .hero-title-cn { font-size: 39px; }
  .hero-avatar { width: 76px; height: 76px; }
  .hero-actions .btn { min-height: 42px; font-size: 11.5px; padding: 0 10px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-arrow,
  .hero-pause { width: 33px; height: 33px; }
  .hero-dots { gap: 4px; }
  .hero-dot.is-active { width: 15px; }
  .hero-top { left: 13px; right: 13px; }
  .hero-bottom { left: 12px; right: 12px; }

  .section-title { font-size: 28px; }
  .page-title { font-size: 35px; }
  .fact { padding: 18px 12px; }
  .fact strong { font-size: 32px; }
  .fact strong .unit { font-size: 10px; }
  .stat strong { font-size: 29px; }
  .postmark { display: none; }
  .photo-grid { grid-auto-rows: 132px; }
}

/* 横屏手机 / 小高度屏幕 */
@media (max-height: 690px) and (max-width: 960px) {
  .hero { padding-top: 76px; }
  .hero-shell { height: 88svh; min-height: 480px; }
  .hero-content { padding-top: 52px; padding-bottom: 86px; }
  .hero-avatar { width: 68px; height: 68px; margin-bottom: 13px; }
  .hero-title-cn { font-size: 38px; }
  .hero-swap { margin-top: 12px; }
  .hero-actions { margin-top: 16px; }
  .hero-bottom { bottom: 12px; }
}

/* 好友页专用响应式：4 列 -> 3 列 -> 2 列 -> 1 列 */
@media (max-width: 1000px) {
  .friend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .friend-rule { padding: 0 16px; }
}

@media (max-width: 960px) {
  .friend-hero-card {
    justify-self: start;
    max-width: 390px;
    transform: none;
  }
  .friend-rules {
    grid-template-columns: 1fr 1fr;
    padding: 22px 24px;
  }
  .friend-rule { padding: 0 18px; }
  .friend-rule:nth-child(3) { padding-left: 0; border-left: 0; }
  .friend-rule:nth-child(1),
  .friend-rule:nth-child(2) {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .friend-rule:nth-child(3),
  .friend-rule:nth-child(4) { padding-top: 18px; }
  .friend-board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .friend-demo-note {
    max-width: none;
    text-align: left;
  }
  .friend-apply {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .friend-hero-card {
    width: 100%;
    max-width: 100%;
    padding: 23px 20px 19px;
  }
  .friend-orbit {
    width: 204px;
    height: 204px;
    margin-bottom: 12px;
  }
  .orbit-ring { inset: 22px; }
  .orbit-center { width: 56px; height: 56px; font-size: 23px; }
  .orbit-avatar { width: 36px; height: 36px; font-size: 14px; }
  .orbit-1 { top: 11px; left: 27px; }
  .orbit-2 { top: 35px; right: 8px; }
  .orbit-3 { bottom: 20px; right: 27px; }
  .orbit-4 { bottom: 11px; left: 14px; }
  .friend-hero-title { font-size: 21px; }

  .friend-rules {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .friend-rule,
  .friend-rule:nth-child(n) {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    border-left: 0;
  }
  .friend-rule:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .friend-rule:last-child { padding-bottom: 0; }
  .friend-rule h3 { font-size: 17px; }

  .friend-board-head { margin-top: 28px; }
  .friend-board-head h3 { font-size: 21px; }

  .friend-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .friend-tools { width: 100%; }
  .friend-search { flex: 1; }
  .friend-search input { width: 100%; }

  .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .friend-card {
    min-height: 168px;
    padding: 14px 14px 12px;
    border-radius: 16px;
  }
  .friend-card.is-open {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
    padding: 20px;
    border-radius: 18px;
  }
  .friend-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .friend-card.is-open .friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 19px;
  }
  .friend-name { font-size: 16px; }
  .friend-card.is-open .friend-name { font-size: 21px; }
  .friend-desc { font-size: 9.5px; -webkit-line-clamp: 3; }
  .friend-card.is-open .friend-desc { font-size: 11.5px; -webkit-line-clamp: unset; }
  .friend-site { font-size: 8.5px; }
  .friend-note { font-size: 10.5px; }

  .friend-apply { padding: 22px 20px; }
  .friend-apply-copy h3 { font-size: 21px; }
  .friend-apply-actions { width: 100%; }

  .friends-note { padding-bottom: 38px; }
  .friends-note-inner {
    flex-direction: column;
    gap: 8px;
    padding-top: 22px;
  }
}

@media (max-width: 430px) {
  .friend-tools { flex-wrap: wrap; }
  .friend-search { flex: 1 1 100%; }
  .friend-random { width: 100%; justify-content: center; }
  .friend-status-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .friend-tip { margin-left: 0; }
  .friend-apply-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 340px) {
  .friend-grid { grid-template-columns: 1fr; }
  .friend-card { min-height: 150px; }
  .friend-card.is-open {
    grid-column: span 1;
    min-height: 0;
  }
}

/* ==========================================================================
   12. 减少动态 / 省电模式 / 不支持毛玻璃的降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .has-reveal .reveal,
  .has-reveal .reveal.is-inview {
    opacity: 1;
    transform: none;
  }
  .hero-petals,
  .cursor-glow { display: none; }
  .hero-slide img,
  .hero-slide.is-active img { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .nav-shell,
  .postcard-wrap,
  .mobile-menu__panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface-solid);
  }
}

/* 浏览器不支持 backdrop-filter 时，用更实的半透明底色保证可读性 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .nav-shell,
  .postcard-wrap,
  .mobile-menu__panel {
    background: var(--surface-solid);
  }
}

/* 省电模式：保留版式与配色，但去掉最耗显卡的毛玻璃和位移动画 */
.reduce-fx .glass,
.reduce-fx .nav-shell,
.reduce-fx .postcard-wrap,
.reduce-fx .mobile-menu__panel,
.reduce-fx .hero-chip,
.reduce-fx .hero-swap p,
.reduce-fx .hero-arrow,
.reduce-fx .hero-pause,
.reduce-fx .moment-hint,
.reduce-fx .photo-zoom,
.reduce-fx .place-index,
.reduce-fx .postcard-meta,
.reduce-fx .lightbox-close {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.reduce-fx .glass,
.reduce-fx .nav-shell,
.reduce-fx .postcard-wrap,
.reduce-fx .mobile-menu__panel { background: var(--surface-solid); }
.reduce-fx .hero-chip,
.reduce-fx .hero-swap p,
.reduce-fx .hero-arrow,
.reduce-fx .hero-pause {
  background: rgba(30, 26, 32, 0.55);
}
.reduce-fx .hero-petals,
.reduce-fx .cursor-glow,
.reduce-fx .orb { display: none; }
.reduce-fx .hero-slide img,
.reduce-fx .hero-slide.is-active img {
  transform: none;
  transition: none;
}
.reduce-fx .postcard-wrap,
.reduce-fx .car-float,
.reduce-fx .cloud-a,
.reduce-fx .cloud-b { animation: none !important; }
.reduce-fx .guide-card:hover,
.reduce-fx .connect-card:hover,
.reduce-fx .keyword-card:hover,
.reduce-fx .interest-card:hover,
.reduce-fx .taste-card:hover,
.reduce-fx .photo-item:hover img,
.reduce-fx .place-card:hover img,
.reduce-fx .moment:hover img { transform: none; }
.reduce-fx .has-reveal .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reduce-fx .orbit-ring,
.reduce-fx .orbit-avatar,
.reduce-fx .friend-card,
.reduce-fx .friend-card.is-open { animation: none !important; }
.reduce-fx .friend-card:hover { transform: none; }
.reduce-fx .friend-card,
.reduce-fx .friend-avatar,
.reduce-fx .friend-expand,
.reduce-fx .friend-extra,
.reduce-fx .cluster-avatar,
.reduce-fx .cluster-heart { transition: none !important; }

/* 设置卡片也遵守极简模式：不要毛玻璃，不要切页动画 */
.reduce-fx .settings-card,
.reduce-fx .settings-dialog::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.reduce-fx .settings-card { background: var(--surface-solid); }
.reduce-fx .settings-dialog::backdrop { background: rgba(22, 17, 23, 0.56); }
.reduce-fx .settings-card,
.reduce-fx .settings-view,
.reduce-fx .log-entry { animation: none !important; }
.reduce-fx .settings-close:hover,
.reduce-fx .settings-log-entry:hover,
.reduce-fx .log-back:hover,
.reduce-fx .quality-range:hover::-webkit-slider-thumb,
.reduce-fx .quality-range:active::-webkit-slider-thumb { transform: none; }
.reduce-fx .quality-fill,
.reduce-fx .quality-tick,
.reduce-fx .switch,
.reduce-fx .switch-thumb { transition: none; }
.reduce-fx .quality-range::-webkit-slider-thumb { transition: none; }

/* ==========================================================================
   12.5 低 / 中特效
   --------------------------------------------------------------------------
   中特效：把毛玻璃调薄，动效基本保留；
   低特效：收起毛玻璃和装饰粒子，动效还在，但节奏更短、更安静。
   极简模式（.reduce-fx）优先级最高，会再盖一层。
   ========================================================================== */
[data-fx="mid"] .glass {
  -webkit-backdrop-filter: blur(11px) saturate(132%);
  backdrop-filter: blur(11px) saturate(132%);
}
[data-fx="mid"] .nav-shell,
[data-fx="mid"] .mobile-menu__panel,
[data-fx="mid"] .settings-card {
  -webkit-backdrop-filter: blur(13px) saturate(138%);
  backdrop-filter: blur(13px) saturate(138%);
}
[data-fx="mid"] .grain { opacity: 0.03; }
[data-fx="mid"] .bg-decor { opacity: 0.82; }

[data-fx="low"] .glass,
[data-fx="low"] .nav-shell,
[data-fx="low"] .postcard-wrap,
[data-fx="low"] .mobile-menu__panel,
[data-fx="low"] .hero-chip,
[data-fx="low"] .hero-swap p,
[data-fx="low"] .hero-arrow,
[data-fx="low"] .hero-pause,
[data-fx="low"] .moment-hint,
[data-fx="low"] .photo-zoom,
[data-fx="low"] .place-index,
[data-fx="low"] .postcard-meta,
[data-fx="low"] .lightbox-close,
[data-fx="low"] .settings-card,
[data-fx="low"] .settings-dialog::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
[data-fx="low"] .glass,
[data-fx="low"] .nav-shell,
[data-fx="low"] .postcard-wrap,
[data-fx="low"] .mobile-menu__panel,
[data-fx="low"] .settings-card { background: var(--surface-solid); }
[data-fx="low"] .settings-dialog::backdrop { background: rgba(26, 19, 28, 0.5); }
[data-fx="low"] .hero-chip,
[data-fx="low"] .hero-swap p,
[data-fx="low"] .hero-arrow,
[data-fx="low"] .hero-pause { background: rgba(30, 26, 32, 0.58); }
[data-fx="low"] .hero-petals,
[data-fx="low"] .cursor-glow { display: none; }
[data-fx="low"] .orbit-ring,
[data-fx="low"] .orbit-avatar,
[data-fx="low"] .car-float,
[data-fx="low"] .cloud-a,
[data-fx="low"] .cloud-b,
[data-fx="low"] .postcard-wrap { animation: none !important; }
[data-fx="low"] .orb { animation: none !important; }
[data-fx="low"] .hero-slide img,
[data-fx="low"] .hero-slide.is-active img {
  transform: none;
  transition: none;
}
[data-fx="low"] .settings-view.view-in-right,
[data-fx="low"] .settings-view.view-in-left { animation-duration: 0.3s; }
[data-fx="low"] .log-entry {
  animation-duration: 0.32s;
  animation-delay: calc(var(--i, 0) * 28ms);
}
[data-fx="low"] .reveal { transition-duration: 0.42s; }
[data-fx="low"] .grain { opacity: 0.025; }

/* 减少透明度 / 不支持毛玻璃时，设置卡片也退回实体底 */
@media (prefers-reduced-transparency: reduce) {
  .settings-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface-solid);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .settings-card { background: var(--surface-solid); }
}

/* 打印时隐藏装饰，保留正文 */
@media print {
  .bg-decor,
  .grain,
  .cursor-glow,
  .scroll-progress,
  .site-header,
  .mobile-menu,
  .hero-petals,
  .back-to-top,
  .toast-stack,
  .site-footer { display: none !important; }
  body { background: #fff; color: #111; }
  .glass,
  .soft-card { box-shadow: none; background: #fff; border-color: #ddd; }
  .hero { padding: 0; }
  .hero-shell { height: 360px; }
}
