:root {
  --primary: #a8742c;
  --primary-dark: #7c5420;
  --primary-light: #e9d9bd;
  --bg: #faf7f1;
  --bg-alt: #f3ede1;
  --card: #ffffff;
  --text: #35302a;
  --muted: #8d8574;
  --border: #eae2d2;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(90, 70, 30, 0.08);
  --shadow-hover: 0 10px 28px rgba(90, 70, 30, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow { max-width: 860px; }

/* ========== 头部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 16px;
}

.logo-text { color: var(--primary-dark); }

.main-nav { display: none; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }

.main-nav a.active { color: var(--primary); background: var(--bg-alt); font-weight: 600; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle i {
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open i:nth-child(2) { opacity: 0; }
.nav-toggle.open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav.show {
  display: flex;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: #fffdf8;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 14px;
  box-shadow: var(--shadow);
}

/* ========== 首屏 ========== */
.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(168, 116, 44, 0.12), transparent 55%),
    radial-gradient(ellipse at 5% 90%, rgba(140, 90, 60, 0.1), transparent 50%),
    linear-gradient(150deg, #f8f1e2 0%, #fdfaf3 60%, #f6efe0 100%);
  padding: 44px 0 52px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 27px;
  line-height: 1.4;
  color: var(--primary-dark);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(168, 116, 44, 0.32);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168, 116, 44, 0.4); }

.btn-ghost {
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { background: var(--primary-light); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 30px;
  list-style: none;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong {
  font-size: 22px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.hero-stats span { font-size: 12.5px; color: var(--muted); }

.hero-poster { position: relative; display: none; }

.hero-poster img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.poster-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(45, 35, 20, 0.72);
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.poster-tag em {
  font-style: normal;
  color: #f0c878;
  margin-right: 8px;
  font-weight: 600;
}

/* ========== 通用板块 ========== */
.section { padding: 46px 0; }

.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 28px; }

.section-head h2 {
  font-size: 22px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.section-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.section-head .more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--primary);
}

.section-head .more:hover { text-decoration: underline; }

/* ========== 内页横幅 ========== */
.page-banner {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(168, 116, 44, 0.12), transparent 55%),
    radial-gradient(ellipse at 5% 90%, rgba(140, 90, 60, 0.1), transparent 50%),
    linear-gradient(150deg, #f8f1e2 0%, #fdfaf3 60%, #f6efe0 100%);
  padding: 38px 0 42px;
  text-align: center;
}

.page-banner h1 {
  font-size: 24px;
  line-height: 1.45;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.page-banner p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 12px auto 0;
  max-width: 640px;
}

.jump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.jump-chips .filter-btn { text-decoration: none; }

/* ========== 文字榜单 ========== */
.rank-list {
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 18px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
}

.rank-list li:last-child { border-bottom: none; }

.rank-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-list li:nth-child(-n+3) .rank-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.rank-list a { flex: 1; font-size: 14.5px; }

.rank-list a:hover { color: var(--primary); }

.rank-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ========== 特色板块 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.feature-item h3 { color: var(--primary-dark); font-size: 16.5px; margin-bottom: 8px; }

.feature-item p { font-size: 13.5px; color: var(--muted); }

/* ========== 资讯内页 ========== */
.news-cols { display: flex; flex-direction: column; gap: 16px; }

.news-full {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-full > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.news-full-body { padding: 18px; }

.news-full-body h2 { font-size: 17.5px; line-height: 1.5; margin-bottom: 10px; color: var(--text); }

.news-full-body p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

.news-full-body .news-meta { margin-top: 2px; }

/* ========== 短剧卡片 ========== */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.drama-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.drama-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-img { position: relative; overflow: hidden; }

.card-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s;
}

.drama-card:hover .card-img img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.card-body { padding: 12px 13px 15px; }

.card-body h3 {
  font-size: 15.5px;
  line-height: 1.45;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tags { font-size: 12.5px; color: var(--primary); margin-bottom: 6px; }

.desc {
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 分类磁贴 ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 130px;
  box-shadow: var(--shadow);
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.cat-tile:hover img { transform: scale(1.08); }

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 30, 15, 0.15) 20%, rgba(35, 26, 12, 0.78) 100%);
}

.cat-info {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  color: #fff;
}

.cat-info h3 { font-size: 17px; letter-spacing: 1px; }

.cat-info p { font-size: 12.5px; opacity: 0.85; }

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(168, 116, 44, 0.3);
}

.empty-tip { text-align: center; color: var(--muted); padding: 30px 0; }

/* ========== 播放面板 ========== */
.player-panel {
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-screen { position: relative; }

.player-screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.player-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 10, 0.05) 40%, rgba(30, 22, 10, 0.55) 100%);
}

.play-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.28);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 253, 248, 0.8);
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fffdf8;
}

.player-info { padding: 18px 16px 20px; }

.player-info h3 { font-size: 18px; color: var(--primary-dark); }

.player-meta { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }

.ep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ep {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.ep:hover { border-color: var(--primary); color: var(--primary); }

.ep.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}

/* ========== 资讯列表 ========== */
.news-list { display: flex; flex-direction: column; gap: 14px; }

.news-item {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.news-item img {
  width: 108px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-body h3 { font-size: 15px; line-height: 1.5; margin-bottom: 5px; }

.news-body h3 a:hover { color: var(--primary); }

.news-body p {
  font-size: 12.8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: inline-block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ========== 常见问题 ========== */
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px 18px;
  transition: box-shadow 0.2s;
}

.faq-list details[open] { box-shadow: var(--shadow); border-color: var(--primary-light); }

.faq-list summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 26px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 19px;
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p { font-size: 13.8px; color: var(--muted); margin-top: 10px; }

/* ========== 页脚 ========== */
.site-footer {
  background: #2e2921;
  color: #cfc6b4;
  padding: 42px 0 0;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-brand .logo-text { color: #f0c878; }

.footer-desc { font-size: 13px; margin-top: 12px; line-height: 1.8; opacity: 0.85; }

.footer-nav h3 {
  font-size: 15px;
  color: #f0c878;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.footer-nav a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.footer-nav a:hover { opacity: 1; color: #f0c878; }

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px 0;
  text-align: center;
  font-size: 12.5px;
  opacity: 0.65;
  line-height: 1.8;
}

/* ========== 返回顶部 ========== */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 16px rgba(168, 116, 44, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 99;
}

.back-top::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
}

.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (min-width: 640px) {
  .drama-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ep-grid { grid-template-columns: repeat(8, 1fr); }
  .hero-copy h1 { font-size: 31px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .page-banner h1 { font-size: 27px; }
}

@media (min-width: 900px) {
  body { font-size: 15.5px; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 70px 0 80px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero-poster { display: block; }
  .hero-copy h1 { font-size: 36px; }
  .section { padding: 60px 0; }
  .drama-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .cat-tile { min-height: 150px; }
  .news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: 150px; }
  .news-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
  .section-head h2 { font-size: 26px; }
  .site-footer .container { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}
