/* ============================================
   刘光浦 · LIU GUANGPU
   暗夜鎏金 · 新中式 · 纯静态前端
   ============================================ */

:root {
  --ink: #0b0a10;
  --ink-2: #13111a;
  --gold: #d8b26a;
  --gold-bright: #f3dfa8;
  --gold-deep: #8a6d3a;
  --ivory: #ece5d6;
  --muted: #a39a86;
  --dim: #6e6757;
  --cinnabar: #b3413a;
  --line: rgba(216, 178, 106, .18);
  --glass: rgba(255, 255, 255, .035);
  --serif: "Songti SC", "STSong", "NSimSun", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--sans);
  overflow-x: hidden;
  background:
    radial-gradient(1300px 900px at 72% -12%, #191527 0%, transparent 58%),
    radial-gradient(1000px 760px at -12% 108%, #14121c 0%, transparent 55%),
    var(--ink);
}

/* 电影颗粒（覆盖全屏的极淡噪点） */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 400; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: .028;
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-2%,1%); }
  40% { transform: translate(1%,-2%); } 60% { transform: translate(-1%,2%); } 80% { transform: translate(2%,-1%); }
}

::selection { background: rgba(216, 178, 106, .35); color: #fff; }
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-deep), #3a3120); border-radius: 9px; }
body::-webkit-scrollbar-track { background: transparent; }

/* ---------- 鎏金流光大字 ---------- */
.name-shimmer {
  background: linear-gradient(110deg, #7d6432 0%, var(--gold) 28%, #fff3d6 50%, var(--gold) 72%, #7d6432 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- 流云墨雾 ---------- */
.aurora {
  position: fixed; border-radius: 50%;
  filter: blur(100px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.a1 { width: 52vw; height: 52vw; left: -16vw; top: 4vh;
     background: radial-gradient(circle, rgba(64,56,110,.55), transparent 64%);
     animation: drift 32s ease-in-out infinite alternate; }
.a2 { width: 44vw; height: 44vw; right: -12vw; top: 34vh;
     background: radial-gradient(circle, rgba(216,178,106,.26), transparent 64%);
     animation: drift 38s ease-in-out -10s infinite alternate-reverse; }
.a3 { width: 40vw; height: 40vw; left: 26vw; bottom: -16vw;
     background: radial-gradient(circle, rgba(52,74,74,.4), transparent 64%);
     animation: drift 44s ease-in-out -20s infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(60px, -46px) scale(1.22) rotate(8deg); }
}
body.no-nebula .aurora { display: none; }

canvas#bg-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
canvas#fx-canvas { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

/* ---------- 入场 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(1000px 700px at 50% 34%, #17131f 0%, #08070c 74%);
  transition: opacity 1.1s ease;
  cursor: pointer;
}
.gate.hidden { opacity: 0; pointer-events: none; }
.gate-line {
  width: 1px; height: 0; margin: 0 auto 30px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: lineGrow 1.6s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes lineGrow { to { height: 64px; } }
.gate-name {
  font-family: var(--serif); font-size: 62px; font-weight: 400;
  letter-spacing: .32em; text-indent: .32em; margin: 0 0 18px;
  opacity: 0; animation: fadeUp 1.4s .5s ease forwards;
}
.gate-sub {
  color: var(--dim); letter-spacing: .34em; font-size: 11px; margin: 0 0 46px;
  opacity: 0; animation: fadeUp 1.2s .9s ease forwards;
}
#enter-btn {
  font-family: var(--serif); font-size: 16px; letter-spacing: .5em; text-indent: .5em;
  color: var(--gold-bright); padding: 15px 58px; cursor: pointer;
  border: 1px solid rgba(216, 178, 106, .45);
  background: rgba(216, 178, 106, .04);
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
  opacity: 0; animation: fadeUp 1.2s 1.3s ease forwards;
}
#enter-btn:hover {
  background: linear-gradient(135deg, rgba(216,178,106,.92), rgba(138,109,58,.92));
  color: #1a1508; border-color: transparent;
  box-shadow: 0 10px 40px rgba(216, 178, 106, .28);
}
.gate-tip {
  font-size: 11px; color: #4f4a3e; margin-top: 26px; letter-spacing: .22em;
  opacity: 0; animation: fadeUp 1.2s 1.6s ease forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 34px;
  background: transparent;
  transition: background .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 16, .78);
  backdrop-filter: blur(16px);
  padding: 12px 34px;
  border-bottom-color: rgba(216, 178, 106, .12);
}
.nav-logo {
  font-family: var(--serif); letter-spacing: .24em; font-size: 17px;
  color: var(--ivory); text-decoration: none;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; letter-spacing: .18em;
  transition: color .35s, text-shadow .35s;
}
.nav-links a:hover { color: var(--gold-bright); text-shadow: 0 0 14px rgba(216, 178, 106, .55); }

/* ---------- 布局与滚动渐显 ---------- */
main { position: relative; z-index: 10; max-width: 980px; margin: 0 auto; padding: 0 28px 190px; }
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 96vh; display: flex; align-items: center; justify-content: center; }
.hero-core { text-align: center; position: relative; z-index: 2; padding-bottom: 120px; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: .58em; text-indent: .58em;
  color: var(--dim); margin: 0 0 26px;
}
.hero-name {
  font-family: var(--serif); font-size: clamp(56px, 11vw, 96px); font-weight: 400;
  letter-spacing: .18em; text-indent: .18em; margin: 0; line-height: 1.25;
}
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px 0 20px;
}
.hero-divider i { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, rgba(216,178,106,.55)); }
.hero-divider i:last-child { background: linear-gradient(90deg, rgba(216,178,106,.55), transparent); }
.hero-divider b {
  width: 5px; height: 5px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 12px rgba(216, 178, 106, .8);
}
.hero-en { color: var(--dim); font-size: 10.5px; letter-spacing: .46em; margin: 0 0 24px; }
.typeline { color: var(--muted); font-size: 16.5px; letter-spacing: .16em; min-height: 26px; margin: 0 0 34px; }
.type-cursor {
  display: inline-block; width: 1px; height: 1em; background: var(--gold);
  margin-left: 4px; vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
  box-shadow: 0 0 8px rgba(216, 178, 106, .9);
}
@keyframes blink { 50% { opacity: 0; } }

.quote {
  display: inline-flex; flex-direction: column; gap: 7px;
  padding: 14px 30px; max-width: 82%;
  background: rgba(11, 10, 16, .4);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: var(--serif); font-size: 14.5px; color: #cfc6b0; letter-spacing: .08em;
}
#quote-from { color: var(--dim); font-size: 11.5px; text-align: right; font-family: var(--sans); letter-spacing: .1em; }

/* 竖排诗句 */
.vertical-poem {
  position: absolute; right: 4%; top: 22%; z-index: 2;
  display: flex; gap: 22px;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 15px; letter-spacing: .42em;
  color: rgba(163, 154, 134, .75);
  text-shadow: 0 0 12px rgba(0,0,0,.6);
}
.vertical-poem span:first-child { color: rgba(216, 178, 106, .8); }

/* 山水剪影 */
.landscape { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 300px; z-index: 1; pointer-events: none; }
.moon { fill: rgba(243, 223, 168, .16); stroke: rgba(243, 223, 168, .6); stroke-width: 1; }
.mtn { fill: rgba(216, 178, 106, .035); stroke: rgba(216, 178, 106, .3); stroke-width: 1; }
.mtn-near { fill: rgba(11, 10, 16, .5); stroke: rgba(216, 178, 106, .42); }

/* ---------- 区块 ---------- */
section { margin-top: 110px; }
.sec-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: 23px; font-weight: 400;
  letter-spacing: .3em; color: var(--ivory); margin: 0 0 26px;
}
.sec-title::before {
  content: ''; width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 10px rgba(216, 178, 106, .8);
}
.sec-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(216, 178, 106, .4), transparent);
}

.card {
  background: linear-gradient(165deg, rgba(255,255,255,.042), rgba(255,255,255,.014));
  border: 1px solid var(--line);
  padding: 36px 40px;
  backdrop-filter: blur(14px);
  transition: border-color .6s, box-shadow .6s;
}
.card:hover {
  border-color: rgba(216, 178, 106, .38);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 50px rgba(216, 178, 106, .06);
}

/* 关于 */
.about-text {
  font-family: var(--serif); color: #cfc6b0; line-height: 2.3; font-size: 16px;
  margin: 0; letter-spacing: .06em;
}
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tag {
  padding: 6px 18px; font-size: 12.5px; font-family: var(--serif);
  color: var(--gold); letter-spacing: .22em; text-indent: .22em;
  border: 1px solid rgba(216, 178, 106, .3);
  transition: background .4s, color .4s, box-shadow .4s;
}
.tag:hover {
  background: rgba(216, 178, 106, .12);
  box-shadow: 0 0 18px rgba(216, 178, 106, .18);
}

/* 实景展品（金线装裱画框） */
.photo-feature { margin: 0 0 26px; }
.photo-frame {
  padding: 12px;
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(216, 178, 106, .28);
  position: relative;
  transition: border-color .7s, box-shadow .7s;
}
.photo-frame::after {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(216, 178, 106, .18); pointer-events: none;
}
.photo-frame:hover {
  border-color: rgba(216, 178, 106, .55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 50px rgba(216, 178, 106, .12);
}
.photo-frame img {
  display: block; width: 100%; height: auto;
  filter: saturate(.94) contrast(1.03) brightness(.97);
  transition: filter .8s ease;
}
.photo-frame:hover img { filter: saturate(1.02) contrast(1.05) brightness(1); }
.photo-feature figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--serif); font-size: 16px; letter-spacing: .4em; text-indent: .4em;
  color: var(--ivory);
}
.photo-feature figcaption span {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em;
  color: var(--dim);
}

/* 浮光掠影 */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.art {
  position: relative; aspect-ratio: 1 / 1.18; overflow: hidden;
  cursor: pointer; border: 1px solid rgba(216, 178, 106, .14);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), box-shadow .8s, border-color .8s;
}
.art:hover { transform: translateY(-10px); border-color: rgba(216, 178, 106, .45); box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 40px rgba(216,178,106,.12); }
.art::before { content: ''; position: absolute; inset: 0; transition: transform 1.2s ease; }
.art:hover::before { transform: scale(1.08); }
.art-1 { background: linear-gradient(168deg, #10131c 0%, #1d2233 55%, #2c2a35 100%); }
.art-1::before {
  background:
    radial-gradient(ellipse 90% 40% at 50% 108%, rgba(216,178,106,.35), transparent 62%),
    repeating-linear-gradient(105deg, transparent 0 10px, rgba(216,178,106,.05) 10px 12px);
}
.art-2 { background: linear-gradient(180deg, #0d0c12 0%, #191524 100%); }
.art-2::before {
  background:
    radial-gradient(ellipse 70% 16% at 30% 62%, rgba(243,223,168,.5), transparent 70%),
    radial-gradient(ellipse 55% 10% at 70% 40%, rgba(216,178,106,.4), transparent 70%);
  filter: blur(1px);
}
.art-3 { background: radial-gradient(circle at 62% 30%, #23222b 0%, #0e0d13 68%); }
.art-3::before {
  background:
    radial-gradient(circle at 62% 30%, rgba(236,229,214,.35), transparent 26%),
    radial-gradient(circle at 62% 30%, transparent 27%, rgba(236,229,214,.12) 27.5%, transparent 30%),
    radial-gradient(circle at 62% 30%, transparent 38%, rgba(236,229,214,.08) 38.5%, transparent 41%);
}
.art-4 { background: linear-gradient(150deg, #14100e 0%, #3a1e1a 60%, #5c2c22 100%); }
.art-4::before {
  background:
    radial-gradient(circle at 55% 60%, rgba(179,65,58,.55), transparent 46%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(245,234,217,.04) 7px 9px);
}
.art-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-family: var(--serif); font-size: 16px; letter-spacing: .3em;
  color: var(--ivory); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.art-sub { display: block; font-size: 9px; color: rgba(163,154,134,.8); margin-top: 5px; letter-spacing: .24em; font-family: var(--sans); }

/* 留言板 */
.gb-form { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
#gb-name { width: 150px; flex: none; }
#gb-text { flex: 1; min-width: 220px; }
.gb-form input {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(216, 178, 106, .2);
  padding: 11px 16px; color: var(--ivory); font-size: 14px;
  font-family: var(--sans); outline: none; letter-spacing: .04em;
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.gb-form input::placeholder { color: var(--dim); }
.gb-form input:focus { border-color: rgba(216, 178, 106, .6); box-shadow: 0 0 0 3px rgba(216, 178, 106, .08); background: rgba(255,255,255,.05); }
.gb-btn {
  padding: 11px 30px; border: 1px solid rgba(216, 178, 106, .5); cursor: pointer;
  background: transparent; color: var(--gold-bright);
  font-family: var(--serif); font-size: 14.5px; letter-spacing: .3em; text-indent: .3em;
  transition: background .45s, color .45s, box-shadow .45s;
}
.gb-btn:hover {
  background: linear-gradient(135deg, rgba(216,178,106,.95), rgba(138,109,58,.95));
  color: #1a1508; box-shadow: 0 8px 30px rgba(216, 178, 106, .25);
}
.gb-mode { font-size: 11px; color: var(--dim); letter-spacing: .12em; margin-bottom: 10px; }
.gb-mode .on { color: var(--gold); text-shadow: 0 0 8px rgba(216, 178, 106, .5); }
.gb-item { display: flex; gap: 15px; padding: 18px 4px; border-bottom: 1px dashed rgba(216, 178, 106, .12); }
.gb-item.new { animation: fadeUp .7s ease; }
.gb-avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: #241c0d; font-size: 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 4px 14px rgba(216, 178, 106, .2);
}
.gb-head { display: flex; align-items: baseline; gap: 10px; }
.gb-name { color: var(--ivory); font-size: 14px; font-family: var(--serif); letter-spacing: .08em; }
.gb-time { color: var(--dim); font-size: 11.5px; }
.gb-text { margin: 7px 0 0; color: #c7bda6; font-size: 14px; line-height: 1.9; word-break: break-word; }
.gb-empty { color: var(--dim); text-align: center; padding: 30px 0; font-size: 14px; letter-spacing: .2em; font-family: var(--serif); }

/* 页脚 */
.footer { margin-top: 130px; text-align: center; color: var(--dim); font-size: 12.5px; line-height: 2.4; letter-spacing: .1em; }
.friend-links span { margin: 0 10px; color: #3d382c; }
.footer a { color: var(--muted); text-decoration: none; letter-spacing: .14em; transition: color .35s, text-shadow .35s; }
.footer a:hover { color: var(--gold-bright); text-shadow: 0 0 10px rgba(216, 178, 106, .5); }
.visitor {
  display: inline-block; margin-top: 6px; padding: 5px 20px;
  border: 1px solid rgba(216, 178, 106, .25);
  color: var(--gold); font-family: Consolas, Monaco, monospace; letter-spacing: .24em; font-size: 11.5px;
}

/* ---------- 音乐播放器 ---------- */
.player {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 336px;
  background: rgba(14, 12, 19, .82); backdrop-filter: blur(20px);
  border: 1px solid rgba(216, 178, 106, .2);
  border-radius: 3px;
  padding: 15px 17px 13px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  transition: opacity .7s ease, transform .7s ease, border-color .7s, box-shadow .7s;
}
.player.playing { border-color: rgba(216, 178, 106, .45); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 46px rgba(216, 178, 106, .14); }
body:not(.entered) .player, body:not(.entered) #fx-btn, body:not(.entered) #fx-panel,
body:not(.entered) .ai-btn, body:not(.entered) .ai-panel {
  opacity: 0; pointer-events: none; transform: translateY(16px);
}
.player-top { display: flex; align-items: center; gap: 13px; }
.disc {
  width: 46px; height: 46px; flex: none; border-radius: 50%; padding: 3px; cursor: pointer;
  background: conic-gradient(from 0deg, #f3dfa8, #8a6d3a, #d8b26a, #f3dfa8, #8a6d3a);
  animation: spin 10s linear infinite; animation-play-state: paused;
  transition: box-shadow .4s;
}
.disc:hover { box-shadow: 0 0 20px rgba(216, 178, 106, .5); }
.player.playing .disc { animation-play-state: running; }
.disc span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: #14111a; color: var(--gold); font-size: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.track-info { flex: 1; min-width: 0; }
.track-title {
  font-family: var(--serif); font-size: 14.5px; color: var(--ivory);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .05em;
}
.track-sub { font-size: 11px; color: var(--dim); margin-top: 3px; letter-spacing: .08em; }
.viz { display: flex; gap: 3px; height: 11px; align-items: flex-end; margin-top: 6px; }
.viz i {
  width: 3px; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  animation: eq .9s ease-in-out infinite alternate; animation-play-state: paused;
}
.player.playing .viz i { animation-play-state: running; }
.viz i:nth-child(1) { animation-delay: 0s; }
.viz i:nth-child(2) { animation-delay: .16s; }
.viz i:nth-child(3) { animation-delay: .32s; }
.viz i:nth-child(4) { animation-delay: .1s; }
.viz i:nth-child(5) { animation-delay: .24s; }
@keyframes eq { from { height: 3px; } to { height: 11px; } }

.progress {
  height: 3px; background: rgba(216, 178, 106, .15);
  cursor: pointer; margin: 13px 0 6px; position: relative;
}
.progress-fill {
  height: 100%; width: 0; position: relative;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}
.progress-fill::after {
  content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(243, 223, 168, .8);
}
.time-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.controls .spacer { flex: 1; }
.pbtn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(216, 178, 106, .28); background: rgba(216, 178, 106, .05);
  color: var(--gold-bright); display: grid; place-items: center;
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
}
.pbtn:hover { background: rgba(216, 178, 106, .14); border-color: rgba(216, 178, 106, .6); transform: translateY(-1px); }
.pbtn.big {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #f3dfa8, #8a6d3a); color: #1a1508; border: none;
  box-shadow: 0 6px 20px rgba(216, 178, 106, .3);
}
.pbtn.big:hover { filter: brightness(1.08); box-shadow: 0 8px 28px rgba(216, 178, 106, .45); }
.pbtn.active { color: var(--gold-bright); border-color: rgba(216, 178, 106, .65); box-shadow: 0 0 12px rgba(216, 178, 106, .2); }
#volume { width: 62px; accent-color: var(--gold); cursor: pointer; }

.playlist {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 100%;
  margin: 0; padding: 8px; list-style: none;
  background: rgba(14, 12, 19, .96); backdrop-filter: blur(18px);
  border: 1px solid rgba(216, 178, 106, .2); border-radius: 4px;
  max-height: 236px; overflow-y: auto;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .3s ease;
}
.playlist::-webkit-scrollbar { width: 5px; }
.playlist::-webkit-scrollbar-thumb { background: rgba(216, 178, 106, .3); }
.playlist.open { opacity: 1; transform: none; pointer-events: auto; }
.playlist li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; cursor: pointer;
  font-size: 13px; color: #b3ab97; font-family: var(--serif); letter-spacing: .04em;
  transition: background .25s, color .25s;
}
.playlist li:hover { background: rgba(216, 178, 106, .07); color: var(--ivory); }
.playlist li.active { color: var(--gold-bright); background: linear-gradient(90deg, rgba(216,178,106,.12), transparent); }
.pl-num { color: var(--dim); width: 18px; font-size: 10.5px; flex: none; font-variant-numeric: tabular-nums; font-family: var(--sans); }
.playlist li.active .pl-num { color: var(--gold); }
.pl-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 特效开关 ---------- */
#fx-btn {
  position: fixed; left: 22px; bottom: 22px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  font-size: 15px; color: var(--gold);
  border: 1px solid rgba(216, 178, 106, .3); background: rgba(14, 12, 19, .7);
  backdrop-filter: blur(10px);
  transition: opacity .7s ease, transform .7s ease, box-shadow .35s, background .35s;
}
#fx-btn:hover { box-shadow: 0 0 20px rgba(216, 178, 106, .35); background: rgba(216, 178, 106, .1); }
#fx-panel {
  position: fixed; left: 22px; bottom: 74px; z-index: 200; min-width: 160px;
  padding: 15px 17px;
  background: rgba(14, 12, 19, .92); backdrop-filter: blur(18px);
  border: 1px solid rgba(216, 178, 106, .2);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .3s ease;
}
#fx-panel.open { opacity: 1; transform: none; pointer-events: auto; }
#fx-panel label {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 13px; color: #b3ab97; padding: 6px 0; cursor: pointer; letter-spacing: .1em;
}
#fx-panel input { accent-color: var(--gold); cursor: pointer; }
#fx-tip { font-size: 10.5px; color: var(--dim); margin-top: 9px; letter-spacing: .06em; }

/* ---------- AI 小助理 · 小浦 ---------- */
.ai-btn {
  position: fixed; right: 26px; bottom: 218px; z-index: 210;
  width: 68px; height: 86px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: opacity .7s ease, transform .7s ease;
  font-family: var(--sans);
}
.ai-btn:hover { transform: translateY(-3px); }
.ai-spirit { position: relative; width: 54px; height: 54px; animation: aiBob 3.4s ease-in-out infinite; }
.ai-body {
  position: absolute; inset: 0;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 34% 28%, #fff6dd 0%, #eccf8e 42%, #b98f4a 100%);
  box-shadow: 0 0 26px rgba(216, 178, 106, .55),
              inset -5px -8px 14px rgba(120, 85, 30, .4),
              inset 4px 6px 10px rgba(255, 248, 224, .65);
}
.ai-halo {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 106, .45);
  animation: haloPulse 3s ease-out infinite;
}
@keyframes haloPulse {
  0% { transform: scale(.85); opacity: .8; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}
@keyframes aiBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.ai-eyes i {
  position: absolute; top: 38%; width: 6px; height: 10px;
  border-radius: 50%; background: #3a2c12;
  animation: aiBlink 4.6s infinite;
}
.ai-eyes i:first-child { left: 31%; }
.ai-eyes i:last-child { right: 31%; }
@keyframes aiBlink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.08); }
}
.ai-mouth {
  position: absolute; top: 60%; left: 50%; transform: translateX(-50%);
  width: 10px; height: 5px;
  border-bottom: 2px solid #3a2c12; border-radius: 0 0 10px 10px;
}
.ai-btn.thinking .ai-eyes i { animation: none; height: 2px; }
.ai-btn.thinking .ai-spirit { animation-duration: 1.1s; }
.ai-btn.thinking .ai-body { box-shadow: 0 0 36px rgba(216, 178, 106, .85), inset -5px -8px 14px rgba(120, 85, 30, .4), inset 4px 6px 10px rgba(255, 248, 224, .65); }
.ai-tag {
  font-size: 10px; letter-spacing: .2em; color: var(--gold);
  text-shadow: 0 0 10px rgba(216, 178, 106, .5);
}

.ai-panel {
  position: fixed; right: 22px; bottom: 306px; z-index: 210;
  width: 332px; max-height: min(500px, 62vh);
  display: flex; flex-direction: column;
  background: rgba(14, 12, 19, .93); backdrop-filter: blur(20px);
  border: 1px solid rgba(216, 178, 106, .25); border-radius: 6px;
  overflow: hidden;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.ai-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid rgba(216, 178, 106, .15);
}
.ai-avatar {
  position: relative; width: 32px; height: 32px; flex: none;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 34% 28%, #fff6dd 0%, #eccf8e 45%, #b98f4a 100%);
  box-shadow: 0 0 12px rgba(216, 178, 106, .45);
}
.ai-avatar i {
  position: absolute; top: 40%; width: 4px; height: 6px;
  border-radius: 50%; background: #3a2c12;
}
.ai-avatar i:first-child { left: 32%; }
.ai-avatar i:last-child { right: 32%; }
.ai-title { flex: 1; min-width: 0; }
.ai-title b { font-family: var(--serif); font-size: 14.5px; color: var(--ivory); letter-spacing: .12em; }
.ai-title span { display: block; font-size: 10px; color: var(--dim); margin-top: 2px; letter-spacing: .1em; }
.ai-tool {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(216, 178, 106, .25); background: rgba(216, 178, 106, .05);
  color: var(--gold); font-size: 12px; line-height: 1;
  display: grid; place-items: center; transition: background .3s, box-shadow .3s;
}
.ai-tool:hover { background: rgba(216, 178, 106, .15); }
.ai-tool.on { box-shadow: 0 0 10px rgba(216, 178, 106, .4); border-color: rgba(216, 178, 106, .6); }
.ai-msgs {
  flex: 1; overflow-y: auto; min-height: 170px; max-height: 300px;
  padding: 12px 13px;
}
.ai-msgs::-webkit-scrollbar { width: 5px; }
.ai-msgs::-webkit-scrollbar-thumb { background: rgba(216, 178, 106, .25); }
.ai-msg { display: flex; margin: 8px 0; }
.ai-msg.bot { justify-content: flex-start; }
.ai-msg.user { justify-content: flex-end; }
.bubble {
  max-width: 80%; padding: 9px 13px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.75; letter-spacing: .02em;
  white-space: pre-wrap; word-break: break-word;
  animation: fadeUp .4s ease;
}
.ai-msg.bot .bubble {
  background: rgba(216, 178, 106, .08);
  border: 1px solid rgba(216, 178, 106, .18);
  color: #d8d0bc; border-top-left-radius: 3px;
}
.ai-msg.user .bubble {
  background: linear-gradient(135deg, rgba(216, 178, 106, .95), rgba(138, 109, 58, .95));
  color: #241c0d; border-top-right-radius: 3px;
}
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 11px 14px; }
.typing-dots i {
  width: 5px; height: 5px; border-radius: 50%; font-style: normal;
  background: rgba(216, 178, 106, .8);
  animation: dotBounce 1s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 13px 10px; }
.chip {
  font-size: 11px; padding: 5px 12px; cursor: pointer;
  border: 1px solid rgba(216, 178, 106, .3); border-radius: 999px;
  background: transparent; color: var(--gold); letter-spacing: .06em;
  font-family: var(--sans); transition: background .3s, box-shadow .3s;
}
.chip:hover { background: rgba(216, 178, 106, .12); box-shadow: 0 0 12px rgba(216, 178, 106, .18); }
.ai-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(216, 178, 106, .15); }
#ai-input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(216, 178, 106, .22);
  padding: 9px 12px; color: var(--ivory); font-size: 13px;
  font-family: var(--sans); outline: none; transition: border-color .4s;
}
#ai-input::placeholder { color: var(--dim); }
#ai-input:focus { border-color: rgba(216, 178, 106, .55); }
.ai-send {
  padding: 0 16px; cursor: pointer; border: none;
  background: linear-gradient(135deg, #eccf8e, #8a6d3a); color: #241c0d;
  font-size: 13px; letter-spacing: .1em; font-family: var(--sans);
  transition: filter .3s, box-shadow .3s;
}
.ai-send:hover { filter: brightness(1.1); box-shadow: 0 0 16px rgba(216, 178, 106, .35); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 112px; transform: translate(-50%, 10px);
  z-index: 500; padding: 11px 26px;
  background: rgba(14, 12, 19, .94); border: 1px solid rgba(216, 178, 106, .3);
  backdrop-filter: blur(12px); color: var(--gold-bright); font-size: 13px; letter-spacing: .08em;
  opacity: 0; pointer-events: none; transition: .35s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav.scrolled { padding: 10px 18px; }
  .nav-links { gap: 16px; }
  .vertical-poem { display: none; }
  .hero { min-height: 88vh; }
  .hero-core { padding-bottom: 80px; }
  .card { padding: 26px 22px; }
  .player { left: 78px; right: 14px; bottom: 14px; width: auto; }
  #fx-btn { left: 14px; bottom: 14px; }
  #fx-panel { left: 14px; bottom: 66px; }
  .ai-btn { right: 16px; bottom: 206px; }
  .ai-panel { left: 12px; right: 12px; width: auto; bottom: 292px; }
  main { padding-bottom: 210px; }
}

/* ---------- 减弱动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .gate-name, .gate-sub, #enter-btn, .gate-tip { opacity: 1; }
  .gate-line { height: 64px; }
}
