/* ============================================================
   慕景 · mujing.work
   玻璃拟态个人主页 —— 纯 CSS，无依赖
   ============================================================ */

:root {
  --bg:        #FAF7F0;
  --bg-2:      #F3EEE3;
  --glass:     rgba(45, 38, 28, .032);
  --glass-2:   rgba(45, 38, 28, .055);
  --line:      rgba(45, 38, 28, .10);
  --line-2:    rgba(45, 38, 28, .18);
  --text:      #2E2A24;
  --muted:     #8A8070;
  --accent:    #2F7396;
  --accent-2:  #C08A55;
  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 18px 48px rgba(70, 58, 40, .14);
  --max:       1080px;
  /* ==== 动效基线（墨鲸按 Emil Kowalski 规范整理 2026-12-01）==== */
  /* 曲线：三种场合各一条，别临时现编 */
  --ease:        cubic-bezier(.22, 1, .36, 1);      /* 快进，界面切换 */
  --ease-smooth: cubic-bezier(.16, 1, .3, 1);       /* 标准缓出，元素入场 */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);   /* 轻弹，按钮回弹 */
  --ease-linear: linear;                            /* 进度、旋转、循环 */

  /* 时长：三档，按改动规模选 */
  --dur-micro:  180ms;   /* 微交互：hover、焦点、颜色 */
  --dur-layout: 320ms;   /* 布局位移：展开、重排、开关 */
  --dur-trans:  520ms;   /* 页面级：区块入场、整块切换 */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 顶部导航已经取消，锚点不用再留出 96px 的空档 */
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕：固定层，不参与滚动重绘 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* ==== 墨鲸 2026-12-01：渐变加浓，四层光 + 纵向底色 ==== */
  /* ==== 墨鲸 2026-12-01：奶白底 + 极淡暖光 ==== */
  background:
    /* 左上：极淡的暖黄 */
    radial-gradient(58rem 40rem at 14% -6%,  rgba(255, 214, 150, .30), transparent 62%),
    /* 右上：极淡的米青 */
    radial-gradient(50rem 34rem at 88% 4%,   rgba(180, 214, 200, .24), transparent 62%),
    /* 中段：提亮 */
    radial-gradient(44rem 34rem at 74% 50%,  rgba(255, 240, 210, .40), transparent 62%),
    /* 底部：压一点暖灰 */
    radial-gradient(56rem 46rem at 50% 110%, rgba(220, 200, 170, .26), transparent 68%),
    /* 底色：上浅下略深，奶白 */
    linear-gradient(180deg, #FDFBF6 0%, #F8F4EB 52%, #F1EBDF 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgba(45, 38, 28, .045);
  color: var(--accent);
}

/* 键盘可达性 */
:focus-visible {
  outline: 2px solid rgba(120, 100, 75, .55);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .75rem 1.25rem;
  background: var(--accent);
  color: #041018;
  z-index: 999;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* 背景星尘：铺在渐变之上、所有内容之下 */
/* ==== 墨鲸：画布保持透明，让 body 渐变透上来 ==== */
/* ==== 墨鲸 2026-12-01：奶白底不要星尘，整块隐藏 ==== */
.starfield {
  display: none !important;
  background: transparent;
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .9;
  /* 轻微高斯模糊：星点不再是有硬边的几何圆，而是散开的光斑 */
  filter: blur(.7px);
}

/* ============ 星系导航（右上角） ============ */
.orbit-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  width: 510px;                 /* 170px × 3 */
  padding: 8px 6px 4px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  /* 不加背景：直接浮在页面上 */
}

/* 屏幕不够宽时逐级缩，不然会糊满半个屏 */
@media (max-width: 1280px) { .orbit-nav { width: 420px; } }
@media (max-width: 1024px) { .orbit-nav { width: 340px; } }
@media (max-width: 860px)  { .orbit-nav { width: 260px; } }

.orbit-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: #86f2dd;
  stroke-opacity: .34;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* 每一圈整体旋转；指针移上去就暂停，免得点不到移动靶 */
.orbit-spin {
  transform-box: view-box;
  transform-origin: 120px 120px;
  animation: orbitSpinSlow var(--dur, 60s) linear infinite;
}
.orbit-spin.is-reverse { animation-direction: reverse; }
/* 注意：不再整块暂停。减速由 JS 按「悬停的那一条」单独处理 */

@keyframes orbitSpinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-hit { fill: transparent; cursor: pointer; }

/* 彗尾：由脚本生成的锥形路径，渐变填充，不可点 */
.orbit-comet {
  pointer-events: none;
}

.orbit-planet {
  fill: var(--planet, #7ee8fa);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px var(--planet, #7ee8fa));
  transition: transform var(--dur-micro) var(--ease), filter var(--dur-micro) var(--ease);
}
.orbit-link:hover .orbit-planet,
.orbit-link:focus-visible .orbit-planet {
  transform: scale(1.45);
  filter: drop-shadow(0 0 5px var(--planet, #7ee8fa));
}

/* 当前所在栏目：亮起来 */
.orbit-link.is-active .orbit-planet {
  transform: scale(1.35);
  filter: drop-shadow(0 0 7px var(--planet, #7ee8fa));
}

/* 太阳 = 首页（颜色调淡，别抢星球的戏） */
.orbit-sun {
  fill: url(#sunGrad);
  opacity: .5;
  filter: drop-shadow(0 0 6px rgba(255, 196, 120, .3));
  transition: opacity var(--dur-micro) var(--ease), filter var(--dur-micro) var(--ease);
}
.orbit-link-sun:hover .orbit-sun {
  opacity: .8;
  filter: drop-shadow(0 0 12px rgba(255, 205, 140, .6));
}

.orbit-caption {
  margin: 6px 0 0;
  font-size: .74rem;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--muted);
  transition: color var(--dur-micro) var(--ease);
}
.orbit-nav:hover .orbit-caption { color: var(--accent); }

@media (max-width: 720px) {
  .orbit-nav { width: min(74vw, 220px); top: 10px; right: 10px; }
  .orbit-caption { font-size: .55rem; letter-spacing: .16em; text-indent: .16em; }
}

/* ============ 首页星系导航（静止，只在首屏右半边） ============ */
.hero-galaxy {
  position: absolute;
  top: 50%;
  right: 13vw;              /* 往左挪了 10vw */
  width: min(434px, 32vw);   /* 原来是 min(620px, 46vw)，缩了 30% */
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  z-index: 2;
}

.galaxy-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--rr) * 2);
  height: calc(var(--rr) * 2);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(126, 232, 250, .13);
  border-radius: 50%;
  pointer-events: none;
}

/* 轨道层：一个和轨道同直径的隐形圆，整体旋转 */
.galaxy-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  animation: galaxySpin var(--dur, 30s) linear infinite;
  animation-delay: calc(var(--phase, 0) * var(--dur, 30s) * -1);
  pointer-events: none;
}
.galaxy-orbit.is-reverse { animation-direction: reverse; }

@keyframes galaxySpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 标签贴着轨道顶部，靠反向自转把文字转正 */
.galaxy-item {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 38, 28, .08);
  /* 毛玻璃：半透明渐变底 + 高饱和模糊 + 顶部一道高光边 */
  background:
    linear-gradient(140deg,
      rgba(45, 38, 28, .08) 0%,
      rgba(45, 38, 28, .045) 45%,
      rgba(45, 38, 28, .045) 100%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(45, 38, 28, .08),
    inset 0 -1px 0 rgba(45, 38, 28, .045),
    0 10px 26px rgba(0, 0, 0, .3);
  color: var(--text);
  font-size: .78rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: auto;
  animation: galaxyCounter var(--dur, 30s) linear infinite;
  animation-delay: calc(var(--phase, 0) * var(--dur, 30s) * -1);
  transition: opacity var(--dur-layout) var(--ease), border-color var(--dur-layout) var(--ease),
              box-shadow var(--dur-layout) var(--ease), background var(--dur-layout) var(--ease);
}
.galaxy-orbit.is-reverse .galaxy-item { animation-direction: reverse; }

@keyframes galaxyCounter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.galaxy-item:hover {
  border-color: var(--planet);
  background:
    linear-gradient(140deg,
      rgba(255, 255, 255, .22) 0%,
      rgba(45, 38, 28, .045) 45%,
      rgba(45, 38, 28, .08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 0 26px -6px var(--planet);
}

/* 正中那颗：首页，不跟着转 */
.galaxy-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: none;
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: .1rem;
  text-align: center;
  overflow: hidden;
  border-color: rgba(255, 214, 150, .35);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 150, .22), transparent 68%),
    rgba(9, 15, 26, .72);
  box-shadow: 0 0 44px -8px rgba(255, 200, 120, .5);
}

/* 头像：铺满整个圆，略偏上取景，别把脸裁掉 */
.galaxy-core-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  transition: transform var(--dur-trans) var(--ease);
}
.galaxy-core:hover .galaxy-core-avatar { transform: scale(1.06); }
.galaxy-core-name {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.galaxy-core-sub {
  font-size: .5rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--muted);
}

/* 桌面端：正文让出右半边，别和星系打架 */
@media (min-width: 901px) {
  .hero { padding-right: 48vw; }
  .hero-inner { max-width: none; }
}

/* 窄屏：星轨整个不要了，导航改成顶部条（细节在文件末尾的移动端块里） */
@media (max-width: 900px) {
  .hero-galaxy { display: none; }
}

/* ============ 翻页分割线 ============ */
.page-divider {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(92, 225, 196, 0) 0%,
    rgba(92, 225, 196, .85) 18%,
    #9df6e4 50%,
    rgba(126, 232, 250, .85) 82%,
    rgba(126, 232, 250, 0) 100%);
  box-shadow: 0 0 14px rgba(126, 232, 250, .55);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.page-divider.is-on {
  animation: dividerSweep var(--dur-layout) var(--ease) forwards;
}

@keyframes dividerSweep {
  0%   { transform: scaleX(0);   opacity: 1; }
  55%  { transform: scaleX(1);   opacity: 1; }
  100% { transform: scaleX(1);   opacity: 0; }
}

/* ============ 离开首页后的迷你导航 ============ */
.mini-nav {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 130;
  display: flex;
  gap: .12rem;
  padding: .3rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 38, 28, .08);
  background:
    linear-gradient(135deg,
      rgba(45, 38, 28, .08) 0%,
      rgba(45, 38, 28, .045) 55%,
      rgba(45, 38, 28, .045) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(45, 38, 28, .08),
    0 14px 40px -18px rgba(0, 0, 0, .8);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur-trans) var(--ease), transform var(--dur-trans) var(--ease), visibility var(--dur-trans);
}
.mini-nav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mini-nav a {
  padding: .34rem .7rem;
  font-size: .78rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.mini-nav a:hover { color: var(--text); background: rgba(45, 38, 28, .045); }

/* 飞行中的星点 */
.fly-star {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* 拖尾残影：更小、更淡，不抢主角 */
.fly-ghost {
  width: 5px;
  height: 5px;
  z-index: 199;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

/* 离开首页：线条渐隐、入口淡出 */
.galaxy-ring { transition: opacity var(--dur-trans) var(--ease); }
.hero-galaxy.is-collapsed .galaxy-ring { opacity: 0; }
.hero-galaxy.is-collapsed .galaxy-item { opacity: 0; pointer-events: none; }

/* 回程：线条先回来，胶囊先藏着 —— 等各自的星落地，才在那个位置显形 */
.hero-galaxy.is-returning .galaxy-item {
  opacity: 0;
  pointer-events: none;
}
.hero-galaxy.is-returning .galaxy-item.is-here {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 0 26px -8px var(--planet);
}

/* 回程期间先别公转，落点才不会边飞边跑；全部落地后统一恢复 */
.hero-galaxy.is-returning .galaxy-orbit,
.hero-galaxy.is-returning .galaxy-item {
  animation-play-state: paused;
}

@media (max-width: 720px) {
  .mini-nav {
    top: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    flex-wrap: wrap;
    justify-content: flex-end;
    border-radius: 16px;
  }
  .mini-nav a { font-size: .72rem; padding: .3rem .55rem; }
}

/* ============ 进站过场 ============ */
/* 只在「顶层窗口 + 脚本能跑」时出现；iframe 预览、禁用脚本都直接跳过 */
.intro { display: none; }

.js:not(.in-frame) .intro {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 999;
  place-items: center;
  background:
    radial-gradient(42rem 28rem at 50% 42%, rgba(77, 124, 255, .20), transparent 70%),
    #05080f;
  /* 兜底：main.js 没跑起来的话，3.9 秒后自己消失，绝不困住访客 */
  animation: introFallback .01s linear 3.9s forwards;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), opacity .75s var(--ease);
}

/* 加载条走满 → 幕布上提 */
.js .intro.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes introFallback {
  to { opacity: 0; visibility: hidden; }
}

.intro-rings {
  position: relative;
  width: min(460px, 88vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.intro-rings svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 7 根细线：颜色由 JS 按「内青外蓝」逐圈写入，这里只是兜底值。
   选择器写成 svg > circle，避免误伤珠点和拖尾 */
.intro-rings svg > circle {
  fill: none;
  stroke: #5ce1c4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;     /* 缩放时线宽保持 1px，不会变粗 */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(92, 225, 196, .3));
}

/* 一圈圈由内向外漫开，像水面涟漪 */
.js .intro-rings svg > circle {
  animation: ringPulse 2.5s var(--ease) infinite;
}

.js .intro-rings svg > circle:nth-child(1) { animation-delay: 0s; }
.js .intro-rings svg > circle:nth-child(2) { animation-delay: .13s; }
.js .intro-rings svg > circle:nth-child(3) { animation-delay: .26s; }
.js .intro-rings svg > circle:nth-child(4) { animation-delay: .39s; }
.js .intro-rings svg > circle:nth-child(5) { animation-delay: .51s; }
.js .intro-rings svg > circle:nth-child(6) { animation-delay: .64s; }
.js .intro-rings svg > circle:nth-child(7) { animation-delay: .76s; }

@keyframes ringPulse {
  0%   { opacity: 0;    stroke-dashoffset: 100; }
  18%  { opacity: .85; }
  62%  { opacity: .45;  stroke-dashoffset: 0; }
  100% { opacity: 0;    stroke-dashoffset: 0; }
}

/* ===== 轨道上的珠点 ===== */
.intro-balls circle {
  filter: drop-shadow(0 0 6px rgba(92, 225, 196, .55));
}

/* 每颗珠点连拖尾套在一个 <g> 里，绕圆心整体旋转 —— 永远压在自己那根线上 */
.intro-orbit {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 120px 120px;   /* 和 SVG 的 viewBox 中心对齐 */
}

/* 转圈和淡入拆成两个动画：转圈用 linear（行星感），淡入单独走缓动。
   转一圈的时长由 JS 写进 --spin —— 内圈快、外圈慢 */
.js .intro-orbit {
  animation-name: orbitSpin, orbitFade;
  animation-duration: var(--spin, 1.4s), var(--spin, 1.4s);
  animation-timing-function: linear, ease-out;
  animation-iteration-count: infinite, infinite;
}

/* 奇偶圈反向转：只反转「转圈」，淡入保持正向，不然会先亮后熄 */
.js .intro-orbit.is-reverse {
  animation-direction: reverse, normal;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbitFade {
  0%   { opacity: 0; }
  12%  { opacity: .95; }
  75%  { opacity: .85; }
  100% { opacity: 0; }
}

/* 拖尾：两段圆弧（一长淡、一短亮），挂在珠点后方，跟着一起转 */
.intro-balls circle.intro-tail {
  fill: none;
  stroke-linecap: round;
  filter: none;
}

.intro-num {
  position: relative;
  margin: 0;
  font-size: .95rem;
  letter-spacing: .14em;
  color: rgba(126, 232, 250, .9);
  font-variant-numeric: tabular-nums;
}
.intro-num i {
  font-style: normal;
  font-size: .82em;
  opacity: .55;
  margin-left: .1em;
}

/* ============ 通用 ============ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  /* 顶部亮一点、底部暗一点，看起来像一块有厚度的玻璃 */
  background: linear-gradient(160deg,
    rgba(45, 38, 28, .045) 0%,
    rgba(45, 38, 28, .045) 45%,
    rgba(45, 38, 28, .045) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(45, 38, 28, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .18);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04121c;
  box-shadow: 0 10px 30px rgba(77, 124, 255, .32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(77, 124, 255, .45);
}
.btn-ghost {
  background: var(--glass);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(45, 38, 28, .08);
}
.btn-ghost:hover {
  background: var(--glass-2);
  transform: translateY(-2px);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--dur-layout) var(--ease), border-color var(--dur-layout) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 8, 15, .72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(126, 232, 250, .22), rgba(77, 124, 255, .22));
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-size: .95rem;
  font-weight: 800;
  transition: transform var(--dur-layout) var(--ease), box-shadow var(--dur-layout) var(--ease),
              border-color var(--dur-layout) var(--ease);
}
/* 导航左侧那个 M 图标：悬停轻轻浮起 */
.brand:hover .brand-mark {
  transform: translateY(-3px);
  border-color: rgba(126, 232, 250, .5);
  box-shadow: 0 10px 24px rgba(77, 124, 255, .38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-links a {
  position: relative;
  padding: .5rem .85rem;
  font-size: .9rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(45, 38, 28, .045); }
.nav-links a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur-micro) var(--ease), opacity var(--dur-micro) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 24px 6rem;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  pointer-events: none;
  will-change: transform;
}
.glow-a {
  width: 32rem;
  height: 32rem;
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(255, 208, 140, .42), transparent 70%);
}
.glow-b {
  width: 28rem;
  height: 28rem;
  bottom: -6rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(180, 214, 190, .34), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  /* 首屏大标题的字号，下面「这里是墨鲸」按它的 0.75 走 */
  --hero-title-size: clamp(2.2rem, 7vw, 5.2rem);
}

.hero-eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .85;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: var(--hero-title-size);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* 这里是墨鲸 —— 比大标题小一档（0.55 倍） */
.hero-alias {
  margin: 0 0 1.7rem;
  font-size: calc(var(--hero-title-size) * 0.55);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(120deg, #ffffff 8%, var(--accent) 62%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .92;
}

/* 常驻立绘：固定在左上角，不参与化星 */
.hero-mascot {
  position: fixed;
  top: 62px;
  left: 70px;
  width: clamp(72px, 6vw, 88px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  z-index: 126;
  border: 1px solid rgba(126, 232, 250, .3);
  background: #0b1220;
  box-shadow: 0 0 44px -12px rgba(126, 232, 250, .6);
  pointer-events: none;          /* 不挡点击，也让下面的命中检测能穿透它 */
  transition: opacity var(--dur-trans) var(--ease);
}
/* 压住内容时变淡；完全被内容盖住时消失 */
.hero-mascot.is-dim { opacity: .35; }
.hero-mascot.is-hidden { opacity: 0; }
/* 名字：彩色像素点（canvas 绘制，文案只做占位与布局） */
.pixel-name {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.pixel-text {
  background: linear-gradient(120deg, #ffffff 10%, var(--accent) 55%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* canvas 就绪后，文字只保留占位，不显示 */
.pixel-name.is-ready .pixel-text { visibility: hidden; }
.pixel-canvas {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}
.pixel-name.is-ready .pixel-canvas { visibility: visible; }

.hero-sub {
  margin: 0 0 2.2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.6vw, 1.32rem);
  color: var(--muted);
  line-height: 1.85;
}

.rot {
  display: inline-block;
  min-width: 3.2em;
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--dur-layout) var(--ease), transform var(--dur-layout) var(--ease);
}
.rot.is-out { opacity: 0; transform: translateY(-6px); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .85rem;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: .5rem; }
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
.dot-live {
  background: #4ade80;
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.scroll-hint span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-6px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ============ 区块 ============ */
.section { padding: 6rem 0; }

.sec-eyebrow {
  margin: 0 0 .6rem;
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--accent);
  opacity: .8;
}
.sec-title {
  margin: 0 0 2.6rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.4rem;
  align-items: stretch;
}
.about-text { padding: 2rem 2.1rem; }
.about-text p { margin: 0 0 1rem; color: var(--muted); }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-cards {
  display: grid;
  gap: 1rem;
}
.mini-card { padding: 1.3rem 1.5rem; }
.mini-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
  opacity: .85;
}
.mini-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* 技能 */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.skill-group { padding: 1.6rem 1.6rem 1.8rem; }
.skill-group h3 {
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .04em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chips li {
  padding: .34rem .8rem;
  font-size: .82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(45, 38, 28, .045);
  box-shadow: inset 0 1px 0 rgba(45, 38, 28, .045);
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease),
              background var(--dur-micro) var(--ease), transform .28s var(--ease),
              box-shadow .28s var(--ease);
}
/* 技能标签：悬停浮起，带一点投影和光晕 */
.chips li:hover {
  color: var(--accent);
  border-color: rgba(126, 232, 250, .45);
  background: rgba(126, 232, 250, .07);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .38),
              0 0 0 1px rgba(126, 232, 250, .12);
}

/* 项目 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-layout) var(--ease), border-color var(--dur-layout) var(--ease),
              background var(--dur-layout) var(--ease), box-shadow var(--dur-layout) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 232, 250, .38);
  background: var(--glass-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-no {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--muted);
  opacity: .7;
}
.card-tag {
  padding: .24rem .68rem;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid rgba(126, 232, 250, .22);
  border-radius: 999px;
  /* 一层很淡的青、一层几乎没有的白：看起来像一片薄玻璃 */
  background: linear-gradient(145deg,
    rgba(126, 232, 250, .17) 0%,
    rgba(126, 232, 250, .06) 42%,
    rgba(45, 38, 28, .045) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  /* 顶上一道内高光、底下一道暗边，再加一点外发光 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 2px 12px -5px rgba(126, 232, 250, .55);
  text-shadow: 0 0 10px rgba(126, 232, 250, .45);
}
.card h3 {
  margin: 0 0 .7rem;
  font-size: 1.08rem;
  font-weight: 600;
}
.card p {
  margin: 0 0 .9rem;
  font-size: .9rem;
  color: var(--muted);
}
.card-stack {
  margin-top: auto;
  font-size: .76rem !important;
  letter-spacing: .06em;
  color: rgba(126, 232, 250, .7) !important;
}

/* ============ VRC 衣柜 ============ */

.vrc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  /* 透视放在容器上，几张卡共用同一个消失点，倾斜才不各转各的 */
  perspective: 1100px;
}
.vrc-grid > .notes-empty,
.vrc-grid > .notes-loading { grid-column: 1 / -1; }

.vrc-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  /* 倾斜角由 JS 写进 --rx / --ry；悬停抬升用 --ty，两者互不打架 */
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0px));
  transition: transform var(--dur-trans) var(--ease), border-color var(--dur-layout) var(--ease),
              box-shadow var(--dur-layout) var(--ease);
}
/* 指针在卡片上移动时：跟手要快，弹性留给移出 */
.vrc-card.is-tilting {
  transition: transform .09s linear, border-color var(--dur-layout) var(--ease),
              box-shadow var(--dur-layout) var(--ease);
}
.vrc-card:hover {
  --ty: -5px;
  border-color: rgba(126, 232, 250, .4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}

.vrc-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 整个图区（图片 + 底色 + 网格纹理）到下半段一起化掉，
     露出的是卡片自己的玻璃底，所以和下面的文字区没有分界线 */
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%, #000 54%, rgba(0, 0, 0, .86) 70%,
    rgba(0, 0, 0, .48) 86%, transparent 100%);
  mask-image: linear-gradient(180deg,
    #000 0%, #000 54%, rgba(0, 0, 0, .86) 70%,
    rgba(0, 0, 0, .48) 86%, transparent 100%);
  background:
    radial-gradient(120% 100% at 20% 0%,
      hsl(var(--hue, 200) 90% 62% / .38), transparent 62%),
    linear-gradient(160deg,
      hsl(var(--hue, 200) 70% 22% / .9),
      hsl(calc(var(--hue, 200) + 45) 72% 11% / .95));
}
/* 像素网格纹理，弱化的 */
.vrc-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 38, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 38, 28, .045) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .55;
  pointer-events: none;
}

/* 图片还没到位时的骨架微光；图片加载完 .is-loaded 会把它关掉 */
.vrc-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(45, 38, 28, .08) 45%,
    transparent 65%
  );
  background-size: 220% 100%;
  background-position: 160% 0;
  animation: skeletonSweep 1.4s linear infinite;
  pointer-events: none;
}
.vrc-card.is-loaded .vrc-thumb::before {
  display: none;
}
@keyframes skeletonSweep {
  to { background-position: -160% 0; }
}
.vrc-thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 截图是 16:9 横图，卡片是 4:5 竖框：左右会被裁掉。
     每张卡可以单独给 --focus（水平焦点，0% 最左 / 100% 最右）微调取景 */
  object-position: var(--focus, 50%) center;
  /* 视差：卡片倾斜时图片反向挪一点点，做出厚度；--zoom 负责悬停放大 */
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1));
  transition: transform var(--dur-trans) var(--ease);
}


.vrc-card:hover .vrc-thumb img { --zoom: 1.06; }
.vrc-card.is-tilting .vrc-thumb img { transition: transform var(--dur-micro) linear; }
.vrc-initial {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.vrc-body { padding: 1rem 1.1rem 1.2rem; }
.vrc-body h3 {
  margin: 0 0 .3rem;
  font-size: 1rem;
  font-weight: 600;
}
.vrc-meta {
  margin: 0 0 .75rem;
  font-size: .78rem;
  color: var(--muted);
}
.vrc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.vrc-tags li {
  position: relative;
  isolation: isolate;
  padding: .2rem .62rem;
  font-size: .7rem;
  color: var(--accent);
  border: 0;                        /* 不要那条硬边线 */
  border-radius: 999px;
  background: rgba(126, 232, 250, .10);
  text-shadow: 0 0 10px rgba(126, 232, 250, .4);
  box-shadow: inset 0 1px 0 rgba(45, 38, 28, .08);
}
/* 边缘不是画的，是糊出来的：一圈毛玻璃光晕 */
.vrc-tags li::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side,
    rgba(126, 232, 250, .30),
    rgba(126, 232, 250, .12) 62%,
    transparent 100%);
  filter: blur(5px);
  opacity: .85;
  pointer-events: none;
}

/* 动态 */
.notes-list { display: grid; gap: .8rem; }
.notes-loading,
.notes-empty {
  padding: 1.6rem;
  font-size: .9rem;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  text-align: center;
}
.note {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.note:hover { border-color: var(--line-2); background: var(--glass-2); }
.note-date {
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.note-title { font-size: .95rem; font-weight: 600; }
.note-sum { display: block; margin-top: .15rem; font-size: .84rem; color: var(--muted); }
.note-tag {
  padding: .16rem .58rem;
  font-size: .7rem;
  color: var(--accent);
  border: 1px solid rgba(126, 232, 250, .28);
  border-radius: 999px;
  white-space: nowrap;
}

/* 联系 */
.contact-card { padding: 2.4rem 2.1rem; }
.contact-lead {
  margin: 0 0 1.8rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 32rem;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.6rem;              /* 行距 0、列距 2.6rem：一行放两个 */
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}

/* 窄屏放不下并排，回到一行一个 */
@media (max-width: 720px) {
  .contact-list { grid-template-columns: 1fr; }
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-key {
  min-width: 4.5rem;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.contact-list a,
.contact-val,
.copy {
  font-size: .95rem;
  color: var(--text);
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  transition: color var(--dur-micro) var(--ease);
}
.contact-list a:hover { color: var(--accent); }
.copy {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.copy:hover { color: var(--accent); border-bottom-color: rgba(126, 232, 250, .5); }
.copy.is-done { color: #4ade80; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.footer-brand {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}
.footer-brand span { color: var(--muted); font-weight: 400; }
.footer-copy {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

/* ============ 滚动进场 ============ */
/* 只有脚本能跑时才隐藏初始内容：脚本被拦时（比如预览器）页面照常完整显示。
   用独立的 translate 属性 + animation，而不是 transform/transition ——
   否则会覆盖掉卡片自己的悬停位移、3D 倾斜和它们的过渡节奏 */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
}
.js .reveal.is-in {
  animation: revealIn var(--dur-trans) var(--ease) both;
}
@keyframes revealIn {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .skill-groups { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }

  /* 导航项变多了，这一档就收进折叠菜单 */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 14, 25, .92);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease), visibility var(--dur-micro);
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a { padding: .7rem .9rem; font-size: .95rem; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 7rem 24px 5rem; }
  .hero-meta { gap: .9rem 1.2rem; }
  .note { grid-template-columns: 1fr auto; }
  .note-date { grid-column: 1 / -1; }
  .contact-card { padding: 1.8rem 1.4rem; }
  .about-text { padding: 1.5rem 1.6rem; }
  .scroll-hint { display: none; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .contact-list li { flex-wrap: wrap; gap: .3rem; }
  .contact-key { min-width: 100%; }
}

/* 联系方式前面那行小标题：改成描边空心字 */
#contact .sec-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(126, 232, 250, .92);
  text-shadow: 0 0 16px rgba(126, 232, 250, .35);
}
/* 联系列表：左侧标签改成描边图标 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact-list .contact-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  min-width: 2.4rem;
  letter-spacing: 0;
}

.contact-list .contact-key svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
  transition: opacity var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}

.contact-list li:hover .contact-key svg {
  opacity: 1;
  transform: scale(1.08);
}

/* 窄屏下标签不再换行占满一整行 */
@media (max-width: 420px) {
  .contact-list .contact-key { min-width: 2.4rem; }
}
/* 三个有品牌色的：描边不变，只换线的颜色 */
.contact-list .contact-key svg.ico-discord {
  stroke: #5865f2;
  filter: brightness(1.25);
}
.contact-list .contact-key svg.ico-wechat {
  stroke: #07c160;
  filter: brightness(1.15);
}
.contact-list .contact-key svg.ico-qq {
  stroke: #12b7f5;
  filter: brightness(1.1);
}
/* ============ 移动端（≤900px）：不要星轨，改顶部导航条 ============ */
@media (max-width: 900px) {
  /* 顶部导航条常驻，锚点跳转要留出它的高度 */
  html { scroll-padding-top: 72px; }

  /* 首屏：留出导航条的位置，不再有星轨 */
  .hero {
    padding: 6.4rem 20px 4.5rem;
  }
  .hero-inner { --hero-title-size: clamp(2rem, 11vw, 3.2rem); }

  /* 立绘缩到右上角，别压标题 */
  .hero-mascot {
    top: 62px;
    right: 16px;
    left: auto;
    width: 58px;
  }

  /* 导航条：整行铺开，太挤就横向滑 */
  .mini-nav {
    top: 10px;
    left: 10px;
    right: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: .26rem;
    border-radius: 14px;
    scrollbar-width: none;
  }
  .mini-nav::-webkit-scrollbar { display: none; }
  .mini-nav a {
    flex: 0 0 auto;
    font-size: .7rem;
    padding: .34rem .52rem;
  }

  /* 加载完从上面落下来 */
  .mini-nav.is-drop {
    animation: navDrop var(--dur-trans) cubic-bezier(.22, .61, .36, 1) both;
  }
  @keyframes navDrop {
    0%   { transform: translateY(-170%); opacity: 0; }
    55%  { opacity: 1; }
    100% { transform: none; opacity: 1; }
  }

  /* 首屏文字收敛一点 */
  .hero-eyebrow { font-size: .66rem; letter-spacing: .2em; }
  .hero-sub { font-size: .95rem; line-height: 1.7; }
  .hero-alias { margin-bottom: 1.1rem; }
  .hero-actions { gap: .55rem; }
  .hero-actions .btn { padding: .7rem 1.2rem; font-size: .9rem; }
  .hero-meta { font-size: .78rem; gap: .45rem 1rem; }
  .section { padding: 3.8rem 0; }
  .wrap { padding: 0 20px; }
}
/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  /* 加了 force-motion（网址带 ?anim=1）就整段失效，按正常动画播放 */
  html:not(.force-motion) { scroll-behavior: auto; }

  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html:not(.force-motion) .reveal { opacity: 1; translate: none; }

  /* 关掉动效就直接不播过场，别让人对着静止的进度干等 */
  html:not(.force-motion) .intro { display: none !important; }
  html:not(.force-motion) .vrc-thumb::before { display: none; }
}


/* ============ VRC 衣柜：大小不一的图块 ============
   2026-11-14 墨鲸加。原来的 .vrc-card 三列等宽卡片换成瀑布式网格：
   每个块用 data-size 决定占几格，空的就 1×1。
   现在里面是 .vrc-slot 占位（纯白毛玻璃），图片来了把 span 换成 img 就行。
   */
.vrc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 108px;
  gap: 12px;
  margin-top: 1.6rem;
}

.vrc-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(45, 38, 28, .045);
  border: 1px solid rgba(45, 38, 28, .08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(45, 38, 28, .045);
  transition:
    transform var(--dur-layout) var(--ease),
    border-color var(--dur-layout) var(--ease),
    box-shadow var(--dur-layout) var(--ease),
    background-color var(--dur-layout) var(--ease);
}
.vrc-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42);
}

.vrc-tile[data-size="wide"] { grid-column: span 2; }
.vrc-tile[data-size="tall"] { grid-row: span 2; }
.vrc-tile[data-size="big"]  { grid-column: span 2; grid-row: span 2; }

/* 图片来的时候用这个：把 span.vrc-slot 换成 img，自动铺满 */
.vrc-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-trans) var(--ease);
}
.vrc-tile:hover > img { transform: scale(1.04); }

/* 占位：一块干净的毛玻璃，什么都不写 */
.vrc-slot {
  display: block;
  width: 100%;
  height: 100%;
}

/* 窄屏压成两列，避免格子太碎 */
@media (max-width: 900px) {
  .vrc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 88px;
    gap: 10px;
  }
  .vrc-tile[data-size="wide"],
  .vrc-tile[data-size="big"] { grid-column: span 2; }
}

/* ============ 自我介绍页（先留空） ============ */
.self-body {
  min-height: 42vh;
}


/* ============ 标题居中 ============
   2026-11-14 墨鲸加。所有区块的小标题和主标题都居中。
   .sec-eyebrow 带 0.24em 字距，居中后右边会多出半个字距的空隙，
   用 text-indent 补回来，视觉上才是真居中。
   */
.sec-eyebrow {
  text-align: center;
  text-indent: .24em;
}
.sec-title {
  text-align: center;
}

/* 自我介绍页的标题也是同一套 */
#self .sec-eyebrow,
#self .sec-title {
  text-align: center;
}




/* ============ 衣柜：横向布局（覆盖前面的竖版规则） ============
   2026-11-14 墨鲸改。全部改成横向长方形：wide = 2 格宽 1 格高（2:1），
   big = 3 格宽 1 格高（3:1），空着的是 1:1 的小方块透气用。
   行高压到 92px，横宽比更明显。
   */
.vrc-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 92px;
  gap: 12px;
}

/* 竖版的 tall 不再使用，留着也不会命中（HTML 里已经没有 data-size="tall"） */
.vrc-tile[data-size="wide"] { grid-column: span 2; grid-row: span 1; }
.vrc-tile[data-size="big"]  { grid-column: span 3; grid-row: span 1; }
.vrc-tile[data-size="tall"] { grid-column: span 1; grid-row: span 1; }

/* 窄屏：两列，横向比例保留 */
@media (max-width: 900px) {
  .vrc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 88px;
    gap: 10px;
  }
  .vrc-tile[data-size="wide"] { grid-column: span 2; }
  .vrc-tile[data-size="big"]  { grid-column: span 2; }
}


/* ============ VRC 衣柜：悬停预览 ============
   2026-11-14 墨鲸加。指针停在图上超过 260ms，在鼠标旁边弹一个小窗，
   显示没裁过的完整图。跟随鼠标，别跑出视口。
   */
.vrc-preview {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transition: opacity var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 38, 28, .08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .62);
  background: rgba(14, 20, 28, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vrc-preview.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.vrc-preview img {
  display: block;
  max-width: 420px;
  max-height: 300px;
  width: auto;
  height: auto;
}

/* 触屏设备没有 hover，别让它占资源 */
@media (hover: none) {
  .vrc-preview { display: none; }
}


/* ============ 女装弹窗 ============
   2026-11-14 墨鲸加。点「看看女装」弹出来，白底黑字「想屁吃」，
   桌面占屏幕 50%，手机上铺得宽一点、保持正方形。
   */
.skirt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-smooth);
}
.skirt-modal.is-on {
  display: grid;
  opacity: 1;
}

.skirt-modal-box {
  /* 桌面：屏幕的一半，大致正方形 */
  width: 50vw;
  height: 50vh;
  max-width: 640px;
  max-height: 420px;
  min-width: 260px;
  min-height: 180px;

  display: grid;
  place-items: center;

  background: #fff;
  color: #000;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: .06em;
  border-radius: 16px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .6);
  transform: scale(.94);
  transition: transform var(--dur-micro) var(--ease-spring);
  user-select: none;
}
.skirt-modal.is-on .skirt-modal-box {
  transform: scale(1);
}

/* 手机：宽一点、正方形，字也跟着缩 */
@media (max-width: 900px) {
  .skirt-modal-box {
    width: 78vw;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: none;
    max-height: none;
    font-size: clamp(2rem, 12vw, 3.2rem);
    border-radius: 14px;
  }
}

/* 矮屏（横过来看的手机）：别让它超出屏幕 */
@media (max-height: 520px) {
  .skirt-modal-box {
    height: 72vh;
    aspect-ratio: auto;
  }
}


/* ============ 关于我：两栏底部齐平 ============
   2026-11-14 墨鲸改。
   原来是 align-items: start —— 左栏八段长文、右栏三个小卡，右边短一大截，底部参差。
   现在让两栏等高拉伸，右栏三张卡平分高度，底边对齐。
   */
.about-grid {
  align-items: stretch;
}

.about-cards {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.about-cards .mini-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 左栏文字：段落间距稍微收一点，八段排下来不至于太长 */
.about-text p {
  margin: 0 0 .85rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}

/* 窄屏：改成一列，卡片横着排，不拉伸 */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }
}

/* 更窄：卡片也变一列 */
@media (max-width: 600px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}


/* ============ 关于我：三张小卡的文字居中 + 放大 ============
   2026-11-14 墨鲸改。「现在 / 喜欢 / 在学」这三个标签原来贴左边、
   字号 .72rem 偏小，改成居中并放到 1rem，正文也居中、放大一点。
   */
.about-cards .mini-card {
  text-align: center;
  align-items: center;
}

.mini-label {
  display: block;
  text-align: center;
  margin-bottom: .7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: 1;
}

.about-cards .mini-card p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
}

/* 手机上也保持居中 */
@media (max-width: 900px) {
  .mini-label {
    font-size: 1rem;
  }
  .about-cards .mini-card p {
    font-size: .95rem;
  }
}


/* ============ 页脚窄条：点赞 + 留言 ============
   2026-11-14 墨鲸加。
   一条细横条贴在页面最下面：
     左边一颗心 + 数字（点了加一）
     右边一个输入框，能留言
     还没输入的时候，输入框里轮播别人留过的言
   */
.wall-bar {
  margin-top: 4rem;
  padding: 0 0 3rem;
}
.wall-inner {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  background: rgba(45, 38, 28, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* 点赞 */
.wall-like {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem .42rem .62rem;
  border: 1px solid rgba(45, 38, 28, .08);
  border-radius: 999px;
  background: transparent;
  color: #cfdae4;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-smooth), border-color var(--dur-micro) var(--ease-smooth), color var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
  flex: 0 0 auto;
}
.wall-like:hover {
  border-color: rgba(255, 108, 132, .55);
  color: #ff8fa3;
}
.wall-like:active { transform: scale(.95); }
.wall-like svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill var(--dur-micro) var(--ease-smooth);
}
.wall-like.is-liked {
  color: #ff6b85;
  border-color: rgba(255, 107, 133, .5);
  background: rgba(255, 107, 133, .1);
}
.wall-like.is-liked svg { fill: currentColor; }
.wall-like.is-pop { animation: wallPop var(--dur-layout) var(--ease-smooth); }
@keyframes wallPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* 留言输入 */
.wall-msg {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.wall-msg input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .46rem .9rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: #e6eef5;
  font-size: .86rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--dur-micro) var(--ease-smooth), background var(--dur-micro) var(--ease-smooth);
}
.wall-msg input::placeholder {
  color: #6d8091;
  transition: opacity var(--dur-layout) var(--ease-smooth);
}
.wall-msg input:focus {
  border-color: rgba(126, 232, 250, .45);
  background: rgba(0, 0, 0, .32);
}
.wall-msg button {
  flex: 0 0 auto;
  padding: .46rem 1.1rem;
  border: 1px solid rgba(126, 232, 250, .35);
  border-radius: 999px;
  background: rgba(126, 232, 250, .12);
  color: #7ee8fa;
  font-size: .84rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-smooth), opacity var(--dur-micro) var(--ease-smooth);
}
.wall-msg button:hover { background: rgba(126, 232, 250, .2); }
.wall-msg button:disabled { opacity: .45; cursor: default; }

/* 状态提示（发送成功/失败） */
.wall-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: rgba(20, 28, 36, .95);
  border: 1px solid rgba(45, 38, 28, .08);
  color: #e6eef5;
  font-size: .84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
  z-index: 10001;
}
.wall-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  .wall-bar { margin-top: 3rem; padding-bottom: 2rem; }
  .wall-inner {
    flex-wrap: wrap;
    gap: .6rem;
    padding: .65rem .75rem;
    border-radius: 18px;
  }
  .wall-like { padding: .4rem .8rem .4rem .55rem; font-size: .84rem; }
  .wall-msg { flex: 1 1 100%; }
  .wall-msg button { padding: .46rem .9rem; }
}

/* ==== 墨鲸：给右上角悬浮导航让出安全区 ==== */
/* nav 固定在 top:18px right:18px，高约 40px，占掉右上角一块。
   给每个 section 顶部加安全区，内容就不会被压住。 */
section {
  scroll-margin-top: 56px;
}
section .wrap {
  padding-top: 34px;
}
.sec-eyebrow {
  margin-top: 0;
}

/* ==== 墨鲸：动效细化补丁 ==== */
/* 1) 所有可点元素统一手感：快进 + 悬停微抬 */
a, button, .card, .mini-card, .vrc-tile, .note, .nav a {
  transition:
    color var(--dur-micro) var(--ease),
    background-color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}

/* 2) 卡片悬停：上抬 2px + 边框提亮，比单纯变背景更有回应感 */
.card:hover,
.mini-card:hover,
.vrc-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 100, 75, .32);
}

/* 3) 按下时压回原位，给一点「按到了」的触感 */
.card:active,
.mini-card:active,
.vrc-tile:active {
  transform: translateY(0);
  transition-duration: 90ms;
}

/* 4) 键盘焦点：不用 outline 的锯齿，改柔和的环 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(120, 100, 75, .75);
  outline-offset: 3px;
  border-radius: 999px;
}

/* 5) 尊重系统的「减少动效」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   首屏右侧：纸质记事本导航（墨鲸 2026-12-01）
   替掉原来那圈星系，改成一张便签纸：圆角、暖白、左侧红线
   ============================================================ */
.hero-notebook {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, 34vw);
  padding: 34px 34px 38px 44px;
  /* 暖白纸面，上浅下深一点点，像被压住过 */
  background:
    linear-gradient(168deg, #FEFCF7 0%, #F8F3E8 62%, #F2ECDE 100%);
  border-radius: 20px;
  border: 1px solid rgba(150, 128, 96, .22);
  box-shadow:
    /* 两层阴影：一层贴地、一层散开，纸才不会浮空 */
    0 2px 4px rgba(120, 100, 72, .10),
    0 26px 64px -26px rgba(96, 76, 50, .40),
    /* 左上角一道高光，纸的折边 */
    inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #2E2A24;
  z-index: 6;
}

/* 左侧那道红色竖线，笔记本的边线 */
.hero-notebook::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(198, 116, 96, 0) 0%,
    rgba(198, 116, 96, .45) 12%,
    rgba(198, 116, 96, .45) 88%,
    rgba(198, 116, 96, 0) 100%
  );
  pointer-events: none;
}

/* 纸面上一点点横纹，暗示是横线本 */
.hero-notebook::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 37px,
    rgba(140, 120, 90, .07) 37px,
    rgba(140, 120, 90, .07) 38px
  );
  pointer-events: none;
  /* 只在中间区域显示，边缘淡出 */
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ---------- 顶部「首页」 ---------- */
.hero-notebook .nb-title {
  position: relative;
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: #2E2A24;
  text-align: left;
}

/* 标题下面一道短横，像手画的 */
.hero-notebook .nb-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 46px;
  height: 2px;
  background: rgba(198, 116, 96, .55);
  border-radius: 1px;
}

/* ---------- 列表 ---------- */
.hero-notebook .nb-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.hero-notebook .nb-list li {
  border-bottom: 1px solid rgba(140, 120, 90, .16);
}

.hero-notebook .nb-list li:last-child {
  border-bottom: none;
}

.hero-notebook .nb-list a {
  display: flex;
  align-items: baseline;
  gap: .55em;
  padding: 15px 6px 15px 2px;
  font-size: 1.02rem;
  color: #3A342B;
  text-decoration: none;
  transition:
    color 180ms cubic-bezier(.22, 1, .36, 1),
    padding-left 180ms cubic-bezier(.22, 1, .36, 1),
    background-color 180ms cubic-bezier(.22, 1, .36, 1);
  border-radius: 8px;
}

/* 序号：小一号，偏灰，像手写编号 */
.hero-notebook .nb-num {
  flex: 0 0 auto;
  min-width: 1.6em;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  color: #9A8E7C;
  transition: color 180ms cubic-bezier(.22, 1, .36, 1);
}

.hero-notebook .nb-text {
  flex: 1 1 auto;
  letter-spacing: .06em;
}

/* 悬停：整行右移一点，序号亮起来 */
.hero-notebook .nb-list a:hover {
  color: #17140F;
  padding-left: 12px;
  background: rgba(198, 168, 120, .12);
}

.hero-notebook .nb-list a:hover .nb-num {
  color: #C67460;
}

.hero-notebook .nb-list a:focus-visible {
  outline: 2px solid rgba(120, 100, 75, .55);
  outline-offset: 2px;
}

/* 窄屏：记事本挪到正文下面，不再绝对定位 */


/* ==== 墨鲸 2026-12-01：雨沉到卡片下面 ==== */
/* 雨的 canvas 是 appendChild 到 body 末尾的，DOM 顺序天然压在上面，
   所以光给雨设 z-index:0 不够，内容必须有明确的 z-index 才压得住。 */
main,
.section,
.hero {
  position: relative;
  z-index: 1;
}

/* 页脚和迷你导航本来就有层级，这里只是确保它们也在雨之上 */
.footer,
.mini-nav {
  position: relative;
  z-index: 2;
}

.mini-nav {
  position: fixed;   /* 覆盖上面的 relative，导航还是得固定 */
  z-index: 130;
}

/* ============================================================
   墨鲸 2026-12-01：手机端适配
   把记事本从绝对定位改成跟随文档流，避免盖住左侧文字
   ============================================================ */
@media (max-width: 860px) {
  /* 首屏改成竖排 */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-inner {
    max-width: 100%;
  }

  /* 记事本从右侧浮层改回普通块 */
  .hero-notebook {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 2.2rem 0 0;
    padding: 26px 22px 28px 34px;
  }

  /* 首屏标题缩小 */
  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-sub {
    font-size: .95rem;
  }

  /* 天气卡片：跟着记事本走，不固定 */
  #wxCard {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 10px 0 0;
    padding: 9px 12px;
    font-size: .78rem;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 80px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ============================================================
   墨鲸 2026-12-01：手机端天气 + 顶部修正
   ============================================================ */
@media (max-width: 860px) {
  /* 天气卡片在手机上跟着记事本走，不再固定在左上角 */
  #wxCard {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0;
    padding: 9px 12px;
    font-size: .78rem;
    border-radius: 12px;
  }

  /* 手机上不显示天气的描述文字，省地方 */
  #wxCard .wx-desc {
    display: none;
  }

  /* 顶部导航：贴顶，去掉左边多余空白 */
  .mini-nav {
    left: 8px;
    right: 8px;
    top: 8px;
    padding: .26rem .4rem;
    justify-content: center;
  }
}

/* 小屏更紧一点 */
@media (max-width: 460px) {
  .mini-nav {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .mini-nav a {
    font-size: .68rem;
    padding: .3rem .46rem;
  }
}