/* ════════════════════════════════════════════════════════
   新艾利都 · 代理人档案 — 样式层
   iOS 液态玻璃 × HarmonyOS 光效 × 新艾利都霓虹夜色
   ════════════════════════════════════════════════════════ */

:root {
  /* 属性色板 */
  --fire:      #ff7a45;
  --ice:       #7fd8ff;
  --volt:      #c792ff;
  --ether:     #ffd76a;
  --phys:      #d9dde6;
  --lumen:     #ffb3d9;
  --void:      #9fb8ff;
  /* 稀有度 */
  --s-gold:    linear-gradient(135deg, #f7d98a, #c98f3d 45%, #f9e9b8 70%, #b5782f);
  --a-blue:    linear-gradient(135deg, #8fb8ff, #5a7fd4 45%, #b7d0ff 70%, #4a6cc0);
  /* 基础 */
  --bg:        #070b14;
  --bg-2:      #0b1220;
  --glass:     rgba(255, 255, 255, 0.055);
  --glass-2:   rgba(255, 255, 255, 0.09);
  --stroke:    rgba(255, 255, 255, 0.16);
  --stroke-hi: rgba(255, 255, 255, 0.32);
  --text:      #eef1f8;
  --text-dim:  #9aa4bd;
  --text-faint:#6b7590;
  --accent:    #7fd8ff;
  --accent-2:  #ffb3d9;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --radius:    22px;
  --nav-h:     64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(127, 216, 255, 0.3); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2a3b66, #1c2538); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #39486b; }

/* ─── 玻璃面板（iOS 液态玻璃） ─── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* ─── 背景光效（HarmonyOS 光晕） ─── */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; mix-blend-mode: screen; }
.aurora-blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(90, 130, 255, 0.5), transparent 65%);
  animation: drift1 26s var(--ease-out) infinite alternate; }
.aurora-blob.b2 { width: 38vw; height: 38vw; right: -10vw; top: 30vh;
  background: radial-gradient(circle, rgba(255, 130, 200, 0.35), transparent 65%);
  animation: drift2 32s var(--ease-out) infinite alternate; }
.aurora-blob.b3 { width: 42vw; height: 42vw; left: 22vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(60, 210, 255, 0.3), transparent 65%);
  animation: drift3 38s var(--ease-out) infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -9vh) scale(1.2); } }
@keyframes drift3 { to { transform: translate(6vw, -6vh) scale(1.1); } }

.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

/* ─── 加载动画 ─── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; gap: 22px;
  background: radial-gradient(120% 120% at 50% 40%, #0d1526, #060a13);
  transition: opacity 0.7s ease, visibility 0.7s ease; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-core { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.loader-glyph { font-size: 34px; font-weight: 700; color: #cfe6ff; text-shadow: 0 0 24px rgba(127, 216, 255, 0.8); animation: glyphPulse 2s ease-in-out infinite; }
@keyframes glyphPulse { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
.loader-ring { position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: rgba(127, 216, 255, 0.85); border-right-color: rgba(255, 179, 217, 0.4);
  animation: spin 1.1s linear infinite; }
.loader-ring.r2 { inset: 10px; border-top-color: transparent; border-bottom-color: rgba(255, 215, 106, 0.7); animation-duration: 1.6s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-dim); font-size: 13px; letter-spacing: 0.35em; text-indent: 0.35em; }

/* ─── 滚动渐入 ─── */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ─── 导航 ─── */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 18px; width: min(1180px, calc(100% - 28px));
  padding: 10px 18px; border-radius: 20px;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.nav.scrolled { background: rgba(10, 15, 28, 0.72); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.nav-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  font-weight: 800; color: #0a1628; background: linear-gradient(135deg, #a8dfff, #7fd8ff 55%, #5aa8e8);
  box-shadow: 0 0 18px rgba(127, 216, 255, 0.55); }
.nav-brand-text { font-weight: 700; font-size: 15px; letter-spacing: 0.05em; }
.nav-brand-sub { display: block; font-size: 10px; font-weight: 400; color: var(--text-dim); letter-spacing: 0.3em; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { flex-shrink: 0; padding: 6px 12px; font-size: 13px; color: var(--text-dim); border-radius: 12px; white-space: nowrap; transition: all 0.3s ease; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-links a.on { color: #0a1628; background: linear-gradient(135deg, #a8dfff, #7fd8ff); box-shadow: 0 0 14px rgba(127, 216, 255, 0.5); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--text-dim); transition: all 0.3s ease; }
.nav-icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon.playing { color: var(--accent); box-shadow: 0 0 16px rgba(127, 216, 255, 0.4); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 12px; }
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.35s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: calc(var(--nav-h) + 30px) 24px 40px; }
.hero-bg { position: absolute; inset: -12%; pointer-events: none; }
.hero-city { position: absolute; inset: 0; opacity: 0.85;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, 0.9) 88%),
    radial-gradient(140% 90% at 50% 110%, rgba(90, 130, 255, 0.28), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(120, 160, 255, 0.055) 38px 40px),
    linear-gradient(0deg, #0a1220 0%, #0e1a30 55%, #101f3c 100%);
  clip-path: polygon(0 58%, 4% 56%, 7% 60%, 11% 55%, 15% 61%, 20% 54%, 24% 60%, 29% 53%, 33% 59%, 38% 52%, 43% 60%, 48% 54%, 53% 61%, 58% 53%, 63% 60%, 68% 52%, 73% 59%, 78% 54%, 83% 61%, 88% 53%, 93% 60%, 100% 55%, 100% 100%, 0 100%);
}
.hero-city::before, .hero-city::after { content: ""; position: absolute; bottom: 0; width: 8px; height: 26vh; background: linear-gradient(0deg, rgba(127, 216, 255, 0.5), transparent); filter: blur(1px); }
.hero-city::before { left: 18%; animation: neonFlicker 5s linear infinite; }
.hero-city::after { right: 22%; animation: neonFlicker 7s linear infinite reverse; }
@keyframes neonFlicker { 0%, 100% { opacity: 0.8; } 45% { opacity: 0.35; } 60% { opacity: 0.9; } 75% { opacity: 0.4; } }
.hero-haze { position: absolute; bottom: 6%; left: -10%; width: 120%; height: 22vh; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(127, 216, 255, 0.16), transparent 70%); filter: blur(30px); }
.hero-haze.hz2 { bottom: -4%; opacity: 0.7; animation: hazeShift 9s ease-in-out infinite alternate; }
@keyframes hazeShift { to { transform: translateX(6vw) scale(1.08); } }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.hero-kicker { font-size: 12px; letter-spacing: 0.5em; color: var(--accent); text-indent: 0.5em; opacity: 0.85; text-shadow: 0 0 18px rgba(127, 216, 255, 0.6); }
.hero-title { font-size: clamp(44px, 9vw, 92px); font-weight: 900; line-height: 1.12; letter-spacing: 0.06em; margin: 14px 0 18px;
  background: linear-gradient(180deg, #ffffff 20%, #cfe2ff 55%, #7fa8e8 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 34px rgba(90, 140, 255, 0.35)); }
.hero-title .ht-accent {
  background: linear-gradient(90deg, #7fd8ff, #ffb3d9 55%, #ffd76a);
  -webkit-background-clip: text; background-clip: text;
  animation: accentSheen 6s ease-in-out infinite; background-size: 200% 100%; }
@keyframes accentSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { color: var(--text-dim); font-size: clamp(14px, 2.4vw, 17px); max-width: 560px; margin: 0 auto 34px; letter-spacing: 0.08em; }
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 64px); margin-bottom: 40px; }
.hstat b { display: block; font-size: clamp(26px, 4.5vw, 40px); font-weight: 800;
  background: linear-gradient(135deg, #fff, #9fc8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hstat span { font-size: 12px; color: var(--text-faint); letter-spacing: 0.25em; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #081426;
  background: linear-gradient(135deg, #bde8ff, #7fd8ff 60%, #5aa8e8);
  box-shadow: 0 8px 30px rgba(127, 216, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease; }
.hero-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 44px rgba(127, 216, 255, 0.55); }
.hero-cta svg { width: 17px; height: 17px; animation: ctaBob 2s ease-in-out infinite; }
@keyframes ctaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.28); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px;
  background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ─── 阵营分区 ─── */
main#factions { max-width: 1240px; margin: 0 auto; padding: 20px 24px 80px; }
.faction { margin-bottom: 92px; }
.faction-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; position: relative; }
.faction-logo { width: 58px; height: 58px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); }
.faction-logo img { width: 100%; height: 100%; object-fit: cover; }
.faction-idx { position: absolute; right: 0; top: -12px; font-size: 64px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, 0.045); user-select: none; }
.faction-name { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: 0.08em; }
.faction-name-en { font-size: 11px; color: var(--text-faint); letter-spacing: 0.4em; text-transform: uppercase; margin-top: 2px; }
.faction-bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-hi), transparent); }

/* 角色卡片网格 */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.char-card { position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  aspect-ratio: 3 / 4.15;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.45s ease; }
.char-card::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 10, 20, 0.55) 72%, rgba(6, 10, 20, 0.92) 100%); }
.char-card::after { content: ""; position: absolute; top: -60%; left: -30%; width: 60%; height: 200%; z-index: 2;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: rotate(18deg); transition: left 0.8s ease; pointer-events: none; }
.char-card:hover { transform: translateY(-8px) scale(1.025);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(127, 216, 255, 0.28), 0 0 30px rgba(127, 216, 255, 0.16); }
.char-card:hover::after { left: 130%; }
.char-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease-out), filter 0.6s ease; }
.char-card:hover img { transform: scale(1.07); filter: brightness(1.1) saturate(1.1); }
.char-card .cc-body { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 14px 13px 13px; }
.char-card .cc-rarity { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 999px; color: #2a1c05; background: var(--s-gold); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.char-card .cc-rarity.a { color: #081c3a; background: var(--a-blue); }
.char-card .cc-name { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.char-card .cc-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--text-dim); }
.cc-ele { display: inline-flex; align-items: center; gap: 4px; }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.char-card .cc-role { margin-left: auto; font-size: 11px; color: var(--text-faint); }

/* ─── 模态框 ─── */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  visibility: hidden; opacity: 0; transition: opacity 0.4s ease, visibility 0.4s ease; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 14, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-panel { position: relative; z-index: 1; width: min(960px, 100%); max-height: 88svh; overflow: hidden;
  transform: translateY(26px) scale(0.97); transition: transform 0.45s var(--ease-out); }
.modal.open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; color: var(--text);
  background: rgba(10, 15, 28, 0.55); border: 1px solid var(--stroke); transition: all 0.3s ease; }
.modal-close:hover { background: rgba(255, 80, 110, 0.25); border-color: rgba(255, 120, 140, 0.5); transform: rotate(90deg); }
.md-scroll { max-height: 88svh; overflow-y: auto; scrollbar-width: thin; }

.md-hero { position: relative; height: 300px; overflow: hidden; }
.md-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.md-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 15, 28, 0.75) 78%, var(--bg-2) 100%); }
.md-hero .md-title-wrap { position: absolute; left: 28px; bottom: 20px; z-index: 2; }
.md-hero .md-rarity { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; color: #2a1c05; background: var(--s-gold); }
.md-hero .md-rarity.a { color: #081c3a; background: var(--a-blue); }
.md-hero .md-name { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: 0.05em; }
.md-hero .md-en { font-size: 12px; color: var(--text-dim); letter-spacing: 0.3em; text-transform: uppercase; margin-top: 4px; }

.md-body { padding: 26px 28px 34px; background: var(--bg-2); }
.md-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.md-tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); color: var(--text-dim); }
.md-tag.ele { border-color: transparent; color: #0a1628; font-weight: 600; }
.md-sec { margin-bottom: 26px; }
.md-sec-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 14px; }
.md-sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-hi), transparent); }
.md-story p { color: var(--text-dim); font-size: 14px; text-indent: 2em; margin-bottom: 12px; }
.md-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.md-skill { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); transition: background 0.3s ease; }
.md-skill:hover { background: rgba(255, 255, 255, 0.07); }
.md-skill h5 { font-size: 14px; margin-bottom: 5px; }
.md-skill p { font-size: 12.5px; color: var(--text-dim); }
.md-talent { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.md-talent b { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; font-size: 12px;
  background: rgba(127, 216, 255, 0.12); color: var(--accent); border: 1px solid rgba(127, 216, 255, 0.25); }
.md-talent p { font-size: 13px; color: var(--text-dim); }

.md-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.md-stat { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.md-stat b { display: block; font-size: 17px; font-weight: 800; }
.md-stat span { font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; }

.md-media { display: grid; gap: 18px; }
.md-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--stroke); }
.md-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-ep { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(127, 216, 255, 0.08), rgba(255, 179, 217, 0.06)); border: 1px solid rgba(127, 216, 255, 0.2); }
.md-ep .ep-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 18px;
  background: rgba(127, 216, 255, 0.15); color: var(--accent); }
.md-ep .ep-info { flex: 1; min-width: 0; }
.md-ep .ep-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-ep .ep-info span { font-size: 12px; color: var(--text-faint); }
.md-ep a { flex-shrink: 0; font-size: 12px; padding: 8px 14px; border-radius: 999px; color: #0a1628; font-weight: 600;
  background: linear-gradient(135deg, #bde8ff, #7fd8ff); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.md-ep a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(127, 216, 255, 0.4); }

/* ─── 音乐 Dock ─── */
.music-dock { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 340px;
  padding: 14px; border-radius: 20px;
  background: rgba(12, 18, 32, 0.72); border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.md-toggle { display: none; }
.md-now { display: flex; align-items: center; gap: 12px; }
.md-cover { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; font-size: 19px;
  color: #0a1628; background: linear-gradient(135deg, #bde8ff, #7fd8ff);
  box-shadow: 0 0 20px rgba(127, 216, 255, 0.4); animation: coverSpin 6s linear infinite paused; }
.music-dock.playing .md-cover { animation-play-state: running; }
@keyframes coverSpin { to { transform: rotate(360deg); } }
.md-info { flex: 1; min-width: 0; }
.md-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-sub { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-play { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--stroke); transition: all 0.3s ease; }
.md-play:hover { background: rgba(127, 216, 255, 0.2); box-shadow: 0 0 16px rgba(127, 216, 255, 0.35); }
.md-play svg { width: 18px; height: 18px; }
.md-progress { margin-top: 12px; }
.md-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; cursor: pointer; }
.md-fill { height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #7fd8ff, #ffb3d9); box-shadow: 0 0 10px rgba(127, 216, 255, 0.6); }
.md-time { display: block; margin-top: 5px; font-size: 11px; color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; }
.md-list { margin-top: 12px; max-height: 180px; overflow-y: auto; scrollbar-width: thin; display: grid; gap: 4px; }
.md-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; color: var(--text-dim);
  transition: all 0.25s ease; cursor: pointer; }
.md-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.md-item.on { background: rgba(127, 216, 255, 0.12); color: var(--accent); border: 1px solid rgba(127, 216, 255, 0.2); }
.md-item .mi-idx { width: 20px; font-size: 11px; color: var(--text-faint); text-align: right; }
.md-item .mi-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-item .mi-ch { width: 34px; text-align: right; font-size: 11px; color: var(--text-faint); }

/* ─── 页脚 ─── */
.footer { padding: 46px 24px 60px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(6, 9, 17, 0.6); }
.footer-brand { font-size: 17px; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 10px;
  background: linear-gradient(90deg, #7fd8ff, #ffb3d9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-note, .footer-links { font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }
.footer-links a { color: var(--text-dim); border-bottom: 1px dashed rgba(255, 255, 255, 0.2); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-sig { margin-top: 22px; font-size: 13px; color: var(--text-dim); letter-spacing: 0.2em; opacity: 0.7; }

/* ─── 响应式 ─── */
@media (max-width: 900px) {
  .nav-links { position: fixed; top: calc(var(--nav-h) - 6px); left: 14px; right: 14px;
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; max-height: 60vh; overflow-y: auto;
    background: rgba(10, 15, 28, 0.92); border: 1px solid var(--stroke);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.35s var(--ease-out); }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 14px; }
  .nav-burger { display: flex; }
  .music-dock { width: min(340px, calc(100vw - 40px)); }
}
@media (max-width: 560px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .md-grid2 { grid-template-columns: 1fr; }
  .md-stats { grid-template-columns: repeat(2, 1fr); }
  .md-hero { height: 230px; }
  .md-body { padding: 20px 16px 26px; }
  .music-dock.collapsed { width: 58px; padding: 12px; }
  .music-dock.collapsed .md-body { display: none; }
  .music-dock.collapsed .md-toggle { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
