/* ============================================================
   Echo TV · SPA 全站样式 v4 — GSAP 动画版
   设计：琥珀金 + 深炭黑 · 精致卡片 · 微交互
   动画由 GSAP 驱动，CSS 仅保留基础过渡
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root, [data-theme="dark"] {
    --bg:        #0a0908;
    --bg-2:      #161412;
    --bg-3:      #221e1a;
    --card:      #161412;
    --card-2:    #221e1a;
    --hover:     #2c2722;
    --tx-1:      #f8f7f5;
    --tx-2:      #b0a99f;
    --tx-3:      #6b6258;
    --accent:    #f5a623;
    --accent-2:  #fbbf24;
    --accent-3:  #fde68a;
    --accent-soft: rgba(245,166,35,.1);
    --accent-glow: rgba(245,166,35,.25);
    --accent-line: rgba(245,166,35,.3);
    --line:      rgba(248,247,245,.06);
    --line-2:    rgba(248,247,245,.12);
    --danger:    #ef4444;
    --success:   #22c55e;
    --radius:    16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow:    0 20px 60px rgba(0,0,0,.55);
    --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --ease:      cubic-bezier(.22,.61,.36,1);
    --ease-out:  cubic-bezier(.16,1,.3,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --maxw:      1340px;
    --nav-h:     62px;
}

[data-theme="light"] {
    --bg:        #faf9f7;
    --bg-2:      #f3f0ec;
    --bg-3:      #e8e3dc;
    --card:      #ffffff;
    --card-2:    #f5f2ee;
    --hover:     #ebe6df;
    --tx-1:      #1a1611;
    --tx-2:      #5c5448;
    --tx-3:      #a39989;
    --accent:    #c8760a;
    --accent-2:  #d97706;
    --accent-3:  #f59e0b;
    --accent-soft: rgba(200,118,10,.08);
    --accent-glow: rgba(200,118,10,.2);
    --accent-line: rgba(200,118,10,.25);
    --line:      rgba(26,22,17,.06);
    --line-2:    rgba(26,22,17,.12);
    --shadow:    0 20px 60px rgba(26,22,17,.12);
    --shadow-sm: 0 8px 24px rgba(26,22,17,.08);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }
*:focus { outline: none; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
*::-webkit-scrollbar-track { background: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { transition: background-color .4s ease, color .4s ease; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background: var(--bg);
    color: var(--tx-1);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }

/* ---------- 首屏启动画面（GSAP 动画） ---------- */
.boot-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg);
}
.boot-logo { font-size: 52px; color: var(--accent); }
.boot-bar { width: 120px; height: 2px; margin-top: 28px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--accent); }

/* ---------- 顶部导航 ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 14px;
    height: var(--nav-h); padding: 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, border-color .3s ease;
    will-change: transform, opacity;
}
.navbar.scrolled {
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(8px);
    backdrop-filter: saturate(1.6) blur(8px);
    border-bottom-color: var(--line-2);
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--tx-1); flex-shrink: 0; }
.nav-brand i { color: var(--accent); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--tx-2); transition: color .2s, background .2s; position: relative; }
.nav-link:hover { color: var(--tx-1); background: var(--hover); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; width: 220px; transition: border-color .25s, width .3s var(--ease), box-shadow .25s; }
.nav-search:focus-within { width: 280px; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-search i { color: var(--tx-3); font-size: 16px; }
.nav-search input { flex: 1; background: none; border: none; font-size: 14px; min-width: 0; }
.nav-search input::placeholder { color: var(--tx-3); }

/* ---------- 日夜切换按钮（原版完整保留） ---------- */
.theme-toggle {
    position: relative; width: 52px; height: 28px; border-radius: 14px;
    border: none; background: transparent; cursor: pointer; padding: 0;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent; outline: none;
}
.theme-toggle-track {
    position: relative; width: 100%; height: 100%; border-radius: 14px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 1px solid rgba(255,255,255,.1); overflow: hidden;
    transition: background .5s ease, border-color .5s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.3);
}
[data-theme="light"] .theme-toggle-track { background: linear-gradient(135deg, #60A5FA, #93C5FD); border-color: rgba(255,255,255,.3); box-shadow: inset 0 2px 4px rgba(0,0,0,.1); }
.theme-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #FCD34D, #F59E0B); display: flex; align-items: center; justify-content: center; transition: transform .5s cubic-bezier(.68,-.55,.265,1.55), background .5s ease; box-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 3; }
.theme-toggle-thumb i { font-size: 12px; transition: opacity .3s ease, transform .5s ease; position: absolute; }
.theme-icon-sun { color: #FFF; opacity: 1; transform: rotate(0deg) scale(1); }
.theme-icon-moon { color: #FFF; opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .theme-toggle-thumb { transform: translateX(24px); background: linear-gradient(135deg,#FEF3C7,#FCD34D); box-shadow: 0 2px 8px rgba(251,191,36,.4); }
[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle-stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.theme-toggle-stars span { position: absolute; width: 2px; height: 2px; background: #FFF; border-radius: 50%; opacity: 1; transition: opacity .4s ease, transform .4s ease; }
.theme-toggle-stars span:nth-child(1) { top: 5px; left: 28px; animation: starTwinkle 2s ease-in-out infinite; }
.theme-toggle-stars span:nth-child(2) { top: 16px; left: 36px; width: 1.5px; height: 1.5px; animation: starTwinkle 2.5s ease-in-out infinite .5s; }
.theme-toggle-stars span:nth-child(3) { top: 8px; left: 40px; width: 1px; height: 1px; animation: starTwinkle 3s ease-in-out infinite 1s; }
[data-theme="light"] .theme-toggle-stars span { opacity: 0; transform: scale(0); }
.theme-toggle-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.theme-toggle-clouds span { position: absolute; background: rgba(255,255,255,.6); border-radius: 10px; opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.theme-toggle-clouds span:nth-child(1) { width: 12px; height: 6px; top: 8px; left: 6px; border-radius: 6px; transform: translateX(-5px); }
.theme-toggle-clouds span:nth-child(2) { width: 8px; height: 4px; top: 16px; left: 10px; border-radius: 4px; transform: translateX(-3px); }
[data-theme="light"] .theme-toggle-clouds span { opacity: 1; transform: translateX(0); }
@keyframes starTwinkle { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.theme-toggle::after { content: ''; position: absolute; inset: -4px; border-radius: 18px; background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: -1; }
.theme-toggle:active::after { opacity: 1; }

/* ---------- 主视图容器 ---------- */
.view { min-height: calc(100vh - var(--nav-h)); }
.page-pad { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 110px; }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: 72vh; min-height: 440px; max-height: 620px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; will-change: opacity; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transform: scale(1.1); will-change: transform; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--bg) 50%, transparent) 55%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, transparent 60%); }
.hero-content { position: absolute; left: 0; bottom: 0; max-width: var(--maxw); padding: 0 24px 72px; width: 100%; }
.hero-inner { max-width: 560px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 16px; border: 1px solid var(--accent-line); }
.hero-title { font-size: clamp(30px, 5.5vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-meta { display: flex; align-items: center; gap: 10px; color: var(--tx-2); font-size: 14px; margin-bottom: 24px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tx-3); }
.hero-actions { display: flex; gap: 12px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.hero-btn i { font-size: 20px; }
.hero-btn-go { background: var(--accent); color: #0a0908; box-shadow: 0 10px 30px var(--accent-glow); }
.hero-btn-go:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--accent-glow); }
.hero-btn-info { background: color-mix(in srgb, var(--tx-1) 10%, transparent); color: var(--tx-1); border: 1px solid var(--line-2); }
.hero-btn-info:hover { background: color-mix(in srgb, var(--tx-1) 18%, transparent); transform: translateY(-2px); }
.hero-dots { position: absolute; bottom: 32px; right: 32px; display: flex; gap: 8px; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all .3s var(--ease); cursor: pointer; }
.hero-dot.on { width: 30px; border-radius: 4px; background: var(--accent); }

/* ---------- 内容区 / 横滚行 ---------- */
.section { margin-bottom: 44px; will-change: transform, opacity; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--accent); font-size: 24px; }
.section-more { display: flex; align-items: center; gap: 2px; color: var(--tx-2); font-size: 14px; transition: color .2s, gap .2s; }
.section-more:hover { color: var(--accent); gap: 4px; }

.rail { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- 影片卡片 ---------- */
.vcard { flex-shrink: 0; width: 160px; display: block; position: relative; }
.vcard-poster { position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--card-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; will-change: transform; }
.vcard:hover .vcard-poster { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.vcard-poster img { width: 100%; height: 100%; object-fit: cover; }
.vcard-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 65%, transparent); font-size: 11px; font-weight: 600; color: var(--accent-2); }
.vcard-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55)); }
.vcard:hover .vcard-play { opacity: 1; }
.vcard-play i { font-size: 22px; color: #fff; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; padding-left: 3px; box-shadow: 0 6px 20px var(--accent-glow); transform: scale(.6); transition: transform .35s var(--ease-bounce); }
.vcard:hover .vcard-play i { transform: scale(1); }
.vcard-title { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-sub { font-size: 12px; color: var(--tx-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }

/* ---------- 分类浏览页 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 8px 18px; border-radius: 22px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; color: var(--tx-2); transition: color .2s, border-color .2s, background .2s, transform .2s; }
.chip:hover { color: var(--tx-1); border-color: var(--line-2); transform: translateY(-1px); }
.chip.active { background: var(--accent); color: #0a0908; border-color: var(--accent); font-weight: 600; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.page-head p { color: var(--tx-2); margin-top: 8px; font-size: 14px; }

/* ---------- 详情页 ---------- */
.detail-page { padding-bottom: 40px; }
.detail-banner { position: relative; padding: 52px 24px 40px; overflow: hidden; }
.detail-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; opacity: .12; filter: saturate(1.5); transform: scale(1.3); z-index: 0; }
.detail-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 25%, transparent), var(--bg)); }
.detail-banner-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: flex; gap: 36px; }
.detail-poster { position: relative; width: 210px; flex-shrink: 0; aspect-ratio: 2/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); will-change: transform, opacity; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.detail-poster:hover .poster-play { opacity: 1; }
.poster-play i { font-size: 28px; color: #fff; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 8px 28px var(--accent-glow); }
.detail-main { flex: 1; min-width: 0; padding-top: 4px; }
.detail-tags-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { padding: 5px 13px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--tx-2); }
.tag-type { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.detail-title { font-size: clamp(24px, 4vw, 40px); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; }
.detail-sub { color: var(--tx-2); font-size: 15px; margin-top: 8px; }

.detail-score-row { display: flex; gap: 18px; margin-top: 22px; }
.score-box { display: flex; flex-direction: column; gap: 3px; }
.score-num { font-size: 30px; font-weight: 900; color: var(--accent); line-height: 1; }
.score-num.sm { font-size: 15px; color: var(--tx-1); font-weight: 700; }
.score-label { font-size: 12px; color: var(--tx-3); }
.score-info .score-num { color: var(--tx-1); }

.detail-people { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.people-label { display: inline-block; color: var(--tx-3); min-width: 36px; }
.people-val { color: var(--tx-2); }

.detail-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-play { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; border-radius: 14px; background: var(--accent); color: #0a0908; font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 30px var(--accent-glow); }
.btn-play:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--accent-glow); }
.btn-back { display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--tx-2); transition: color .2s, border-color .2s, transform .2s; }
.btn-back:hover { color: var(--tx-1); border-color: var(--line-2); transform: translateY(-2px); }

.detail-body-pad { padding-top: 8px; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); will-change: transform, opacity; }
.dcard-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dcard-title i { color: var(--accent); }
.ep-count { font-size: 13px; color: var(--tx-3); font-weight: 400; margin-left: 4px; }
.dcard-blurb { color: var(--tx-2); line-height: 1.9; font-size: 15px; }

/* 线路/选集按钮 */
.src-grid, .ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.src-btn, .ep-btn { padding: 9px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--tx-2); transition: color .2s, border-color .2s, background .2s, transform .15s; }
.src-btn:hover, .ep-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.src-btn.active, .ep-btn.active { background: var(--accent); color: #0a0908; border-color: var(--accent); font-weight: 600; }

/* ---------- 搜索页 ---------- */
.search-hero { text-align: center; padding: 60px 24px 40px; }
.search-hero h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 900; letter-spacing: -.025em; }
.search-hero p { color: var(--tx-2); margin-top: 10px; }
.search-box-big { max-width: 580px; margin: 28px auto 0; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 22px; transition: border-color .25s, box-shadow .25s; }
.search-box-big:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box-big i { color: var(--tx-3); font-size: 20px; }
.search-box-big input { flex: 1; background: none; border: none; font-size: 16px; }
.search-box-big input::placeholder { color: var(--tx-3); }
.search-box-big button { padding: 8px 20px; border-radius: 12px; background: var(--accent); color: #0a0908; font-weight: 700; transition: transform .2s; }
.search-box-big button:hover { transform: scale(1.05); }

/* ---------- 关于页 ---------- */
.about-wrap { max-width: 740px; margin: 0 auto; padding: 48px 24px; }
.about-hero { text-align: center; margin-bottom: 48px; }
.about-logo { font-size: 56px; color: var(--accent); margin-bottom: 16px; }
.about-avatar { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); box-shadow: 0 8px 30px var(--accent-glow); display: flex; align-items: center; justify-content: center; background: var(--card-2); will-change: transform, opacity; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar i { font-size: 42px; color: var(--accent); }
.about-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -.025em; }
.about-hero p { color: var(--tx-2); margin-top: 10px; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 18px; box-shadow: var(--shadow-sm); will-change: transform, opacity; }
.about-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.about-card h3 i { color: var(--accent); }
.about-card p, .about-card li { color: var(--tx-2); line-height: 1.85; font-size: 15px; }
.about-card ul { list-style: none; }
.about-card li { padding-left: 20px; position: relative; }
.about-card li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.about-author-row { display: flex; flex-direction: column; gap: 10px; }
.about-contact { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--card-2); margin-top: 0; transition: border-color .2s, background .2s, transform .2s; }
.about-contact i { color: var(--accent); font-size: 18px; }
.about-contact-link { cursor: pointer; border: 1px solid var(--line); }
.about-contact-link:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(4px); }

/* ---------- 公告弹窗 ---------- */
.announce-mask { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 24px; }
.announce-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); will-change: transform, opacity; }
.announce-head { padding: 28px 28px 0; text-align: center; }
.announce-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--accent); border: 1px solid var(--accent-line); }
.announce-title { font-size: 20px; font-weight: 800; }
.announce-body { padding: 20px 28px; color: var(--tx-2); line-height: 1.8; font-size: 14px; max-height: 50vh; overflow-y: auto; }
.announce-foot { display: flex; gap: 10px; padding: 0 28px 28px; }
.announce-foot button { flex: 1; padding: 13px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: filter .2s, transform .15s; }
.announce-foot button:active { transform: scale(.96); }
.announce-foot .btn-dismiss { background: var(--card-2); color: var(--tx-2); border: 1px solid var(--line); }
.announce-foot .btn-dismiss:hover { color: var(--tx-1); }
.announce-foot .btn-ok { background: var(--accent); color: #0a0908; }
.announce-foot .btn-ok:hover { filter: brightness(1.1); }

/* ---------- 回到顶部 ---------- */
.backtop {
    position: fixed; right: 24px; bottom: 96px; z-index: 120;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); cursor: pointer;
    opacity: 0; pointer-events: none; transform: scale(0);
    transition: opacity .3s ease, transform .3s var(--ease-bounce);
    -webkit-tap-highlight-color: transparent;
    will-change: transform, opacity;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: scale(1); }
.backtop:hover, .backtop:active { background: var(--accent); color: #0a0908; border-color: var(--accent); }
.backtop i { font-size: 22px; }

/* ---------- GSAP 按钮波纹 ---------- */
.gsap-ripple {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.3); pointer-events: none;
    transform: translate(-50%, -50%);
}

/* ---------- 底部信息 ---------- */
.sitefoot { border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; color: var(--tx-3); font-size: 13px; }
.sitefoot .foot-links { margin-top: 6px; }
.sitefoot a { color: var(--tx-2); transition: color .2s; }
.sitefoot a:hover { color: var(--accent); }

/* ---------- 移动端底部导航 ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; display: none; background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-inner { display: flex; max-width: 600px; margin: 0 auto; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; color: var(--tx-3); transition: color .2s; }
.tab-item i { font-size: 21px; }
.tab-item.active { color: var(--accent); }

/* ---------- 状态：骨架/空/加载 ---------- */
.skeleton { background: linear-gradient(90deg, var(--card-2) 25%, var(--hover) 50%, var(--card-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.empty { text-align: center; padding: 80px 24px; color: var(--tx-3); }
.empty i { font-size: 52px; margin-bottom: 18px; display: block; }
.empty p { font-size: 15px; }
.load-tip { text-align: center; padding: 48px; color: var(--tx-3); }
.load-tip i { font-size: 32px; color: var(--accent); display: inline-block; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); color: var(--tx-2); font-size: 14px; transition: color .2s, border-color .2s, transform .15s; }
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pager button.active { background: var(--accent); color: #0a0908; border-color: var(--accent); font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   播放器样式（play.php 专用）
   ============================================================ */
.play-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; height: var(--nav-h); padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); will-change: transform, opacity; }
.play-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); font-size: 20px; transition: background .2s, color .2s, transform .15s; }
.play-back:hover { background: var(--accent); color: #0a0908; transform: scale(1.05); }
.play-top-title { flex: 1; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-shell { max-width: 1100px; margin: 0 auto; padding: 20px 16px 100px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx-3); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: var(--tx-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--tx-1); }

.player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); will-change: transform, opacity; }
.player-wrap.is-portrait { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.vp-inner { position: relative; width: 100%; height: 100%; }
.vp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-loading, .vp-buffering { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 13px; background: rgba(0,0,0,.3); }
.vp-buffering { background: transparent; }
.vp-spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.vp-click-layer { position: absolute; inset: 0; z-index: 5; }
.vp-big-play { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; }
.vp-big-play i { font-size: 64px; color: #fff; width: 88px; height: 88px; border-radius: 50%; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; padding-left: 6px; transition: transform .3s var(--ease-bounce); }
.vp-big-play:hover i { transform: scale(1.1); }
.vp-unmute-tip { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 7; padding: 8px 18px; border-radius: 20px; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.vp-speed-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 7; padding: 12px 24px; border-radius: 12px; background: rgba(0,0,0,.75); color: var(--accent); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.4); }
.player-placeholder i { font-size: 56px; }

.vp-top-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.vp-top-bar.visible { opacity: 1; pointer-events: auto; }
.vp-top-title { flex: 1; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vp-controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 8; padding: 8px 14px 10px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.vp-controls.visible { opacity: 1; transform: none; pointer-events: auto; }
.vp-progress { position: relative; height: 16px; cursor: pointer; display: flex; align-items: center; }
.vp-progress::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); }
.vp-progress-buffered { position: absolute; left: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.vp-progress-played { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--accent); }
.vp-progress-thumb { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 8px var(--accent-glow); }
.vp-progress:hover .vp-progress-thumb { transform: translateX(-50%) scale(1.3); }
.vp-progress-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.85); color: #fff; font-size: 12px; white-space: nowrap; }
.vp-controls-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.vp-controls-left, .vp-controls-right { display: flex; align-items: center; gap: 4px; }
.vp-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: #fff; font-size: 18px; transition: background .2s; }
.vp-btn:hover { background: rgba(255,255,255,.15); }
.vp-text-btn { width: auto; padding: 0 10px; font-size: 13px; font-weight: 500; }
.vp-time { color: rgba(255,255,255,.8); font-size: 12px; margin-left: 6px; }
.vp-menu-wrap { position: relative; }
.vp-popup { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); min-width: 110px; padding: 6px; border-radius: 10px; background: rgba(20,18,16,.95); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.vp-popup-title { padding: 6px 10px 8px; font-size: 12px; color: var(--tx-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.vp-popup-item { padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--tx-1); text-align: center; transition: background .2s; }
.vp-popup-item:hover { background: var(--hover); }
.vp-popup-item.active { color: var(--accent); font-weight: 600; }
.vp-volume-wrap { display: flex; align-items: center; }
.vp-volume-slider { width: 0; overflow: hidden; transition: width .3s; }
.vp-volume-wrap.expanded .vp-volume-slider, .vp-volume-wrap:hover .vp-volume-slider { width: 70px; }
.vp-vol-range { width: 70px; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.25); border-radius: 2px; outline: none; }
.vp-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

.play-info-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.play-now-title { font-size: 18px; font-weight: 700; }
.play-toolbar { display: flex; gap: 10px; }
.tool-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--tx-1); transition: color .2s, border-color .2s; }
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.block-title { font-size: 16px; font-weight: 700; margin: 28px 0 14px; display: flex; align-items: center; gap: 8px; will-change: transform, opacity; }
.block-title i { color: var(--accent); }

/* ============================================================
   响应式 — 移动端优化
   ============================================================ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-search { width: 160px; }
    .nav-search:focus-within { width: 200px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 54px; }
    .navbar { padding: 0 14px; gap: 10px; }
    .nav-brand { font-size: 17px; }
    .nav-brand i { font-size: 20px; }
    .nav-search { width: 100px; flex: 1 1 auto; min-width: 60px; padding: 6px 12px; gap: 6px; }
    .nav-search:focus-within { width: 160px; flex: 1 1 auto; }
    .nav-search input { font-size: 13px; }
    .nav-search i { font-size: 15px; }
    .theme-toggle { margin-left: auto; order: 99; flex-shrink: 0; }

    .page-pad { padding: 18px 14px 96px; }
    .tabbar { display: block; }

    .hero { height: 54vh; min-height: 330px; }
    .hero-content { padding: 0 16px 50px; }
    .hero-inner { max-width: 100%; }
    .hero-title { font-size: clamp(22px, 6vw, 34px); }
    .hero-meta { font-size: 13px; margin-bottom: 18px; }
    .hero-actions { gap: 10px; }
    .hero-btn { padding: 11px 22px; font-size: 14px; }
    .hero-btn i { font-size: 18px; }
    .hero-dots { bottom: 18px; right: 16px; gap: 6px; }
    .hero-dot { width: 7px; height: 7px; }
    .hero-dot.on { width: 24px; }

    .vcard { width: 134px; }
    .vcard-title { font-size: 13px; margin-top: 7px; }
    .vcard-sub { font-size: 11px; }
    .vcard-badge { font-size: 10px; padding: 2px 7px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
    .rail { gap: 12px; }

    .section { margin-bottom: 32px; }
    .section-title { font-size: 19px; }
    .section-more { font-size: 13px; }

    .page-head h1 { font-size: 24px; }
    .page-head p { font-size: 13px; }
    .filters { gap: 6px; margin-bottom: 18px; }
    .chip { padding: 6px 14px; font-size: 13px; }

    .detail-banner { padding: 24px 16px 20px; }
    .detail-banner-inner { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
    .detail-poster { width: 134px; }
    .detail-main { padding-top: 0; width: 100%; }
    .detail-tags-top { justify-content: center; }
    .detail-title { font-size: clamp(20px, 5vw, 28px); }
    .detail-sub { font-size: 14px; }
    .detail-score-row { justify-content: center; gap: 14px; margin-top: 16px; }
    .score-num { font-size: 24px; }
    .score-num.sm { font-size: 14px; }
    .detail-people { font-size: 13px; text-align: center; line-height: 1.8; }
    .people-label { min-width: auto; display: inline; }
    .detail-actions { justify-content: center; gap: 10px; margin-top: 20px; }
    .btn-play { padding: 12px 28px; font-size: 14px; }
    .btn-back { padding: 12px 20px; font-size: 14px; }
    .dcard { padding: 18px; margin-bottom: 14px; }
    .dcard-title { font-size: 16px; }
    .dcard-blurb { font-size: 14px; line-height: 1.8; }
    .src-btn, .ep-btn { padding: 8px 14px; font-size: 12px; }

    .search-hero { padding: 40px 16px 30px; }
    .search-hero h1 { font-size: 26px; }
    .search-hero p { font-size: 14px; }
    .search-box-big { padding: 12px 18px; gap: 8px; }
    .search-box-big input { font-size: 15px; }
    .search-box-big button { padding: 7px 16px; font-size: 13px; }

    .about-wrap { padding: 32px 16px; }
    .about-hero { margin-bottom: 36px; }
    .about-avatar { width: 84px; height: 84px; }
    .about-avatar i { font-size: 36px; }
    .about-hero h1 { font-size: 28px; }
    .about-hero p { font-size: 14px; }
    .about-card { padding: 22px; }
    .about-card h3 { font-size: 16px; }
    .about-card p, .about-card li { font-size: 14px; }
    .about-contact { padding: 11px 14px; font-size: 14px; }

    .backtop { width: 44px; height: 44px; right: 16px; bottom: 84px; }
    .backtop i { font-size: 20px; }

    .announce-box { max-width: calc(100vw - 32px); }
    .announce-head { padding: 22px 22px 0; }
    .announce-icon { width: 50px; height: 50px; font-size: 25px; }
    .announce-title { font-size: 18px; }
    .announce-body { padding: 18px 22px; font-size: 13px; }
    .announce-foot { padding: 0 22px 22px; gap: 8px; }
    .announce-foot button { padding: 12px; font-size: 13px; }

    .play-shell { padding: 14px 12px 90px; }
    .vp-btn { width: 34px; height: 34px; font-size: 17px; }
    .vp-text-btn { font-size: 12px; padding: 0 8px; }
    .play-info-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .play-now-title { font-size: 16px; }

    .theme-toggle { width: 48px; height: 26px; }
    .theme-toggle-thumb { width: 20px; height: 20px; }
    [data-theme="light"] .theme-toggle-thumb { transform: translateX(22px); }
    .theme-toggle-track { border-radius: 13px; }

    .pager { gap: 6px; margin-top: 30px; }
    .pager button { min-width: 38px; height: 38px; font-size: 13px; padding: 0 10px; }

    .sitefoot { padding: 22px 16px 80px; font-size: 12px; }
}

@media (max-width: 380px) {
    .nav-brand { font-size: 16px; }
    .nav-brand i { font-size: 18px; }
    .nav-search { width: 80px; min-width: 50px; }
    .nav-search:focus-within { width: 120px; }
    .theme-toggle { width: 44px; height: 24px; }
    .theme-toggle-thumb { width: 18px; height: 18px; }
    [data-theme="light"] .theme-toggle-thumb { transform: translateX(20px); }
    .theme-toggle-thumb i { font-size: 10px; }

    .vcard { width: 102px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
    .vcard-title { font-size: 12px; }
    .vcard-sub { font-size: 10px; }

    .detail-poster { width: 112px; }
    .hero-btn { padding: 9px 18px; font-size: 13px; }
    .hero-btn i { font-size: 16px; }

    .backtop { width: 40px; height: 40px; right: 12px; bottom: 80px; }
    .backtop i { font-size: 18px; }

    .tab-item { font-size: 10px; }
    .tab-item i { font-size: 19px; }
}
