/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: #111111;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #5164b1, #705db6, #8e5aaf, #af52ad);
  padding: 0 4%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-inner { display: flex; align-items: center; width: 100%; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; }
.brand-text {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: rgba(255,255,255,0.9); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-download-pill {
  background: #fff;
  color: #111;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-download-pill:hover { background: #f0f0f0; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: #1c1c22;
  overflow: hidden;
}
.hero-banner img { object-position: center; }
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 50%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 4%;
}
.hero-content { max-width: 500px; }
.hero-title { font-size: 48px; font-weight: bold; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.hero-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.tag { padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: bold; }
.tag-purple { background: #8e5aaf; color: #fff; }
.tag-yellow { background: #c86fd0; color: #fff; }
.hero-meta { font-size: 14px; color: #a0a0a8; margin-bottom: 24px; display: flex; gap: 16px; align-items: center; }
.btn-hero {
  display: inline-block;
  background: #8e5aaf;
  color: #fff;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-hero:hover { background: #705db6; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.hero-dots span.active { background: #8e5aaf; width: 20px; border-radius: 4px; }

/* 通用区块 */
.section-container { padding: 40px 4%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-title { font-size: 24px; font-weight: bold; color: #f5f5f7; }
.section-more { font-size: 14px; color: #a0a0a8; transition: color 0.2s; }
.section-more:hover { color: #c86fd0; }

/* 剧卡网格 */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.drama-card { position: relative; cursor: pointer; background: #1c1c22; border-radius: 6px; overflow: hidden; border: 1px solid #2a2a30; }
.drama-card .img-wrapper { position: relative; padding-top: 56.25%; overflow: hidden; }
.drama-card .img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.3s; }
.drama-card:hover .img-wrapper img { transform: scale(1.05); }
.card-badge { position: absolute; top: 8px; left: 8px; background: rgba(17,17,17,0.8); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.card-fav {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  background: rgba(17,17,17,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s; border: none;
}
.card-fav.active { color: #c86fd0; background: rgba(200,111,208,0.2); }
.card-info { padding: 12px; }
.card-title { font-size: 15px; font-weight: bold; color: #f5f5f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tags { font-size: 12px; color: #a0a0a8; margin-top: 4px; }

/* 竖版海报 */
.poster-card .img-wrapper { padding-top: 133.33%; }
.poster-card .card-info { text-align: center; }

/* 排行榜 */
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; position: relative; }
.rank-number {
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  font-size: 120px; font-weight: bold; color: rgba(255,255,255,0.05);
  font-family: Georgia, serif; line-height: 1; z-index: 0; pointer-events: none;
}
.rank-card { display: flex; align-items: center; background: #1c1c22; border-radius: 6px; padding: 12px; width: 100%; z-index: 1; border: 1px solid #2a2a30; gap: 16px; }
.rank-card img { width: 160px; height: 90px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.rank-info { flex: 1; }
.rank-title { font-size: 16px; font-weight: bold; color: #f5f5f7; margin-bottom: 4px; }
.rank-desc { font-size: 13px; color: #a0a0a8; }

/* 观看指南 */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { background: #1c1c22; padding: 24px; border-radius: 6px; border: 1px solid #2a2a30; }
.guide-num { font-size: 36px; font-weight: bold; color: #c86fd0; font-family: Georgia, serif; margin-bottom: 12px; }
.guide-title { font-size: 18px; font-weight: bold; color: #f5f5f7; margin-bottom: 8px; }
.guide-desc { font-size: 14px; color: #a0a0a8; }

/* 常见问题 */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #1c1c22; border-radius: 6px; border: 1px solid #2a2a30; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; font-size: 16px; font-weight: bold; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: #c86fd0; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 16px; font-size: 14px; color: #a0a0a8; }

/* VIP 横幅 */
.vip-banner {
  background: #2a1a3a; padding: 60px 4%; text-align: center;
  border-radius: 12px; margin: 40px 4%; border: 1px solid #4a2a5a;
}
.vip-title { font-size: 32px; font-weight: bold; color: #fff; margin-bottom: 12px; }
.vip-desc { font-size: 16px; color: #c86fd0; margin-bottom: 24px; }
.btn-vip {
  display: inline-block; background: linear-gradient(90deg, #8e5aaf, #c86fd0); color: #fff;
  padding: 12px 32px; border-radius: 4px; font-size: 16px; font-weight: bold; transition: opacity 0.2s;
}
.btn-vip:hover { opacity: 0.9; }

/* 页脚 */
.site-footer {
  background: #181820; padding: 40px 4% 20px; text-align: center; font-size: 13px; color: #a0a0a8;
}
.footer-inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 12px; }
.footer-links a { color: #a0a0a8; transition: color 0.2s; }
.footer-links a:hover { color: #c86fd0; }
.about-details { width: 100%; text-align: left; margin-top: 12px; border-top: 1px solid #2a2a30; padding-top: 12px; }
.about-details summary {
  cursor: pointer; font-size: 13px; color: #a0a0a8; outline: none; list-style: none;
}
.about-details summary::-webkit-details-marker { display: none; }
.about-details p { font-size: 13px; margin: 8px 0; line-height: 1.6; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.about-links a { color: #a0a0a8; font-size: 13px; }
.about-links a:hover { color: #c86fd0; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-6, .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .btn-download-pill { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-banner { height: 350px; }
  .hero-title { font-size: 28px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 100%); }
  .grid-6, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .rank-card img { width: 120px; height: 68px; }
  .rank-number { font-size: 80px; left: -5px; }
  .section-title { font-size: 20px; }
  .vip-title { font-size: 24px; }
  .faq-item summary { font-size: 15px; }
}