/* 全局配色与基础设置 */
:root {
  --bg-dark: #0a0a0c;
  --bg-panel: #141417;
  --bg-card: #1a1a1f;
  --amber: #f5a623;
  --amber-hover: #ffb845;
  --text-main: #e8e8ea;
  --text-muted: #888892;
  --border: #26262e;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* 布局结构 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 32px;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 头部导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-area img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--amber);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}
.search-box:focus {
  border-color: var(--amber);
}
.btn-download-header {
  background-color: var(--amber);
  color: #000;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-download-header:hover {
  background-color: var(--amber-hover);
}
.btn-login {
  color: var(--text-main);
  font-size: 14px;
}
.btn-login:hover {
  color: var(--amber);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero 轮播区 */
.hero-section {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center 20%;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.4) 50%, rgba(10,10,12,0) 100%),
              linear-gradient(to top, rgba(10,10,12,1) 0%, rgba(10,10,12,0) 40%);
}
.hero-content {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
  max-width: 500px;
}
.hero-tag {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.btn-primary {
  background-color: var(--amber);
  color: #000;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-dots {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.dot.active {
  background: var(--amber);
  width: 24px;
  border-radius: 4px;
}

/* 通用区块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  margin-top: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
}
.section-link {
  font-size: 13px;
  color: var(--text-muted);
}
.section-link:hover {
  color: var(--amber);
}

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

/* 剧集精选 */
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.editor-card {
  display: flex;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.editor-img {
  width: 120px;
  flex-shrink: 0;
}
.editor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.editor-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.editor-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.tag-group {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 新剧速递 */
.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar {
  display: none;
}
.scroll-item {
  width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* 追更时间线 */
.timeline {
  position: relative;
  padding-left: 20px;
  margin-top: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
}
.timeline-date {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 4px;
  font-weight: 600;
}
.timeline-title {
  font-size: 15px;
  font-weight: 600;
}
.timeline-ep {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-q::before {
  content: 'Q ';
  color: var(--amber);
  font-weight: 900;
}
.faq-a {
  font-size: 13px;
  color: var(--text-muted);
}

/* 侧边栏 */
.sidebar-sticky {
  position: sticky;
  top: 88px;
  background: var(--bg-panel);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 20px;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-left: 3px solid var(--amber);
  padding-left: 8px;
}
.update-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.update-list li:last-child {
  border-bottom: none;
}
.update-date {
  font-size: 12px;
  color: var(--amber);
}
.update-name {
  font-size: 14px;
  font-weight: 500;
}
.update-ep {
  font-size: 12px;
  color: var(--text-muted);
}

/* 下载专区 */
.download-section {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--bg-panel) 0%, #1a1510 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.download-text {
  position: relative;
  z-index: 1;
}
.download-text h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.download-text p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
}
.dl-buttons {
  display: flex;
  gap: 16px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #000;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
}
.dl-btn-outline {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
}
.dl-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.download-qr {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  width: 140px;
  height: 140px;
  position: relative;
  z-index: 1;
}
.download-qr img {
  width: 100%;
  height: 100%;
}
.install-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.step-card span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--amber);
  color: #000;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: 700;
  margin-right: 8px;
}

/* 移动端吸底 */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 23, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 100;
}
.mobile-bottom-bar .dl-btn {
  width: 100%;
}

/* 下载弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg-panel);
  padding: 32px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}
.modal-qr {
  width: 160px;
  height: 160px;
  background: #fff;
  margin: 20px auto;
  padding: 4px;
  border-radius: 8px;
}
.modal-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.modal-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 16px 80px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 40px;
}
footer p {
  margin-bottom: 8px;
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--amber);
}

/* 响应式 */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 40px;
  }
  .sidebar-sticky {
    position: static;
  }
  .nav-links, .search-box {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header-actions .btn-login {
    display: none;
  }
  .hot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .download-section {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 32px 16px;
  }
  .download-text p {
    margin: 0 auto 24px;
  }
  .dl-buttons {
    justify-content: center;
    flex-direction: column;
  }
  .install-steps {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-bar {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero-section {
    height: 360px;
  }
  .hero-content {
    left: 20px;
    bottom: 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-dots {
    right: 20px;
    bottom: 20px;
  }
  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section-title {
    font-size: 18px;
  }
  .download-qr {
    display: none;
  }
  .dl-btn {
    width: 100%;
  }
}