:root {
  --color-primary: #E8455A;
  --color-primary-light: #FFB3C1;
  --color-bg-cream: #FFF8F3;
  --color-text-dark: #2B2226;
  --color-bg-light: #F7F2EF;
  --color-success: #2E9E6B;
  --color-gold: #C9973A;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(43, 34, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(43, 34, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 34, 38, 0.12);
  --spacing-section: 88px;
  --max-width: 1200px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--color-text-dark);
  background-color: var(--color-bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 顶部公告条 */
.announcement-bar {
  background-color: var(--color-primary-light);
  color: var(--color-text-dark);
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.announcement-bar .btn-small {
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s;
}

.announcement-bar .btn-small:hover {
  transform: translateY(-1px);
}

/* 导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 34, 38, 0.05);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-group img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #E8455A, #FF7A8A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(43, 34, 38, 0.1);
  border-radius: 20px;
  padding: 4px 12px;
  transition: box-shadow 0.3s;
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100px;
  background: transparent;
}

.btn-cast {
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cast:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 69, 90, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-dark);
  cursor: pointer;
}

/* Hero 区 */
.hero {
  background: linear-gradient(135deg, #E8455A 0%, #FF8A9F 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  border-radius: 50%;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary, .btn-secondary {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  opacity: 0.9;
}

.hero-side-card {
  background: #fff;
  color: var(--color-text-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform 0.3s;
}

.hero-side-card:hover {
  transform: translateY(-8px);
}

.hero-side-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-side-card h3 span {
  font-size: 12px;
  color: var(--color-primary);
  background: var(--color-bg-cream);
  padding: 2px 8px;
  border-radius: 10px;
}

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

.mini-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.mini-item-info {
  flex: 1;
}

.mini-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-item-info p {
  font-size: 12px;
  color: #888;
}

/* 平台特色区 */
.section {
  padding: var(--spacing-section) 0;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 15px;
  color: #666;
}

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

.feature-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid rgba(43, 34, 38, 0.03);
}

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

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* 内容矩阵 */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.matrix-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.matrix-card-content {
  padding: 16px;
}

.matrix-card-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.matrix-card-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.matrix-link {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

/* 精选片单 */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  background: transparent;
  border: 1px solid rgba(43, 34, 38, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

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

.drama-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.drama-card-img {
  position: relative;
}

.drama-card-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.drama-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.drama-badge.gold {
  background: var(--color-gold);
}

.drama-info {
  padding: 16px;
}

.drama-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.drama-tags span {
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(232, 69, 90, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.drama-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

/* 全网独播与荔枝原创 */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.split-left, .split-right {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.split-left h2, .split-right h2 {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-left h2::before, .split-right h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 2px;
}

.reason-list {
  list-style: none;
  margin-bottom: 24px;
}

.reason-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
}

.reason-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

.exclusive-mini-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 日历与榜单 */
.grid-2-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.calendar-day {
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 14px;
}

.calendar-day.today {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
}

.rank-list {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43,34,38,0.05);
}

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

.rank-num {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  width: 30px;
  text-align: center;
  color: #ccc;
}

.rank-item:nth-child(1) .rank-num { color: var(--color-primary); }
.rank-item:nth-child(2) .rank-num { color: var(--color-gold); }
.rank-item:nth-child(3) .rank-num { color: #B87333; }

/* 专题区 */
.topic-section {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-md);
}

.topic-img {
  width: 40%;
}

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

.topic-content {
  padding: 40px;
  flex: 1;
}

.topic-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.topic-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* App下载与投屏 */
.app-download {
  text-align: center;
  background: linear-gradient(135deg, #FFF8F3 0%, #FFECE9 100%);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  border: 1px solid var(--color-primary-light);
}

.app-download h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.app-download p {
  font-size: 15px;
  color: #666;
  margin-bottom: 32px;
}

.download-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 48px;
  border-radius: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(232,69,90,0.3);
  transition: all 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,69,90,0.4);
}

.cast-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cast-step {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cast-step strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #555;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 页脚 */
.site-footer {
  background: var(--color-bg-light);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(43,34,38,0.05);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 0;
  border-top: 1px solid rgba(43,34,38,0.05);
  text-align: center;
  font-size: 12px;
  color: #999;
}

.footer-bottom a {
  color: #999;
  margin-left: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(43,34,38,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  font-weight: bold;
  color: var(--color-primary);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tags {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-grid, .drama-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-section, .grid-2-col {
    grid-template-columns: 1fr;
  }
  .topic-section {
    flex-direction: column;
  }
  .topic-img {
    width: 100%;
    height: 300px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .matrix-grid, .drama-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    display: none;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .cast-steps {
    flex-direction: column;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .matrix-grid, .drama-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}