:root {
  --grad: linear-gradient(135deg, #FFC64D 0%, #FF8A3D 50%, #FF5470 100%);
  --bg: #1A0C08;
  --bg-dark: #1F0E09;
  --panel: #33150E;
  --panel-light: #4A1E13;
  --text: #FFF3EA;
  --text-sub: #C29C8A;
  --border: rgba(255, 196, 150, .10);
  --border-strong: rgba(255, 196, 150, .20);
  --gold: #FFC64D;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
ul { list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  background-clip: text;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  color: #1A0C08;
  background: var(--grad);
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 15px rgba(255, 138, 61, .3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 84, 112, .4); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gold);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 196, 150, .1); box-shadow: none; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 12, 8, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-box { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; color: var(--gold); }
.logo-box img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: none; gap: 20px; }
.nav-links a {
  font-size: 15px;
  color: var(--text-sub);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  padding: 40px 0;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(255, 198, 77, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 60%, rgba(255, 138, 61, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(255, 84, 112, 0.1) 0%, transparent 50%);
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-text p {
  color: var(--text-sub);
  font-size: 16px;
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--gold);
}
.hero-dl { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dl .btn { flex: 1 1 auto; min-width: 120px; }

.hero-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.hero-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-card:hover img { transform: scale(1.05); }
.hero-card .tag {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--grad);
  color: #1A0C08;
  font-weight: bold;
}

/* Marquee */
.marquee-box {
  margin-top: 40px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--panel);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}
.marquee-content span {
  font-size: 18px;
  font-weight: bold;
  margin: 0 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common */
section { padding: 50px 0; border-bottom: 1px solid var(--border); }
.sec-title { font-size: 24px; margin-bottom: 10px; text-align: center; }
.sec-sub { color: var(--text-sub); font-size: 14px; text-align: center; margin-bottom: 30px; }

/* 真人短剧 */
.sec-live { background: var(--bg-dark); }
.live-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.live-left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.live-poster { border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--border); }
.live-poster img { width: 100%; height: 100%; }
.live-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.live-item {
  background: var(--panel);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color .3s;
}
.live-item:hover { border-color: var(--border-strong); }
.live-item h3 { font-size: 15px; color: var(--gold); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-item p { font-size: 12px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 完结魔改剧 */
.sec-magic { background: var(--bg); }
.magic-list { display: flex; flex-direction: column; gap: 20px; }
.magic-row {
  display: flex;
  gap: 15px;
  background: var(--panel);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.magic-img { width: 100px; flex-shrink: 0; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; }
.magic-img img { width: 100%; height: 100%; }
.magic-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.magic-info h3 { font-size: 16px; color: var(--gold); margin-bottom: 6px; }
.magic-info p { font-size: 13px; color: var(--text-sub); margin-bottom: 10px; }
.magic-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.magic-meta span { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--panel-light); color: var(--gold); }

/* 本周热播榜 */
.sec-rank { background: var(--bg-dark); }
.rank-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.rank-card {
  display: flex;
  align-items: center;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  gap: 15px;
}
.rank-num {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  width: 30px;
  text-align: center;
  color: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-card:nth-child(1) .rank-num, .rank-card:nth-child(2) .rank-num, .rank-card:nth-child(3) .rank-num { font-size: 28px; text-shadow: 0 0 10px rgba(255, 198, 77, 0.3); }
.rank-img { width: 60px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.rank-img img { width: 100%; height: 100%; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.rank-info p { font-size: 12px; color: var(--text-sub); }
.rank-score { font-size: 18px; font-weight: bold; color: #FF8A3D; }

/* 热门点评 */
.sec-review { background: var(--bg); }
.review-list { display: grid; grid-template-columns: 1fr; gap: 15px; }
.review-item {
  background: var(--panel);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-user img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); }
.review-user span { font-size: 13px; color: var(--text-sub); }
.review-content { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.review-tags { font-size: 12px; color: var(--gold); }

/* 会员权益 */
.sec-member { background: var(--bg-dark); }
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.member-card {
  background: var(--panel);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-card h3 { font-size: 15px; color: var(--gold); }
.member-card p { font-size: 12px; color: var(--text-sub); }

/* 隐私安全 / 未成年保护 */
.sec-privacy { background: var(--bg); }
.privacy-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.privacy-card {
  background: var(--panel);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
}
.privacy-card h3 { font-size: 16px; color: var(--gold); margin-bottom: 8px; }
.privacy-card p { font-size: 14px; color: var(--text-sub); }

/* 时间轴 */
.sec-timeline { background: var(--bg-dark); }
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
}
.tl-time { font-size: 16px; font-weight: bold; color: var(--gold); margin-bottom: 4px; }
.tl-desc { font-size: 14px; color: var(--text-sub); }

/* 意见反馈 / FAQ */
.sec-faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  padding: 15px;
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-light);
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 18px; }
.faq-item.active .faq-q::after { content: '-'; }
.faq-a {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px;
  color: var(--text-sub);
}
.faq-item.active .faq-a { padding: 15px; max-height: 200px; }

/* Screenshot Wall */
.sec-wall { background: var(--bg-dark); }
.wall-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  scroll-snap-type: x mandatory;
}
.wall-scroll::-webkit-scrollbar { height: 6px; }
.wall-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.wall-item {
  flex: 0 0 140px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}
.wall-item img { width: 100%; height: 100%; }

/* Download Section */
.sec-dl {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.dl-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--panel);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 1;
}
.dl-info h2 { font-size: 22px; margin-bottom: 10px; }
.dl-info p { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }
.dl-steps { margin-bottom: 20px; }
.dl-steps h3 { font-size: 16px; color: var(--gold); margin-bottom: 10px; }
.dl-steps ol { padding-left: 20px; font-size: 14px; color: var(--text-sub); }
.dl-steps li { margin-bottom: 6px; }
.dl-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dl-btns .btn { width: 100%; }
.dl-img { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--border); }
.dl-img img { width: 100%; height: 100%; }

/* Floating Download */
.float-dl {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: rgba(51, 21, 14, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.float-left { display: flex; align-items: center; gap: 10px; }
.float-left img { width: 30px; height: 30px; border-radius: 6px; }
.float-text { font-size: 12px; }
.float-text span { display: block; color: var(--gold); font-weight: bold; }
.float-text small { color: var(--text-sub); }
.float-btn { padding: 8px 16px; font-size: 13px; }

/* Footer */
footer {
  padding: 30px 0;
  background: var(--bg-dark);
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.footer-nav a:hover { color: var(--gold); }
.footer-info { margin-bottom: 10px; line-height: 1.8; }
.footer-info a { color: var(--text-sub); }
.footer-info a:hover { color: var(--gold); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--panel);
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  border: 1px solid var(--border-strong);
}
.modal-content p { font-size: 15px; margin-bottom: 15px; color: var(--text); }
.modal-input {
  width: 100%;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-sub);
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 13px;
  text-align: center;
}
.modal-btn { width: 100%; }

/* Desktop Breakpoints */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  
  .hero-grid { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-images { flex: 1; grid-template-columns: repeat(2, 1fr); }
  
  .live-layout { flex-direction: row; }
  .live-left { flex: 1; }
  .live-right { flex: 1; }
  
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .review-list { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-container { flex-direction: row; align-items: center; }
  .dl-info { flex: 1; }
  .dl-img { flex: 0 0 200px; }
  .dl-btns { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 42px; }
  .live-right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .magic-list { flex-direction: row; flex-wrap: wrap; }
  .magic-row { flex: 1 1 calc(50% - 15px); }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .review-list { grid-template-columns: repeat(3, 1fr); }
}