/* =========================================================
   style.css —— 样式表
   结构：变量 → 基础 → 导航 → 首屏 → 通用区块 → 班级
        → 同学录 → 弹窗 → 时光轴 → 相册 → 留言墙
        → 页脚 → AI 助手 → 响应式
   ========================================================= */

/* ---------- 1. 主题变量 ---------- */
:root {
  --bg: #f7f4ef;
  --bg-soft: #efeae2;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --ink: #191521;
  --ink-2: #443c55;
  --muted: #6f6883;
  --line: rgba(25, 21, 33, 0.09);
  --line-strong: rgba(25, 21, 33, 0.16);

  --c1: #ff7a59;
  --c2: #ff4d8d;
  --c3: #7c5cff;
  --grad: linear-gradient(115deg, var(--c1), var(--c2) 48%, var(--c3));

  --shadow-s: 0 2px 8px rgba(25, 21, 33, 0.06);
  --shadow-m: 0 10px 30px -12px rgba(25, 21, 33, 0.18);
  --shadow-l: 0 30px 70px -30px rgba(25, 21, 33, 0.35);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --nav-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --bg: #0c0a10;
  --bg-soft: #121019;
  --surface: #17141f;
  --surface-2: #1d1927;
  --ink: #f5f1fb;
  --ink-2: #d3cbe2;
  --muted: #9d95b0;
  --line: rgba(245, 241, 251, 0.1);
  --line-strong: rgba(245, 241, 251, 0.2);

  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-m: 0 12px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-l: 0 34px 80px -30px rgba(0, 0, 0, 0.85);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--c3);
}

::selection { background: rgba(255, 77, 141, 0.24); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 20px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- 3. 背景层 ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.16), rgba(124, 92, 255, 0.09) 42%, transparent 68%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
}
html[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(255, 122, 89, 0.16), rgba(124, 92, 255, 0.12) 42%, transparent 70%);
}

/* ---------- 4. 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 44px);
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s, height 0.4s;
}
.nav.is-stuck {
  height: 60px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: auto;
}
.nav__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(255, 77, 141, 0.8);
  transition: transform 0.5s var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-8deg) scale(1.08); }
.nav__title { font-size: 15px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--line); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

#themeBtn .ico-moon { display: none; }
html[data-theme="dark"] #themeBtn .ico-sun { display: none; }
html[data-theme="dark"] #themeBtn .ico-moon { display: block; }

.nav__burger { display: none; }

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 6vh) clamp(18px, 5vw, 60px) 90px;
}
.hero__inner { max-width: 940px; margin: 0 auto; width: 100%; text-align: center; }

.hero__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(54px, 13vw, 148px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 26px 0 0;
}
/* 逐字拆开后，每个字自己带一段渐变，拼起来仍是一条连续的渐变色带 */
.hero__title span {
  display: inline-block;
  background-image: var(--grad);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.85em) rotate(6deg);
  animation: charIn 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.15s);
}
@keyframes charIn {
  to { opacity: 1; transform: none; }
}

.hero__sub {
  margin: 26px auto 0;
  max-width: 540px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 2;
}

.hero__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, color 0.35s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  position: relative;
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  background-size: 180% 180%;
  box-shadow: 0 10px 28px -12px rgba(255, 77, 141, 0.9);
}
.btn--primary:hover { background-position: 100% 50%; }

.btn--ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(10px); }

.btn--mini { padding: 10px 18px; font-size: 13.5px; border-radius: 99px; }
.btn--sm { padding: 11px 22px; font-size: 14px; }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 62px);
  margin-top: 62px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat b {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }

/* 名字跑马灯 */
.marquee {
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c2);
  opacity: 0.5;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--c2);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* ---------- 6. 通用区块 ---------- */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 130px) clamp(18px, 5vw, 40px);
}
.section--tint {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { margin-bottom: 44px; max-width: 660px; }
.section__kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c2);
  font-weight: 700;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 12px;
}
.section__desc { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* 滚动渐入 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 7. 我们的班 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}
.about__text p {
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 2.05;
  letter-spacing: 0.01em;
}
.about__text p + p { margin-top: 20px; }
.about__text p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4em;
  line-height: 0.86;
  padding: 6px 12px 0 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.about__cards { display: grid; gap: 12px; }
.info-card {
  padding: 20px 22px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.info-card:hover { transform: translateX(5px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }
.info-card:hover::before { transform: scaleY(1); }
.info-card__label { font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.info-card b { display: block; font-size: 19px; margin-top: 4px; font-weight: 700; }
.info-card small { color: var(--muted); font-size: 13px; }

/* ---------- 8. 工具栏 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  height: 44px;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 340px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search:focus-within { border-color: var(--c2); box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.12); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder { color: var(--muted); }

.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-btn {
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.tag-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tag-btn.is-on {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 6px 16px -8px rgba(255, 77, 141, 0.9);
}

.result-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  min-height: 20px;
}

/* ---------- 9. 同学卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.card {
  position: relative;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
  box-shadow: var(--shadow-s);
  opacity: 0;
  animation: cardIn 0.7s var(--ease) forwards;
  animation-delay: var(--ad, 0ms);
}
/* 用独立的 translate 属性做入场，避免和 transform 的 3D 倾斜打架 */
@keyframes cardIn {
  from { opacity: 0; translate: 0 26px; scale: 0.97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
.card:hover {
  box-shadow: var(--shadow-l);
  border-color: transparent;
  z-index: 3;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 77, 141, 0.14), transparent 62%);
  transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }

.card__photo {
  position: relative;
  aspect-ratio: 1 / 0.94;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s;
}
.card:hover .card__photo img { transform: scale(1.07); }

.card__initial {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 66px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.7s var(--ease);
  transform: translateZ(20px);
}
.card:hover .card__initial { transform: translateZ(46px) scale(1.06); }

/* 照片区纹理 */
.card__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.32), transparent 42%),
    radial-gradient(circle at 82% 92%, rgba(0, 0, 0, 0.22), transparent 46%);
  pointer-events: none;
}
.card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.card__view {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translate(-50%, 12px);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 16, 28, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transition: all 0.45s var(--ease);
  white-space: nowrap;
}
.card:hover .card__view { opacity: 1; transform: translate(-50%, 0); }

.card__body { padding: 15px 17px 17px; }
.card__name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card__name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.card__meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.card__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__tags { display: flex; gap: 5px; margin-top: 11px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--line);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 14.5px;
}

/* ---------- 10. 同学详情弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 14, 0.55);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: transform 0.3s, background 0.3s;
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.profile { display: grid; grid-template-columns: 240px 1fr; }
.profile__left {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-2);
}
.profile__avatar {
  width: 130px; height: 130px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(25, 21, 33, 0.5);
  background-size: cover;
  background-position: center;
}
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-size: 23px; font-weight: 700; margin-top: 18px; letter-spacing: 0.02em; }
.profile__nick { font-size: 13px; color: var(--muted); margin-top: 2px; }
.profile__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

.profile__right { padding: 34px 30px; }
.profile__facts { display: grid; gap: 11px; margin-bottom: 20px; }
.profile__facts div {
  display: flex;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px;
}
.profile__facts dt {
  flex: none;
  width: 46px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.profile__facts dd { color: var(--ink-2); }

.profile__quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  padding: 14px 18px;
  border-left: 3px solid var(--c2);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.09), transparent);
  margin-bottom: 18px;
}
.profile__bio { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.profile__memory { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-m); background: var(--bg-soft); border: 1px solid var(--line); }
.profile__memory span { font-size: 11.5px; letter-spacing: 0.16em; color: var(--c3); font-weight: 700; }
.profile__memory p { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.85; }

/* ---------- 11. 时光轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 34px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  transition: all 0.45s var(--ease);
}
.tl-item:hover::before {
  border-color: var(--c2);
  background: var(--c2);
  box-shadow: 0 0 0 6px rgba(255, 77, 141, 0.16);
}
.tl-item__date {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--c2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tl-item__title { font-size: 18px; font-weight: 700; margin-top: 3px; letter-spacing: 0.01em; }
.tl-item__text { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.9; max-width: 620px; }
.tl-item__tag {
  display: inline-block;
  margin-top: 9px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 99px;
  color: var(--c3);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

/* ---------- 12. 相册 ---------- */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--surface);
  aspect-ratio: 4 / 3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s;
  transition-delay: var(--d, 0ms);
}
.shot.in { opacity: 1; transform: none; }
.shot:hover { box-shadow: var(--shadow-m); }
.shot svg, .shot img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.9s var(--ease); }
.shot:hover svg, .shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 13px;
  background: linear-gradient(transparent, rgba(12, 10, 16, 0.7));
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  transform: translateY(4px);
  opacity: 0.94;
  transition: transform 0.45s var(--ease), opacity 0.45s;
}
.shot:hover .shot__cap { transform: none; opacity: 1; }
.shot__cap b { font-size: 14px; font-weight: 600; }
.shot__cap span { font-size: 11px; opacity: 0.78; white-space: nowrap; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(8, 7, 11, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.45s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }
#lbStage {
  width: min(760px, 82vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
#lbStage svg, #lbStage img { width: 100%; height: 100%; display: block; object-fit: cover; }
#lbCaption { color: rgba(255, 255, 255, 0.82); font-size: 13.5px; letter-spacing: 0.04em; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__close svg, .lightbox__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.lightbox__nav { position: relative; justify-self: center; }
.lightbox__nav:hover { transform: scale(1.08); }

/* ---------- 13. 留言墙 ---------- */
.wall-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.wall-form input, .wall-form textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-s);
  padding: 11px 14px;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.wall-form input { width: 150px; flex: none; }
.wall-form textarea { flex: 1; min-width: 200px; line-height: 1.7; font-size: 14.5px; }
.wall-form input:focus, .wall-form textarea:focus {
  border-color: var(--c2);
  box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.1);
}
.wall-form .btn { flex: none; }

.wall {
  columns: 3;
  column-gap: 14px;
}
.note {
  break-inside: avoid;
  margin-bottom: 14px;
  padding: 20px 20px 16px;
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  position: relative;
}
.note:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-m);
  border-color: var(--line-strong);
  z-index: 2;
}
.note__top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.note__ava {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.note__name { font-size: 13.5px; font-weight: 600; }
.note__text { font-size: 14px; color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.note__time { font-size: 11px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.note__del {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
}
.note:hover .note__del { opacity: 1; }
.note__del:hover { color: var(--c2); }

/* 置顶便签 */
.note--pinned {
  border-color: var(--c1);
  box-shadow: 0 6px 22px rgba(255, 122, 89, 0.16);
}
.note--pinned::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-m);
  border: 1.5px dashed var(--c1);
  opacity: 0.55;
  pointer-events: none;
}
.note__pin {
  position: absolute;
  top: -11px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 122, 89, 0.35);
}

/* 点赞按钮（在便签底部） */
.note__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.note__foot .note__time { margin-top: 0; }
.note__like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: color 0.3s, border-color 0.3s, transform 0.2s, background 0.3s;
}
.note__like svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: fill 0.3s, stroke 0.3s;
}
.note__like:hover { color: #ff4d8d; border-color: #ff4d8d; transform: scale(1.06); }
.note__like.is-on { color: #ff4d8d; border-color: rgba(255, 77, 141, 0.45); background: rgba(255, 77, 141, 0.08); }
.note__like.is-on svg { fill: #ff4d8d; stroke: #ff4d8d; }
.note__like:disabled { opacity: 0.5; pointer-events: none; }

/* 档案弹窗里「想对大家说」 */
.profile__memory--wish p { color: var(--ink-2); }

/* ---------- 班主任栏目 ---------- */
.teacher {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(26px, 4vw, 44px);
}
.teacher__ava {
  flex: none;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(140deg, #ffb27a, #ff7a59 55%, #e14f8a);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-m);
}
.teacher__ava span {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.teacher__ava small {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
}
.teacher__name {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
}
.teacher__name small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 10px;
}
.teacher__intro {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
.teacher__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.teacher__tags span {
  font-size: 12px;
  color: var(--c1);
  border: 1px solid var(--line);
  background: var(--surface-2, transparent);
  padding: 4px 12px;
  border-radius: 999px;
}
.teacher__words {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--c1);
  background: var(--surface-2, rgba(255, 122, 89, 0.06));
  border-radius: 0 14px 14px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
}
.teacher__words footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .teacher { flex-direction: column; align-items: center; text-align: left; }
  .teacher__ava { width: 120px; }
}

/* ---------- 14. 页脚 ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 9vh, 100px) clamp(18px, 5vw, 40px) 50px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.85;
  max-width: 780px;
  margin: 0 auto;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__small {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2;
}

/* ---------- 15. AI 助手 ---------- */
.ai-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px 13px 16px;
  border-radius: 99px;
  color: #fff;
  background: var(--grad);
  background-size: 180% 180%;
  box-shadow: 0 14px 34px -12px rgba(255, 77, 141, 0.85);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, padding 0.35s;
  animation: fabFloat 4.5s ease-in-out infinite;
}
@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.ai-fab:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 42px -12px rgba(255, 77, 141, 0.95); }
.ai-fab__ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ai-fab__ring {
  position: absolute;
  inset: -4px;
  border-radius: 99px;
  border: 2px solid rgba(255, 77, 141, 0.5);
  animation: ringPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}
.ai-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.ai-panel {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 95;
  width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100svh - 100px));
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: transform 0.42s var(--ease), opacity 0.32s, visibility 0.32s;
}
.ai-panel.is-open { transform: none; opacity: 1; visibility: visible; }

.ai-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ai-panel__id { display: flex; align-items: center; gap: 11px; }
.ai-panel__avatar {
  width: 38px; height: 38px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(255, 77, 141, 0.9);
}
.ai-panel__id b { display: block; font-size: 14.5px; line-height: 1.3; }
.ai-panel__id small { font-size: 11.5px; color: var(--muted); }

.ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg { display: flex; gap: 8px; max-width: 92%; animation: msgIn 0.4s var(--ease); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
}
.msg--bot { align-self: flex-start; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg__bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}
.msg--bot .msg__bubble {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
  color: var(--ink-2);
}
.msg--me .msg__bubble {
  background: var(--grad);
  color: #fff;
  border-top-right-radius: 5px;
  box-shadow: 0 8px 20px -12px rgba(255, 77, 141, 0.9);
}
.msg__bubble b { color: var(--ink); font-weight: 700; }
.msg--me .msg__bubble b { color: #fff; }
.msg__bubble p + p { margin-top: 8px; }
.msg__bubble .mini {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jump {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: all 0.25s;
}
.jump:hover { background: var(--c2); color: #fff; border-color: transparent; }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chips {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  flex-wrap: wrap;
  max-height: 76px;
  overflow-y: auto;
}
.ai-chips button {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: all 0.25s;
  white-space: nowrap;
}
.ai-chips button:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-1px); }

.ai-panel__input {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.ai-panel__input input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 15px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ai-panel__input input:focus { border-color: var(--c2); box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.1); }
.ai-panel__input button {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.ai-panel__input button:hover { transform: scale(1.07) rotate(-6deg); }
.ai-panel__input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile__left { border-right: none; border-bottom: 1px solid var(--line); }
  .wall { columns: 2; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--r-m);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.32s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 12px 14px; font-size: 15px; }
  .nav__links a::after { display: none; }
  .nav__burger { display: grid; }
  .nav__title { display: none; }

  .hero { padding-bottom: 70px; }
  .hero__stats { gap: 22px 30px; margin-top: 44px; }
  .stat b { font-size: 26px; }
  .scroll-hint { display: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card__body { padding: 12px 13px 14px; }
  .card__name { font-size: 15px; }
  .card__meta { font-size: 11.5px; }
  .card__view { display: none; }

  .toolbar { gap: 10px; }
  .search { max-width: none; flex: 1 1 100%; }
  .wall { columns: 1; }
  .wall-form input { width: 100%; }

  .ai-fab { right: 14px; bottom: 14px; padding: 13px; }
  .ai-fab__label { display: none; }
  .ai-panel {
    right: 8px; bottom: 8px; left: 8px;
    width: auto;
    height: min(620px, calc(100svh - 24px));
    border-radius: 24px;
  }

  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 26px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  #lbStage { width: calc(100vw - 32px); }

  .marquee { margin-top: 46px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card__tags .chip:nth-child(n + 3) { display: none; }
}

/* ---------- 17. 减少动效（无障碍） ---------- */
@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;
  }
  .reveal, .card, .shot, .tl-item { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   18. 开场弹窗（Gate）
   ========================================================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 18% 20%, rgba(255, 122, 89, 0.25), transparent 55%),
    radial-gradient(800px circle at 84% 80%, rgba(124, 92, 255, 0.28), transparent 55%),
    rgba(16, 12, 22, 0.9);
  backdrop-filter: blur(10px);
}
.gate__inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  width: 100%;
  color: #f5f1fb;
  animation: gateIn 1s var(--ease) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
}

.gate__kicker {
  font-size: 11.5px;
  letter-spacing: 0.34em;
  opacity: 0.6;
  text-transform: uppercase;
}
.gate__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  margin-top: 10px;
  letter-spacing: 0.06em;
  background: linear-gradient(115deg, #ffb38a, #ff6b9d 50%, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate__photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0 8px;
}
.gate__photo {
  width: min(300px, 42%);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s;
}
.gate__photo--b { transform: rotate(3deg); margin-top: 22px; }
.gate__photo:hover { transform: rotate(0) scale(1.04); box-shadow: 0 40px 90px -25px rgba(0,0,0,0.9); z-index: 2; }
.gate__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  animation: kenburns 14s ease-in-out infinite alternate;
}
.gate__photo--b img { animation-delay: -7s; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.gate__photo figcaption {
  font-size: 11.5px;
  padding: 9px 12px;
  color: rgba(245, 241, 251, 0.75);
  letter-spacing: 0.04em;
}

.gate__text {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 2.1;
  color: rgba(245, 241, 251, 0.82);
}
.gate__text--fun {
  font-size: 12.5px;
  color: rgba(245, 241, 251, 0.5);
  margin-top: 12px;
}
.gate__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.gate .btn--ghost { background: rgba(255,255,255,0.08); color: #f5f1fb; border-color: rgba(255,255,255,0.25); }

/* =========================================================
   19. 背景音乐播放器
   ========================================================= */
.music {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}
.music__disc {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  position: relative;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -8px rgba(255, 77, 141, 0.9);
}
.music__vinyl {
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.28) 0 1px, transparent 1px 4px);
  border: 1px solid rgba(255,255,255,0.5);
}
.music__disc.is-playing .music__vinyl { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music__disc::before {
  content: "▶";
  position: absolute;
  font-size: 13px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.music:not(.is-playing) .music__disc::before { opacity: 1; }
.music__info { display: flex; flex-direction: column; gap: 3px; max-width: 170px; }
.music__title {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music__ctrls { display: flex; gap: 4px; }
.music__ctrls button {
  width: 26px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.music__ctrls button:hover { color: var(--c2); background: var(--line); }
.music__ctrls svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* =========================================================
   20. 登录按钮 + 登录 / 编辑弹窗
   ========================================================= */
.nav__auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.nav__auth:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-1px); }
.nav__auth svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav__auth.is-user { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 6px 16px -8px rgba(255,77,141,0.9); }

.modal__panel--narrow { width: min(420px, 100%); }

.auth { padding: 34px 30px 26px; }
.auth__tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: var(--bg-soft);
  margin-bottom: 24px;
}
.auth__tab {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.auth__tab.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }

.auth__field { display: block; margin-bottom: 16px; }
.auth__field > span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth__field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.auth__field input:focus { border-color: var(--c2); box-shadow: 0 0 0 4px rgba(255,77,141,0.1); }

.btn--block { width: 100%; justify-content: center; }

.auth__error {
  font-size: 13px;
  color: #e5484d;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.25);
  border-radius: var(--r-s);
  padding: 9px 12px;
  margin-bottom: 14px;
}
.auth__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
  text-align: center;
}

/* 编辑资料 */
.edit { padding: 34px 30px 26px; }
.edit__title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.edit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.edit__field { display: flex; flex-direction: column; gap: 6px; }
.edit__field--full { grid-column: 1 / -1; }
.edit__field > span { font-size: 12px; color: var(--muted); }
.edit__field input, .edit__field textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-s);
  padding: 10px 13px;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.edit__field input:focus, .edit__field textarea:focus {
  border-color: var(--c2);
  box-shadow: 0 0 0 4px rgba(255,77,141,0.1);
}
.edit__btns { display: flex; gap: 10px; margin-top: 20px; }

/* 档案弹窗里的操作按钮 */
.profile__acts { display: flex; gap: 8px; margin-top: 18px; }

/* ---------- 用户菜单 ---------- */
.usermenu {
  position: fixed;
  z-index: 120;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  display: flex;
  flex-direction: column;
  animation: menuIn 0.25s var(--ease);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
}
.usermenu button {
  text-align: left;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.usermenu button:hover { background: var(--bg-soft); color: var(--ink); }
.usermenu__danger { color: #e5484d !important; }
.usermenu__danger:hover { background: rgba(229, 72, 77, 0.08) !important; }

/* ---------- 新组件的响应式 ---------- */
@media (max-width: 720px) {
  .nav__auth { padding: 0 11px; }
  .nav__auth #authBtnText { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }

  .gate__photos { gap: 4px; margin-top: 22px; }
  .gate__photo { width: 46%; }
  .gate__text { font-size: 13.5px; }

  .music { left: 12px; bottom: 12px; padding: 7px 10px 7px 7px; gap: 8px; }
  .music__info { max-width: 96px; }
  .music__ctrls { display: none; }

  .edit__grid { grid-template-columns: 1fr; }
  .edit, .auth { padding: 26px 20px 20px; }
}
