:root {
  --bg: #0a0a0c;
  --bg-panel: #121216;
  --bg-card: #18181e;
  --border: #2a2a32;
  --text: #e5e5ea;
  --text-muted: #8e8e99;
  --amber: #d99c3c;
  --amber-hover: #f0b455;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1400px; 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-group span { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 6px 12px; color: var(--text); font-size: 13px;
}
.search-box::placeholder { color: #555; }
.btn-login { font-size: 14px; color: var(--text-muted); }
.btn-download {
  background: var(--amber); color: #000; font-weight: 600; font-size: 14px;
  padding: 8px 18px; border-radius: 4px; transition: 0.2s;
}
.btn-download:hover { background: var(--amber-hover); }
.menu-toggle { display: none; font-size: 24px; color: var(--text); }

/* Layout */
.page-container { max-width: 1400px; margin: 0 auto; padding: 24px 20px; display: flex; gap: 32px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* Hero */
.hero { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; }
.hero-slide { position: relative; display: none; height: 480px; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,1) 0%, rgba(10,10,12,0.7) 40%, transparent 100%);
}
.hero-content { position: absolute; bottom: 0; left: 0; padding: 40px; width: 70%; }
.hero-badge { display: inline-block; background: rgba(217,156,60,0.2); color: var(--amber); padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-bottom: 12px; border: 1px solid rgba(217,156,60,0.3); }
.hero-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.hero-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; }
.hero-btns .btn-download { padding: 10px 24px; }
.btn-secondary {
  padding: 10px 24px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-size: 14px; transition: 0.2s;
}
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); }
.hero-dots { position: absolute; bottom: 20px; right: 30px; display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.dot.active { background: var(--amber); }
.hero-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 10px; transform: translateY(-50%); pointer-events: none; }
.arrow { pointer-events: auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border-radius: 50%; color: #fff; cursor: pointer; }
.arrow:hover { background: var(--amber); color: #000; }

/* Common Section */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.section-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--amber); border-radius: 2px; }
.section-more { font-size: 13px; color: var(--text-muted); }
.section-more:hover { color: var(--amber); }

/* 热播榜 */
.grid-hot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.card-poster {
  background: var(--bg-card); border-radius: 6px; overflow: hidden;
  border: 1px solid transparent; transition: 0.3s; cursor: pointer; position: relative;
}
.card-poster:hover { transform: translateY(-4px); border-color: var(--amber); }
.poster-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.poster-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.card-poster:hover .poster-img-wrap img { transform: scale(1.05); }
.badge {
  position: absolute; top: 8px; left: 8px; background: var(--amber); color: #000;
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px;
}
.card-info { padding: 12px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.score { color: var(--amber); font-weight: 700; }

/* 剧集精选 */
.grid-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.editor-card {
  display: flex; background: var(--bg-card); border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border); transition: 0.3s; cursor: pointer;
}
.editor-card:hover { border-color: var(--amber); }
.editor-card img { width: 120px; height: 160px; object-fit: cover; flex-shrink: 0; }
.editor-content { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.editor-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.editor-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editor-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 11px; padding: 2px 6px; background: rgba(255,255,255,0.05); border-radius: 2px; color: var(--text-muted); }
.editor-eps { font-size: 12px; color: var(--amber); }

/* 新剧速递 */
.track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.track::-webkit-scrollbar { height: 4px; }
.track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.track-item { width: 160px; flex-shrink: 0; scroll-snap-align: start; }
.track-title { font-size: 14px; font-weight: 600; margin-top: 8px; }
.track-status { font-size: 12px; color: var(--text-muted); }

/* 时间线 */
.timeline { margin-bottom: 40px; padding-left: 10px; }
.timeline-item { position: relative; padding-left: 24px; padding-bottom: 24px; border-left: 1px solid var(--border); }
.timeline-item:last-child { border-left: 1px solid transparent; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -4px; top: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(217,156,60,0.2);
}
.time-date { font-size: 13px; color: var(--amber); font-weight: 600; margin-bottom: 4px; }
.time-text { font-size: 14px; }

/* 品牌故事 */
.story { background: var(--bg-panel); padding: 30px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 40px; }
.story-text { text-indent: 2em; font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* FAQ */
.faq-section { margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; }
.faq-q::before { content: 'Q'; color: var(--amber); font-style: italic; font-weight: 800; }
.faq-a { font-size: 14px; color: var(--text-muted); padding-left: 24px; }

/* 侧栏 */
.sidebar-sticky { position: sticky; top: 90px; }
.sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--amber); }
.update-list { list-style: none; }
.update-item { padding: 12px 0; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 4px; }
.update-item:last-child { border-bottom: none; }
.update-date { font-size: 12px; color: var(--text-muted); }
.update-name { font-size: 14px; font-weight: 500; }

/* 下载专区 */
.download-section {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg));
  border: 1px solid var(--border); border-radius: 12px; padding: 40px;
  display: flex; gap: 40px; align-items: center; position: relative; overflow: hidden; margin-bottom: 40px;
}
.download-section::before {
  content: ''; position: absolute; top: -50%; left: 0; width: 50%; height: 100%;
  background: radial-gradient(circle, rgba(217,156,60,0.1) 0%, transparent 70%); pointer-events: none;
}
.download-content { flex: 1; z-index: 1; }
.dl-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.dl-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.dl-btns { display: flex; gap: 16px; margin-bottom: 16px; }
.dl-btn { flex: 1; padding: 12px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; transition: 0.2s; }
.dl-btn:hover { border-color: var(--amber); background: rgba(217,156,60,0.1); }
.dl-btn.primary { background: var(--amber); color: #000; border-color: var(--amber); font-weight: 600; }
.dl-btn.primary:hover { background: var(--amber-hover); }
.dl-req { font-size: 12px; color: #555; }
.qr-card { background: #fff; padding: 16px; border-radius: 8px; text-align: center; }
.qr-card img { width: 120px; height: 120px; margin-bottom: 8px; object-fit: contain; }
.qr-text { font-size: 12px; color: #333; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 20px; text-align: center; font-size: 12px; color: var(--text-muted); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 16px; opacity: 0.6; }
.footer-links a:hover { color: var(--amber); }
/* Mobile download bar */
.mobile-dl-bar { display: none; }

@media (max-width: 1024px) {
  .main-nav, .search-box, .btn-login { display: none; }
  .menu-toggle { display: block; }
  .page-container { flex-direction: column; }
  .sidebar { width: 100%; }
  .sidebar-sticky { position: static; }
  .grid-hot { grid-template-columns: repeat(3, 1fr); }
  .grid-editor { grid-template-columns: 1fr; }
  .hero-slide { height: 400px; }
}
@media (max-width: 860px) {
  .grid-hot { grid-template-columns: repeat(3, 1fr); }
  .download-section { flex-direction: column; padding: 30px; }
  .qr-card { display: none; }
  .dl-btns { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid-hot { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-content { width: 90%; padding: 20px; }
  .hero-title { font-size: 24px; }
  .page-container { padding: 16px 12px; }
  .mobile-dl-bar {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--bg-panel); border-top: 1px solid var(--border);
    padding: 12px; z-index: 100; justify-content: space-between; align-items: center;
  }
  .mobile-dl-bar .btn-download { flex: 1; text-align: center; }
  body { padding-bottom: 64px; }
}