:root {
  --bg-dark: #0a0a0c;
  --bg-panel: #141417;
  --bg-card: #1c1c21;
  --text-main: #f0f0f2;
  --text-muted: #9e9ea7;
  --accent-red: #e63946;
  --accent-gold: #d4af37;
  --gradient-brand: linear-gradient(135deg, #e63946, #9b2226);
  --gradient-panel: linear-gradient(180deg, #18181c 0%, #0f0f12 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
}

/* 首屏 hero */
.hero {
  position: relative;
  padding: 60px 20px;
  background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.05), transparent 50%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, #d4d4d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 600px;
}

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

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #c1121f;
}

.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slider img {
  flex: 0 0 80%;
  max-width: 280px;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 通用区块 */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 36px;
  text-align: center;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 每日更新 - 时间轴风格 */
.timeline-wrap {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(230, 57, 70, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.timeline-time {
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.timeline-card img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.timeline-info h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 排行榜 */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.rank-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.rank-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.rank-info {
  padding: 12px;
}

.rank-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tag-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag {
  font-size: 0.75rem;
  background: rgba(230, 57, 70, 0.15);
  color: #ff8a8a;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 魔改短剧 - 创意交错布局 */
.magic-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.magic-item {
  display: flex;
  flex-direction: column;
  background: var(--gradient-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.magic-content {
  padding: 20px;
}

.magic-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

.magic-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 热剧推荐 - 横向滑动 */
.hot-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.hot-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.hot-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.hot-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.hot-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 观剧疑问 - 问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--accent-red);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 用户社区 & 心愿榜单 */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.community-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.community-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.community-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wish-list {
  list-style: none;
}

.wish-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}

.wish-list li:last-child {
  border-bottom: none;
}

.wish-list span {
  color: var(--text-muted);
}

/* 平台动态 & 隐私详情 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.news-date {
  color: var(--accent-gold);
  font-weight: 600;
  white-space: nowrap;
}

.privacy-content {
  background: var(--bg-panel);
  padding: 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privacy-content h3 {
  color: var(--text-main);
  margin-bottom: 12px;
  margin-top: 20px;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 10px;
}

/* 客户端下载 */
.download-box {
  text-align: center;
  background: linear-gradient(180deg, rgba(230,57,70,0.1), transparent);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
}

.download-box h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.download-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-large {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s;
}

.btn-large:hover {
  transform: scale(1.05);
}

/* 页脚 */
.site-footer {
  background: #050505;
  padding: 40px 20px 80px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid var(--border-color);
}

.site-footer p {
  margin-bottom: 10px;
}

.site-footer a {
  color: #888;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ccc;
}

/* 底部浮动下载按钮 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  transition: transform 0.2s;
}

.floating-download:hover {
  transform: translateX(-50%) scale(1.05);
}

/* 响应式 */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-text {
    flex: 1;
  }
  .hero-slider {
    flex: 1;
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .hero-slider img {
    flex: 1 1 45%;
    max-width: none;
  }
  .rank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .magic-item {
    flex-direction: row;
    align-items: center;
  }
  .magic-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  .magic-item img {
    width: 50%;
    height: auto;
    aspect-ratio: 16/9;
  }
  .magic-content {
    flex: 1;
    padding: 30px;
  }
  .hot-card {
    flex: 0 0 200px;
  }
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }
  .floating-download {
    display: none;
  }
  .site-footer {
    padding-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .rank-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .timeline-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-left: none;
    padding-left: 0;
  }
  .timeline-item::before {
    display: none;
  }
  .timeline-item {
    border-left: 2px solid rgba(230, 57, 70, 0.3);
    padding-left: 20px;
    margin-bottom: 0;
  }
}