:root {
  --bg: #08080e;
  --bg-soft: #0d0d17;
  --panel: #11111d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #fb7185;
  --amber: #fbbf24;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 背景层 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 16s ease-in-out infinite alternate; }
.b1 { width: 46vw; height: 46vw; background: #1b2a6b; top: -14vw; left: -10vw; }
.b2 { width: 34vw; height: 34vw; background: #3b1d66; top: 22vh; right: -12vw; animation-delay: -6s; }
.b3 { width: 26vw; height: 26vw; background: #0e4a4a; bottom: -10vw; left: 28vw; animation-delay: -11s; }
@keyframes float { from { transform: translateY(-4vh) translateX(0); } to { transform: translateY(6vh) translateX(3vw); } }
.bg-noise {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 开机加载 ---------- */
#boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
#boot .boot-inner { text-align: center; z-index: 2; transition: opacity .4s; }
.boot-logo { font-weight: 800; letter-spacing: .5em; text-indent: .5em; font-size: 14px; color: var(--cyan); margin-bottom: 18px; }
.boot-bar { width: 220px; height: 3px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .18s; }
.boot-pct { margin-top: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.boot-curtain { position: absolute; inset: 0; background: var(--bg-soft); z-index: 1; transition: transform .7s cubic-bezier(.8,0,.2,1); }
#boot.done .boot-inner { opacity: 0; }
#boot.done .boot-curtain { transform: translateY(-101%); }
#boot.gone { display: none; }
@media (prefers-reduced-motion: reduce) {
  #boot { display: none; }
  .bg-blob, .reveal { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(8,8,14,.55); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-logo { font-weight: 800; letter-spacing: .12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-admin { opacity: .35; font-weight: 900; letter-spacing: 0; }
.nav-admin:hover { opacity: 1; }

/* ---------- 通用 ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.sec-head { margin-bottom: 36px; }
.sec-en { margin: 0 0 6px; font-size: 12px; letter-spacing: .4em; color: var(--cyan); font-weight: 700; }
.sec-title { margin: 0; font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: .04em; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 60px; }
.hero-en { font-size: 13px; letter-spacing: .5em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.hero-name {
  margin: 0; font-size: clamp(56px, 11vw, 128px); font-weight: 900; line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 30%, #b9c0ff 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgba(34, 211, 238, .25);
}
.hero-tagline { margin: 18px 0 0; font-size: clamp(16px, 2.2vw, 20px); color: #c6cbe0; max-width: 640px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag-chip {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03);
}
.hero-cta { display: flex; gap: 14px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #05060a; box-shadow: 0 10px 34px rgba(139, 92, 246, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(34, 211, 238, .4); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.hero-stats { display: flex; gap: 34px; margin-top: 54px; color: var(--muted); font-size: 14px; }
.hero-stats b { display: block; font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero { position: relative; }

/* ---------- 作品 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.chip.on { background: var(--text); color: #0a0a12; border-color: var(--text); font-weight: 700; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.work-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); cursor: pointer; text-align: left; padding: 0; width: 100%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
  font: inherit; color: inherit;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.55); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.work-cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #171728, #101020); overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-cover img { transform: scale(1.05); }
.work-cover .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 44px; font-weight: 900; color: rgba(255,255,255,.14); letter-spacing: .1em;
  background: linear-gradient(135deg, #1a1a30, #12121f);
}
.play-badge {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5,6,10,.65); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); opacity: 0; transform: translateY(8px); transition: all .3s;
}
.play-badge svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.work-card:hover .play-badge { opacity: 1; transform: none; }
.work-info { padding: 16px 18px 18px; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-cat { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.25); white-space: nowrap; }
.work-title { margin: 10px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.work-desc { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.works-empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------- 关于 ---------- */
.about-wrap { display: flex; gap: 44px; align-items: flex-start; }
.about-avatar {
  flex: 0 0 200px; width: 200px; height: 200px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #1c1c30, #14141f); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 64px; color: rgba(255,255,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-intro { margin: 0 0 22px; font-size: 16.5px; color: #d4d8e8; white-space: pre-line; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.about-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social-link {
  padding: 9px 18px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px;
  background: rgba(255,255,255,.03); transition: all .2s; display: inline-flex; gap: 8px; align-items: center;
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 90px 0 40px; }
.footer-cta .sec-title { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 70px; color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--muted); opacity: .6; }
.footer-bottom a:hover { opacity: 1; }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,8,.82); backdrop-filter: blur(8px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box {
  position: relative; width: min(960px, 100%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2); max-height: 92vh; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(14px); } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(5,6,10,.6); color: #fff; cursor: pointer; font-size: 15px;
}
.modal-stage { aspect-ratio: 16/9; background: #000; }
.modal-stage video, .modal-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-meta { padding: 18px 22px 24px; }
.modal-meta h3 { margin: 10px 0 6px; font-size: 20px; }
.modal-meta p { margin: 0; color: var(--muted); font-size: 14.5px; white-space: pre-line; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  section { padding: 68px 0; }
  .hero { padding-top: 100px; }
  .hero-stats { gap: 22px; }
  .about-wrap { flex-direction: column; }
  .about-avatar { width: 140px; height: 140px; flex-basis: auto; border-radius: 22px; font-size: 44px; }
  .modal-box { border-radius: 14px; }
}
