/* ==========================================================================
   凌晨一点の猫 · 1clockcat — 深色霓虹主题
   1. 变量与基础        2. 通用组件        3. 导航
   4. 首屏              5. 关于            6. 相册
   7. 联系与页脚        8. 灯箱            9. 动画 / 响应式
   ========================================================================== */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --bg: #05040b;
  --bg-2: #0a0816;
  --ink: #f3f0fc;
  --ink-soft: #d6d0ea;
  --muted: #a79fbf;
  --dim: #7b7399;
  --purple: #a855f7;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --line: rgba(168, 85, 247, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --card: rgba(255, 255, 255, 0.035);
  --radius: 20px;
  --container: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景光晕 + 细网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(124, 58, 237, 0.30), transparent 62%),
    radial-gradient(760px 620px at 88% 4%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(980px 760px at 55% 108%, rgba(244, 114, 182, 0.10), transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(168, 85, 247, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section {
  position: relative;
  padding: 104px 0;
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head h2,
.contact-card h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, border-color 0.3s,
    background 0.3s, color 0.3s;
}
.btn .arrow {
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: linear-gradient(115deg, #8b5cf6 0%, #c084fc 45%, #22d3ee 100%);
  color: #0b0616;
  box-shadow: 0 10px 34px -12px rgba(168, 85, 247, 0.85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -12px rgba(34, 211, 238, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

/* ---------- 3. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: rgba(5, 4, 11, 0.72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 亮色照片背景时，导航顶部的轻微渐变保证文字可读 */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 4, 11, 0.62), rgba(5, 4, 11, 0));
  opacity: 1;
  transition: opacity 0.35s;
}
.nav.is-scrolled::before {
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 50px;
  height: 23px;
  display: inline-flex;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 14px rgba(5, 4, 11, 0.75);
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none; /* 有照片背景时不再叠加霓虹光斑 */
}

/* 首屏照片背景：换成自己的 VRChat 截图就替换 assets/hero-bg.jpg
   手机端用 assets/hero-bg-mobile.jpg（竖版裁切，可用 tools/make_hero.py 一起生成） */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: 34% center;
  background-repeat: no-repeat;
  opacity: 1;
}
/* 只保留「文字后面一小块」和「底部与页面衔接」的轻压暗，照片本身保持明亮 */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 42% at 47% 47%, rgba(5, 4, 11, 0.46), rgba(5, 4, 11, 0.12) 70%, rgba(5, 4, 11, 0) 100%),
    linear-gradient(180deg, rgba(5, 4, 11, 0.5) 0%, rgba(5, 4, 11, 0.04) 18%, rgba(5, 4, 11, 0) 56%, rgba(5, 4, 11, 0.9) 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: float 18s ease-in-out infinite;
}
.orb-a {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -80px;
  background: rgba(124, 58, 237, 0.55);
}
.orb-b {
  width: 380px;
  height: 380px;
  top: 10%;
  right: -100px;
  background: rgba(34, 211, 238, 0.30);
  animation-delay: -6s;
}
.orb-c {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: 45%;
  background: rgba(244, 114, 182, 0.26);
  animation-delay: -11s;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 首屏按钮 / 小元素跟着照片走：白 + 半透明白，不再用霓虹渐变 */
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}
.hero .eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
}
.hero .btn-primary {
  background: #ffffff;
  color: #1a1230;
  box-shadow: 0 12px 32px -12px rgba(5, 4, 11, 0.5);
}
.hero .btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 18px 42px -14px rgba(5, 4, 11, 0.55);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.9);
}
.hero-id .dot {
  background: #ffe0f0;
  box-shadow: 0 0 12px #ffe0f0;
}

.hero-avatar {
  position: relative;
  width: 148px;
  height: 148px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ffe0ef, #cfeaff, #fff4fb, #ffe0ef);
  box-shadow: 0 0 60px -14px rgba(255, 236, 246, 0.55);
  margin-bottom: 34px;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}
.hero-avatar-ring {
  position: absolute;
  inset: -26px;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 50%;
  animation: spin 46s linear infinite;
}

.hero-title {
  margin: 14px 0 0;
  font-size: clamp(58px, 13vw, 132px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(108deg, #ffffff 8%, #ffe6f3 55%, #e2f4ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 22px rgba(5, 4, 11, 0.45));
}

.hero-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.07em;
  color: #ddd6f2;
  text-shadow: 0 2px 20px rgba(5, 4, 11, 0.95);
}
.hero-id .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero-tagline {
  margin: 20px 0 0;
  max-width: 32em;
  font-size: clamp(16px, 2vw, 18.5px);
  color: #e9e3f8;
  line-height: 1.8;
  text-shadow: 0 2px 26px rgba(5, 4, 11, 0.95), 0 1px 3px rgba(5, 4, 11, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 40px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.8));
  animation: drop 2.4s ease-in-out infinite;
}

/* ---------- 5. 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.95;
  color: #c8c2de;
}

.about-lead {
  position: relative;
  margin: 0 0 52px;
  padding-left: 26px;
}
.about-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
}
.about-lead p {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.about-lead .about-lead-note {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.about-block {
  margin-top: 58px;
}
.block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.block-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.statement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.statement-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
}
.statement-list li:first-child {
  border-top: 0;
}
.statement-key {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.statement-list p,
.statement-cols p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #c8c2de;
}

.refuse-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.refuse-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.refuse-item strong {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--pink);
}
.refuse-item span {
  font-size: 13px;
  color: var(--muted);
}

.statement-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 44px;
  margin-top: 16px;
}
.statement-cols p {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.callout {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(520px 220px at 8% 0%, rgba(168, 85, 247, 0.16), transparent 72%),
    var(--card);
}
.callout p {
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.social-list a:hover {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.info-card {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.055);
}
.info-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.info-value {
  margin: 12px 0 0;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
}
.info-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- 6. 相册 ---------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.3s,
    transform 0.25s;
}
.filter:hover {
  color: var(--ink);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}
.filter.is-active {
  background: linear-gradient(115deg, #a855f7, #22d3ee);
  border-color: transparent;
  color: #0a0614;
  font-weight: 600;
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, 0.85);
}

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.gallery-sep {
  opacity: 0.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0818;
  cursor: zoom-in;
  font-family: var(--font);
  text-align: left;
  color: inherit;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.4s;
  animation: cardIn 0.5s var(--ease) both;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 22px 50px -22px rgba(168, 85, 247, 0.75);
}
.card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #150f2b, #090614);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s;
  filter: saturate(1.05);
}
.card:hover .card-media img {
  transform: scale(1.055);
}
.card-media.is-broken img {
  display: none;
}
.card-media.is-broken::after {
  content: "图片加载失败";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--dim);
  background: linear-gradient(135deg, #150f2b, #090614);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 4, 11, 0.62);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #e4ddf7;
}
.card-sample {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.12);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #f9c3dd;
}

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 15px 13px;
  background: linear-gradient(180deg, transparent, rgba(4, 3, 10, 0.88) 52%, rgba(4, 3, 10, 0.97));
}
.card-body.is-plain {
  justify-content: flex-end;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #f5f2ff;
}
.card-date {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #b4abd0;
}

.empty {
  padding: 76px 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}
.empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.empty-desc {
  margin: 10px 0 0;
  font-size: 14px;
}
.empty code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---------- 7. 联系与页脚 ---------- */
.section-contact {
  padding-top: 40px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(620px 300px at 50% -30%, rgba(168, 85, 247, 0.25), transparent 70%),
    radial-gradient(500px 260px at 85% 120%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--card);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.contact-note {
  margin: 34px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.footer {
  margin-top: 40px;
  padding: 62px 0 30px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-mark {
  margin-bottom: 14px;
}
.footer-brand p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.footer-muted {
  margin-top: 8px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--dim) !important;
}
.footer-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- 8. 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 2, 8, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.28s ease both;
}
.lightbox[hidden] {
  display: none;
}

.lb-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 94vw;
}
.lb-stage img {
  max-width: 92vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0a0812;
  box-shadow: 0 40px 120px -40px rgba(168, 85, 247, 0.7);
}
.lb-caption {
  text-align: center;
}
.lb-caption h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.lb-caption p {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.lb-btn {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.lb-btn:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: rgba(168, 85, 247, 0.6);
  transform: scale(1.06);
}
.lb-close {
  top: 20px;
  right: 20px;
  font-size: 16px;
}
.lb-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}
.lb-prev:hover {
  transform: translateY(-50%) scale(1.06);
}
.lb-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}
.lb-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

body.is-locked {
  overflow: hidden;
}

/* ---------- 9. 动画 / 响应式 ---------- */
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -30px, 0) scale(1.06);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}
@keyframes drop {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-lead {
    padding-left: 20px;
  }
  .statement-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .statement-cols {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 46px);
    min-height: auto;
    padding-bottom: 86px;
  }
  .hero-avatar {
    width: 124px;
    height: 124px;
  }
  .hero-photo {
    background-image: url("../assets/hero-bg-mobile.jpg");
    background-position: center;
  }
  .hero-photo::after {
    background:
      radial-gradient(86% 56% at 50% 36%, rgba(5, 4, 11, 0.66), rgba(5, 4, 11, 0.24) 74%, rgba(5, 4, 11, 0) 100%),
      linear-gradient(180deg, rgba(5, 4, 11, 0.42) 0%, rgba(5, 4, 11, 0) 22%, rgba(5, 4, 11, 0) 56%, rgba(5, 4, 11, 0.92) 100%);
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .nav-cta {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 76px;
    transform: none;
  }
  .lb-prev:hover,
  .lb-next:hover {
    transform: scale(1.06);
  }
  .lb-prev {
    left: calc(50% - 62px);
  }
  .lb-next {
    right: calc(50% - 62px);
  }
  .lb-stage img {
    max-height: 60vh;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    padding: 12px 20px;
  }
  .contact-card {
    padding: 46px 20px;
    border-radius: 22px;
  }
  .lb-stage img {
    max-width: 96vw;
  }
}

@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 {
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
