/* ==========================================================================
   作品集 · 样式表
   版式：满屏背景图 + 中间一块磨砂玻璃面板 + 最顶上一条贯通导航栏。
   改配色只需要动 :root 里的几个变量。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 布局 */
  --bar-h: 64px;
  --sheet-w: 1280px;

  /* 文字 */
  --ink: #16273b;
  --ink-soft: #2f4459;
  --muted: #4f657d;
  --faint: #71859c;

  /* 强调色：一点雾蓝，一点点紫（取自背景图） */
  --accent: #6f9dc9;
  --accent-deep: #3d76a4;
  --accent-2: #a89fd4;

  /* 玻璃 */
  --glass-hi: 0.66;
  --glass-lo: 0.46;
  --glass-mid: 0.56;
  /* 照片占位 / 图块底色 */
  --tile: linear-gradient(150deg, #eaf2f9, #dce8f3);
  /* 面板整体白度的乘数，调参用；1 = 设计值 */
  --sheet-tint: 0.26;
  /* 面板的磨砂模糊半径，调参用 */
  --sheet-blur: 5.5px;
  --glass-card: rgba(255, 255, 255, 0.44);
  --glass-card-hi: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.72);

  --hair: rgba(27, 44, 64, 0.1);
  --hair-soft: rgba(27, 44, 64, 0.06);

  /* 圆角 / 阴影 */
  --r-xl: 30px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 10px;

  --shadow-sheet: 0 34px 90px -46px rgba(18, 38, 60, 0.68),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  --shadow-card: 0 20px 44px -30px rgba(18, 38, 60, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  --shadow-lift: 0 30px 60px -34px rgba(18, 38, 60, 0.66),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono",
    Menlo, Consolas, monospace;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #e9f1f8;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(111, 157, 201, 0.32);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 300;
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--accent-deep);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 背景图 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #e9f1f8;
}

.bg__img {
  position: absolute;
  inset: -2%;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

/* 只压一点点边角，中间保持原图的清透 */
.bg__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    130% 100% at 50% 42%,
    rgba(255, 255, 255, 0) 42%,
    rgba(228, 239, 248, 0.34) 100%
  );
}

/* ---------- 顶部导航栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--bar-h);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(27, 44, 64, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.topbar.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px -22px rgba(18, 38, 60, 0.7);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding-inline: clamp(14px, 3.2vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px -6px rgba(18, 38, 60, 0.6);
  color: var(--accent-deep);
  transition: transform 0.6s var(--ease);
}

/* 狐狸 logo：白底已抠掉，直接落在玻璃上 */
.brand__logo {
  display: block;
  height: 30px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(18, 38, 60, 0.18));
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand__logo {
  transform: translateX(2px) rotate(-4deg);
}

.brand__mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.brand:hover .brand__mark {
  transform: rotate(60deg);
}

/* 导航链接 */
.navlinks {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.navlinks a {
  position: relative;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.navlinks a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.navlinks a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px -12px rgba(18, 38, 60, 0.9);
}

/* 小屏菜单按钮 */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.menu-btn:active {
  transform: scale(0.94);
}

.menu-btn span {
  width: 15px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* 右上角：夜间模式 + 小屏菜单 */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.theme-btn:active {
  transform: scale(0.94);
}

.theme-btn .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 浅色时显示月亮（点了变夜间），夜间显示太阳 */
.theme-btn .icon--moon {
  display: block;
}

.theme-btn .icon--sun {
  display: none;
}

[data-theme="dark"] .theme-btn .icon--moon {
  display: none;
}

[data-theme="dark"] .theme-btn .icon--sun {
  display: block;
}

/* ---------- 中间那块磨砂面板 ---------- */
.sheet {
  position: relative;
  z-index: 2;
  width: min(var(--sheet-w), 100% - 40px);
  margin: calc(var(--bar-h) + 26px) auto 46px;
  padding: clamp(26px, 4vw, 50px) clamp(22px, 4.6vw, 56px)
    clamp(26px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, calc(var(--glass-hi) * var(--sheet-tint))) 0%,
    rgba(255, 255, 255, calc(var(--glass-lo) * var(--sheet-tint))) 46%,
    rgba(248, 251, 255, calc(var(--glass-mid) * var(--sheet-tint))) 100%
  );
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sheet);
  backdrop-filter: blur(var(--sheet-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--sheet-blur)) saturate(150%);
  /* 面板很透，靠一层白色光晕把字从背景图里托起来 */
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.75),
    0 0 22px rgba(255, 255, 255, 0.5);
}

/* 面板顶端的一道细高光 */
.sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.95),
    transparent
  );
}

/* 面板很透时，文字所在的左侧需要一层几乎看不见的薄纱；
   往右渐隐到完全透明，画面主体那边保持通透 */
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    96deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 34%,
    rgba(255, 255, 255, 0.1) 62%,
    rgba(255, 255, 255, 0) 82%
  );
}

.sheet > main,
.sheet > .foot {
  position: relative;
  z-index: 1;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(72vh, 620px);
  padding-block: clamp(18px, 4vw, 46px) clamp(44px, 6vw, 74px);
}

/* 桌面端右边那块空地：放一只很淡的狐狸标 */
.hero__mark {
  position: absolute;
  right: clamp(24px, 4vw, 72px);
  top: 50%;
  width: clamp(210px, 23vw, 340px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.46;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 900px) {
  .hero__mark {
    display: none;
  }
}

.hero__kicker {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero__kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--accent);
}

.hero__title {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__name {
  font-size: clamp(2.35rem, 6.2vw, 3.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.015em;
  background: linear-gradient(118deg, #22384f 8%, #47708f 52%, #7ea6c8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 不支持渐变裁切的浏览器退回纯色 */
  -webkit-text-fill-color: transparent;
  /* 渐变字是「透明填充」，继承面板的文字光晕会从字形里透出来，这里必须关掉 */
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__name {
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}

.hero__en {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--faint);
}

.hero__role {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  color: var(--muted);
}

.hero__role-pre {
  color: var(--faint);
}

.hero__role-word {
  color: var(--ink);
  font-weight: 600;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__role-word.is-out {
  opacity: 0;
  transform: translateY(-4px);
}

.caret {
  align-self: center;
  width: 2px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--accent);
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.hero__lede {
  max-width: 32rem;
  margin-top: 1.35rem;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin-top: 2.4rem;
  font-size: 0.82rem;
  color: var(--faint);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fc59a;
  box-shadow: 0 0 0 3px rgba(127, 197, 154, 0.2);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #8db6d8, #6d9dc8);
  box-shadow: 0 16px 30px -18px rgba(52, 106, 152, 0.9);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px rgba(52, 106, 152, 0.95);
}

.btn--ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px -20px rgba(18, 38, 60, 0.9);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
}

/* ---------- 通用段落 ---------- */
.section {
  position: relative;
  padding-block: clamp(2.6rem, 5vw, 4rem);
  border-top: 1px solid var(--hair-soft);
}

/* 锚点跳转留出导航栏高度 */
section[id],
#main {
  scroll-margin-top: calc(var(--bar-h) + 18px);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.6rem, 3.4vw, 2.4rem);
}

.section__head--tight {
  margin-bottom: 1.3rem;
}

.section__title {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.section__title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section__head--tight .section__title::after {
  margin-top: 0.6rem;
}

.section__desc {
  margin-top: 0.9rem;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 32rem;
}

/* ---------- 分页标题（摄影页 / 账号页） ---------- */
.page-head {
  padding-block: clamp(1.8rem, 4.4vw, 3.2rem) clamp(1.4rem, 2.6vw, 2rem);
}

.page-head__title {
  margin-top: 0.3rem;
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-head__desc {
  margin-top: 0.75rem;
  max-width: 32rem;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- 首页摄影区：左边入口，右边轮换 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: stretch;
}

.split__entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background 0.45s var(--ease);
}

.split__entry:hover {
  transform: translateY(-4px);
  background: var(--glass-card-hi);
  box-shadow: var(--shadow-lift);
}

.split__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: 0.85;
}

.split__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.split__desc {
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

.split__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--accent-deep);
}

.split__go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.split__entry:hover .split__go svg {
  transform: translateX(3px);
}

.split__count {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.split__slides {
  min-width: 0;
}

/* 轮换 */
.slides {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tile);
  box-shadow: var(--shadow-card);
}

.slides__stack {
  position: absolute;
  inset: 0;
}

.slides__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s var(--ease), transform 6s linear;
}

.slides__img.is-on {
  opacity: 1;
  transform: scale(1);
}

.slides__img.is-missing {
  opacity: 0;
}

.slides__dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.slides__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 44, 64, 0.28);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.slides__dot.is-on {
  width: 16px;
  border-radius: 999px;
  background: var(--accent-deep);
}

.slides__empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--faint);
  font-size: 0.85rem;
}

/* 摄影区整体收窄一点，别顶满面板 */
.section--photos .split {
  max-width: 880px;
  margin-inline: auto;
}

/* ---------- 首页照片墙（横向流动） ---------- */
.wall {
  position: relative;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.wall__track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: wallSlide var(--dur, 40s) linear infinite;
  will-change: transform;
}

.wall:hover .wall__track {
  animation-play-state: paused;
}

.wall__item {
  flex: none;
  width: clamp(140px, 17vw, 220px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tile);
  box-shadow: 0 16px 30px -26px rgba(18, 38, 60, 0.75);
}

.wall__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall__item.is-missing {
  opacity: 0.45;
}

@keyframes wallSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0);
  }
}

/* ---------- 首页随笔 ---------- */
.note {
  position: relative;
  max-width: 40rem;
  padding: clamp(1.15rem, 2.4vw, 1.6rem) clamp(1.15rem, 2.6vw, 1.8rem);
  border-radius: var(--r-lg);
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-card);
}

.note__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.note__tag {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(111, 157, 201, 0.16);
  color: var(--accent-deep);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.note__from {
  font-size: 0.72rem;
  color: var(--faint);
}

a.note__from {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(113, 133, 156, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.note__from::after {
  content: "↗";
  font-size: 0.66rem;
  opacity: 0.8;
}

a.note__from:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* 随笔页：默认只露正文前三行，文末补充也一起收着 */
.note--full:not(.is-open) .note__body {
  max-height: 6.2em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, #000 90%, transparent);
}

.note--full:not(.is-open) .note__foot {
  display: none;
}

.note__toggle {
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.note__toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* 正文前的小说明 */
.note__lead {
  margin-top: 0.55rem;
  padding-left: 0.7rem;
  border-left: 2px solid rgba(111, 157, 201, 0.35);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--faint);
}

/* 文末补充：叠甲、太长不看之类的 */
.note__foot {
  margin-top: 1.05rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--hair);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--faint);
}

.note__foot p + p {
  margin-top: 0.45rem;
}

.note__foot p:first-child {
  color: var(--muted);
}

.note__title {
  margin-top: 0.5rem;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.note__body {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--muted);
}

.note__body p + p {
  margin-top: 0.75rem;
}

/* 正文里的换行原样保留（随笔里可能有诗） */
.note__body p,
.note__lead,
.note__foot p {
  white-space: pre-line;
}

.note.is-clipped:not(.is-open) .note__body {
  max-height: 9.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
  mask-image: linear-gradient(to bottom, #000 58%, transparent);
}

.note__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.95rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.note__more:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.note__empty {
  color: var(--faint);
  font-size: 0.9rem;
}

/* 随笔页：整页铺开，每条不裁切 */
.notes {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  max-width: 44rem;
}

.note--full {
  max-width: none;
  scroll-margin-top: calc(var(--bar-h) + 20px);
}

.note--full .note__title {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.note--full .note__body {
  font-size: 0.95rem;
  line-height: 2.05;
}

.note.is-target {
  box-shadow: var(--shadow-lift), 0 0 0 2px rgba(111, 157, 201, 0.35);
}

/* ---------- 摄影页：最新 + 网格 ---------- */
.latest {
  display: grid;
  gap: 0.8rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 1rem;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shot__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tile);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.shot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.shot__frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.shot__frame:hover img {
  transform: scale(1.04);
}

.shot--big .shot__frame {
  aspect-ratio: 16 / 9;
}

.shot__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 14px -10px rgba(18, 38, 60, 0.9);
}

.shot__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
  padding-inline: 0.15rem;
}

.shot__title {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
}

.shot__meta {
  font-size: 0.76rem;
  color: var(--faint);
}

/* 还没放图时的占位格 */
.shot__frame.is-missing {
  cursor: default;
}

.shot__frame.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(63, 118, 164, 0.09) 0 1px,
    transparent 1px 14px
  );
}

.shot__frame.is-missing::after {
  content: "还没放照片";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.gallery__empty {
  grid-column: 1 / -1;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r);
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- 摄影页：三条细照片带 ---------- */
.pstrip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.pstrip__row {
  overflow: hidden;
}

.pstrip__track {
  display: flex;
  width: max-content;
  animation: psMove var(--dur, 60s) linear infinite;
  will-change: transform;
}

/* 中间那条反着走 */
.pstrip__row--rev .pstrip__track {
  animation-direction: reverse;
}

.pstrip:hover .pstrip__track {
  animation-play-state: paused;
}

.pstrip__tile {
  flex: none;
  height: 62px;
  margin-right: 7px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--tile);
  box-shadow: 0 8px 16px -14px rgba(18, 38, 60, 0.8);
}

.pstrip__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes psMove {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0);
  }
}

/* ---------- 按四季收起来的相册 ---------- */
.seasons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.season {
  border-radius: var(--r-lg);
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.season__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.25s var(--ease);
}

.season__head::-webkit-details-marker {
  display: none;
}

.season__head:hover {
  background: rgba(255, 255, 255, 0.28);
}

.season__label {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.season__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.season__range {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.season__chev {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.season__chev svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.season[open] .season__chev {
  transform: rotate(180deg);
}

.season__body {
  padding: 0 1.2rem 1.2rem;
}

/* 瀑布流：按每张照片自己的比例排，横的横、竖的竖，不裁切也不强求对齐 */
.season__body .gallery {
  display: block;
  columns: 3;
  column-gap: 0.85rem;
}

.season__body .shot {
  break-inside: avoid;
  margin: 0 0 0.85rem;
}

.season__body .shot__frame {
  aspect-ratio: auto;
}

.season__body .shot__frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- 看大图 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18, 32, 47, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-on {
  opacity: 1;
  visibility: visible;
}

.lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: min(1200px, 100%);
  max-height: 100%;
}

.lightbox__fig img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.lightbox__cap {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 左右翻页 */
.lightbox__nav {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.32);
}

.lightbox__nav:active {
  transform: scale(0.94);
}

.lightbox__nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__nav--prev {
  left: clamp(10px, 2vw, 26px);
}

.lightbox__nav--next {
  right: clamp(10px, 2vw, 26px);
}

/* 格子上悬停浮出的拍摄参数 */
.shot__exif {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.6rem 0.45rem;
  background: linear-gradient(
    to top,
    rgba(10, 15, 22, 0.72),
    rgba(10, 15, 22, 0)
  );
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  text-shadow: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.shot__frame:hover .shot__exif,
.shot__frame:focus-visible .shot__exif {
  opacity: 1;
}

/* 大图下面的完整参数 */
.lightbox__exif {
  max-width: min(760px, 92vw);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

/* 「你这家伙是谁！？」后面那颗彩蛋：鼠标放上去才浮出来 */
.about__title-text {
  position: relative;
  display: inline-block;
}

.egg {
  position: absolute;
  left: 100%;
  bottom: 0.12em;
  margin-left: 0.5rem;
  white-space: nowrap;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: var(--faint);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.about__title:hover .egg,
.about__title-text:focus-within .egg {
  opacity: 1;
  transform: translateY(0);
}


/* 自我介绍里加粗的地方 */
.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.lightbox__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

/* 原图还没下完时，先显示缩略图，并给个很轻的提示 */
.lightbox__fig img {
  transition: filter 0.35s var(--ease);
}

.lightbox.is-loading .lightbox__fig img {
  filter: blur(1.5px) saturate(0.95);
}

.lightbox__hint {
  display: none;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox.is-loading .lightbox__hint {
  display: inline;
}

.page-head__count {
  display: inline-block;
  margin-left: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

body.is-locked {
  overflow: hidden;
}

/* 多页导航里「当前页」那一项 */
.navlinks a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px -12px rgba(18, 38, 60, 0.9);
}

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.prose p {
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--muted);
}

.prose p + p {
  margin-top: 0.9rem;
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.panel {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-card);
}

.panel__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.list li span {
  display: inline-block;
  width: 1.3rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ---------- 联系 ---------- */
.section--contact {
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.contact__title {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.mail {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  letter-spacing: 0.01em;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(61, 118, 164, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.mail:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.78rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -18px rgba(18, 38, 60, 0.9);
}

.socials a span {
  color: var(--faint);
  font-size: 0.78rem;
}

/* ---------- 页脚：最下面的三个地方 ---------- */
.foot {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--hair);
  font-size: 0.8rem;
  color: var(--faint);
}

#accounts {
  scroll-margin-top: calc(var(--bar-h) + 18px);
}

.foot__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0.9;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 0.82rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.foot__links a:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -18px rgba(18, 38, 60, 0.9);
}

.foot__links a span {
  color: var(--faint);
  font-size: 0.76rem;
}

.foot__legal {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(27, 44, 64, 0.07);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--faint);
}

.foot__legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(27, 44, 64, 0.22);
  text-underline-offset: 2px;
}

.foot__legal a:hover {
  color: var(--accent-deep);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hair-soft);
}

.foot__note {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(113, 133, 156, 0.9);
}

.foot__face {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.foot__face:hover,
.foot__face:focus-visible {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

/* ---------- 致谢浮层 ---------- */
.thanks {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18, 32, 47, 0.42);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}

.thanks.is-on {
  opacity: 1;
  visibility: visible;
}

.thanks__card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 840px);
  overflow: auto;
  padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.4rem, 5vw, 2.6rem);
  border-radius: var(--r);
  background: rgba(252, 253, 255, 0.96);
  border: 1px solid var(--glass-line);
  box-shadow: 0 40px 90px -50px rgba(12, 26, 42, 0.95);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.38s var(--ease);
}

.thanks.is-on .thanks__card {
  transform: none;
}

.thanks__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 44, 64, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.thanks__close:hover {
  background: rgba(27, 44, 64, 0.12);
  color: var(--ink);
}

.thanks__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.thanks__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.thanks__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.thanks__title {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.thanks__sub {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.thanks__list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.15rem;
}

.thanks__item {
  padding-left: 0.95rem;
  border-left: 2px solid rgba(61, 118, 164, 0.22);
}

.thanks__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.thanks__text {
  margin-top: 0.25rem;
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--muted);
}

.thanks__outro {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
}

.thanks__sign {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--faint);
  text-align: center;
}

[data-theme="dark"] .thanks__card {
  background: rgba(13, 20, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .thanks__close {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .thanks__name {
  color: #9dc4e6;
}

/* ---------- 复制提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--glass-line);
  box-shadow: 0 18px 40px -24px rgba(18, 38, 60, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 0.82rem;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .card__cover {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  :root {
    --bar-h: 58px;
  }

  .sheet {
    width: calc(100% - 20px);
    margin-top: calc(var(--bar-h) + 14px);
    margin-bottom: 22px;
    border-radius: 24px;
  }

  .hero {
    min-height: 0;
    padding-block: 1.1rem 2.6rem;
  }

  /* 窄屏上这处换行只会把句子切碎，交给自动折行 */
  .hero__lede br {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  /* 折叠菜单：从导航栏下方滑出的一块玻璃 */
  .navlinks {
    position: fixed;
    top: calc(var(--bar-h) + 8px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    border-radius: var(--r);
    background: rgba(252, 253, 255, 0.98);
    border: 1px solid var(--glass-line);
    box-shadow: 0 26px 50px -30px rgba(18, 38, 60, 0.85);
    /* 这里不要再加 backdrop-filter：和磨砂面板叠在一起时，
       Chromium 会把它排到面板底下，导致面板上的字透出来 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .navlinks.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navlinks a {
    padding: 0.6rem 0.9rem;
    border-radius: var(--r-sm);
  }

  .navlinks a.is-active {
    background: rgba(111, 157, 201, 0.14);
  }

  /* 夜间模式：这块玻璃要跟着变深，不然浅色的字压在白底上 */
  [data-theme="dark"] .navlinks {
    background: rgba(13, 20, 30, 0.99);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.95);
  }

  [data-theme="dark"] .navlinks a {
    color: var(--ink-soft);
  }

  [data-theme="dark"] .navlinks a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink);
  }

  [data-theme="dark"] .navlinks a.is-active,
  [data-theme="dark"] .navlinks a[aria-current="page"] {
    background: rgba(127, 176, 219, 0.2);
    color: var(--ink);
  }

  .foot {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hero__name {
    font-size: 2.1rem;
  }

  .btn {
    padding: 0.72rem 1.2rem;
    font-size: 0.88rem;
  }
}

/* ---------- 新分区的窄屏排布 ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .season__body .gallery {
    columns: 2;
  }

  .split__entry {
    order: 2;
  }

  .split__slides {
    order: 1;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .shot--big .shot__frame {
    aspect-ratio: 4 / 3;
  }

  .player {
    gap: 8px;
  }

  .player__panel,
  .player__panel-inner,
  .player.is-open .player__panel {
    width: 222px;
  }

  .player__disc {
    width: 54px;
    height: 54px;
  }
}

/* ---------- 右下角唱片播放器 ---------- */
.player {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player__panel {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 0.45s var(--ease), opacity 0.3s var(--ease);
}

.player.is-open .player__panel {
  width: 258px;
  opacity: 1;
  pointer-events: auto;
}

.player__panel-inner {
  width: 258px;
  padding: 10px 13px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 50px -28px rgba(18, 38, 60, 0.8);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.player__now {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--ink);
}

.player__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.player__artist {
  flex: none;
  font-size: 0.72rem;
  color: var(--faint);
  white-space: nowrap;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.player__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(27, 44, 64, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.player__btn:hover {
  background: #fff;
  color: var(--accent-deep);
}

.player__btn:active {
  transform: scale(0.94);
}

.player__btn--main {
  background: linear-gradient(135deg, #8db6d8, #6d9dc8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(52, 106, 152, 0.95);
}

.player__btn--main:hover {
  background: linear-gradient(135deg, #7fadd2, #5f92bf);
  color: #fff;
}

.player__btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player__btn svg.is-fill {
  fill: currentColor;
  stroke: none;
}

/* 唱片本体 */
.player__disc {
  position: relative;
  flex: none;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.player__disc-art {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 34px -18px rgba(18, 38, 60, 0.85),
    0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 4px rgba(27, 44, 64, 0.08);
  will-change: transform;
}

.player__disc-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 唱片中心那个小孔 */
.player__disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(27, 44, 64, 0.14);
  pointer-events: none;
}

.player__disc:hover .player__disc-art {
  box-shadow: 0 18px 38px -18px rgba(18, 38, 60, 0.95), 0 0 0 3px #fff,
    0 0 0 5px rgba(61, 118, 164, 0.35);
}

/* 音量：点按钮从上面升起来的一条竖条 */
.player__vol {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 46px;
  padding: 10px 0 12px;
  border-radius: 999px;
  background: rgba(252, 253, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 44px -26px rgba(18, 38, 60, 0.9);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.player.is-vol .player__vol {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.player__vol-num {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-soft);
}

.player__vol-track {
  position: relative;
  width: 20px;
  height: 116px;
}

.player__vol-range {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 4px;
  margin-left: -58px;
  transform: translateY(-50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-deep) var(--fill, 50%),
    rgba(27, 44, 64, 0.16) var(--fill, 50%)
  );
  outline: none;
  cursor: pointer;
}

.player__vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-deep);
  box-shadow: 0 2px 6px rgba(18, 38, 60, 0.35);
  cursor: pointer;
}

.player__vol-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-deep);
  cursor: pointer;
}

/* 飘出来的音符 */
.player__notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player__notes i {
  position: absolute;
  right: 2px;
  bottom: 14px;
  font-style: normal;
  font-size: 13px;
  color: var(--accent-deep);
  opacity: 0;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

.player.is-playing:not(.is-open) .player__notes i {
  animation: noteFloat 2.6s ease-out infinite;
}

.player.is-playing:not(.is-open) .player__notes i:nth-child(2) {
  animation-delay: 0.85s;
}

.player.is-playing:not(.is-open) .player__notes i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes noteFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.75);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-18px, -48px) scale(1.15);
  }
}

/* ---------- 夜间模式 ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --ink: #eaf2fb;
  --ink-soft: #cfdced;
  --muted: #a8bbce;
  --faint: #8197ad;

  --accent: #7fb0db;
  --accent-deep: #a4cdec;

  --glass-card: rgba(255, 255, 255, 0.07);
  --glass-card-hi: rgba(255, 255, 255, 0.13);
  --glass-line: rgba(255, 255, 255, 0.14);

  --hair: rgba(255, 255, 255, 0.14);
  --hair-soft: rgba(255, 255, 255, 0.08);

  --tile: linear-gradient(150deg, #1b2634, #131c28);

  --shadow-sheet: 0 40px 90px -44px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --shadow-card: 0 20px 44px -30px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-lift: 0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.09) inset;
}

[data-theme="dark"] body {
  background: #0a1017;
}

[data-theme="dark"] .bg {
  background: #0a1017;
}

/* 背景图压暗，别跟文字抢 */
[data-theme="dark"] .bg__img {
  filter: brightness(0.52) saturate(0.9);
}

[data-theme="dark"] .bg__veil {
  background: radial-gradient(
    130% 100% at 50% 42%,
    rgba(6, 10, 16, 0) 34%,
    rgba(5, 8, 13, 0.5) 100%
  );
}

[data-theme="dark"] .topbar {
  background: rgba(14, 20, 30, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .topbar.is-stuck {
  background: rgba(11, 17, 26, 0.84);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .sheet {
  background: linear-gradient(
    158deg,
    rgba(24, 34, 49, 0.58) 0%,
    rgba(16, 24, 35, 0.46) 46%,
    rgba(12, 19, 28, 0.52) 100%
  );
  border-color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .sheet::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
}

[data-theme="dark"] .sheet::after {
  background: linear-gradient(
    96deg,
    rgba(9, 14, 21, 0.5) 0%,
    rgba(9, 14, 21, 0.26) 34%,
    rgba(9, 14, 21, 0.08) 62%,
    rgba(9, 14, 21, 0) 82%
  );
}

[data-theme="dark"] .hero__name {
  background: linear-gradient(118deg, #f4f9ff 6%, #c3dcf3 52%, #82a9cb 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* 白天那些白底小元件，夜间换成薄薄一层亮边 */
[data-theme="dark"] .theme-btn,
[data-theme="dark"] .menu-btn,
[data-theme="dark"] .brand__mark,
[data-theme="dark"] .btn--ghost,
[data-theme="dark"] .chips li,
[data-theme="dark"] .copy-btn,
[data-theme="dark"] .foot__links a,
[data-theme="dark"] .note__more,
[data-theme="dark"] .note__toggle,
[data-theme="dark"] .navlinks a:hover,
[data-theme="dark"] .navlinks a.is-active,
[data-theme="dark"] .navlinks a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: var(--ink-soft);
}

[data-theme="dark"] .foot__links a:hover,
[data-theme="dark"] .foot__links a:focus-visible,
[data-theme="dark"] .note__more:hover,
[data-theme="dark"] .note__toggle:hover,
[data-theme="dark"] .copy-btn:hover,
[data-theme="dark"] .navlinks a:hover,
[data-theme="dark"] .theme-btn:hover,
[data-theme="dark"] .menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--ink);
}

[data-theme="dark"] .btn--primary {
  background: linear-gradient(135deg, #74a2c9, #51799f);
  color: #f4f9ff;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .slides__dots {
  background: rgba(10, 15, 23, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .slides__dot {
  background: rgba(255, 255, 255, 0.32);
}

[data-theme="dark"] .slides__dot.is-on {
  background: var(--accent-deep);
}

[data-theme="dark"] .shot__badge {
  background: rgba(20, 28, 40, 0.85);
  color: var(--accent-deep);
}

[data-theme="dark"] .toast {
  background: rgba(18, 26, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

[data-theme="dark"] .skip-link {
  background: #1b2634;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .note__tag {
  background: rgba(127, 176, 219, 0.18);
  color: var(--accent-deep);
}

[data-theme="dark"] .lightbox {
  background: rgba(3, 6, 10, 0.74);
}

[data-theme="dark"] ::selection {
  background: rgba(127, 176, 219, 0.34);
  color: #fff;
}

/* ---------- 播放器的夜间样式 ---------- */
[data-theme="dark"] .player__panel-inner {
  background: rgba(20, 29, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .player__btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink-soft);
}

[data-theme="dark"] .player__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

[data-theme="dark"] .player__btn--main {
  background: linear-gradient(135deg, #74a2c9, #51799f);
  border-color: transparent;
  color: #f4f9ff;
}

[data-theme="dark"] .player__disc-art {
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.95),
    0 0 0 3px rgba(255, 255, 255, 0.16), 0 0 0 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .player__vol {
  background: rgba(13, 20, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .player__vol-range {
  background: linear-gradient(
    90deg,
    var(--accent-deep) var(--fill, 50%),
    rgba(255, 255, 255, 0.18) var(--fill, 50%)
  );
}

[data-theme="dark"] .player__disc::after {
  background: rgba(20, 29, 42, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .player__notes i {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* ---------- 尊重系统的「减少动态效果」 ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .caret {
    animation: none;
  }
}
