:root {
  --bg-color: #0a0a0d;
  --surface-color: #141418;
  --surface-hover: #1c1c22;
  --text-main: #f0f0f2;
  --text-muted: #9a9aa2;
  --accent-color: #d4af37;
  --accent-hover: #e5c45c;
  --border-color: #2a2a32;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", serif;
  --transition: all 0.3s ease;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 页头 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand img { height: 32px; border-radius: 4px; }
.nav-links {
  display: none;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-main); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-download-sm {
  background-color: var(--accent-color);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-download-sm:hover { background-color: var(--accent-hover); }
.mobile-menu-btn {
  display: block;
  font-size: 24px;
  color: var(--text-main);
  padding: 8px;
}
/* 移动端菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }

/* 首屏 */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-color) 100%);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero-content h1 span { color: var(--accent-color); }
.hero-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary { background-color: var(--accent-color); color: #000; }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-color); color: var(--accent-color); }

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-cover-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2/3;
  background-color: var(--surface-color);
}
.hero-cover-card.main {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.hero-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-cover-card:hover img { transform: scale(1.05); }
.hero-cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-color);
}
.hero-cover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 12px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  font-size: 14px;
  font-weight: 600;
}

/* 通用区块 */
section { padding: 60px 0; }
.section-header { margin-bottom: 32px; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.section-header p { color: var(--text-muted); font-size: 14px; }

/* 今日主推 */
.feature-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
}
.feature-main-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-main-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-main-info h3 { font-size: 24px; margin-bottom: 12px; }
.feature-main-info .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.feature-main-info p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }
.feature-meta { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* 题材筛选 */
.filter-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.poster-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 2/3; cursor: pointer; }
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.poster-card:hover img { transform: scale(1.05); }
.poster-info {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 30px 12px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.poster-info h4 { font-size: 15px; margin-bottom: 4px; }
.poster-info p { font-size: 12px; color: var(--text-muted); }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item {
  display: flex; gap: 16px;
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  align-items: center;
}
.rank-item.top { border-color: var(--accent-color); background: linear-gradient(90deg, rgba(212,175,55,0.05) 0%, var(--surface-color) 100%); }
.rank-num { font-size: 24px; font-weight: 700; color: var(--border-color); font-style: italic; min-width: 32px; text-align: center; }
.rank-item.top .rank-num { color: var(--accent-color); }
.rank-img { width: 60px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.rank-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-info h4 { font-size: 16px; margin-bottom: 4px; }
.rank-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.rank-reason { font-size: 12px; color: var(--accent-color); }

/* 新剧与更新 */
.update-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.update-item {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-color);
}
.update-img { width: 50px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.update-img img { width: 100%; height: 100%; object-fit: cover; }
.update-info .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.update-info .desc { font-size: 13px; color: var(--text-muted); }

/* 剧情关系专题 */
.theme-section { background-color: var(--surface-color); padding: 40px 0; }
.theme-block { margin-bottom: 40px; }
.theme-block:last-child { margin-bottom: 0; }
.theme-header { margin-bottom: 16px; }
.theme-header h3 { font-size: 20px; color: var(--accent-color); margin-bottom: 8px; }
.theme-header p { font-size: 14px; color: var(--text-muted); }
.theme-gallery { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.theme-gallery::-webkit-scrollbar { height: 4px; }
.theme-gallery::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.theme-card { width: 120px; flex-shrink: 0; aspect-ratio: 2/3; border-radius: var(--radius-md); overflow: hidden; }
.theme-card img { width: 100%; height: 100%; object-fit: cover; }

/* 短时追剧 */
.short-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.short-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 2/3; }
.short-card img { width: 100%; height: 100%; object-fit: cover; }
.short-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 2px 6px; border-radius: 4px; font-size: 11px;
}
.short-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 12px 12px; background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent); font-size: 14px; font-weight: 600; }

/* 编辑私藏 */
.editor-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.editor-item { display: flex; flex-direction: column; gap: 8px; }
.editor-item:nth-child(odd) { margin-top: 24px; }
.editor-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 2/3; }
.editor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.editor-item:hover .editor-img img { transform: scale(1.05); }
.editor-note { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* 观剧体验 */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-box {
  background-color: var(--surface-color); padding: 20px;
  border-radius: var(--radius-md); border: 1px solid var(--border-color);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-box h4 { font-size: 16px; margin-bottom: 8px; }
.feature-box p { font-size: 13px; color: var(--text-muted); }

/* 观众短评 */
.reviews-grid { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background-color: var(--surface-color); padding: 20px;
  border-radius: var(--radius-md); border: 1px solid var(--border-color);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background-color: var(--accent-color); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.review-meta { display: flex; flex-direction: column; }
.review-name { font-size: 14px; font-weight: 600; }
.review-target { font-size: 12px; color: var(--text-muted); }
.review-text { font-size: 14px; line-height: 1.5; color: var(--text-main); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-q {
  width: 100%; text-align: left; padding: 16px 0;
  font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '＋'; color: var(--accent-color); transition: transform 0.3s; }
.faq-item.active .faq-q::after { content: '－'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 14px; }
.faq-item.active .faq-a { max-height: 200px; padding-bottom: 16px; }

/* 下载专区 */
.download-section { background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%); text-align: center; padding: 60px 0; }
.download-section h2 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 16px; }
.download-section > .container > p { color: var(--text-muted); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.download-steps {
  display: flex; flex-direction: column; gap: 16px; text-align: left;
  background: rgba(0,0,0,0.3); padding: 24px; border-radius: var(--radius-md);
  max-width: 600px; margin: 0 auto 32px; border: 1px solid var(--border-color);
}
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num { background: var(--accent-color); color: #000; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.step-text { font-size: 14px; }
.download-actions { display: flex; flex-direction: column; gap: 16px; max-width: 400px; margin: 0 auto; }
.download-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: var(--radius-md); font-size: 16px; font-weight: 600;
  transition: var(--transition);
}
.download-btn.android { background-color: #3ddc84; color: #000; }
.download-btn.android:hover { background-color: #5ceb9b; }
.download-btn.ios { background-color: #fff; color: #000; }
.download-btn.ios:hover { background-color: #e0e0e0; }
.version-meta { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--border-color); padding: 40px 0 20px;
  background-color: var(--bg-color); font-size: 13px; color: var(--text-muted);
}
.footer-top { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--text-main); font-size: 18px; margin-bottom: 12px; }
.footer-brand p { margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { color: var(--text-main); font-size: 15px; margin-bottom: 4px; }
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-main); }
.footer-time { font-size: 12px; opacity: 0.7; }

/* 响应式 768px */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 120px 0 80px; }
  .hero-content { flex: 1; max-width: 50%; }
  .hero-covers { flex: 1; display: flex; justify-content: flex-end; gap: 16px; }
  .hero-cover-card { width: 120px; flex-shrink: 0; }
  .hero-cover-card.main { width: 160px; grid-column: auto; grid-row: auto; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-main { flex-direction: row; padding: 32px; }
  .feature-main-img { width: 40%; flex-shrink: 0; }
  .feature-main-info { flex: 1; }
  .update-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .short-grid { grid-template-columns: repeat(3, 1fr); }
  .editor-collage { grid-template-columns: repeat(3, 1fr); }
  .editor-item:nth-child(odd) { margin-top: 0; }
  .editor-item:nth-child(2) { margin-top: 40px; }
  .editor-item:nth-child(3) { margin-top: 20px; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { flex-direction: row; flex-wrap: wrap; }
  .review-card { flex: 1 1 calc(50% - 16px); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .download-actions { flex-direction: row; }
  .download-btn { flex: 1; }
}

/* 响应式 1024px */
@media (min-width: 1024px) {
  .hero-cover-card { width: 160px; }
  .hero-cover-card.main { width: 220px; }
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
  .short-grid { grid-template-columns: repeat(4, 1fr); }
  .editor-collage { grid-template-columns: repeat(4, 1fr); }
  .theme-gallery { flex-wrap: wrap; overflow-x: visible; }
  .theme-card { width: calc(20% - 10px); }
}

/* 交互状态 */
.poster-card:focus-visible, .hero-cover-card:focus-visible, .short-card:focus-visible, .editor-img:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}
.poster-card:active img, .hero-cover-card:active img, .short-card:active img, .editor-img:active img {
  transform: scale(0.98);
}