:root {
  --gold: #FFC64D;
  --orange: #FF8A3D;
  --coral: #FF5470;
  --bg-dark: #1A0C08;
  --bg-darker: #1F0E09;
  --panel: #33150E;
  --panel-light: #4A1E13;
  --text-main: #FFF3EA;
  --text-sub: #C29C8A;
  --border-light: rgba(255, 196, 150, 0.10);
  --border-strong: rgba(255, 196, 150, 0.20);
  --gradient-main: linear-gradient(135deg, var(--gold) 0%, var(--orange) 50%, var(--coral) 100%);
  --gradient-glow: radial-gradient(circle at 30% 30%, rgba(255, 198, 77, 0.15), transparent 60%),
                   radial-gradient(circle at 70% 70%, rgba(255, 138, 61, 0.1), transparent 60%),
                   radial-gradient(circle at 50% 50%, rgba(255, 84, 112, 0.05), transparent 60%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* 为底部浮动窗口留空间 */
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* 辅助样式 */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: #1A0C08;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  gap: 8px;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 138, 61, 0.4);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gold);
}

/* 头部导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 12, 8, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; border-radius: 6px; }
.logo-area span { font-size: 18px; font-weight: bold; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.nav-links a:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
}

/* 首屏 Hero */
.hero {
  position: relative;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--gradient-glow);
}
.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 800px;
}
.hero p.desc {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 600px;
  margin-bottom: 24px;
}
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
}
.hero-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: var(--panel);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  margin-top: 20px;
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
  font-weight: bold;
}
.marquee-content span {
  margin: 0 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 通用 Section 样式 */
section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient-main);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* 真人短剧板块 */
.sec-live { background: var(--bg-darker); border-radius: 20px; margin-bottom: 40px; }
.seo-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.live-card {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}
.live-card:hover { transform: translateY(-4px); }
.live-card img { width: 100%; aspect-ratio: 3/4; }
.live-info { padding: 12px; }
.live-info h3 { font-size: 16px; margin-bottom: 4px; }
.live-info .tags { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap;}
.live-info .tags span { background: var(--panel-light); padding: 2px 6px; border-radius: 4px; }
.live-info p { font-size: 13px; color: var(--text-sub); line-height: 1.4; }

/* 完结魔改剧板块 - 左右结构 */
.sec-magic {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--gradient-glow);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
}
.magic-left { flex: 1; }
.magic-left ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.magic-left li {
  background: var(--panel);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--orange);
  font-size: 14px;
}
.magic-right { flex: 1; display: flex; gap: 12px; justify-content: center; }
.magic-right img { width: 48%; aspect-ratio: 3/4; border-radius: 12px; border: 1px solid var(--border-strong); }

/* 本周热播榜 - 纵向时间轴 */
.sec-rank { margin-bottom: 40px; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 20px; border-left: 2px solid var(--border-strong); }
.timeline-item { position: relative; margin-bottom: 20px; padding-left: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -27px; top: 4px; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold);
}
.timeline-item .time { font-weight: bold; color: var(--gold); font-size: 16px; }
.timeline-item .content { background: var(--panel); padding: 12px 16px; border-radius: 8px; margin-top: 6px; font-size: 14px; }

/* 热门点评 */
.sec-review { background: var(--bg-darker); padding: 40px 20px; border-radius: 20px; margin-bottom: 40px; }
.review-list { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }
.review-item { display: flex; gap: 15px; background: var(--panel); padding: 15px; border-radius: 12px; align-items: flex-start; }
.review-item img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid var(--border-strong);}
.review-content p { font-size: 14px; margin-bottom: 4px; }
.review-content .name { font-size: 12px; color: var(--text-sub); }

/* 会员权益 */
.sec-vip { padding: 40px 20px; border-radius: 20px; margin-bottom: 40px; }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.vip-card { background: var(--panel); padding: 20px; border-radius: 12px; border-top: 3px solid var(--gold); }
.vip-card h3 { color: var(--gold); margin-bottom: 8px; font-size: 18px; }
.vip-card p { font-size: 14px; color: var(--text-sub); }

/* 隐私安全 / 意见反馈 / 常见问题 / 未成年保护 */
.sec-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.box-panel { background: var(--panel); padding: 20px; border-radius: 12px; border: 1px solid var(--border-light); }
.box-panel h3 { font-size: 18px; margin-bottom: 12px; color: var(--gold); }
.box-panel ul { list-style: none; padding-left: 0; }
.box-panel li { margin-bottom: 10px; font-size: 14px; padding-left: 16px; position: relative; color: var(--text-sub);}
.box-panel li::before { content: '•'; position: absolute; left: 0; color: var(--orange); font-weight: bold;}

/* 安装步骤 */
.sec-install { padding: 40px 20px; max-width: 1200px; margin: 0 auto; border-radius: 20px; background: var(--gradient-glow); margin-bottom: 40px; }
.install-layout { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.install-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.install-step { background: var(--bg-dark); padding: 20px; border-radius: 12px; text-align: center; flex: 1; min-width: 200px; border: 1px solid var(--border-strong); }
.install-step .num { display: inline-block; width: 30px; height: 30px; background: var(--gradient-main); color: var(--bg-dark); border-radius: 50%; line-height: 30px; font-weight: bold; margin-bottom: 10px; }
.install-step p { font-size: 14px; }
.install-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.install-bottom a { font-size: 14px; padding: 8px 20px;}

/* 浮动下载窗口 */
.float-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(51, 21, 14, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 999;
  width: calc(100% - 40px);
  max-width: 400px;
  justify-content: space-between;
}
.float-info { display: flex; align-items: center; gap: 10px; }
.float-info img { width: 36px; height: 36px; border-radius: 8px; }
.float-text { font-size: 12px; line-height: 1.3; }
.float-text strong { color: var(--gold); display: block; font-size: 14px;}
.float-text span { color: var(--text-sub); }

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  border: 1px solid var(--border-strong);
}
.modal-content p { font-size: 15px; margin-bottom: 16px; color: var(--text-main); }
.modal-content .link-box {
  background: var(--bg-dark);
  padding: 10px;
  border-radius: 8px;
  word-break: break-all;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.modal-content button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--gradient-main);
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

/* 页脚 */
footer {
  background: var(--bg-darker);
  padding: 30px 20px 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-sub);
  font-size: 12px;
}
.footer-links { margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-links a:hover { color: var(--gold); }
.footer-info { margin-bottom: 8px; }
.footer-info a { color: var(--text-sub); }
.footer-info a:hover { color: var(--gold); }
.footer-time { font-size: 11px; opacity: 0.6; margin-top: 8px; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero h1 { font-size: 28px; }
  .hero-images { grid-template-columns: repeat(2, 1fr); }
  .sec-magic { flex-direction: column; }
  .magic-right { width: 100%; }
  .magic-left ul { grid-template-columns: 1fr; }
  .sec-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 12, 8, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 15px;
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 22px; }
  .hero p.desc { font-size: 14px; }
  .hero-downloads { flex-direction: column; width: 100%; align-items: center; }
  .hero-downloads .btn-download { width: 100%; max-width: 280px; }
  .seo-live-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .live-info h3 { font-size: 14px; }
  .timeline { padding-left: 15px; }
  .timeline-item::before { left: -22px; }
  .float-download { padding: 8px 15px; }
  .float-text strong { font-size: 12px; }
  .float-text span { font-size: 10px; }
  .sec-install { padding: 20px 15px; }
  .install-step { min-width: 100%; }
}