:root {
  --pink: #FFD6E0;
  --mint: #C8F0E4;
  --purple: #E6D6F5;
  --cream: #FFF3C4;
  --blue: #D6EAF8;
  --text-dark: #5C4A5A;
  --text-muted: #8E7C8C;
  --bg-body: #FFF9FA;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 24px rgba(255, 182, 193, 0.15);
  --shadow-hover: 0 12px 32px rgba(255, 182, 193, 0.3);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Nunito", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* 顶部导航 */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink);
  padding: 12px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #FF85A2;
}

.brand img {
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 133, 162, 0.3);
}

.nav-links {
  display: flex;
  gap: 12px;
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 50px;
}

.nav-links a {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  background: #FF85A2;
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--blue);
  border-radius: 50px;
  padding: 6px 16px;
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  width: 120px;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* Hero 轮播区 */
.hero-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-banner {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-content {
  max-width: 50%;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: #fff;
  color: #FF85A2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-desc {
  font-size: 15px;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: #FF85A2;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 133, 162, 0.4);
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: #fff;
  color: #FF85A2;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-cover {
  width: 280px;
  height: 380px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 2;
  border: 4px solid #fff;
}

/* 今日甜剧推荐 */
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "🍓";
  font-size: 24px;
}

.sweet-recommend {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cards-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

.sweet-card {
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.sweet-card:hover {
  transform: translateY(-4px);
}

.sweet-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.sweet-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.score-badge {
  background: var(--pink);
  color: #FF85A2;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

/* 分类入口 */
.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.category-item:hover {
  transform: scale(1.05);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-soft);
}

.cat-icon.c1 { background: var(--pink); }
.cat-icon.c2 { background: var(--mint); }
.cat-icon.c3 { background: var(--purple); }
.cat-icon.c4 { background: var(--cream); }
.cat-icon.c5 { background: var(--blue); }
.cat-icon.c6 { background: var(--pink); }
.cat-icon.c7 { background: var(--mint); }
.cat-icon.c8 { background: var(--purple); }

.category-item span {
  font-size: 14px;
  font-weight: 500;
}

/* 热播榜 */
.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

.ranking-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  font-size: 20px;
  font-weight: bold;
  color: #FF85A2;
  width: 30px;
  text-align: center;
}

.rank-num.top { color: #FFB300; }
.rank-num.normal { color: var(--text-muted); }

.rank-thumb {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.ranking-feature {
  width: 320px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ranking-feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-info {
  padding: 16px;
}

.feature-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 新剧速递 */
.new-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.new-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s;
}

.new-card:hover {
  transform: translateY(-4px);
}

.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #FF85A2;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 10;
}

.new-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.new-info {
  padding: 12px;
}

.new-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.new-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* 继续追剧 */
.progress-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.progress-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}

.progress-card img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.progress-info {
  flex: 1;
}

.progress-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  background: var(--blue);
  height: 8px;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}

.progress-bar {
  background: #FF85A2;
  height: 100%;
  width: 60%;
  border-radius: 4px;
}

/* 社区评价 */
.community-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 会员横幅 */
.vip-banner {
  max-width: 1200px;
  margin: 40px auto;
  background: linear-gradient(135deg, var(--cream) 0%, var(--pink) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.vip-banner h2 {
  font-size: 28px;
  color: #FF85A2;
  margin-bottom: 16px;
}

.vip-banner p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* 页脚 */
footer {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid var(--pink);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-content p {
  margin-bottom: 8px;
}

.footer-content a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 28px; }
  .hero-cover { width: 220px; height: 300px; }
  .ranking-section { flex-direction: column; }
  .ranking-feature { width: 100%; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .hero-banner { flex-direction: column; text-align: center; padding: 24px; }
  .hero-content { max-width: 100%; margin-bottom: 24px; }
  .hero-btns { justify-content: center; }
  .hero-cover { width: 60%; height: auto; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat-icon { width: 48px; height: 48px; font-size: 20px; }
  .review-grid { grid-template-columns: 1fr; }
  .progress-card { flex-direction: column; text-align: center; }
  .progress-card img { width: 80px; height: 100px; }
  .vip-banner { padding: 24px; margin: 20px; }
  .vip-banner h2 { font-size: 22px; }
}