/* =========================================================
   X&Y-染色体 — sandbox studio site
   Daylight ice. Hand-written CSS, no framework, no build step.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f8fc;
  --bone: #1e3348;
  --bone-dim: #5c7488;
  --ember: #2f6b86;
  --leaf: #4a8fc7;
  --cool: #4a8fc7;
  --line: rgba(30, 51, 72, 0.15);
  --line-soft: rgba(30, 51, 72, 0.08);

  --pad: clamp(20px, 4.6vw, 72px);
  --max: 1560px;

  --font-sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC",
    "Microsoft YaHei UI", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  --font-mono: "Cascadia Mono", "SF Mono", Consolas, ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

/* ---------- 雪 ---------- */
.snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading { overflow: hidden; height: 100vh; }
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

::selection { background: var(--ember); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #eef4f9; }
::-webkit-scrollbar-thumb {
  background: #a9c4d6;
  border-radius: 99px;
  border: 2px solid #eef4f9;
}
::-webkit-scrollbar-thumb:hover { background: #8fb0c6; }

/* ---------- 3. Background layers ---------- */
.forest,
.rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}
.forest { z-index: 0; }
.rain { z-index: 1; }

.grain {
  position: fixed;
  inset: -120px;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  animation: grainShift 6s steps(6) infinite;
  will-change: transform;
}

@keyframes grainShift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-8px, 6px, 0); }
  40%  { transform: translate3d(6px, -10px, 0); }
  60%  { transform: translate3d(-10px, -4px, 0); }
  80%  { transform: translate3d(8px, 8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- 4. Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 10001; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
@media (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
}

.cursor__dot {
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--bone);
  will-change: transform;
}

.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 51, 72, 0.45);
  border-radius: 50%;
  will-change: transform;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    margin 0.35s var(--ease), background-color 0.35s ease,
    border-color 0.35s ease, opacity 0.3s ease;
}

.cursor__ring span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #f7fafc;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.cursor.is-hover .cursor__ring {
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(30, 51, 72, 0.07);
  border-color: rgba(30, 51, 72, 0.2);
}

.cursor.is-view .cursor__ring {
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--bone);
  border-color: transparent;
}
.cursor.is-view .cursor__ring span { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor__dot { opacity: 0; }

/* ---------- 5. Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: transform 1.05s var(--ease-io);
}
.loader.is-done { transform: translate3d(0, -101%, 0); }

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 24px;
  width: min(420px, 82vw);
}

.loader__meta,
.loader__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}

.loader__count {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 15vw, 8rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.loader__count i {
  font-style: normal;
  font-size: 0.22em;
  color: var(--ember);
  margin-top: 0.55em;
}

.loader__bar {
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform 0.55s var(--ease), background-color 0.4s ease,
    border-color 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translate3d(0, -105%, 0); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  position: relative;
  width: 27px; height: 27px;
  border-radius: 50%;
  border: 1px solid rgba(30, 51, 72, 0.35);
  transition: border-color 0.4s ease, transform 0.6s var(--ease), background-color 0.4s ease;
}
.brand__mark i {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 13px;
  margin: -6.5px 0 0 -0.5px;
  background: var(--ice);
  transform-origin: center;
}
.brand__mark i:nth-child(1) { transform: rotate(45deg); }
.brand__mark i:nth-child(2) { transform: rotate(-45deg); background: var(--ember); }
.brand:hover .brand__mark { border-color: var(--ember); transform: rotate(90deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.brand__text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}

.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
/* 导航只剩一个入口：绝对居中，在视口正中 */
.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.nav__forum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__forum .nav__icon { width: 14px; height: 14px; opacity: 0.85; }
.nav__forum:hover .nav__icon { opacity: 1; }

/* 窄屏交给汉堡菜单，避免和两侧内容打架 */
@media (max-width: 860px) {
  .nav__links { display: none; }
}
.nav__links a {
  position: relative;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(30, 51, 72, 0.72);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}
.nav__links a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  color: var(--ember);
  margin-right: 5px;
  vertical-align: super;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover i { opacity: 1; transform: translateY(0); }

.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active i { opacity: 1; transform: translateY(0); }
.menu__links a.is-active { color: var(--ember); }

.nav__right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }

.nav__time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}

/* 和「聊聊」等大的胶囊，两个按钮成对 */
.nav__login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav__login:hover { background: var(--bone); color: #ffffff; border-color: var(--bone); }
/* ---------- 登录后的用户胶囊 ---------- */
.nav__user { position: relative; }

.user__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.user__btn:hover { border-color: var(--bone); }

.user__avatar {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}

.user__name {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 178px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 24px 60px -34px rgba(30, 51, 72, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 80;
}
.nav__user.is-open .user__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.user__menu a,
.user__menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.user__menu a:hover,
.user__menu button:hover { background: rgba(90, 162, 208, 0.13); }

.user__meta {
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

/* 移动端菜单里的用户 */
.menu__user { display: inline-flex; align-items: center; gap: 9px; }
.menu__avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.nav__icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.8;
}

.nav__cta {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav__cta:hover { background: var(--bone); color: #f7fafc; border-color: var(--bone); }

.nav__toggle {
  display: none;
  width: 34px; height: 34px;
  position: relative;
  z-index: 72;
}
.nav__toggle span {
  position: absolute;
  left: 7px; right: 7px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* ---------- 7. Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: #e9f0f2;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path 0.85s var(--ease-io);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
}
body.menu-open .menu { clip-path: circle(145% at calc(100% - 40px) 38px); pointer-events: auto; }

.menu__links { display: flex; flex-direction: column; gap: 6px; }
body.menu-open .nav__cta,
body.menu-open .nav__login {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease), color 0.3s ease;
}
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: 0.14s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: 0.2s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: 0.26s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: 0.32s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: 0.38s; }
.menu__links a:active { color: var(--ember); }
.menu__links a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}

.menu__foot {
  position: absolute;
  left: var(--pad);
  bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
}

/* ---------- 8. Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bone);
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: translate3d(0, 101%, 0);
  transition: transform 0.55s var(--ease-io);
}
.btn i { font-style: normal; font-size: 14px; transition: transform 0.45s var(--ease); }
.btn:hover { color: #f7fafc; border-color: var(--bone); }
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn:hover i { transform: translate(3px, -3px); }

.btn--solid {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff8f5;
}
.btn--solid::before { background: #1e3348; }
.btn--solid:hover { border-color: #1e3348; color: #f7fafc; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vh, 170px) var(--pad) clamp(96px, 14vh, 140px);
}

/* 白底不再需要压暗，保留一层极淡的冷色雾，让首屏不那么空 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(233, 243, 251, 0.9) 0%, rgba(233, 243, 251, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #e9f3fb 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  opacity: calc(1 - var(--hf, 0));
  transform: translate3d(0, calc(var(--hf, 0) * -44px), 0);
  will-change: opacity, transform;
}
.hero.is-passed .hero__inner { pointer-events: none; }

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(26px, 7vh, 70px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease 0.3s, transform 0.9s var(--ease) 0.3s;
}
body.is-ready .hero__top { opacity: 1; transform: none; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.kicker--right { letter-spacing: 0.16em; }
.kicker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(90, 162, 208, 0.9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero__title {
  font-size: clamp(2.9rem, 10.4vw, 9.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}

.line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }

.line__inner {
  display: block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1.15s var(--ease);
  transition-delay: var(--dl, 0s);
}
body.is-ready .line__inner { transform: translate3d(0, 0, 0); }

.hero__title em,
.contact__title em {
  font-style: normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 首页：叶绿 → 淡蓝 */
.hero__title em {
  background-image: linear-gradient(100deg, #3b7fa8 0%, #5aa2d0 44%, #9cc8e8 100%);
}

/* 联络：橙 → 淡蓝 */
.contact__title em {
  background-image: linear-gradient(100deg, #e9a05c 0%, #9cc8e8 50%, #5aa2d0 100%);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(30px, 6vh, 72px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease 0.55s, transform 1s var(--ease) 0.55s;
}
body.is-ready .hero__bottom { opacity: 1; transform: none; }

.hero__lede {
  max-width: 44ch;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: #4a6a4d;
}

.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__hint {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
  opacity: calc((1 - var(--hf, 0)) * 0.85);
  pointer-events: none;
}
.hero__hint i {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(30, 51, 72, 0.55), transparent);
  transform-origin: top;
  animation: hintDrop 2.6s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0.15); opacity: 0.15; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* --- 场景标注：细引线 + 等宽小字 --- */
.annot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease 1.1s;
}
body.is-ready .annot { opacity: 1; }

.annot__dot {
  flex: none;
  width: 5px; height: 5px;
  border: 1px solid rgba(30, 51, 72, 0.55);
  background: rgba(250, 253, 249, 0.75);
  transform: rotate(45deg);
}

.annot__line {
  flex: none;
  width: var(--w, 120px);
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 51, 72, 0.42), rgba(30, 51, 72, 0.12));
}

.annot__label {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  font-size: 8.5px;
  line-height: 1.55;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30, 51, 72, 0.84);
  white-space: nowrap;
}
.annot__label em {
  font-style: normal;
  font-size: 8px;
  opacity: 0.62;
}

.annot--right { flex-direction: row-reverse; }
.annot--right .annot__line {
  background: linear-gradient(270deg, rgba(30, 51, 72, 0.42), rgba(30, 51, 72, 0.12));
}
.annot--right .annot__label { margin: 0 10px 0 0; align-items: flex-end; }

.hero__frame {
  position: absolute;
  inset: 22px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(30, 51, 72, 0.07);
}

/* ---------- 10. Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.2em;
  padding-right: 2.2em;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(30, 51, 72, 0.84);
  white-space: nowrap;
}
.marquee b { color: #a9cfe8; font-weight: 400; }
.marquee span:nth-child(3n + 2) b { color: #5aa2d0; }
.marquee span:nth-child(3n + 3) b { color: #e9a05c; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 11. Section shell ---------- */
.section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 172px) var(--pad);
  background: #e9f3fb;
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(42px, 7vw, 96px);
}
.section__idx {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ember);
}
/* 每节一个强调色，别整页都是绿 */
.about .section__idx { color: #5aa2d0; }
.skills .section__idx { color: #2f6b86; }
.contact .section__idx { color: #bf6b2c; }

.section__idx i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(47, 127, 150, 0.65);
}
.section__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.section__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- 12. Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 13. About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.about__side { position: sticky; top: 118px; }

.about__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 2.1;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}
.about__mark {
  margin-top: 26px;
  font-size: 26px;
  color: var(--ember);
  animation: spin 14s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.manifesto__line {
  font-size: clamp(1.5rem, 3.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.manifesto__line .ch { opacity: 0.13; will-change: opacity; }
.manifesto__line .ch.is-lit { opacity: 1; }

.about__text {
  max-width: 54ch;
  margin-top: clamp(32px, 5vw, 56px);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 2;
  color: #4a6a4d;
}

/* ---------- 14. Skills ---------- */
.skills__list { border-top: 1px solid var(--line); }

.skill {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.05fr) 190px;
  gap: clamp(14px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.55s var(--ease), background-color 0.4s ease;
}
.skill::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: -1px;
  width: 1px;
  background: var(--ember);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-io);
}
.skill:hover { padding-left: clamp(10px, 1.6vw, 22px); }
.skill:hover::before { transform: scaleY(1); }

.skill__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  transition: color 0.35s ease;
}
.skill:hover .skill__idx { color: var(--ember); }

.skill__name {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: transform 0.55s var(--ease);
}
.skill:hover .skill__name { transform: translateX(4px); }

.skill__desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: #5f7a58;
  max-width: 44ch;
  transition: color 0.4s ease;
}
.skill:hover .skill__desc { color: #6b7a5f; }

.skill__tags {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 15. Work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4.5vw, 72px) clamp(20px, 3vw, 44px);
}
.card:nth-child(even) { margin-top: clamp(20px, 6vw, 84px); }

.card { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c, #dfe8ec);
  box-shadow: inset 0 0 0 1px rgba(30, 51, 72, 0.08);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform 0.55s var(--ease), box-shadow 0.55s ease;
  will-change: transform;
}
.card:hover .card__media {
  --sc: 1.015;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.card__art {
  position: absolute;
  inset: -12%;
  background:
    repeating-linear-gradient(90deg, rgba(30, 51, 72, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(30, 51, 72, 0.07) 0 1px, transparent 1px 72px),
    radial-gradient(58% 46% at 22% 18%, var(--a) 0%, transparent 62%),
    radial-gradient(52% 44% at 78% 26%, var(--b) 0%, transparent 64%),
    radial-gradient(70% 60% at 46% 96%, var(--a) 0%, transparent 66%),
    var(--c);
  filter: saturate(1.25) contrast(1.08);
  transition: transform 1.4s var(--ease), filter 0.8s ease;
  animation: artFloat 18s ease-in-out infinite alternate;
}

.card__ring {
  position: absolute;
  left: -16%;
  top: 7%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(30, 51, 72, 0.18);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.card__glyph {
  position: absolute;
  right: 8%;
  bottom: 8%;
  z-index: 1;
  font-size: clamp(84px, 10vw, 148px);
  line-height: 1;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(30, 51, 72, 0.3);
  pointer-events: none;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__glyph { transform: translate3d(-3%, -4%, 0); }
@keyframes artFloat {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02) rotate(-1deg); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06) rotate(1deg); }
}
.card:hover .card__art { filter: saturate(1.35) contrast(1.08) brightness(1.06); }

.card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    46% 40% at var(--px, 50%) var(--py, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 70%
  );
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover .card__glow { opacity: 1; }

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(228, 240, 226, 0.45), transparent 46%),
    radial-gradient(120% 92% at 50% 42%, transparent 46%, rgba(228, 240, 226, 0.4) 100%);
  pointer-events: none;
}

.card__num,
.card__year,
.card__view {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30, 51, 72, 0.84);
}
.card__num { top: 18px; left: 20px; }
.card__year { top: 18px; right: 20px; }

.card__view {
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.55s var(--ease);
}
.card:hover .card__view { opacity: 1; transform: none; }

.card__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.card__title h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card__title h3 em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  margin-left: 8px;
  vertical-align: middle;
}
.card__title > span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 16. Path ---------- */
.path__wrap { position: relative; padding-left: clamp(26px, 4vw, 48px); }
.path__rail {
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.path__rail i {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--ember), rgba(90, 162, 208, 0.15));
}
.path__list { display: flex; flex-direction: column; }
.path__item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.path__item::before {
  content: "";
  position: absolute;
  left: calc(clamp(26px, 4vw, 48px) * -1 - 3px);
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(30, 51, 72, 0.3);
  transition: background-color 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.path__item.is-in::before {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 14px rgba(90, 162, 208, 0.6);
}
.path__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
}
.path__text {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: #3c5a72;
  max-width: 62ch;
}
.path__item--now .path__year,
.path__item--now .path__text { color: var(--bone); }

/* ---------- 17. Contact ---------- */
.contact__title {
  font-size: clamp(2.3rem, 8.4vw, 7.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: clamp(38px, 7vw, 78px);
}

.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.05rem, 2.5vw, 1.9rem);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  position: relative;
}
.contact__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bone);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(0.2); transform-origin: right; }
.contact__mail i {
  font-style: normal;
  color: #d9762f;
  transition: transform 0.45s var(--ease);
}
.contact__mail:hover i { transform: translate(4px, -4px); }

.contact__note {
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--bone-dim);
  text-align: right;
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(24px, 3.5vw, 40px);
}
.contact__social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.35s ease;
}
.contact__social a i {
  font-style: normal;
  transition: transform 0.4s var(--ease);
  opacity: 0.5;
}
.contact__social a:hover { color: var(--bone); }
.contact__social a:hover i { transform: translate(3px, -3px); opacity: 1; color: var(--ember); }

/* ---------- 18. Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 26px var(--pad) 30px;
}
.footer__row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.footer__row a { transition: color 0.3s ease; }
.footer__row a:hover { color: var(--ember); }
.footer__clock b { color: var(--bone); font-weight: 400; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #a9cfe8, #5aa2d0, #2f6b86);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__time { display: none; }
  .nav__toggle { display: block; }

  .skill {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 10px;
  }
  .skill__desc { grid-column: 2; }
  .skill__tags { grid-column: 2; text-align: left; }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; display: flex; align-items: center; justify-content: space-between; }
  .about__mark { margin: 0; }

  .annot,
  .hero__frame,
  .hero__hint { display: none; }

  .work__grid { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .card__media { aspect-ratio: 4 / 3.4; }

  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .kicker--right { display: none; }

  .contact__note { text-align: left; }
  .contact__row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }
  body { font-size: 15px; }

  .hero { min-height: 100svh; padding-top: 96px; }
  .hero__title { font-size: clamp(2.35rem, 11.6vw, 4rem); letter-spacing: -0.015em; }
  .hero__actions { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; }

  .marquee span { font-size: 10px; letter-spacing: 0.2em; }

  .section { padding-top: 84px; padding-bottom: 84px; }
  .section__head { grid-template-columns: auto 1fr; gap: 12px; }
  .section__en { display: none; }

  .manifesto__line { font-size: clamp(1.35rem, 6.6vw, 1.9rem); line-height: 1.5; }

  .skill { grid-template-columns: 30px minmax(0, 1fr); }
  .skill__desc { display: none; }

  .path__wrap { padding-left: 22px; }
  .path__item { grid-template-columns: 1fr; gap: 4px; }
  .path__item::before { left: -25.5px; }

  .footer__row { justify-content: flex-start; gap: 10px 22px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .js .line__inner { opacity: 1 !important; transform: none !important; }
  .grain { animation: none; }
  .card__media { transform: none !important; }
}

/* ---------- 点击反馈 ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: rippleOut 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes rippleOut {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.26; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 用独立的 scale 属性，跟 transform 上的磁吸互不干扰 */
a.is-pressed,
button.is-pressed,
[role="button"].is-pressed,
.btn.is-pressed,
.contact__mail.is-pressed {
  scale: 0.965;
  transition: scale 0.12s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
  a.is-pressed, button.is-pressed, .btn.is-pressed { scale: 1; }
}

/* 光标按下时收一下 */
body.is-press.has-cursor .cursor__ring {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: rgba(30, 51, 72, 0.14);
}

/* ---------- 冬天 ---------- */
.hero__top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.winter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 13px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #2f6b86;
  background: #ffffff;
  border: 1px solid #cadff0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.winter:hover {
  border-color: #9cc8e8;
  box-shadow: 0 8px 22px -18px rgba(47, 107, 134, 0.9);
}
.winter:active { transform: scale(0.97); }
.winter:focus-visible {
  outline: 2px solid #9cc8e8;
  outline-offset: 3px;
}

/* ---------- 冬天到了：提示气泡（默认在胶囊正上方） ---------- */
.winter__tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: max-content;
  max-width: min(280px, calc(100vw - 48px));
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-align: left;
  color: #2f6b86;
  background: #ffffff;
  border: 1px solid #cadff0;
  border-radius: 10px;
  box-shadow: 0 22px 46px -32px rgba(30, 51, 72, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0.22s;
  pointer-events: none;
}
.winter__tip::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-right: 1px solid #cadff0;
  border-bottom: 1px solid #cadff0;
  transform: rotate(45deg);
}

/* 上方放不下时（JS 加 is-below）改为在下方 */
.winter.is-below .winter__tip {
  bottom: auto;
  top: calc(100% + 10px);
  transform-origin: top left;
  transform: translateY(-5px) scale(0.97);
}
.winter.is-below .winter__tip::before {
  bottom: auto;
  top: -5px;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid #cadff0;
  border-top: 1px solid #cadff0;
}

.winter.is-open .winter__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 打开时胶囊本身也变色，明确「我点开了」 */
.winter.is-open {
  color: #1f5875;
  background: #eef6fb;
  border-color: #8fc0e0;
}
.winter svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* ---------- 首屏右侧：在线会员（玻璃卡片） ---------- */
.online {
  position: absolute;
  right: var(--pad);
  top: clamp(180px, 26vh, 300px);
  z-index: 3;
  width: 278px;
  padding: 16px 18px 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 60px -40px rgba(30, 51, 72, 0.6);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.online__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 51, 72, 0.1);
}
.online__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #2f6b86;
}
.online__icon svg { width: 17px; height: 17px; }
.online__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.online__body { padding: 13px 0; }
.online__names {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: #2f6b86;
  word-break: break-all;
}
.online__names a { color: inherit; text-decoration: none; }
.online__names a:hover { text-decoration: underline; }

.online__foot {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 -18px;
  padding: 11px 18px;
  font-size: 11.5px;
  color: var(--bone-dim);
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(30, 51, 72, 0.09);
}
.online__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone);
}
.online__sub { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; }
.online__sub b { font-weight: 500; color: var(--ember); }

@media (max-width: 1180px) {
  .online { display: none; }
}

/* ---------- 站内消息抽屉 ---------- */
body.drawer-open { overflow: hidden; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  justify-items: end;
  pointer-events: none;
}
.drawer__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 48, 0.24);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer__panel {
  position: relative;
  box-sizing: border-box;
  width: min(400px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -30px 0 70px -50px rgba(20, 40, 70, 0.8);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  transform: translateX(102%);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__mask { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.drawer__count { font-family: var(--font-mono); font-size: 11px; color: var(--bone-dim); }
.drawer__tools { display: flex; align-items: center; gap: 6px; }
.drawer__trash {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--bone-dim);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.drawer__trash svg { width: 15px; height: 15px; }
.drawer__trash:hover { background: rgba(217, 83, 79, 0.12); color: #b4463f; }

.drawer__close {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 1;
  color: var(--bone-dim);
  background: rgba(30, 51, 72, 0.05);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.drawer__close:hover { background: rgba(90, 162, 208, 0.16); color: var(--ember); }

.drawer__body {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
}
.drawer__empty {
  margin: 40px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  text-align: center;
  color: var(--bone-dim);
}
.drawer__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.drawer__foot a { color: var(--ember); }

.msg {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.msg:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(90, 162, 208, 0.35);
}
.msg a { cursor: pointer; }
.msg.has-link { cursor: pointer; }
.msg.is-new { border-color: rgba(90, 162, 208, 0.5); background: rgba(233, 243, 251, 0.85); }
.msg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.msg__kind {
  padding: 1px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #2f6b86;
  background: rgba(90, 162, 208, 0.14);
  border-radius: 999px;
}
.msg__time { font-family: var(--font-mono); font-size: 10px; color: var(--bone-dim); }
.msg__title { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.msg__title a { color: inherit; }
.msg__title a:hover { color: var(--ember); }
.msg__body { margin: 0; font-size: 12px; line-height: 1.75; color: var(--bone-dim); overflow-wrap: anywhere; }

/* 红点 */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 50%;
  background: #d9534f;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.16);
}
.dot--nav {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
}

/* 菜单里「消息」二字右上角的小红点 */
.menu__label {
  position: relative;
  display: inline-block;
}
.dot--menu {
  position: absolute;
  top: -3px;
  right: -8px;
  margin: 0;
  width: 6px;
  height: 6px;
}
.dot[hidden] { display: none !important; }
.nav__user .user__btn { position: relative; }

/* 消息卡片右上角的删除按钮 */
.msg__top { position: relative; }
.msg__del {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  font-size: 10px;
  line-height: 1;
  color: var(--bone-dim);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.msg:hover .msg__del,
.msg__del:focus-visible { opacity: 1; }
@media (hover: none) {
  .msg__del { opacity: 0.5; }
}
.msg__del:hover { background: rgba(217, 83, 79, 0.14); color: #b4463f; }
.msg.is-removing {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---------- Alert Dialog ---------- */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 48, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dialog__panel {
  position: relative;
  width: min(340px, 100%);
  padding: 22px 22px 18px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 40px 80px -50px rgba(20, 40, 70, 0.9);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dialog.is-open .dialog__mask { opacity: 1; }
.dialog.is-open .dialog__panel { opacity: 1; transform: translateY(0) scale(1); }

.dialog__title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.dialog__text { margin: 0 0 20px; font-size: 12.5px; line-height: 1.8; color: var(--bone-dim); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog__btn {
  padding: 8px 16px;
  font: inherit;
  font-size: 12.5px;
  color: var(--bone);
  background: rgba(30, 51, 72, 0.06);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dialog__btn:hover { background: rgba(30, 51, 72, 0.1); }
.dialog__btn--danger { color: #ffffff; background: #c9584f; }
.dialog__btn--danger:hover { background: #b4463f; }