:root {
  --bg-color: #f4f8fc;
  --surface: #ffffff;
  --primary: #4a90e2;
  --primary-light: #a0c4f1;
  --primary-ice: #e6f0fb;
  --text-main: #1a2b4c;
  --text-muted: #5c6f8c;
  --accent-coral: #ff6b5b;
  --accent-lemon: #ffd83d;
  --border-color: #d0e0f0;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 43, 76, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 43, 76, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container-max: 1200px;
}

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

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

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

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

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

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* 通用资产 */
.clapper-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: 
    linear-gradient(135deg, #fff 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, #fff 25%, transparent 25%) -5px 0,
    linear-gradient(315deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, #fff 25%, transparent 25%);
  background-size: 10px 10px;
  background-color: var(--primary);
  border: 2px solid var(--text-main);
  border-radius: 2px;
  position: relative;
}
.clapper-icon::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 2px;
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: #357abd;
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-ice);
}
.btn-download {
  background-color: var(--accent-coral);
  color: #fff;
}
.btn-download:hover {
  background-color: #e55a4b;
}

.section-title-wrap {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.section-no {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-ice);
  padding: 2px 8px;
  border-radius: 2px;
}
.section-title-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* 封面比例 */
.poster-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poster-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--primary-ice);
  box-shadow: var(--shadow-sm);
}
.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.poster-card:hover .poster-img-wrap img {
  transform: scale(1.02);
}
.poster-info {
  display: flex;
  flex-direction: column;
}
.poster-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  background-color: var(--primary-ice);
  color: var(--primary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 248, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.brand-logo img {
  height: 32px;
  width: auto;
}
.desktop-nav {
  display: none;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.desktop-nav a {
  transition: color 0.2s;
}
.desktop-nav a:hover {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .brand-logo { font-size: 22px; }
  .brand-logo img { height: 36px; }
}

/* Hero */
.hero-section {
  padding: 32px 0 40px;
  background: linear-gradient(180deg, var(--primary-ice) 0%, var(--bg-color) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 32px;
}
.hero-content h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding-top: 20px;
}
.hero-poster-main {
  width: 60%;
  max-width: 240px;
  z-index: 2;
  position: relative;
}
.hero-poster-sub {
  width: 40%;
  max-width: 160px;
  margin-bottom: 20px;
  z-index: 1;
}
.hero-clapper-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--text-main);
  padding: 4px 8px;
  font-size: 12px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  z-index: 3;
  box-shadow: 2px 2px 0 var(--text-main);
}
.timecode {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-content h1 { font-size: 48px; }
  .hero-visual { padding-top: 0; }
}

/* 快捷索引 */
.quick-index {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.quick-index::-webkit-scrollbar { display: none; }
.index-list {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 16px;
}
.index-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.index-item span {
  color: var(--accent-coral);
  font-family: "Courier New", Courier, monospace;
}
@media (min-width: 768px) {
  .index-list { justify-content: center; padding: 0; }
}

/* 通用 Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* 开场钩子 */
.hook-section { padding: 40px 0; }
.hook-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hook-item {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.hook-poster {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
.hook-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hook-text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.hook-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .hook-item { grid-template-columns: 240px 1fr; padding: 24px; align-items: center; }
  .hook-item:nth-child(even) { grid-template-columns: 1fr 240px; }
  .hook-item:nth-child(even) .hook-poster { order: 2; }
  .hook-poster { margin: 0; }
}

/* 正在连载 */
.serial-section { padding: 40px 0; background: var(--surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.serial-card { position: relative; }
.update-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent-lemon);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

/* 按题材排场 */
.genre-section { padding: 40px 0; }
.genre-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.genre-tabs::-webkit-scrollbar { display: none; }
.genre-tab {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.genre-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 接着上次看 */
.history-section { padding: 40px 0; background: var(--primary-ice); }
.history-list { display: flex; flex-direction: column; gap: 16px; }
.history-item {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  gap: 16px;
}
.history-cover {
  width: 60px;
  aspect-ratio: 2/3;
  border-radius: 4px;
  object-fit: cover;
}
.history-info { flex: 1; }
.history-info h4 { font-size: 15px; margin-bottom: 8px; }
.progress-bar {
  height: 4px;
  background: var(--primary-ice);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 60%;
}
.history-meta { font-size: 12px; color: var(--text-muted); }
.btn-continue {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 20px;
}

/* 今日片单 */
.rhythm-section { padding: 40px 0; }
.rhythm-list { display: flex; flex-direction: column; gap: 24px; }
.rhythm-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 24px;
}
.rhythm-card:last-child { border-bottom: none; padding-bottom: 0; }
.rhythm-info { flex: 1; }
.rhythm-info h3 { font-size: 18px; margin-bottom: 8px; }
.rhythm-info p { font-size: 14px; color: var(--text-muted); }
.rhythm-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .rhythm-card { flex-direction: row; align-items: center; }
  .rhythm-covers { width: 60%; }
}

/* 人气场次榜 */
.ranking-section { padding: 40px 0; background: var(--surface); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--border-color);
  width: 30px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}
.rank-item:nth-child(1) .rank-num { color: var(--accent-coral); font-size: 32px; }
.rank-item:nth-child(2) .rank-num { color: var(--primary); font-size: 28px; }
.rank-item:nth-child(3) .rank-num { color: var(--accent-lemon); font-size: 26px; }
.rank-cover {
  width: 48px;
  aspect-ratio: 2/3;
  border-radius: 4px;
  object-fit: cover;
}
.rank-info { flex: 1; }
.rank-info h4 { font-size: 15px; margin-bottom: 2px; }
.rank-info p { font-size: 12px; color: var(--text-muted); }

/* 新作通告栏 */
.notice-section { padding: 40px 0; }
.timeline-list { list-style: none; position: relative; padding-left: 20px; border-left: 2px solid var(--primary-light); }
.timeline-item { position: relative; margin-bottom: 24px; padding-left: 16px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-date {
  font-size: 12px;
  color: var(--accent-coral);
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}
.timeline-content { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.timeline-cover { width: 40px; aspect-ratio: 2/3; border-radius: 2px; object-fit: cover; }
.timeline-info h4 { font-size: 14px; }
.timeline-info span { font-size: 12px; color: var(--text-muted); }

/* 观看方式 */
.feature-section { padding: 40px 0; background: var(--primary-ice); }
.feature-grid { display: grid; gap: 16px; }
.feature-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feature-card h3::before {
  content: '🎬';
  font-size: 18px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* 剧迷手记 */
.review-section { padding: 40px 0; }
.review-grid { display: grid; gap: 16px; }
.review-card {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 14px;
}
.review-user { font-size: 14px; font-weight: 600; }
.review-text { font-size: 14px; color: var(--text-main); margin-bottom: 8px; }
.review-link { font-size: 12px; color: var(--primary); }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-section { padding: 40px 0; background: var(--surface); }
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}
summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; color: var(--primary); }
details[open] summary::after { content: '-'; }
details p { margin-top: 12px; font-size: 14px; color: var(--text-muted); }

/* 下载 */
.download-section { padding: 48px 0; background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-ice) 100%); border-top: 1px solid var(--border-color); }
.download-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid var(--primary);
}
.download-box h2 { font-size: 24px; margin-bottom: 12px; color: var(--text-main); }
.download-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.dl-buttons { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.dl-buttons .btn { padding: 14px 32px; font-size: 16px; }
@media (min-width: 768px) { .dl-buttons { flex-direction: row; } }

/* Footer */
.site-footer {
  background: var(--bg-color);
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: bold; color: var(--text-main); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}