:root {
  --pink: #FFD6E0;
  --mint: #C8F0E4;
  --purple: #E6D6F5;
  --cream: #FFF3C4;
  --blue: #D6EAF8;
  --text: #4A3F55;
  --text-light: #7A6E85;
  --white: #FFFFFF;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 24px rgba(200, 160, 180, 0.15);
  --shadow-hover: 0 12px 32px rgba(200, 160, 180, 0.28);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, #FFF8FA 0%, #F5FBF9 50%, #FBF7FF 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--pink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #D96B8A;
  white-space: nowrap;
}
.brand img { height: 34px; width: auto; border-radius: 8px; }
.main-nav {
  display: flex;
  gap: 6px;
  background: var(--pink);
  border-radius: 999px;
  padding: 5px;
}
.main-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: #8A4A62;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--white);
  color: #D96B8A;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 107, 138, 0.18);
}
.search-box {
  flex: 1;
  min-width: 120px;
  max-width: 260px;
  display: flex;
  align-items: center;
  background: var(--mint);
  border-radius: 999px;
  padding: 8px 16px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text);
  font-family: var(--font-main);
}
.search-box input::placeholder { color: #6BA898; }
.search-box span { font-size: 16px; color: #6BA898; }
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s;
}
.user-avatar:hover { transform: scale(1.1) rotate(5deg); }

/* ============ HERO ============ */
.hero {
  padding: 48px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, #FFE9F0 0%, #E9F7F2 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.hero-tag {
  display: inline-block;
  background: var(--cream);
  color: #A8862C;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-weight: 600;
  border: 1.5px dashed #E8CE7A;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  color: #C75578;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 480px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-tags span {
  background: var(--white);
  color: #9B6B8A;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(200, 160, 180, 0.12);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF9EC0, #D96B8A);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(217, 107, 138, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(217, 107, 138, 0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #C75578;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  transition: background 0.25s, transform 0.25s;
}
.btn-secondary:hover { background: var(--pink); transform: translateY(-3px); }
.hero-cover {
  position: relative;
}
.hero-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(180, 120, 150, 0.3);
  transition: transform 0.4s ease;
}
.hero-cover:hover img { transform: rotate(-2deg) scale(1.02); }
.hero-cover::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: repeating-linear-gradient(45deg, var(--pink), var(--pink) 10px, transparent 10px, transparent 20px);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

/* ============ SECTION SHARED ============ */
section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: 26px;
  color: #C75578;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: "♡";
  color: #FF9EC0;
  font-size: 24px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-light);
}

/* ============ 今日推荐 ============ */
.recommend-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}
.recommend-scroll::-webkit-scrollbar { height: 8px; }
.recommend-scroll::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 999px; }
.recommend-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.recommend-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.recommend-card .thumb {
  height: 300px;
  overflow: hidden;
  background: var(--purple);
}
.recommend-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.recommend-card:hover .thumb img { transform: scale(1.06); }
.recommend-info { padding: 14px 16px; }
.recommend-info h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strawberry-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #D96B8A;
}
.strawberry-score .berry { font-size: 14px; }

/* ============ 分类入口 ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, background 0.25s;
}
.category-item:hover { transform: translateY(-5px); background: var(--cream); }
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--pink);
}
.category-item:nth-child(2) .category-icon { background: var(--mint); }
.category-item:nth-child(3) .category-icon { background: var(--purple); }
.category-item:nth-child(4) .category-icon { background: var(--cream); }
.category-item:nth-child(5) .category-icon { background: var(--blue); }
.category-item:nth-child(6) .category-icon { background: var(--pink); }
.category-item:nth-child(7) .category-icon { background: var(--mint); }
.category-item:nth-child(8) .category-icon { background: var(--purple); }
.category-item span:last-child { font-size: 14px; color: var(--text); font-weight: 500; }

/* ============ 热播榜 ============ */
.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.rank-list {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
}
.rank-row:hover { background: #FFF4F7; }
.rank-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--blue);
  color: #5B8DAE;
  flex-shrink: 0;
}
.rank-row:nth-child(1) .rank-num { background: #FFE0A8; color: #B8860B; }
.rank-row:nth-child(2) .rank-num { background: #E8E8F0; color: #7A7A9A; }
.rank-row:nth-child(3) .rank-num { background: #F5D6C6; color: #B57A5A; }
.rank-title { flex: 1; font-size: 15px; color: var(--text); }
.rank-meta { font-size: 12px; color: var(--text-light); }
.rank-hero {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.rank-hero img { width: 100%; height: 480px; object-fit: cover; }
.rank-hero-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(transparent, rgba(70, 40, 60, 0.85));
  color: #fff;
}
.rank-hero-cap strong { font-size: 20px; display: block; margin-bottom: 4px; }
.rank-hero-cap em { font-size: 13px; font-style: normal; opacity: 0.85; }

/* ============ 新剧速递 ============ */
.new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.new-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.new-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow-hover); }
.new-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #FF9EC0, #D96B8A);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  z-index: 2;
}
.new-card .thumb { height: 240px; overflow: hidden; }
.new-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.new-card:hover .thumb img { transform: scale(1.06); }
.new-card h3 { font-size: 15px; padding: 12px 14px 4px; }
.new-card p { font-size: 12px; color: var(--text-light); padding: 0 14px 14px; }

/* ============ 继续追剧 ============ */
.continue-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  align-items: center;
  transition: box-shadow 0.3s;
}
.continue-card:hover { box-shadow: var(--shadow-hover); }
.continue-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.continue-info h3 { font-size: 22px; color: #C75578; margin-bottom: 10px; }
.continue-info p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.progress-track {
  height: 12px;
  background: var(--pink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, #FFB3CC, #D96B8A);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-label { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }

/* ============ 用户评价社区 ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--mint);
  transition: transform 0.3s;
}
.review-card:nth-child(2) { border-top-color: var(--pink); }
.review-card:nth-child(3) { border-top-color: var(--purple); }
.review-card:hover { transform: translateY(-5px); }
.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.review-user strong { font-size: 14px; display: block; }
.review-user small { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 14px; color: var(--text); line-height: 1.7; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: #D96B8A;
  font-size: 18px;
  transition: transform 0.3s;
}
.faq-item[open] summary { background: #FFF4F7; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 18px; font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ============ 会员福利横幅 ============ */
.vip-banner {
  background: linear-gradient(120deg, #FFD6E0 0%, #E6D6F5 60%, #D6EAF8 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}
.vip-banner h2 { font-size: 24px; color: #8A4A62; margin-bottom: 8px; }
.vip-banner p { font-size: 14px; color: #7A5A6A; max-width: 520px; }

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 40px;
  padding: 28px 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #A89AA0;
  border-top: 1px solid #F0E4E8;
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: #A89AA0; text-decoration: underline; }
.site-footer time { font-size: 12px; color: #B8ACB2; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-cover { max-width: 320px; margin: 0 auto; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .rank-layout { grid-template-columns: 1fr; }
  .rank-hero { position: static; max-width: 380px; margin: 0 auto; }
  .rank-hero img { height: 400px; }
  .new-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .search-box { display: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .main-nav a { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 24px 0 16px; }
  .hero-grid { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
  .section-head h2 { font-size: 21px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .category-item { padding: 14px 4px; }
  .category-icon { width: 44px; height: 44px; font-size: 20px; }
  .category-item span:last-child { font-size: 12px; }
  .recommend-card { flex: 0 0 160px; }
  .recommend-card .thumb { height: 210px; }
  .new-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .new-card .thumb { height: 180px; }
  .continue-card { grid-template-columns: 1fr; }
  .continue-card img { height: 200px; }
  .review-grid { grid-template-columns: 1fr; }
  .vip-banner { flex-direction: column; text-align: center; padding: 26px 20px; }
  .vip-banner p { max-width: none; }
  .rank-hero img { height: 320px; }
}