/* =========================================================
   元芳学习站 - 全站样式
   ========================================================= */

/* ===== 设计变量 ===== */
:root {
  --bg: #F7F4F0;
  --nav-bg: #6E1023;
  --nav-grad: linear-gradient(135deg, #8E0E22 0%, #6E1023 100%);
  --red: #C8102E;
  --red-deep: #9E0C22;
  --red-soft: #FBEAED;
  --red-text: #B01030;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-nav: #E9C9CF;
  --brand-gold: #D4A853;
  --brand-gold-light: #F7EEDD;
  --brand-gold-text: #9A7B3F;
  --free-green: #10B981;
  --free-green-bg: #E6F4EC;
  --free-green-dark: #0E7A47;
  --lock-gray: #9CA3AF;
  --lock-gray-bg: #EDEDED;
  --card-border: rgba(206,196,196,.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font: "Sarasa Gothic SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ===== 通用按钮 ===== */
.btn-red, .btn-gold, .btn-ghost, .btn-light, .btn-white, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s, color .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-gold { background: var(--brand-gold); color: #5A0E18; }
.btn-gold:hover { opacity: .88; }
.btn-gold.sm { padding: 11px 26px; font-size: 15px; }
.btn-gold.lg { padding: 14px 36px; font-size: 16px; }
.btn-light { background: #fff; color: var(--red-deep); }
.btn-light:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--red-deep); }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--text-secondary); border: 1px solid var(--card-border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-disabled { background: var(--lock-gray-bg) !important; color: var(--text-muted) !important; cursor: not-allowed; }

/* ===== 通用小组件 ===== */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.pill-red { background: var(--red-soft); color: var(--red-text); }
.pill-gold { background: var(--brand-gold-light); color: var(--brand-gold-text); }
.pill-green { background: var(--free-green-bg); color: var(--free-green-dark); }
.pill-gray { background: var(--lock-gray-bg); color: var(--text-muted); }

.progress { height: 7px; border-radius: var(--radius-pill); background: #EFE7E8; overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--radius-pill); background: var(--red); }

.empty { background: #fff; border: 1px dashed var(--card-border); border-radius: var(--radius-lg); padding: 44px 24px; text-align: center; color: var(--text-muted); }
.empty strong { display: block; color: var(--text-secondary); font-size: 16px; margin-bottom: 6px; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast { background: rgba(26,26,26,.92); color: #fff; font-size: 14px; padding: 11px 22px; border-radius: var(--radius-pill); box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== 导航 ===== */
.navbar { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 64px; background: var(--nav-grad); padding: 0 120px; position: sticky; top: 0; z-index: 200; }
.navbar-logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .5px; text-decoration: none; }
.navbar-logo span { color: var(--brand-gold); }
.navbar-links { display: flex; gap: 28px; align-items: center; }
.navbar-link { color: #fff; text-decoration: none; font-size: 15px; opacity: .78; transition: color .2s, opacity .2s; }
.navbar-link.active, .navbar-link:hover { opacity: 1; color: var(--brand-gold); }
.btn-login { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; border-radius: var(--radius-sm); background: var(--brand-gold); color: #5A0E18; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.btn-login:hover { opacity: .85; }

.user-chip { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-pill); }
.chip-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid var(--brand-gold); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.chip-avatar.sm { width: 26px; height: 26px; font-size: 13px; }
.chip-name { font-size: 14px; color: #fff; }
.chip-vip { font-size: 11px; font-weight: 700; color: #5A0E18; background: var(--brand-gold); border-radius: var(--radius-pill); padding: 2px 8px; }
.user-menu { position: absolute; top: 46px; right: 0; min-width: 140px; background: #fff; border-radius: var(--radius-md); box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 6px; display: none; flex-direction: column; }
.user-chip:hover .user-menu { display: flex; }
.user-menu a { display: block; padding: 9px 14px; font-size: 14px; color: var(--text-primary); text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap; }
.user-menu a:hover { background: var(--red-soft); color: var(--red-text); }

/* ===== 返回式顶栏 ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 64px; background: var(--nav-grad); padding: 0 40px; position: sticky; top: 0; z-index: 200; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.back-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: none; padding: 4px; transition: opacity .2s; }
.back-btn:hover { opacity: .7; }
.topbar-logo { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .5px; }
.topbar-logo span { color: var(--brand-gold); }
.topbar-home { font-size: 15px; color: var(--text-nav); text-decoration: none; transition: color .2s; }
.topbar-home:hover { color: #fff; }
.topbar-user { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar-name { font-size: 14px; color: #fff; }

/* ===== 页脚 ===== */
.footer { background: var(--nav-grad); padding: 48px 120px 32px; color: var(--text-nav); margin-top: 48px; }
.footer-top { display: flex; gap: 60px; justify-content: space-between; margin-bottom: 32px; }
.footer-brand h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--brand-gold); }
.footer-brand p { font-size: 13px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-nav); text-decoration: none; margin-bottom: 6px; transition: color .2s; }
.footer-col a:hover { color: var(--brand-gold); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

/* =========================================================
   首页
   ========================================================= */
.banner { position: relative; width: 100%; height: 440px; overflow: hidden; background: var(--red-deep); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: center; padding: 0 120px; }
.banner-slide.active { opacity: 1; }
.banner-slide.s1 { background: radial-gradient(120% 140% at 80% 20%, #E0394E 0%, #C8102E 45%, #8E0E22 100%); }
.banner-slide.s2 { background: radial-gradient(120% 140% at 20% 90%, #D63A5A 0%, #A50E26 50%, #6E1023 100%); }
.banner-slide.s3 { background: radial-gradient(120% 140% at 70% 0%, #E2553F 0%, #C8102E 45%, #6E1023 100%); }
.banner-inner { max-width: 1440px; margin: 0 auto; width: 100%; color: #fff; }
.banner-kicker { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,.15); font-size: 14px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(4px); }
.banner-title { font-size: 52px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; max-width: 760px; text-shadow: 0 2px 12px rgba(0,0,0,.15); }
.banner-sub { font-size: 19px; color: rgba(255,255,255,.92); max-width: 680px; margin-bottom: 32px; line-height: 1.7; }
.banner-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 3; }
.banner-arrow:hover { background: rgba(255,255,255,.32); }
.banner-prev { left: 28px; }
.banner-next { right: 28px; }
.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: all .2s; }
.banner-dot.active { background: #fff; width: 26px; border-radius: 6px; }

.advantages { max-width: 1440px; margin: 0 auto; padding: 56px 120px 8px; }
.advantages-head { text-align: center; margin-bottom: 36px; }
.advantages-head h2 { font-size: 30px; font-weight: 700; }
.advantages-head p { font-size: 15px; color: var(--text-secondary); margin-top: 10px; }
.adv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.adv-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--card-border); transition: transform .2s, box-shadow .2s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(110,16,35,.10); }
.adv-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

.search-section { padding: 36px 120px 8px; max-width: 1440px; margin: 0 auto; }
.search-bar { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; background: #fff; border-radius: 10px; padding: 0 20px; border: 1px solid #e6dede; box-shadow: 0 4px 18px rgba(110,16,35,.04); position: relative; }
.search-bar svg { flex-shrink: 0; opacity: .55; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--text-primary); font-family: var(--font); background: transparent; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-btn { padding: 8px 20px; border-radius: var(--radius-sm); background: var(--red); color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.search-btn:hover { background: var(--red-deep); }
.search-suggest { position: absolute; top: 54px; left: 0; right: 0; background: #fff; border: 1px solid #e6dede; border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(110,16,35,.12); overflow: hidden; display: none; z-index: 60; }
.search-suggest a { display: block; padding: 11px 18px; font-size: 14px; text-decoration: none; color: var(--text-primary); border-bottom: 1px solid #F5EFEF; }
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--red-soft); color: var(--red-text); }
.search-suggest .sg-meta { float: right; font-size: 12px; color: var(--text-muted); }

.tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tab { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.tab.active { background: var(--red); color: #fff; }
.tab:not(.active) { background: #fff; color: var(--text-secondary); border-color: #e6dede; }
.tab:not(.active):hover { border-color: var(--red); color: var(--red); }

.featured-section { padding: 32px 120px 64px; max-width: 1440px; margin: 0 auto; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 6px; height: 26px; border-radius: 3px; background: var(--red); display: inline-block; }
.section-title.center { text-align: center; justify-content: center; }
.section-title.center::before { display: none; }
.section-more { margin-left: auto; font-size: 13px; color: var(--text-muted); text-decoration: none; font-weight: 400; }
.section-more:hover { color: var(--red); }

/* 系列卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card-grid.compact { gap: 20px; }
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-border); transition: transform .2s, box-shadow .2s; cursor: pointer; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(110,16,35,.12); }
.card-cover { position: relative; width: 100%; height: 200px; display: flex; align-items: flex-end; padding: 16px; }
.card-grid.compact .card-cover { height: 140px; padding: 14px; }
.card-free-badge { font-size: 13px; font-weight: 700; color: #fff; background: rgba(0,0,0,.28); padding: 5px 12px; border-radius: var(--radius-pill); letter-spacing: .3px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-grid.compact .card-body { padding: 14px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.card-grid.compact .card-title { font-size: 16px; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.tag-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--red-soft); font-size: 12px; color: var(--red-text); font-weight: 600; }
.card-meta { font-size: 12px; color: var(--text-muted); }

/* =========================================================
   分类页
   ========================================================= */
.page-hero { background: radial-gradient(120% 140% at 85% 10%, #E0394E 0%, #C8102E 45%, #8E0E22 100%); padding: 56px 120px 48px; color: #fff; }
.page-hero-inner { max-width: 1440px; margin: 0 auto; }
.page-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.9); max-width: 640px; }
.page-hero-sub-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: rgba(255,255,255,.16); padding: 7px 16px; border-radius: var(--radius-pill); }

.cat-section { max-width: 1440px; margin: 0 auto; padding: 40px 120px 64px; }
.cat-title { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.cat-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.col-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.col-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--card-border); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.col-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(110,16,35,.10); }
.col-card.on { border-color: var(--red); box-shadow: 0 14px 40px rgba(200,16,46,.12); }
.cw-title a { text-decoration: none; }
.cw-title a:hover { color: var(--red); }
.col-top { display: flex; align-items: center; justify-content: space-between; }
.col-index { font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-soft); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.col-count { font-size: 13px; color: var(--text-muted); }
.col-name { font-size: 20px; font-weight: 700; }
.col-name a { text-decoration: none; }
.col-name a:hover { color: var(--red); }
.col-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.col-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.col-tag { font-size: 12px; color: var(--brand-gold-text); background: var(--brand-gold-light); padding: 3px 10px; border-radius: var(--radius-pill); }
.col-dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--card-border); background: #fff; color: var(--text-secondary); transition: all .2s; width: 100%; }
.col-dl:hover { border-color: var(--red); color: var(--red); }
.col-dl.locked { background: var(--red-soft); color: var(--red-text); border-color: transparent; }
.col-dl svg { width: 16px; height: 16px; flex-shrink: 0; }
.col-series { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed #EFE4E6; padding-top: 12px; }
.col-series a { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
.col-series a:hover { color: var(--red); }
.col-series span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* =========================================================
   系列详情页
   ========================================================= */
.series-header { display: flex; gap: 40px; padding: 40px 120px 32px; max-width: 1440px; margin: 0 auto; }
.series-cover { flex-shrink: 0; width: 360px; height: 480px; border-radius: var(--radius-lg); display: flex; align-items: flex-end; padding: 20px; position: relative; overflow: hidden; }
.series-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.3) 100%); }
.cover-badge { position: relative; z-index: 1; font-size: 14px; font-weight: 700; color: #fff; background: rgba(0,0,0,.28); padding: 6px 14px; border-radius: var(--radius-pill); }
.series-info { flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.info-title { font-size: 34px; font-weight: 700; line-height: 1.25; }
.info-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 760px; }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta-tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 13px; }
.meta-tag.neutral { background: #F1E6E8; color: var(--text-secondary); }
.meta-tag.free { background: var(--free-green-bg); color: var(--free-green-dark); font-weight: 600; }
.unlock-row { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.btn-unlock { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: var(--radius-sm); background: var(--red); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: background .2s; }
.btn-unlock:hover { background: var(--red-deep); }
.unlock-note { font-size: 13px; color: var(--text-muted); }
.fav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--card-border); color: var(--text-secondary); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; }
.fav-btn:hover { border-color: var(--red); color: var(--red); }
.fav-btn.on { background: var(--red-soft); border-color: transparent; color: var(--red-text); }
.fav-btn svg { width: 17px; height: 17px; }

.episode-section { padding: 16px 120px 64px; max-width: 1440px; margin: 0 auto; }
.episode-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.ep-list { display: flex; flex-direction: column; gap: 12px; }

/* 选集行（详情页 + 播放页侧栏共用） */
.ep-row { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 72px; background: #fff; border-radius: var(--radius-md); padding: 0 24px; border: 1px solid var(--card-border); transition: box-shadow .2s, transform .15s; text-decoration: none; color: inherit; }
.ep-row.clickable { cursor: pointer; }
.ep-row:hover:not(.locked) { box-shadow: 0 6px 24px rgba(110,16,35,.08); transform: translateY(-1px); }
.ep-row.active { border-color: var(--red); box-shadow: 0 4px 18px rgba(200,16,46,.14); }
.ep-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.ep-num.free { background: var(--red-soft); color: var(--red-text); }
.ep-num.locked { background: #F2F2F2; color: #B0B4BC; }
.ep-num.active { background: var(--red); color: #fff; }
.ep-title { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-title.free { color: var(--text-primary); }
.ep-title.locked { color: var(--text-muted); }
.ep-title.active { color: var(--red-text); font-weight: 600; }
.cw-tag { flex-shrink: 0; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--red-soft); font-size: 12px; color: var(--red-text); font-weight: 600; }
.status-tag { flex-shrink: 0; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.status-tag.free { background: var(--free-green-bg); color: var(--free-green-dark); }
.status-tag.locked { background: var(--lock-gray-bg); color: var(--text-muted); }
.status-tag.active { background: var(--red-soft); color: var(--red-text); }
.ep-action { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.play-icon { width: 18px; height: 18px; }
.play-icon path { fill: var(--red); }
.lock-icon { width: 18px; height: 18px; opacity: .65; }

/* =========================================================
   播放页
   ========================================================= */
.play-layout { display: flex; gap: 32px; padding: 32px 120px 64px; max-width: 1440px; margin: 0 auto; align-items: flex-start; }
.play-main { flex: 1; min-width: 0; }
.play-side { width: 340px; flex-shrink: 0; }

.video-box { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 120% at 50% 35%, #2B2B2B 0%, #121212 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.35) 0%, transparent 70%); }
.video-play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s, background .2s; box-shadow: 0 8px 24px rgba(200,16,46,.45); z-index: 2; }
.video-play:hover { transform: scale(1.06); background: var(--red-deep); }
.video-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.video-badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.42); padding: 5px 12px; border-radius: var(--radius-pill); z-index: 2; }
.video-nodl { position: absolute; bottom: 14px; right: 14px; font-size: 12px; color: rgba(255,255,255,.78); background: rgba(0,0,0,.42); padding: 5px 12px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 6px; z-index: 2; }
.video-nodl svg { width: 14px; height: 14px; }
.video-lock-mask { position: absolute; inset: 0; background: rgba(12,12,12,.72); backdrop-filter: blur(2px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 3; text-align: center; padding: 24px; }
.video-lock-mask p { font-size: 14px; color: rgba(255,255,255,.8); }
.video-lock-mask .lock-ic { width: 46px; height: 46px; opacity: .9; }

/* 演示播放器控制条 */
.video-sim { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); color: #fff; }
.video-sim .sim-btn { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-sim .sim-btn:hover { background: rgba(255,255,255,.32); }
.video-sim .sim-time { flex-shrink: 0; font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.video-sim .progress { flex: 1; background: rgba(255,255,255,.28); }
.video-sim .progress-bar { background: var(--red); width: 0; }

.play-info { margin-top: 22px; }
.play-ep-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--red-text); background: var(--red-soft); padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.play-info h1 { font-size: 25px; font-weight: 700; line-height: 1.3; }
.play-sub { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.play-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-top: 16px; }

.cw-section { margin-top: 28px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; }
.cw-head { display: flex; align-items: center; justify-content: space-between; }
.cw-head h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cw-head h3 svg { width: 20px; height: 20px; }
.cw-lock-note { font-size: 12px; color: var(--brand-gold-text); background: var(--brand-gold-light); padding: 5px 13px; border-radius: var(--radius-pill); font-weight: 600; white-space: nowrap; }
.cw-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.cw-card { flex: 1; min-width: 230px; border: 1px dashed #E2D3D6; border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 14px; background: #FCF8F8; }
.cw-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; }
.cw-icon svg { width: 24px; height: 24px; }
.cw-text { flex: 1; min-width: 0; }
.cw-name { font-size: 14px; font-weight: 600; }
.cw-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cw-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: var(--radius-sm); background: var(--red); color: #fff; font-size: 13px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: background .2s; white-space: nowrap; }
.cw-btn:hover { background: var(--red-deep); }
.cw-tip { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; display: flex; align-items: center; gap: 6px; }
.cw-tip svg { width: 14px; height: 14px; flex-shrink: 0; }

.side-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.side-count { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.ep-list.side { gap: 10px; }
.ep-list.side .ep-row { min-height: 64px; padding: 0 18px; gap: 14px; }
.ep-list.side .ep-num { width: 32px; height: 32px; font-size: 14px; }
.ep-list.side .ep-title { font-size: 14px; }
.ep-list.side .status-tag { padding: 4px 11px; }
.ep-list.side .play-icon, .ep-list.side .lock-icon { width: 16px; height: 16px; }

/* =========================================================
   会员页
   ========================================================= */
.vip-hero { background: radial-gradient(120% 150% at 80% 0%, #E0394E 0%, #C8102E 45%, #6E1023 100%); padding: 64px 120px 56px; color: #fff; text-align: center; }
.vip-hero-inner { max-width: 880px; margin: 0 auto; }
.vip-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,.16); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.vip-hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 14px; }
.vip-hero p { font-size: 18px; color: rgba(255,255,255,.92); }
.vip-hero-cta { margin-top: 28px; display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.section { max-width: 1180px; margin: 0 auto; padding: 56px 120px; }
.section-sub { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 32px; }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-border); }
.compare th, .compare td { padding: 16px 20px; text-align: center; font-size: 15px; border-bottom: 1px solid #F0EAEA; }
.compare thead th { background: var(--nav-grad); color: #fff; font-size: 16px; font-weight: 700; }
.compare thead th:nth-child(2) { color: var(--brand-gold); }
.compare tbody th { text-align: left; font-weight: 600; background: #FBF7F4; }
.compare td.free { color: var(--text-secondary); }
.compare td.vip { color: var(--red-text); font-weight: 600; }
.compare .yes { color: var(--free-green-dark); font-weight: 700; }
.compare .no { color: var(--text-muted); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }

.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.price-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--card-border); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price-card.featured { border: 2px solid var(--red); box-shadow: 0 14px 40px rgba(200,16,46,.12); }
.price-card.current { border: 2px solid var(--brand-gold); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: var(--radius-pill); white-space: nowrap; }
.price-name { font-size: 18px; font-weight: 700; }
.price-cost { font-size: 38px; font-weight: 700; color: var(--red); }
.price-cost small { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.price-desc { font-size: 13px; color: var(--text-secondary); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-list li { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.price-list li svg { width: 16px; height: 16px; flex-shrink: 0; }
.price-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; background: var(--red-soft); color: var(--red-text); transition: background .2s, color .2s; }
.price-btn:hover { background: var(--red); color: #fff; }
.price-soon { font-size: 12px; color: var(--text-muted); text-align: center; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border); padding: 20px 24px; }
.faq-q { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.faq-q::before { content: 'Q'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red-text); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.75; padding-left: 34px; }

/* =========================================================
   用户中心
   ========================================================= */
.user-hero { display: flex; align-items: center; gap: 24px; max-width: 1440px; margin: 32px auto 0; padding: 0 120px; }
.hero-card { width: 100%; background: var(--nav-grad); border-radius: var(--radius-lg); padding: 30px 36px; display: flex; align-items: center; gap: 24px; color: #fff; }
.user-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid var(--brand-gold); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.user-name { font-size: 24px; font-weight: 700; }
.user-sub { font-size: 14px; color: var(--text-nav); margin-top: 4px; }
.hero-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,.16); font-size: 13px; font-weight: 600; }
.status-badge.vip { background: var(--brand-gold); color: #5A0E18; }

.user-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 1440px; margin: 20px auto 0; padding: 0 120px; }
.stat-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--red); }
.stat-num small { font-size: 16px; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.section-wrap { max-width: 1440px; margin: 0 auto; padding: 40px 120px 16px; }
.resume-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.resume-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 18px; display: flex; gap: 18px; align-items: center; }
.resume-cover { flex-shrink: 0; width: 108px; height: 72px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 6px; }
.resume-body { flex: 1; min-width: 0; }
.resume-name { font-size: 15px; font-weight: 700; }
.resume-ep { font-size: 13px; color: var(--text-secondary); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.resume-pct { font-size: 12px; color: var(--text-muted); }
.btn-continue { font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; }
.btn-continue:hover { color: var(--red-deep); }

.cw-list { display: flex; flex-direction: column; gap: 12px; }
.cw-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 16px 20px; }
.cw-row.soft { background: #FCF8F8; }
.cw-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; }
.cw-ic svg { width: 22px; height: 22px; }
.cw-info { flex: 1; min-width: 0; }
.cw-title { font-size: 15px; font-weight: 600; }
.cw-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.cw-dl { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: var(--radius-sm); background: var(--red); color: #fff; font-size: 13px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: background .2s; }
.cw-dl:hover { background: var(--red-deep); }
.cw-locked-note { flex-shrink: 0; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.cw-locked-note svg { width: 15px; height: 15px; }

/* =========================================================
   登录 / 注册
   ========================================================= */
.auth-wrap { max-width: 440px; margin: 64px auto 80px; padding: 0 20px; }
.auth-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: 0 18px 50px rgba(110,16,35,.07); }
.auth-logo { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-logo span { color: var(--red); }
.auth-tip { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.auth-tabs { display: flex; background: #F5EFEF; border-radius: var(--radius-pill); padding: 4px; margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; padding: 9px 0; font-size: 15px; font-weight: 600; border-radius: var(--radius-pill); cursor: pointer; color: var(--text-secondary); transition: all .2s; }
.auth-tab.active { background: var(--red); color: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #E6DDDD; border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font); outline: none; transition: border-color .2s; background: #fff; color: var(--text-primary); }
.field input:focus { border-color: var(--red); }
.auth-submit { width: 100%; height: 48px; border: none; border-radius: var(--radius-sm); background: var(--red); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.auth-submit:hover { background: var(--red-deep); }
.auth-msg { min-height: 22px; font-size: 13px; color: var(--red); text-align: center; margin-top: 12px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 22px; }
.auth-foot a { color: var(--red); text-decoration: none; }
.auth-hint { background: var(--brand-gold-light); color: var(--brand-gold-text); font-size: 12.5px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 20px; line-height: 1.7; }

/* =========================================================
   搜索结果
   ========================================================= */
.search-page { max-width: 1180px; margin: 0 auto; padding: 40px 120px 64px; }
.search-head { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.search-head em { color: var(--red); font-style: normal; }
.search-count { font-size: 14px; color: var(--text-secondary); margin-bottom: 26px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1300px) {
  .card-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1200px) {
  .col-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .navbar { padding: 0 40px; }
  .topbar, .footer { padding-left: 40px; padding-right: 40px; }
  .banner-slide { padding: 0 40px; }
  .banner-title { font-size: 38px; }
  .advantages, .search-section, .featured-section { padding-left: 40px; padding-right: 40px; }
  .adv-grid { grid-template-columns: repeat(2,1fr); }
  .page-hero { padding: 44px 40px; }
  .cat-section { padding: 32px 40px 56px; }
  .series-header { flex-direction: column; padding: 32px 40px; }
  .series-cover { width: 100%; height: auto; aspect-ratio: 3/4; }
  .episode-section { padding-left: 40px; padding-right: 40px; }
  .play-layout { flex-direction: column; padding: 28px 40px 56px; }
  .play-side { width: 100%; }
  .vip-hero { padding: 48px 40px; }
  .section { padding: 44px 40px; }
  .user-hero, .user-stats, .section-wrap { padding-left: 40px; padding-right: 40px; }
  .resume-grid { grid-template-columns: 1fr; }
  .search-page { padding: 32px 40px 56px; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .col-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .navbar-links { gap: 16px; }
  .topbar { padding: 0 20px; }
  .banner { height: 360px; }
  .banner-slide { padding: 0 20px; }
  .banner-title { font-size: 30px; }
  .banner-sub { font-size: 16px; }
  .advantages, .search-section, .featured-section { padding-left: 20px; padding-right: 20px; }
  .adv-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 20px; }
  .page-hero h1 { font-size: 28px; }
  .cat-section { padding: 28px 20px 48px; }
  .series-header { padding: 24px 20px; }
  .info-title { font-size: 26px; }
  .episode-section { padding-left: 20px; padding-right: 20px; }
  .ep-row { padding: 0 16px; gap: 12px; }
  .ep-title { font-size: 14px; }
  .cw-tag, .status-tag { display: none; }
  .play-layout { padding: 20px 20px 48px; }
  .play-info h1 { font-size: 21px; }
  .cw-cards { flex-direction: column; }
  .vip-hero { padding: 40px 20px; }
  .vip-hero h1 { font-size: 30px; }
  .section { padding: 36px 20px; }
  .user-hero, .user-stats, .section-wrap { padding-left: 20px; padding-right: 20px; }
  .hero-card { flex-direction: column; text-align: center; gap: 16px; }
  .hero-right { margin-left: 0; align-items: center; }
  .user-stats { grid-template-columns: repeat(2,1fr); }
  .search-page { padding: 24px 20px 48px; }
  .footer { padding: 32px 20px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .compare th, .compare td { padding: 12px 10px; font-size: 13px; }
  .card-grid { grid-template-columns: 1fr !important; }
}
