:root {
  --brand-pink: #ff4d88;
  --brand-orange: #ff8c00;
  --brand-yellow: #ffd600;
  --brand-cyan: #00e5ff;
  --bg-light: #fff5f8;
  --bg-dark: #2d0a1a;
  --text-main: #331a22;
  --text-light: #fff;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow-gel: 0 8px 24px rgba(255, 77, 136, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

/* 顶部导航 */
.nav-capsule {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1000px;
  transition: all 0.3s ease;
}

.nav-capsule.scrolled {
  width: calc(100% - 60px);
  max-width: 900px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(255, 77, 136, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--brand-pink);
}

.nav-logo img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: none;
}

.nav-links a {
  margin: 0 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-pink);
}

.nav-btn {
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 77, 136, 0.3);
  transition: transform 0.2s;
}

.nav-btn:active {
  transform: scale(0.95);
}

/* 首屏 */
.hero {
  min-height: 100vh;
  padding: 120px 20px 60px;
  position: relative;
  background: radial-gradient(circle at top left, #ffe6f0, #fff5f8 50%, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 8s infinite alternate ease-in-out;
}
.deco-1 { width: 300px; height: 300px; background: var(--brand-pink); top: -100px; left: -100px; }
.deco-2 { width: 250px; height: 250px; background: var(--brand-yellow); bottom: 100px; right: -50px; animation-delay: -3s; }
.deco-3 { width: 200px; height: 200px; background: var(--brand-cyan); top: 40%; left: 20%; animation-delay: -5s; opacity: 0.3; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 77, 136, 0.2);
}

.hero-desc {
  font-size: 18px;
  color: #664;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-pink), #ff6b9d);
  color: white;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(255, 77, 136, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 77, 136, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--brand-pink);
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 2px solid var(--brand-pink);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #fff0f5;
}

/* 数据胶囊 */
.stats-capsules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  z-index: 1;
}

.capsule-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-pink);
  box-shadow: 0 4px 12px rgba(255, 77, 136, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 主推剧大卡 */
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-gel);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px;
  z-index: 1;
  position: relative;
}

.feature-cover {
  width: 100%;
  height: 300px;
  position: relative;
}

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

.feature-info {
  padding: 20px;
  text-align: left;
}

.feature-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--brand-orange);
  font-weight: bold;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 横向滑动短剧 */
.mini-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
  z-index: 1;
  width: 100%;
  padding-left: 20px;
}

.mini-track::-webkit-scrollbar { display: none; }

.mini-card {
  flex: 0 0 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.mini-card:hover { transform: translateY(-6px); }

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

.mini-card p {
  font-size: 12px;
  font-weight: bold;
  padding: 8px;
  text-align: center;
  background: white;
}

/* 通用区块 */
.section {
  padding: 80px 20px;
  position: relative;
}

.section.dark {
  background: var(--bg-dark);
  color: white;
}

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

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.section-num {
  position: absolute;
  top: -40px;
  left: -10px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 77, 136, 0.08);
  line-height: 1;
  z-index: 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.section-bar {
  width: 6px;
  height: 24px;
  background: var(--brand-pink);
  border-radius: 3px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
}

.section-tag {
  background: rgba(255, 77, 136, 0.1);
  color: var(--brand-pink);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  margin-left: auto;
}

/* 热播剧场 */
.theater-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.genre-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.genre-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.genre-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.genre-title::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.genre-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.genre-scroll::-webkit-scrollbar { display: none; }

.genre-scroll .mini-card {
  flex: 0 0 140px;
}
.genre-scroll .mini-card img {
  height: 200px;
}

/* 剧库 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.chip {
  padding: 8px 20px;
  border-radius: 20px;
  background: white;
  color: #666;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #eee;
  transition: all 0.2s;
}

.chip.active {
  background: var(--brand-pink);
  color: white;
  border-color: var(--brand-pink);
  box-shadow: 0 4px 12px rgba(255, 77, 136, 0.3);
}

.library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.lib-card-large {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-gel);
  background: white;
}

.lib-card-large img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.lib-info {
  padding: 16px;
}

.lib-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.lib-meta {
  font-size: 12px;
  color: var(--brand-orange);
}

.lib-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lib-card-small {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: white;
}

.lib-card-small img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.lib-card-small p {
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 24px;
  background: transparent;
  color: var(--text-main);
  border: 2px solid #ddd;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

/* 榜单 */
.ranking-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rank-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.rank-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--brand-yellow);
}

.rank-big-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.rank-num {
  font-weight: 900;
  color: var(--brand-pink);
  font-size: 16px;
  width: 20px;
}

.rank-item img {
  width: 40px;
  height: 54px;
  border-radius: 6px;
}

.rank-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--brand-yellow);
  font-weight: bold;
}

.rank-trend {
  color: #00ff88;
  font-size: 12px;
}

/* 评论墙 */
.comment-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-pink);
}

.stat-label {
  font-size: 12px;
  color: #888;
}

.comment-wall {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-card {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment-name {
  font-size: 14px;
  font-weight: bold;
}

.comment-text {
  font-size: 14px;
  color: #555;
}

/* 日历 */
.calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.day-card {
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.day-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.day-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.day-ep {
  font-size: 12px;
  color: var(--brand-pink);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid var(--brand-pink);
  padding-left: 16px;
  margin-left: 8px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-pink);
  border: 2px solid white;
}

.tl-time {
  font-weight: bold;
  color: var(--brand-orange);
  margin-bottom: 4px;
}

.tl-content {
  font-size: 14px;
}

/* FAQ与下载 */
.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

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

.faq-a {
  padding: 0 16px 16px;
  font-size: 14px;
  color: #666;
  display: none;
}

.download-banner {
  text-align: center;
  margin-top: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  border-radius: var(--radius-lg);
  color: white;
}

.download-banner h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* 页脚 */
.footer {
  background: #111;
  color: #666;
  padding: 40px 20px 20px;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #999;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.copyright a {
  color: #888;
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 56px; }
  .feature-card { flex-direction: row; height: 320px; }
  .feature-cover { width: 50%; height: 100%; }
  .feature-info { width: 50%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .lib-card-large { grid-column: span 1; }
  .lib-small-grid { grid-template-columns: repeat(2, 1fr); }
  .ranking-wrap { flex-direction: row; }
  .rank-card { flex: 1; }
  .comment-stats { grid-template-columns: repeat(4, 1fr); }
  .comment-wall { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .calendar-wrap { flex-direction: row; }
  .week-grid { flex: 1; grid-template-columns: repeat(4, 1fr); }
  .timeline { flex: 1; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 72px; }
  .theater-row { flex-direction: row; flex-wrap: wrap; }
  .genre-block { flex: 1 1 calc(50% - 15px); }
  .library-grid { grid-template-columns: 2fr 3fr; }
  .lib-small-grid { grid-template-columns: repeat(2, 1fr); }
  .comment-wall { grid-template-columns: repeat(3, 1fr); }
  .comment-card:nth-child(2) { margin-top: 20px; }
  .comment-card:nth-child(4) { margin-top: -20px; }
}