:root {
  --bg-deep: #0d0714;
  --bg-panel: #150b22;
  --bg-card: #1d1030;
  --purple: #8b5cf6;
  --purple-soft: #a78bfa;
  --purple-dim: #6d28d9;
  --red: #e11d48;
  --red-hover: #be123c;
  --text-main: #ede9f5;
  --text-sub: #a99cb8;
  --border: #2e1d45;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 7, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
}
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--purple-soft);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.main-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-sub);
  flex-wrap: wrap;
}
.main-nav a:hover { color: var(--purple-soft); }

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 40px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 18px;
}
.hero-text h1 span { color: var(--purple-soft); }
.hero-text p.sub {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 26px;
  max-width: 480px;
}
.download-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 38px;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
  transition: background 0.25s, transform 0.25s;
}
.download-btn:hover { background: var(--red-hover); transform: translateY(-2px); }
.update-time {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-sub);
  opacity: 0.8;
}
.hero-tags {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 13px;
  color: var(--purple-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-panel);
}

/* 轮播 */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  max-height: 520px;
}
.carousel-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .slide-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 15px;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--purple-soft); }

/* ---------- 滚动横幅 ---------- */
.marquee-bar {
  background: linear-gradient(90deg, var(--purple-dim), var(--purple), var(--purple-dim));
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 22s linear infinite;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.marquee-inner span { margin: 0 30px; opacity: 0.95; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 通用区块 ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.section-head p { color: var(--text-sub); font-size: 15px; }

/* 基映热播 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.poster-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.poster-card:hover { transform: translateY(-5px); }
.poster-card .poster-img {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.poster-card .poster-img img { width: 100%; height: 100%; object-fit: cover; }
.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 18, 0.15);
  opacity: 0;
  transition: opacity 0.25s;
}
.poster-img:hover .play-mask { opacity: 1; }
.play-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.55);
  border: 2px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon::after {
  content: "";
  display: block;
  margin-left: 4px;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.poster-card .poster-caption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-sub);
}
.poster-card .poster-caption strong { color: #fff; display: block; margin-bottom: 2px; }

/* 基映优势 */
.advantage {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.advantage-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.advantage-inner h2 { font-size: 28px; color: #fff; margin-bottom: 22px; }
.advantage-inner p {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
}

/* 基映热推 */
.recommend-item {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.recommend-item img { width: 120px; height: 160px; object-fit: cover; flex-shrink: 0; }
.recommend-body { padding: 14px 14px 14px 0; }
.recommend-body h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.recommend-body p { font-size: 13px; color: var(--text-sub); }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px 10px 10px;
}
.rank-num {
  width: 34px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-soft);
  flex-shrink: 0;
}
.rank-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-info h3 { font-size: 15px; color: #fff; }
.rank-meta { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.rank-bar {
  height: 6px;
  border-radius: 3px;
  background: #2a1a40;
  margin-top: 8px;
  overflow: hidden;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple-dim), var(--purple-soft));
}

/* 播放互动 */
.player-section { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.player-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  background: #000;
}
.player-wrap > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.danmaku-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.danmaku {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  animation: danmu-move 9s linear infinite;
}
.danmaku:nth-child(1) { top: 12%; animation-delay: 0s; }
.danmaku:nth-child(2) { top: 24%; animation-delay: 1.6s; color: #f9a8d4; }
.danmaku:nth-child(3) { top: 38%; animation-delay: 3.2s; color: #c4b5fd; }
.danmaku:nth-child(4) { top: 52%; animation-delay: 4.8s; color: #fde68a; }
.danmaku:nth-child(5) { top: 66%; animation-delay: 0.8s; }
.danmaku:nth-child(6) { top: 80%; animation-delay: 2.4s; color: #86efac; }
@keyframes danmu-move {
  from { transform: translateX(100%); left: 100%; }
  to { transform: translateX(-100%); left: 0; }
}

/* 历史 */
.history-text p { color: var(--text-sub); font-size: 16px; margin-bottom: 16px; max-width: 820px; }

/* FAQ 手风琴 */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 15px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after {
  content: "+";
  color: var(--purple-soft);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
  color: var(--text-sub);
  font-size: 14px;
}
.faq-item.open .faq-a { max-height: 220px; padding-bottom: 16px; }

/* 网友热议 */
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.comment-form textarea:focus { outline: 1px solid var(--purple-soft); }
.comment-form button {
  margin-top: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
}
.comment-form button:hover { background: var(--red-hover); }
.comment-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.comment {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.comment img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body .c-name { font-size: 14px; color: var(--purple-soft); margin-bottom: 3px; }
.comment-body .c-text { font-size: 14px; color: var(--text-sub); }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--purple-dim);
  border-radius: 16px;
  padding: 30px 26px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-box p { margin-bottom: 20px; font-size: 16px; color: #fff; }
.modal-box .modal-actions { display: flex; gap: 12px; justify-content: center; }
.modal-box .modal-actions a,
.modal-box .modal-actions button {
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.modal-box .modal-actions a {
  background: var(--red);
  color: #fff;
}
.modal-box .modal-actions button {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}

/* 酒瓶与白袜下落装饰 */
.deco-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.deco {
  position: absolute;
  top: -60px;
  font-size: 26px;
  animation: fall linear infinite;
  opacity: 0.5;
}
@keyframes fall {
  from { transform: translateY(-10vh) rotate(0deg); }
  to { transform: translateY(110vh) rotate(360deg); }
}
.deco.d1 { left: 6%; animation-duration: 14s; animation-delay: 0s; }
.deco.d2 { left: 22%; animation-duration: 18s; animation-delay: 3s; font-size: 20px; }
.deco.d3 { left: 78%; animation-duration: 16s; animation-delay: 1s; }
.deco.d4 { left: 90%; animation-duration: 20s; animation-delay: 5s; font-size: 22px; }
.deco.d5 { left: 48%; animation-duration: 22s; animation-delay: 2s; font-size: 18px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: var(--text-sub); }
.site-footer a:hover { color: var(--purple-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-wrap { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero-text h1 { font-size: 28px; }
  .carousel { max-width: 340px; margin: 0 auto; }
  .section { padding: 44px 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .recommend-item img { width: 96px; height: 128px; }
  .section-head h2 { font-size: 23px; }
}