/* ==========================================================================
   回声音频 EchoAudio - 全站样式
   暗黑 / 阳光 双主题 · 响应式 · 玻璃拟态 + 霓虹渐变
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
  --c-primary: #7c5cff;
  --c-primary-2: #22d3ee;
  --c-primary-3: #f472b6;
  --c-accent: #22d3ee;
  --c-gold: #fbbf24;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  --shadow-glow: 0 8px 40px -8px rgba(124, 92, 255, .55);
  --tr: .28s cubic-bezier(.4, 0, .2, 1);
  --maxw: 1280px;
}

/* 黑暗模式 */
html[data-theme="dark"] {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --bg-3: #13131f;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-solid: #15151f;
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --text: #f2f3f8;
  --text-2: #a8adc0;
  --text-3: #6d7288;
  --header-bg: rgba(9, 9, 16, .78);
  --glow-1: rgba(124, 92, 255, .35);
  --glow-2: rgba(34, 211, 238, .22);
  --card-shadow: 0 18px 50px -22px rgba(0, 0, 0, .9);
}

/* 阳光模式 */
html[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-2: #ffffff;
  --bg-3: #f0f1f8;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(18, 20, 40, .09);
  --border-2: rgba(18, 20, 40, .16);
  --text: #14162b;
  --text-2: #5a5f79;
  --text-3: #8b90a8;
  --header-bg: rgba(255, 255, 255, .82);
  --glow-1: rgba(124, 92, 255, .18);
  --glow-2: rgba(34, 211, 238, .14);
  --card-shadow: 0 16px 44px -26px rgba(24, 26, 60, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--tr), color var(--tr);
  -webkit-font-smoothing: antialiased;
}
/* 背景光晕 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(760px 520px at 92% 8%, var(--glow-2), transparent 62%),
    radial-gradient(700px 700px at 50% 110%, var(--glow-1), transparent 65%);
  opacity: .85;
  transition: opacity var(--tr);
}
/* 网格纹理 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(127, 127, 160, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(127, 127, 160, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
::selection { background: var(--c-primary); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--c-primary), var(--c-accent)); border-radius: 6px; border: 2px solid var(--bg); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ic { flex-shrink: 0; vertical-align: middle; display: inline-block; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2), var(--c-primary-3));
  box-shadow: 0 0 12px var(--c-primary);
}

/* ---------- 公告跑马灯 ---------- */
.ticker { background: linear-gradient(90deg, rgba(124,92,255,.16), rgba(34,211,238,.12)); border-bottom: 1px solid var(--border); font-size: 13px; }
.ticker-inner { max-width: var(--maxw); margin: 0 auto; padding: 7px 20px; display: flex; align-items: center; gap: 12px; }
.ticker-label { display: inline-flex; align-items: center; gap: 5px; color: var(--c-primary-2); font-weight: 600; white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 20px; }
.ticker-item { display: inline-block; margin-right: 42px; color: var(--text-2); animation: none; }
.ticker-item:hover { color: var(--c-primary); }
.ticker-track::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, var(--bg)); }

/* ---------- 头部 ---------- */
.ea-header {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--tr), background var(--tr);
}
.ea-header.scrolled { box-shadow: 0 10px 40px -18px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff; box-shadow: var(--shadow-glow);
}
.brand-logo { height: 38px; width: auto; border-radius: 8px; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; background: linear-gradient(100deg, var(--text), var(--c-primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-slogan { font-size: 12px; font-weight: 500; color: var(--text-3); -webkit-text-fill-color: var(--text-3); display: none; }
@media (min-width: 1100px) { .brand-slogan { display: inline; } }

.nav-desktop { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.nav-item > a:hover { color: var(--text); background: var(--surface); }
.nav-emoji { font-style: normal; font-size: 14px; }
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 178px; padding: 8px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--card-shadow); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--tr); z-index: 20;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.nav-sub a:hover { background: var(--surface); color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 搜索框 */
.search-box { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 4px 4px 15px; transition: all var(--tr); }
.search-box:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.search-box input { width: 150px; background: none; border: 0; font-size: 13.5px; color: var(--text); }
.search-box input::placeholder { color: var(--text-3); }
.search-box button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); color: #fff; }

/* 主题切换 */
.theme-toggle { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: all var(--tr); }
.theme-toggle:hover { border-color: var(--c-primary); }
.tt-track { position: relative; width: 54px; height: 26px; border-radius: 999px; background: linear-gradient(100deg, #fbbf24, #f97316); display: flex; align-items: center; justify-content: space-between; padding: 0 5px; transition: background var(--tr); }
html[data-theme="dark"] .tt-track { background: linear-gradient(100deg, #1e1b4b, #312e81); }
.tt-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--tr); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
html[data-theme="dark"] .tt-thumb { transform: translateX(28px); }
.tt-icon { z-index: 1; display: grid; place-items: center; color: #fff; }
.tt-sun { color: #fff; } .tt-moon { color: #c7d2fe; }
.tt-text { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border-radius: 11px; font-size: 14px; font-weight: 600; transition: all var(--tr); white-space: nowrap; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; box-shadow: 0 8px 24px -10px rgba(124,92,255,.75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(124,92,255,.9); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3a2500; }
.btn-gold:hover { transform: translateY(-2px); }
.btn-danger { background: rgba(244,63,94,.14); color: #f43f5e; border-color: rgba(244,63,94,.3); }
.btn-danger:hover { background: #f43f5e; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-user { display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: all var(--tr); }
.btn-user:hover { border-color: var(--c-primary); }
.btn-user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; }
.btn-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.btn-user-info b { font-size: 13px; }
.btn-user-info i { font-style: normal; font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }

.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); place-items: center; }

/* ---------- 移动抽屉 ---------- */
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 84%; max-width: 340px; height: 100vh; background: var(--surface-solid); z-index: 400; transition: right .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
.mobile-drawer.open { right: 0; }
.md-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.md-close { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; }
.md-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.md-notice b { font-size: 13px; color: var(--text-3); }
.md-hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.md-hot a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.md-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.md-nav a { padding: 13px 15px; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 500; }
.md-nav a:hover { background: var(--surface-2); color: var(--c-primary); }
.md-foot { padding: 18px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 399; opacity: 0; visibility: hidden; transition: all var(--tr); }
.drawer-mask.show { opacity: 1; visibility: visible; }

/* ---------- 主区域 ---------- */
.ea-main { min-height: 60vh; padding-bottom: 60px; }
.section { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 5px; height: 26px; border-radius: 3px; background: linear-gradient(var(--c-primary), var(--c-accent)); }
.section-sub { color: var(--text-3); font-size: 14px; margin-top: 5px; padding-left: 17px; }
.section-more { color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.section-more:hover { color: var(--c-primary); gap: 9px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 46px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.hero-badge span.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.16; font-weight: 900; letter-spacing: -1.4px; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--c-primary), var(--c-primary-2) 55%, var(--c-primary-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(14px, 1.6vw, 17px); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .hs b { display: block; font-size: 26px; font-weight: 800; background: linear-gradient(120deg, var(--text), var(--c-primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .hs span { font-size: 13px; color: var(--text-3); }

/* Hero 搜索 */
.hero-search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 26px; }
.hero-search .hs-input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); }
.hero-search .hs-input:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124,92,255,.13); }
.hero-search .hs-input input { flex: 1; background: none; border: 0; font-size: 15px; }
.hero-hot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.hero-hot a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.hero-hot a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* 视觉装饰 */
.hero-visual { position: relative; height: 380px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 250px; height: 250px; top: 10px; left: 20px; background: radial-gradient(circle at 32% 32%, var(--c-primary), transparent 68%); opacity: .55; animation: float 7s ease-in-out infinite; }
.orb-2 { width: 190px; height: 190px; bottom: 20px; right: 10px; background: radial-gradient(circle at 60% 40%, var(--c-primary-2), transparent 68%); opacity: .5; animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
.glass-card { position: absolute; background: var(--surface); border: 1px solid var(--border-2); backdrop-filter: blur(18px); border-radius: 20px; padding: 16px 18px; box-shadow: var(--card-shadow); }
.gc-1 { top: 42px; left: 0; width: 262px; animation: float 8s ease-in-out infinite; }
.gc-2 { bottom: 34px; right: 0; width: 234px; animation: float 10s ease-in-out infinite reverse; }
.gc-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.gc-bars { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.gc-desc { font-size: 11.5px; line-height: 1.55; color: var(--text-3); margin: -4px 0 9px; }
/* 可点击卡片（配置了跳转链接） */
a.glass-card { display: block; color: inherit; text-decoration: none; }
.glass-card.is-link { cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.glass-card.is-link:hover {
  border-color: var(--c-primary);
  box-shadow: 0 20px 44px rgba(139,92,246,.26);
  transform: translateY(-3px);
}
.glass-card.is-link:hover .gc-arrow { opacity: 1; transform: translateX(2px); }
.gc-title .gc-arrow { margin-left: auto; display: inline-flex; opacity: .45; transition: opacity .25s, transform .25s; color: var(--c-primary); }
.gc-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-bars i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--c-primary), var(--c-accent)); animation: bars 1.6s ease-in-out infinite; }
@keyframes bars { 0%,100% { height: 26% } 50% { height: 100% } }
.gc-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.gc-row:last-child { border: 0; }

/* 谱面视觉（一键转谱卡片，v1.0.39） */
.gc-score { position: relative; height: 58px; margin-top: 2px; overflow: hidden; }
.gc-score .sl {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 12%, var(--border-2) 88%, transparent);
}
.gc-score .sl:nth-child(1) { top: 6px; }
.gc-score .sl:nth-child(2) { top: 17px; }
.gc-score .sl:nth-child(3) { top: 28px; }
.gc-score .sl:nth-child(4) { top: 39px; }
.gc-score .sl:nth-child(5) { top: 50px; }
.gc-score .nt {
  position: absolute; width: 9px; height: 7px; border-radius: 50%;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  box-shadow: 0 0 10px rgba(139,92,246,.55);
  animation: noteFloat 2.2s ease-in-out infinite;
}
.gc-score .nt::after {
  content: ''; position: absolute; right: -1px; bottom: 2px; width: 1.6px; height: 19px;
  background: var(--c-primary); opacity: .8; border-radius: 1px;
}
@keyframes noteFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@media (prefers-reduced-motion: reduce) { .gc-score .nt { animation: none } }
.spark { width: 100%; height: 44px; }

/* ---------- 首页模块拖拽排序（后台） ---------- */
.home-module { position: relative; }

/* ---------- Banner 轮播 ---------- */
.banner-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.banner-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.banner-slide { min-width: 100%; position: relative; aspect-ratio: 21/7; }
@media (max-width: 767px) { .banner-slide { aspect-ratio: 16/9; } }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide .bs-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: clamp(18px,3.4vw,32px); font-weight: 800; text-align: center; padding: 20px; }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 30px 24px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.banner-caption h3 { font-size: clamp(16px,2.4vw,24px); font-weight: 800; }
.banner-caption p { font-size: 13.5px; opacity: .78; margin-top: 5px; }
.banner-dots { position: absolute; bottom: 16px; right: 24px; display: flex; gap: 8px; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.42); transition: all var(--tr); }
.banner-dots button.active { width: 26px; border-radius: 5px; background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.36); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); opacity: 0; transition: all var(--tr); }
.banner-wrap:hover .banner-arrow { opacity: 1; }
.banner-arrow.prev { left: 16px; } .banner-arrow.next { right: 16px; transform: translateY(-50%) rotate(180deg); }
.banner-arrow:hover { background: var(--c-primary); }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: all var(--tr); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); opacity: 0; transition: opacity var(--tr); }
.cat-card:hover { transform: translateY(-6px); border-color: var(--c-primary); box-shadow: var(--card-shadow); }
.cat-card .cc-emoji { font-size: 32px; line-height: 1; display: block; margin-bottom: 12px; }
.cat-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.cat-card p { font-size: 12.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .cc-count { margin-top: 12px; font-size: 12px; color: var(--c-primary-2); display: flex; align-items: center; gap: 5px; }
.cat-card .cc-glow { position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--c-primary); opacity: .12; filter: blur(20px); }

/* ---------- 资源卡 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
@media (min-width: 1500px) { .res-grid { grid-template-columns: repeat(4, 1fr); } }
.res-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: all var(--tr); }
.res-card:hover { transform: translateY(-7px); border-color: var(--border-2); box-shadow: 0 26px 60px -28px rgba(124,92,255,.65); }
.res-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.res-card:hover .res-thumb img { transform: scale(1.07); }
.res-thumb .thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.res-thumb .thumb-fallback span { font-size: 40px; font-weight: 900; color: rgba(255,255,255,.92); letter-spacing: 2px; text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.res-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); color: #fff; }
.badge-rec { background: linear-gradient(135deg, #f43f5e, #f97316); }
.badge-vip { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3a2500; }
.badge-free { background: linear-gradient(135deg, #22c55e, #10b981); }
.res-plat { position: absolute; top: 10px; right: 10px; }
.platform-icons { display: inline-flex; align-items: center; gap: 6px; }
.plat-chip { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(8px); }
html[data-theme="light"] .plat-chip { background: #fff; }
.plat-chip-lg { width: auto; height: 34px; padding: 0 12px; gap: 7px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.plat-chip em { font-style: normal; }
.plat-chip .plate-svg, .plat-svg { display: block; }
.res-body { padding: 15px 16px 17px; flex: 1; display: flex; flex-direction: column; }
.res-title { font-size: 15px; font-weight: 700; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.res-card:hover .res-title { color: var(--c-primary); }
.res-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.res-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-3); margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--border); }
.res-meta .rm-item { display: inline-flex; align-items: center; gap: 4px; }
.res-price { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--c-primary); }
.res-price.free { color: #22c55e; }
.res-price .unit { font-size: 11px; font-weight: 500; color: var(--text-3); }
.res-cat-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* 横向列表卡片 */
.res-row { display: flex; gap: 16px; padding: 15px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: all var(--tr); }
.res-row:hover { border-color: var(--c-primary); transform: translateX(4px); }
.res-row .rr-thumb { width: 190px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; }
.res-row .rr-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .res-row { flex-direction: column; } .res-row .rr-thumb { width: 100%; } }

/* ---------- 布局：侧栏 + 内容 ---------- */
.layout { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; }
@media (max-width: 1023px) { .layout { grid-template-columns: 1fr; } }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.tree { font-size: 13.5px; }
.tree-item { margin-bottom: 2px; }
.tree-item > a, .tree-item > .ti-head { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.tree-item > a:hover, .tree-item.active > a { background: var(--surface-2); color: var(--c-primary); }
.tree-item.active > a { font-weight: 600; }
.tree-l2 { padding-left: 20px; }
.tree-l3 { padding-left: 22px; }
.tree-l2 a, .tree-l3 a { font-size: 13px; padding: 6px 10px; display: block; border-radius: 8px; color: var(--text-3); }
.tree-l2 a:hover, .tree-l3 a:hover, .tree-l3 a.active { color: var(--c-primary); background: var(--surface); }
.tree-l3 { position: relative; }
.tree-l3::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 6px; width: 1px; background: var(--border); }
.tree-toggle { margin-left: auto; transition: transform var(--tr); color: var(--text-3); }
.tree-item.open .tree-toggle { transform: rotate(90deg); }
.tree-children { display: none; }
.tree-item.open > .tree-children { display: block; }

/* 筛选栏 */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.filter-bar .fb-label { font-size: 13px; color: var(--text-3); }
.filter-chip { padding: 6px 15px; border-radius: 999px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); transition: all var(--tr); }
.filter-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-chip.active { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); border-color: transparent; color: #fff; font-weight: 600; }
.filter-bar .fb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.filter-bar select { padding: 7px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
@media (max-width: 1023px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 22px; aspect-ratio: 16/9; position: relative; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; line-height: 1.32; margin-bottom: 12px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.detail-meta .dm { display: inline-flex; align-items: center; gap: 6px; }
.prose { font-size: 15px; line-height: 1.85; color: var(--text-2); }
.prose h2, .prose h3 { color: var(--text); font-weight: 700; margin: 26px 0 12px; font-size: 18px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.prose li { margin-bottom: 7px; }
.prose img { border-radius: 12px; margin: 14px 0; }
.prose blockquote { border-left: 3px solid var(--c-primary); padding: 10px 18px; background: var(--surface); border-radius: 0 12px 12px 0; margin: 16px 0; color: var(--text-2); }
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--c-primary-2); }
.prose a { color: var(--c-primary); text-decoration: underline; }

/* 下载/购买面板 */
.buy-panel { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: sticky; top: 84px; }
.bp-price { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--border); margin-bottom: 18px; }
.bp-price .num { font-size: 40px; font-weight: 900; background: linear-gradient(120deg, var(--c-primary), var(--c-primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.bp-price .num small { font-size: 16px; }
.bp-price .tip { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.bp-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bp-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--text-2); }
.bp-row b { color: var(--text); font-weight: 600; }
.bp-actions { display: flex; flex-direction: column; gap: 10px; }
.bp-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 12px; }
.bp-get { display: none; padding: 14px; border-radius: 14px; background: rgba(34,197,94,.1); border: 1px dashed rgba(34,197,94,.4); text-align: center; margin-bottom: 14px; }
.bp-get.show { display: block; }
.bp-get .link-box { display: flex; gap: 8px; margin-top: 10px; }
.bp-get input { flex: 1; padding: 9px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); font-size: 12.5px; }
.bp-get .pass { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }

/* 平台预览窗口 */
.plat-preview { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; }
.plat-preview .pp-title { width: 100%; font-size: 13px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.plat-big { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); transition: all var(--tr); }
.plat-big:hover { border-color: var(--c-primary); transform: translateY(-3px); }
.plat-big b { font-size: 14px; }
.plat-big span { font-size: 11.5px; color: var(--text-3); display: block; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab-btn { padding: 11px 18px; font-size: 14.5px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--tr); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- 评论 ---------- */
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 13px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.comment-item .ci-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); color: #fff; font-weight: 700; }
.comment-item .ci-body { flex: 1; }
.comment-item .ci-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.comment-item .ci-name small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.comment-item .ci-text { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.ci-reply { margin-top: 12px; padding: 12px 15px; border-radius: 12px; background: var(--bg-3); border-left: 3px solid var(--c-primary); font-size: 13.5px; color: var(--text-2); }
.ci-reply b { color: var(--c-primary); }

/* ---------- 表单 ---------- */
.form-card { max-width: 460px; margin: 50px auto; padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); backdrop-filter: blur(18px); }
.form-card h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.form-card .fc-sub { text-align: center; color: var(--text-3); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-size: 14.5px; transition: all var(--tr);
}
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background: rgba(255,255,255,.04); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124,92,255,.13); }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-3); }
.form-foot a { color: var(--c-primary); font-weight: 600; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; transition: var(--tr); cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--tr); box-shadow: 0 2px 6px rgba(0,0,0,.28); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- 用户中心 ---------- */
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .user-layout { grid-template-columns: 1fr; } }
.user-menu { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: sticky; top: 84px; }
.user-card-mini { text-align: center; padding: 16px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.user-card-mini .uc-avatar { width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); color: #fff; font-size: 24px; font-weight: 800; overflow: hidden; }
.user-card-mini .uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-mini b { font-size: 15px; display: block; }
.user-card-mini span { font-size: 12px; color: var(--text-3); }
.um-link { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.um-link:hover { background: var(--surface-2); color: var(--c-primary); }
.um-link.active { background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(34,211,238,.1)); color: var(--c-primary); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: all var(--tr); }
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.stat-card .sc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 13px; color: #fff; }
.stat-card .sc-icon.i1 { background: linear-gradient(135deg, #7c5cff, #a78bfa); }
.stat-card .sc-icon.i2 { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.stat-card .sc-icon.i3 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.stat-card .sc-icon.i4 { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.stat-card .sc-icon.i5 { background: linear-gradient(135deg, #22c55e, #10b981); }
.stat-card .sc-num { font-size: 26px; font-weight: 800; line-height: 1.2; }
.stat-card .sc-label { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.stat-card .sc-glow { position: absolute; right: -24px; top: -24px; width: 84px; height: 84px; border-radius: 50%; background: var(--c-primary); opacity: .1; filter: blur(18px); }

/* ---------- 表格 ---------- */
.table-wrap { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.ea-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.ea-table th { text-align: left; padding: 13px 16px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; border-bottom: 1px solid var(--border); }
table.ea-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
table.ea-table tr:last-child td { border-bottom: 0; }
table.ea-table tbody tr:hover { background: var(--surface-2); }
table.ea-table td .strong { color: var(--text); font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty .em-icon { font-size: 42px; margin-bottom: 12px; opacity: .5; }
.empty p { font-size: 14px; }

/* 状态标签 */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.tag-green { background: rgba(34,197,94,.14); color: #22c55e; }
.tag-red { background: rgba(244,63,94,.14); color: #f43f5e; }
.tag-blue { background: rgba(59,130,246,.14); color: #3b82f6; }
.tag-orange { background: rgba(249,115,22,.14); color: #f97316; }
.tag-gray { background: var(--surface-2); color: var(--text-3); }
.tag-vip { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3a2500; }

/* ---------- 套餐卡 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; }
.pkg-card { position: relative; padding: 24px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: all var(--tr); overflow: hidden; }
.pkg-card:hover { transform: translateY(-7px); border-color: var(--c-primary); box-shadow: var(--shadow-glow); }
.pkg-card.hot { border-color: var(--c-primary); }
.pkg-card.hot::before { content: "推荐"; position: absolute; top: 0; right: 0; padding: 4px 15px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-3)); border-radius: 0 var(--radius-lg) 0 14px; }
.pkg-card .pk-tag { position: absolute; top: 0; left: 0; padding: 4px 14px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #fbbf24, #f97316); border-radius: var(--radius-lg) 0 14px 0; }
.pkg-card .pk-points { font-size: 34px; font-weight: 900; line-height: 1.1; background: linear-gradient(120deg, var(--c-primary), var(--c-primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pkg-card .pk-points small { font-size: 15px; }
.pkg-card .pk-bonus { font-size: 12.5px; color: #22c55e; font-weight: 600; margin-top: 4px; height: 19px; }
.pkg-card .pk-price { font-size: 24px; font-weight: 800; margin: 14px 0 16px; }
.pkg-card .pk-price small { font-size: 14px; }
.pkg-card .pk-name { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }

/* VIP 卡 */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); gap: 20px; }
.vip-card { position: relative; padding: 30px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: all var(--tr); overflow: hidden; }
.vip-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.vip-card.v4 { border-color: rgba(251,191,36,.55); background: linear-gradient(160deg, rgba(251,191,36,.1), transparent 60%), var(--surface); }
.vip-card.v3 { border-color: var(--c-primary); }
.vip-card .vc-tag { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.vip-card .vc-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.vip-card .vc-price { font-size: 36px; font-weight: 900; margin: 14px 0 2px; }
.vip-card .vc-price small { font-size: 15px; font-weight: 500; color: var(--text-3); }
.vip-card .vc-days { font-size: 12.5px; color: var(--text-3); margin-bottom: 18px; }
.vip-card ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.vip-card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.vip-card ul li .ic { color: #22c55e; margin-top: 3px; }
.vip-banner { position: relative; padding: 46px 34px; border-radius: var(--radius-xl); background: linear-gradient(120deg, rgba(124,92,255,.2), rgba(34,211,238,.12), rgba(244,114,182,.14)); border: 1px solid var(--border-2); overflow: hidden; text-align: center; margin-bottom: 40px; }
.vip-banner h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; margin-bottom: 12px; }
.vip-banner p { color: var(--text-2); font-size: 15px; }

/* 支付方式选择 */
.pay-ways { display: flex; gap: 14px; flex-wrap: wrap; }
.pay-way { flex: 1; min-width: 158px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); cursor: pointer; transition: all var(--tr); }
.pay-way:hover { border-color: var(--border-2); }
.pay-way.active { border-color: var(--c-primary); background: linear-gradient(135deg, rgba(124,92,255,.12), transparent); }
.pay-way b { font-size: 14px; }
.pay-way span { font-size: 11.5px; color: var(--text-3); display: block; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 34px; flex-wrap: wrap; }
.pager-item { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); transition: all var(--tr); }
.pager-item:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager-item.active { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); border-color: transparent; color: #fff; font-weight: 700; }
.pager-item.disabled { opacity: .4; pointer-events: none; }
.pager-item.dots { border: 0; background: none; }
.pager-item.pager-nav { padding: 0 16px; font-weight: 600; }
.pager-info { font-size: 12.5px; color: var(--text-3); margin-left: 6px; }
/* 移动端：触控友好的大按钮，上/下页文字保留 */
@media (max-width: 700px) {
  .pager { gap: 8px; margin-top: 26px; }
  .pager-item { min-width: 44px; height: 44px; font-size: 14.5px; border-radius: 12px; }
  .pager-item.pager-nav { padding: 0 18px; }
  .pager-info { width: 100%; text-align: center; margin: 4px 0 0; order: 99; }
}

/* ---------- 页脚 ---------- */
.ea-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 52px 0 0; overflow: hidden; }
.footer-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 620px; height: 220px; border-radius: 50%; background: var(--c-primary); opacity: .12; filter: blur(90px); }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.9fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 940px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.fb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fb-slogan { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; max-width: 340px; }
.fb-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fb-tags a { font-size: 12px; color: var(--c-primary-2); }
.fb-wechat { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); max-width: 340px; }
.fb-qr { width: 88px; height: 88px; border-radius: 11px; overflow: hidden; background: var(--bg-3); flex-shrink: 0; display: grid; place-items: center; }
.fb-qr img { width: 100%; height: 100%; object-fit: contain; }
.fb-qr-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #07C160; font-size: 11px; }
.fb-wechat-info b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.fb-wechat-info span { font-size: 12.5px; color: var(--text-3); display: block; margin-top: 3px; }
.fb-wechat-info small { font-size: 11.5px; color: var(--text-3); opacity: .8; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13.5px; color: var(--text-3); padding: 5px 0; }
.footer-links a:hover { color: var(--c-primary); }
.footer-links .fl-sub { padding-left: 12px; font-size: 12.5px; }
.fl-platforms, .fl-pays { display: flex; gap: 9px; flex-wrap: wrap; }
.pay-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.pay-chip em { font-style: normal; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 20px 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); }
.fb-note { opacity: .75; }

/* 移动端底部导航 */
.mobile-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 190; background: var(--header-bg); backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; font-size: 10.5px; color: var(--text-3); }
.mobile-tabbar a em { font-style: normal; font-size: 19px; line-height: 1; }
.mobile-tabbar a:hover { color: var(--c-primary); }

.back-top { position: fixed; right: 22px; bottom: 82px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--card-shadow); opacity: 0; visibility: hidden; transition: all var(--tr); z-index: 180; transform: rotate(-90deg); }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); border-color: transparent; }

/* ---------- 公告弹窗 ---------- */
.notice-modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 20px; }
.notice-modal.hide { display: none; }
.nm-mask { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); }
.nm-panel { position: relative; width: 100%; max-width: 500px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(20px) } to { opacity: 1; transform: none } }
.nm-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.nm-head h3 { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.nm-close { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; color: var(--text-3); }
.nm-body { padding: 22px; max-height: 52vh; overflow-y: auto; }
.nm-item { display: none; }
.nm-item.active { display: block; animation: fadeUp .3s ease; }
.nm-item b { font-size: 15.5px; display: block; margin-bottom: 10px; }
.nm-item p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.nm-item small { font-size: 12px; color: var(--text-3); display: block; margin-top: 12px; }
.nm-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.nm-remember { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; cursor: pointer; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 12px 22px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border); font-size: 13.5px; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); animation: toastIn .3s ease; display: flex; align-items: center; gap: 9px; max-width: 88vw; }
.toast.ok { border-color: rgba(34,197,94,.5); }
.toast.err { border-color: rgba(244,63,94,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) } to { opacity: 1; transform: none } }

/* ---------- 面包屑 ---------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); padding: 20px 0 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--c-primary); }
.crumb .sep { opacity: .5; }

/* ---------- 富文本模块 ---------- */
.rich-block { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .search-box input { width: 110px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { display: none; }
  .tt-text { display: none; }
  .theme-toggle { padding: 5px; }
  .btn-user-info { display: none; }
  .btn-user { padding: 5px; }
  .section { padding: 36px 0; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 700px) {
  .container { padding: 0 15px; }
  .ea-main { padding-bottom: 76px; }
  .mobile-tabbar { display: flex; }
  .ea-footer { padding-bottom: 66px; }
  .back-top { bottom: 92px; right: 15px; }
  .res-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }
  .res-body { padding: 12px; }
  .res-title { font-size: 13.5px; }
  .res-desc { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  /* 4 列小卡：收紧内边距与字号，避免溢出 */
  .cat-card { padding: 12px 8px; border-radius: 12px; }
  .cat-card .cc-emoji { font-size: 24px; margin-bottom: 7px; }
  .cat-card h4 { font-size: 12px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cat-card p { display: none; }
  .cat-card .cc-count { margin-top: 6px; font-size: 10px; gap: 0; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; }
  .cat-card .cc-count svg { display: none; }
  .header-inner { height: 58px; gap: 12px; }
  .brand-text { font-size: 16.5px; }
  .search-box { display: none; }
  .form-card { margin: 24px auto; padding: 24px 20px; }
  .hero-search { flex-direction: column; }
  .section-title { font-size: 20px; }
}

/* 动画开关 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }}

/* ============================================================
   微信客服悬浮按钮（隐藏式，点击弹出二维码）
   ============================================================ */
.wx-fab { position: fixed; right: 22px; bottom: 26px; z-index: 900; }
.wx-fab-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #07C160, #059a4c);
  box-shadow: 0 6px 20px rgba(7, 193, 96, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wx-fab-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(7, 193, 96, .55); }
.wx-fab-btn svg { width: 26px; height: 26px; fill: currentColor; }

.wx-fab-popup {
  position: absolute; right: 0; bottom: 66px; width: 208px; padding: 16px 14px 14px;
  border-radius: 14px; text-align: center;
  background: var(--bg-2, #1a1d29); border: 1px solid var(--line-1, rgba(255,255,255,.1));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.wx-fab.open .wx-fab-popup { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wx-fab-popup b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; margin-bottom: 10px; color: var(--text-1, #fff); }
.wx-fab-popup b svg { fill: #07C160; }
.wx-fab-popup img { width: 168px; height: 168px; object-fit: contain; border-radius: 10px; background: #fff; padding: 6px; }
.wx-fab-empty { width: 168px; height: 168px; margin: 0 auto; border-radius: 10px; background: var(--bg-3, rgba(255,255,255,.06)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #07C160; font-size: 12px; }
.wx-fab-empty svg { fill: #07C160; }
.wx-fab-desc { display: block; margin-top: 9px; font-size: 11.5px; color: var(--text-3, #9aa0b8); }
.wx-fab-arrow {
  position: absolute; right: 20px; bottom: -6px; width: 12px; height: 12px;
  background: var(--bg-2, #1a1d29); border-right: 1px solid var(--line-1, rgba(255,255,255,.1));
  border-bottom: 1px solid var(--line-1, rgba(255,255,255,.1)); transform: rotate(45deg);
}

/* 说明：不做 hover 自动展开 —— 若悬停展开，点击收起后鼠标仍停留在按钮上，
   弹层会被 hover 规则立刻重新展开，用户会觉得「关闭无效」。统一用点击切换。 */

/* ---------- 资源中心：移动端侧栏折叠 ---------- */
.side-fold-toggle { cursor: default; }
.side-fold-toggle .fold-arrow { display: none; transition: transform .25s; }
.side-foldable.collapsed .fold-arrow { transform: rotate(-90deg); }
@media (max-width: 1023px) {
  .side-fold-toggle { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
  .side-foldable:not(.collapsed) .fold-arrow { transform: rotate(180deg); }
  .side-foldable.collapsed .tree,
  .side-foldable.collapsed > div:not(.side-fold-toggle) { display: none; }
}

/* ---------- 资源中心：移动端分类树内部滚动，避免长列表拖不动 ---------- */
@media (max-width: 1023px) {
  .side-foldable .tree {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 2px;
  }
  /* 细滚动条提示可滚 */
  .side-foldable .tree::-webkit-scrollbar { width: 3px; }
  .side-foldable .tree::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
}

/* ==========================================================================
   首屏增强（v1.0.38）：背景图 / 动效层 / 入场动画 / 跳转按钮
   ========================================================================== */
.hero > .hero-inner { width: 100%; position: relative; z-index: 2; }

/* 背景图 + 渐变遮罩（保证文字可读） */
.hero .hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,13,.62), rgba(7,7,13,.38) 45%, var(--bg) 96%);
}
html[data-theme="light"] .hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(246,247,252,.55), rgba(246,247,252,.35) 45%, var(--bg) 96%);
}

/* 动效层公共定位 */
.hero .hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero .fx-particles { width: 100%; height: 100%; display: block; }

/* 极光流光 */
.hero .fx-aurora i {
  position: absolute; width: 46vw; height: 46vw; max-width: 680px; max-height: 680px;
  border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: screen;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.75), transparent 62%);
  animation: fxDrift1 16s ease-in-out infinite alternate;
}
.hero .fx-aurora i:nth-child(2) {
  left: 38%; top: -12%;
  background: radial-gradient(circle at 60% 40%, rgba(34,211,238,.55), transparent 60%);
  animation: fxDrift2 21s ease-in-out infinite alternate;
}
.hero .fx-aurora i:nth-child(3) {
  left: 12%; bottom: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(236,72,153,.4), transparent 62%);
  animation: fxDrift3 26s ease-in-out infinite alternate;
}
html[data-theme="light"] .hero .fx-aurora i { mix-blend-mode: normal; opacity: .38; }
@keyframes fxDrift1 { from { transform: translate(-6%, 4%) scale(1); } to { transform: translate(9%, -7%) scale(1.16); } }
@keyframes fxDrift2 { from { transform: translate(4%, 6%) scale(1.1); } to { transform: translate(-8%, -4%) scale(.94); } }
@keyframes fxDrift3 { from { transform: translate(-4%, -6%) scale(.96); } to { transform: translate(7%, 8%) scale(1.14); } }

/* 光斑漂浮 */
.hero .fx-float i {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: .42;
  background: radial-gradient(circle, rgba(139,92,246,.6), transparent 70%);
  width: 34vw; height: 34vw; max-width: 520px; max-height: 520px;
  left: 8%; top: 16%; animation: floatY 11s ease-in-out infinite;
}
.hero .fx-float i:nth-child(2) {
  left: 55%; top: 34%; width: 26vw; height: 26vw;
  background: radial-gradient(circle, rgba(34,211,238,.5), transparent 70%);
  animation-duration: 14s; animation-delay: -4s;
}
.hero .fx-float i:nth-child(3) {
  left: 34%; top: 58%; width: 22vw; height: 22vw;
  background: radial-gradient(circle, rgba(59,130,246,.45), transparent 70%);
  animation-duration: 17s; animation-delay: -8s;
}
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-46px) } }

/* 文案入场动画（轻量，仅首屏） */
.hero .hero-copy > * { animation: heroIn .65s cubic-bezier(.2,.7,.3,1) both; }
.hero .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-copy > *, .hero .fx-aurora i, .hero .fx-float i { animation: none !important; }
}

/* 跳转按钮 */
.hero .hero-cta { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
