/* ===========================================================
   洛天依 主题静态站 — 样式
   主题色：天依蓝 #66CCFF（浅色柔和版）
   视觉：柔雾壁纸 + 全站毛玻璃（frosted glass）
   配色思路：白雾柔化壁纸 → 白色玻璃面板 → 深蓝灰文字，
             不使用霓虹光晕、不使用高饱和深底，整体偏温和。
   =========================================================== */

:root {
  --tianyi: #66ccff;          /* 主题色，全站唯一强调色 */
  --tianyi-soft: #a8e4ff;     /* 浅一档，用于渐变与高光 */
  --tianyi-deep: #2f88c0;     /* 深一档，用于浅底上的文字/描边 */
  --tianyi-ink: #3d7fa6;      /* 次级强调文字 */
  --pink: #ffd8e6;            /* 柔和点缀（原 #ffc8dd 更艳） */

  --paper: #f2f9ff;           /* 页面底色（壁纸兜底） */
  --text: #33465e;            /* 主文字：深蓝灰，不用纯黑 */
  --text-dim: #61789a;        /* 次级文字 */
  --line: rgba(102, 204, 255, 0.32);

  /* 毛玻璃参数（想更透/更实，只改这两行） */
  --glass-blur: 20px;
  --glass-a: 0.70;   /* 整层面板不透明度 */
  --glass-b: 0.52;   /* 内部卡片不透明度 */

  --card-brd: rgba(255, 255, 255, 0.78);
  --radius: 20px;
  --shadow-soft: 0 10px 24px rgba(86, 132, 172, 0.12);

  /* 白雾浓度：越大壁纸越淡、文字越稳；调小则壁纸更清楚 */
  --veil-1: 0.72;
  --veil-2: 0.78;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { color-scheme: light; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;   /* 手机上点按不要灰色方块 */
  overflow-x: hidden;                          /* 旧浏览器兜底 */
}
/* overflow-x: clip 不会把 overflow-y 也算成 auto，避免 body 自己变成滚动容器 */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

/* 可点元素：去掉双击缩放的 300ms 延迟 */
a, button, .dot, .link-card, .btn, .gender { touch-action: manipulation; }

/* <picture> 只是包一层，不参与布局（图片本身才是布局元素） */
.hero__avatar picture,
.author-card picture { display: contents; }

/* ===========================================================
   1. 背景壁纸层（JS 随机轮换 + 交叉淡入）
   壁纸被柔化 + 白雾罩住，只留轻柔的色彩氛围
   =========================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(160deg, #eef7ff, #e6f2fd 60%, #e9f6ff);
}
.bg__layer {
  position: absolute;
  inset: -4%;                     /* 留边，避免模糊后出现白边 */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(5px) saturate(1.02) brightness(1.06);
  transform: scale(1.06);
  transition: opacity 1.8s ease-in-out;
  will-change: opacity, transform;
}
.bg__layer.is-active { opacity: 1; }
.bg__layer.is-zooming { animation: kenburns 26s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

/* 白雾：压住壁纸细节，让深色文字在浅底上始终可读（也决定了整体色调） */
.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 760px at 16% 6%, rgba(255, 255, 255, 0.55), transparent 64%),
    radial-gradient(900px 720px at 88% 96%, rgba(255, 246, 250, 0.38), transparent 66%),
    linear-gradient(168deg,
      rgba(240, 249, 255, var(--veil-1)) 0%,
      rgba(232, 244, 254, var(--veil-2)) 50%,
      rgba(238, 249, 255, calc(var(--veil-2) + 0.04)) 100%);
}

/* ===========================================================
   2. 纵向分布的“三个页面”
   =========================================================== */
#scroller {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  #scroller { scroll-snap-type: y mandatory; }
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px clamp(18px, 5vw, 72px) 66px;
  background: transparent;        /* 让壁纸透出来 */
  overflow: hidden;               /* 裁掉装饰光晕，避免手机横向溢出 */
}

/* 手机 / 窄屏：不用嵌套滚动容器，改回文档原生滚动
   —— 地址栏能自动收起、边缘回弹正常、没有嵌套滚动的手感问题
   （必须放在上面两条基础规则之后，否则会被覆盖） */
@media (max-width: 899px) {
  #scroller {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
  .page {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: 100vh;
    min-height: 100svh;      /* svh：地址栏收起时页面高度不跳 */
  }
  .bg__layer.is-zooming { animation: none; }   /* 关掉缓慢缩放，省电、低端机更稳 */
  :root { --glass-blur: 14px; }                /* 毛玻璃轻一点，滚动更顺 */
}

/* 整页毛玻璃面板：柔白玻璃 + 极浅投影 */
.page__inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 42px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.80);
  background: linear-gradient(155deg,
      rgba(255, 255, 255, var(--glass-a)),
      rgba(243, 250, 255, var(--glass-b)));
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  box-shadow:
    0 24px 56px rgba(86, 132, 172, 0.18),
    0 2px 6px rgba(86, 132, 172, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 装饰光晕：改成很淡的柔光斑，不再有“能量感” */
.aura {
  position: absolute;
  inset: auto -8% -18% auto;
  width: 58vmin;
  height: 58vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 204, 255, 0.20), transparent 66%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
.aura--alt { inset: -10% auto auto -6%; background: radial-gradient(circle, rgba(168, 228, 255, 0.22), transparent 66%); }
.aura--soft { inset: auto auto -16% 42%; background: radial-gradient(circle, rgba(255, 216, 230, 0.22), transparent 66%); }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, -24px, 0) scale(1.06); }
}

/* ---------- 顶部进度条 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tianyi-soft), var(--tianyi), var(--pink));
  transition: width 0.12s linear;
}

/* ---------- 右侧纵向导航 ---------- */
.dot-nav {
  position: fixed;
  top: 50%;
  right: clamp(8px, 1.4vw, 22px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 8px;
  z-index: 50;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.dot {
  position: relative;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text-dim);
}
/* 触摸热区放大到约 44px（视觉圆点仍是 11px，布局不变） */
.dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}
.dot__ring {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(102, 204, 255, 0.60);
  background: transparent;
  transition: all 0.3s ease;
}
.dot:hover .dot__ring { border-color: var(--tianyi); transform: scale(1.15); }
.dot.is-active .dot__ring {
  background: var(--tianyi);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 204, 255, 0.22);
}
.dot__label {
  position: absolute;
  right: 34px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(102, 204, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.28s ease;
  pointer-events: none;
}
.dot:hover .dot__label,
.dot.is-active .dot__label { opacity: 1; transform: translateX(0); }

/* ---------- 第 1 页 · Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.hero__avatar {
  position: relative;
  width: 148px; height: 148px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.hero__photo {
  width: 124px; height: 124px;
  border-radius: 50%;
  object-fit: cover;                 /* 取景已烘进 avatar.jpg；换成非方图时这里会居中裁切 */
  border: 4px solid #ffffff;
  background: rgba(102, 204, 255, 0.12);
  box-shadow:
    0 0 0 2px rgba(102, 204, 255, 0.40),
    0 14px 30px rgba(86, 132, 172, 0.22);
}
.hero__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(102, 204, 255, 0.60);
  animation: spin 26s linear infinite;
}
.hero__ring::after {
  content: "";
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tianyi-ink);
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: #2f88c0;
  background: linear-gradient(100deg, #2f88c0, var(--tianyi) 62%, var(--tianyi-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__en {
  display: block;
  margin-top: 6px;
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 0.32em;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
}
.hero__slogan { margin: 10px 0 14px; color: var(--text-dim); max-width: 46ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(102, 204, 255, 0.38);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
}
.chip--main {
  color: #10405c;
  background: linear-gradient(120deg, var(--tianyi-soft), var(--tianyi));
  border-color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* ---------- 卡片（毛玻璃） ---------- */
.card {
  background: linear-gradient(155deg,
      rgba(255, 255, 255, calc(var(--glass-b) + 0.14)),
      rgba(240, 249, 255, var(--glass-b)));
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.55), transparent);
  opacity: 0.5;
}
.card__title {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 8px;
  color: #2c5f85;
}
.card__title .ico { color: var(--tianyi); font-size: 15px; }
.card p { margin: 0 0 10px; color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--tianyi-deep); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.profile { margin: 0; display: grid; gap: 4px; }
.profile > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(102, 204, 255, 0.30);
  font-size: 13.6px;
}
.profile > div:last-child { border-bottom: 0; }
.profile dt { color: var(--text-dim); flex: 0 0 auto; }
.profile dd { margin: 0; text-align: right; color: var(--text); }
.swatch {
  display: inline-block; width: 11px; height: 11px; margin-right: 6px;
  border-radius: 3px; background: var(--tianyi); vertical-align: -1px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -23.5px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tianyi);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.timeline time { font-size: 12.5px; letter-spacing: 0.1em; color: var(--tianyi-deep); font-weight: 600; }
.timeline p { margin: 2px 0 0; font-size: 13.8px; color: var(--text); }

.works { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.works li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(102, 204, 255, 0.35);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.22s ease, background 0.22s ease;
}
.works li:hover { transform: translateY(-2px); background: rgba(214, 240, 255, 0.85); }
.hint { font-size: 13px; color: var(--text-dim); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(102, 204, 255, 0.55);
  border-radius: 999px;
  display: grid; place-items: start center;
  padding-top: 7px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--tianyi);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(14px); opacity: 0.3; } }

/* ---------- 第 2 页 · 社交链接 ---------- */
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 4.4vw, 42px);
  letter-spacing: 0.08em;
  color: #2f88c0;
  background: linear-gradient(100deg, #2f88c0, var(--tianyi) 62%, var(--tianyi-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { margin: 0; color: var(--text-dim); font-size: 14px; }

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) { .links { grid-template-columns: 1fr; } }

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "icon body" "btn btn";
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(150deg,
      rgba(255, 255, 255, calc(var(--glass-b) + 0.18)),
      rgba(240, 249, 255, var(--glass-b)));
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 204, 255, 0.60);
  box-shadow: 0 18px 38px rgba(102, 204, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.link-card__icon {
  grid-area: icon;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--tianyi-deep);
  background: rgba(214, 240, 255, 0.72);
  border: 1px solid rgba(102, 204, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.link-card__icon svg { width: 26px; height: 26px; }
.link-card__body { grid-area: body; display: grid; gap: 2px; }
.link-card__name { font-size: 16.5px; font-weight: 600; letter-spacing: 0.03em; color: #2c5f85; }
.link-card__name em { font-style: normal; font-size: 11.5px; letter-spacing: 0.14em; color: var(--text-dim); margin-left: 6px; text-transform: uppercase; font-weight: 400; }
.link-card__handle { font-size: 12.8px; color: var(--tianyi-deep); }
.link-card__desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.btn {
  grid-area: btn;
  justify-self: start;
  margin-top: 4px;
  font-size: 13.5px;
  padding: 9px 22px;
  border-radius: 999px;
  color: #10405c;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(200, 240, 255, 0.98), rgba(102, 204, 255, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(102, 204, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: filter 0.22s ease, transform 0.22s ease;
}
.btn i { font-style: normal; }
.link-card:hover .btn { filter: brightness(1.05); transform: translateX(2px); }

.note { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--text-dim); }

/* ---------- 第 3 页 · 作者 ---------- */
.author-card {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  align-items: flex-start;
  flex-wrap: wrap;
}
.author-card__avatar {
  flex: 0 0 auto;
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  background: rgba(102, 204, 255, 0.10);
  box-shadow:
    0 0 0 2px rgba(102, 204, 255, 0.38),
    0 12px 26px rgba(86, 132, 172, 0.20);
}
.author-card__main { flex: 1 1 320px; }
.author-card__name { margin: 0 0 6px; font-size: 19px; color: #2c5f85; }
.author-card__sign { margin: 0; color: var(--tianyi-deep); font-size: 14.5px; letter-spacing: 0.02em; }
.author-card__meta { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }

/* 信息行（B 站空间 / 性别 共用） */
.meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  list-style: none;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(102, 204, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.meta-row > span { color: var(--text-dim); }
.meta-link {
  color: var(--tianyi-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(102, 204, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.meta-link:hover { color: #216d9c; border-bottom-color: #216d9c; }
.meta-link i { font-style: normal; font-size: 12px; }

/* 性别：点一下变「女（存疑）」，5 秒内再点一下……自己去试 :) */
.gender {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #10405c;
  padding: 3px 15px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(120deg, rgba(200, 240, 255, 0.95), rgba(102, 204, 255, 0.90));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(102, 204, 255, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease, background 0.3s ease;
}
.gender:hover { filter: brightness(1.05); transform: translateY(-1px); }
.gender:active { transform: translateY(0) scale(0.98); }
.gender.is-second {
  color: #a4566f;
  background: linear-gradient(120deg, rgba(255, 236, 244, 0.96), rgba(255, 216, 230, 0.94));
  box-shadow: 0 6px 14px rgba(255, 190, 214, 0.42);
}

.foot { margin-top: 24px; text-align: center; color: var(--text-dim); font-size: 12.4px; }
.foot p { margin: 0 0 6px; }
.foot__meta { letter-spacing: 0.14em; color: var(--tianyi-deep); opacity: 0.8; }

/* ---------- 底部致谢栏 ---------- */
.thanks {
  text-align: left;
  margin: 0 0 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-brd);
  background: linear-gradient(155deg,
      rgba(255, 255, 255, calc(var(--glass-b) + 0.16)),
      rgba(240, 249, 255, var(--glass-b)));
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.thanks__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2c5f85;
}
.thanks__title::after {
  content: "";
  flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(102, 204, 255, 0.45), rgba(102, 204, 255, 0));
}
.thanks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.thanks__list li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13.4px;
  line-height: 1.75;
}
.thanks__role {
  flex: 0 0 auto;
  min-width: 72px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.thanks__list b { color: var(--tianyi-deep); font-weight: 600; }
.thanks__note { color: var(--text-dim); font-size: 12.4px; }
.thanks__list a {
  color: var(--tianyi-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(102, 204, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.thanks__list a:hover { color: #216d9c; border-bottom-color: #216d9c; }
.thanks__list a i { font-style: normal; font-size: 11px; }
@media (max-width: 640px) {
  .thanks__list li { flex-direction: column; gap: 2px; }
  .thanks__role { min-width: 0; }
}

/* ---------- 不支持 backdrop-filter 时的回退 ---------- */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .page__inner, .card, .link-card, .dot-nav, .meta-row {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.96));
  }
  .bg__veil {
    background:
      linear-gradient(168deg, rgba(240, 249, 255, 0.90), rgba(232, 244, 254, 0.94) 50%, rgba(238, 249, 255, 0.96));
  }
}

/* ---------- 无障碍 / 动效偏好 ---------- */
a:focus-visible, .dot:focus-visible {
  outline: 2px solid var(--tianyi-deep);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bg__layer { filter: blur(5px) brightness(1.06); transform: none; }
}
@media (max-width: 640px) {
  /* 导航改成贴底的横向胶囊：拇指够得到，也不会压住正文 */
  .dot-nav {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
    padding: 6px 12px;
  }
  .dot { width: 44px; height: 40px; }      /* 触摸目标 ≥ 40px */
  .dot::after { inset: 0; }                 /* 热区已等于自身，不再外扩 */
  .dot__label { display: none; }

  /* 留出底部导航的高度 + 刘海/小白条的避开区 */
  .page {
    padding: calc(54px + env(safe-area-inset-top, 0px))
             calc(14px + env(safe-area-inset-right, 0px))
             calc(96px + env(safe-area-inset-bottom, 0px))
             calc(14px + env(safe-area-inset-left, 0px));
  }
  .page__inner { border-radius: 22px; padding: 18px 16px; }
  .hero { gap: 18px; }
  .hero__avatar { width: 104px; height: 104px; }
  .hero__photo { width: 88px; height: 88px; }
  .scroll-cue { display: none; }            /* 手机上不需要“鼠标滚轮”的暗示 */
  .aura { filter: blur(18px); }

  /* 手机上正文字号偏小，统一提一档 */
  .card p, .hero__slogan, .section-sub { font-size: 14.6px; }
  .card__title { font-size: 16.5px; }
  .timeline p { font-size: 14.4px; }
  .timeline time { font-size: 13px; }
  .profile > div { font-size: 14px; }
  .works li { font-size: 13.5px; }
  .link-card__desc { font-size: 13.8px; }
  .link-card__handle { font-size: 13.2px; }
  .author-card__sign { font-size: 14.6px; }
  .meta-row { font-size: 14px; }
  .thanks__list li { font-size: 14px; }

  /* 触摸目标做大：按钮 ≥44px，链接行加内边距 */
  .btn { padding: 11px 22px; }
  .meta-link { display: inline-block; padding: 6px 0; }
  .thanks__list a { display: inline-block; padding: 4px 0; }
}
