:root {
  --bg: #fffcf2;
  --surface: #ffffff;
  --text: #3b2b12;
  --muted: #8a7a5c;
  --line: #f0e6cc;
  --brand-1: #ffb800;
  --brand-2: #ff9500;
  --brand-grad: linear-gradient(135deg, #ffb800, #ff9500);
  --btn-grad: linear-gradient(135deg, #ffb800, #f08c00);
  --btn-text: #3b2b12;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 18px rgba(191, 138, 0, 0.10);
  --shadow-hover: 0 16px 34px rgba(240, 140, 0, 0.26);
  --maxw: 1200px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(720px 420px at 8% -8%, rgba(255, 184, 0, 0.14), transparent 62%),
    radial-gradient(640px 380px at 98% 2%, rgba(255, 149, 0, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 242, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand-logo { display: block; border-radius: 12px; }
.brand-name { white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: #b37400; background: rgba(255, 184, 0, 0.14); }
.nav-link.is-active { color: var(--btn-text); background: rgba(255, 184, 0, 0.3); }
.nav-download { color: var(--btn-text); background: var(--btn-grad); padding: 8px 16px; margin-left: 4px; box-shadow: 0 6px 14px rgba(240, 140, 0, 0.28); }
.nav-download:hover { color: var(--btn-text); background: var(--btn-grad); opacity: .92; }

.site-main {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-grad); color: var(--btn-text); box-shadow: 0 8px 18px rgba(240, 140, 0, 0.30); }
.btn-primary:hover { box-shadow: 0 12px 24px rgba(240, 140, 0, 0.40); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); color: #b37400; }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 16px; }
.btn.is-disabled, .btn:disabled { opacity: .5; pointer-events: none; cursor: not-allowed; box-shadow: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 8px 0 30px;
  border-radius: 26px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(135deg, #ffd166, #ffb800 55%, #ff9500);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(240, 140, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.hero-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.hero-deco--1 { width: 190px; height: 190px; right: -40px; top: -70px; }
.hero-deco--2 { width: 110px; height: 110px; left: -30px; bottom: -40px; background: rgba(255, 255, 255, 0.2); }
.hero-deco--3 { width: 26px; height: 26px; right: 26%; top: 22%; background: rgba(255, 255, 255, 0.55); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  padding: 40px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 43, 18, 0.85);
  color: #ffe08a;
  margin-bottom: 14px;
}
.hero-title { margin: 0 0 8px; font-size: 40px; line-height: 1.14; letter-spacing: -.02em; color: #3b2b12; }
.hero-sub { margin: 0 0 8px; font-size: 17px; color: #5a4520; }
.hero-desc { margin: 0 0 20px; font-size: 14px; color: #6b5326; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #3b2b12; color: #ffd166; box-shadow: 0 10px 22px rgba(59, 43, 18, 0.3); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.72); color: #3b2b12; border-color: rgba(59, 43, 18, 0.16); }
.hero-poster {
  display: block;
  justify-self: end;
  width: min(240px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(59, 43, 18, 0.14);
  box-shadow: 0 18px 40px rgba(59, 43, 18, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.72);
  transform: rotate(2deg);
  transition: transform .25s ease;
}
.hero-poster:hover { transform: rotate(0deg) scale(1.02); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 区块 ===== */
.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title { position: relative; margin: 0; font-size: 22px; line-height: 1.2; padding-left: 30px; color: var(--text); }
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 6px;
  background: var(--brand-grad);
  transform: rotate(12deg);
  box-shadow: 0 3px 8px rgba(240, 140, 0, 0.35);
}
.section-more { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.section-more:hover { color: #b37400; }
.section-meta { color: var(--muted); font-size: 13px; }

/* ===== 视频卡片 ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.video-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  border-color: rgba(255, 184, 0, 0.7);
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fff3d1, #ffe3a3);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 43, 18, 0.82);
  color: #ffe08a;
  font-size: 11px;
  font-weight: 700;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-text);
  background: var(--brand-grad);
  box-shadow: 0 6px 16px rgba(240, 140, 0, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s, transform .22s;
}
.video-card:hover .video-play { opacity: 1; transform: translateY(0); }
.video-info { padding: 12px 12px 14px; }
.video-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.video-title a { color: var(--text); }
.video-title a:hover { color: #b37400; }
.video-cat { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ===== 分类胶囊 ===== */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all .18s ease;
}
.pill:hover { color: #b37400; border-color: rgba(255, 184, 0, 0.7); transform: translateY(-1px); }
.pill.is-active {
  background: var(--btn-grad);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(240, 140, 0, 0.32);
}

/* ===== 面包屑 ===== */
.breadcrumb { margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: #d6c8a8; font-weight: 700; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #b37400; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 700; }

.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
.page-meta { color: var(--muted); font-size: 14px; }
.page-sub { margin: 0; color: var(--muted); width: 100%; }

/* ===== 详情页 ===== */
.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-poster { width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #fff3d1; border: 1px solid var(--line); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-info { min-width: 0; }
.detail-title { margin: 4px 0 14px; font-size: 28px; line-height: 1.2; font-weight: 800; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff8e2;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
a.meta-chip:hover { color: #b37400; border-color: rgba(255, 184, 0, 0.7); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 选集 ===== */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.episode-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all .18s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-link:hover { border-color: var(--brand-2); color: #b37400; transform: translateY(-2px); }
.episode-link.is-active {
  background: var(--btn-grad);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(240, 140, 0, 0.32);
}

/* ===== 播放器 ===== */
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 184, 0, 0.4);
  box-shadow: 0 20px 48px rgba(59, 43, 18, 0.28);
}
.player { width: 100%; height: 100%; display: block; background: #000; }
.player-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.player-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.info-item { display: inline-flex; align-items: center; }

/* ===== APP 优势 ===== */
.app-section {
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(255, 184, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #fffdf6, #fff6dc);
  border: 2px dashed rgba(255, 184, 0, 0.5);
  border-radius: 26px;
  padding: 28px;
}
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.advantage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.advantage-card:hover { transform: translateY(-5px) rotate(-.5deg); border-color: rgba(255, 184, 0, 0.75); box-shadow: var(--shadow-hover); }
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3d1;
  font-size: 20px;
  margin-bottom: 10px;
}
.advantage-title { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.advantage-desc { margin: 0; color: var(--muted); font-size: 13px; }
.app-cta { margin-top: 22px; display: flex; justify-content: center; }

/* ===== 下载页 ===== */
.download-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-grad);
  color: var(--btn-text);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(240, 140, 0, 0.3);
  transform: rotate(-6deg);
}
.step h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

/* ===== 分页 ===== */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 4px; }
.pager-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: all .18s ease;
}
.pager-item:hover { border-color: var(--brand-2); color: #b37400; }
.pager-item.is-current {
  background: var(--btn-grad);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(240, 140, 0, 0.3);
}
.pager-item.is-disabled { opacity: .45; pointer-events: none; }
.pager-gap { border-color: transparent; background: transparent; color: var(--muted); }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 2px dashed rgba(255, 184, 0, 0.5);
  border-radius: 22px;
  color: var(--muted);
}
.empty-icon { width: 64px; height: 64px; color: #e8d29a; margin-bottom: 12px; }
.empty-text { margin: 0 0 18px; font-size: 15px; font-weight: 600; }

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, #fffdf6, #fff4d6);
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 32px 0 28px;
}
.footer-inner { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 8px; }
.footer-desc { margin: 0 auto 12px; color: var(--muted); max-width: 560px; font-size: 13px; }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: #b37400; }
.footer-copy { margin: 0; color: #b3a688; font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .hero-title { font-size: 34px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: #fffcf2;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(191, 138, 0, 0.14);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { text-align: left; border-radius: 12px; }
  .nav-download { text-align: center; }
  .hero-inner { grid-template-columns: 1fr; padding: 28px; }
  .hero-poster { justify-self: start; width: 180px; transform: rotate(0); }
  .hero-title { font-size: 30px; }
  .detail-head { grid-template-columns: 180px 1fr; gap: 20px; }
  .detail-title { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 14px; }
  .header-inner, .site-main, .footer-inner { width: calc(100% - 24px); }
  .site-main { padding-top: 14px; }
  .brand-name { font-size: 15px; }
  .hero { border-radius: 22px; }
  .hero-inner { padding: 22px 18px; gap: 18px; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-poster { width: 130px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-info { padding: 10px; }
  .video-title { font-size: 13.5px; min-height: 2.6em; }
  .video-cat { font-size: 11px; }
  .section { margin-top: 28px; }
  .section-title { font-size: 18px; padding-left: 26px; }
  .section-title::before { width: 15px; height: 15px; margin-top: -7.5px; }
  .page-title { font-size: 20px; }
  .detail-head { grid-template-columns: 1fr; padding: 16px; }
  .detail-poster { width: 140px; margin: 0 auto; }
  .detail-title { font-size: 20px; text-align: center; }
  .detail-meta { justify-content: center; }
  .detail-actions { justify-content: center; }
  .episode-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
  .episode-link { min-height: 38px; font-size: 12px; }
  .player-wrap { border-radius: 14px; }
  .player-nav .btn { flex: 1 1 0; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .advantage-card { padding: 14px; }
  .advantage-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
  .app-section { padding: 18px; }
  .pager-item { min-width: 34px; height: 34px; padding: 0 9px; font-size: 13px; border-radius: 10px; }
  .download-actions .btn { flex: 1 1 auto; }
}