:root {
  --main-grad: linear-gradient(135deg, #FFC64D 0%, #FF8A3D 50%, #FF5470 100%);
  --bg-dark: #1A0C08;
  --bg-darker: #1F0E09;
  --panel-1: #33150E;
  --panel-2: #4A1E13;
  --text-main: #FFF3EA;
  --text-sub: #C29C8A;
  --border-light: rgba(255,196,150,.10);
  --border-strong: rgba(255,196,150,.20);
  --glow: radial-gradient(circle at 20% 20%, rgba(255,198,77,.15), transparent 40%),
          radial-gradient(circle at 80% 30%, rgba(255,138,61,.12), transparent 45%),
          radial-gradient(circle at 50% 80%, rgba(255,84,112,.1), transparent 50%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  background-image: var(--glow);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* space for float widget */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
.text-grad {
  background: var(--main-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 12, 8, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: none;
  gap: 20px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: #FFC64D; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--main-grad);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Collapsible mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--panel-1);
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 20px;
}
.mobile-nav a {
  padding: 12px 0;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.active { display: flex; }

/* Hero */
.hero {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  color: #1A0C08;
  background: var(--main-grad);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 61, 0.3);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: #FFC64D;
}
.btn-outline:hover {
  background: rgba(255, 198, 77, 0.1);
  box-shadow: none;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-gallery img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
}

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

/* Main Sections */
.section {
  padding: 50px 0;
}
.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 10px;
}
.section-desc {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 30px;
  font-size: 15px;
}

/* 真人短剧 - Card Grid */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card-item {
  background: var(--panel-1);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.3s, border-color 0.3s;
}
.card-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}
.card-item img {
  width: 100%;
  height: 200px;
}
.card-body {
  padding: 16px;
}
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-sub); margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 196, 150, 0.1);
  color: #FFC64D;
}
.date-info { font-size: 12px; color: var(--text-sub); }

/* 完结魔改剧 - List */
.list-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.list-item {
  display: flex;
  gap: 15px;
  background: var(--panel-2);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}
.list-item img {
  width: 80px;
  height: 110px;
  border-radius: 8px;
  flex-shrink: 0;
}
.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.list-content h3 { font-size: 16px; margin-bottom: 6px; }
.list-content p { font-size: 13px; color: var(--text-sub); }

/* 本周热播榜 - Custom Timeline/Rank */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rank-item {
  display: flex;
  align-items: center;
  background: var(--panel-1);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
}
.rank-num {
  font-size: 24px;
  font-weight: 800;
  color: #FF5470;
  width: 40px;
  text-align: center;
  font-style: italic;
}
.rank-img {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  margin-right: 15px;
}
.rank-info { flex: 1; }
.rank-info h3 { font-size: 16px; margin-bottom: 4px; }
.rank-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 196, 150, 0.1);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.rank-bar {
  height: 100%;
  background: var(--main-grad);
  border-radius: 3px;
}

/* 热门点评 - Chat bubbles */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review-item {
  display: flex;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}
.review-bubble {
  background: var(--panel-2);
  padding: 12px 16px;
  border-radius: 0 16px 16px 16px;
  border: 1px solid var(--border-light);
}
.review-bubble p { font-size: 14px; color: var(--text-main); }
.review-bubble span { font-size: 12px; color: var(--text-sub); display: block; margin-top: 6px; }

/* 会员权益 & 隐私安全 - Accordion/Grid */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.acc-item {
  background: var(--panel-1);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 16px;
}
.acc-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #FFC64D;
}
.acc-item p { font-size: 14px; color: var(--text-sub); }

/* 常见问题 & 意见反馈 - Q&A */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 16px;
}
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: #FFC64D; }
.faq-a { font-size: 14px; color: var(--text-sub); }

/* 未成年保护 - Horizontal Scroll */
.scroll-x-wrap {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: #FF8A3D var(--panel-1);
}
.scroll-x-wrap::-webkit-scrollbar { height: 6px; }
.scroll-x-wrap::-webkit-scrollbar-thumb { background: #FF8A3D; border-radius: 3px; }
.protect-card {
  min-width: 250px;
  background: var(--panel-1);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-light);
}
.protect-card h4 { font-size: 16px; color: #FFC64D; margin-bottom: 8px; }
.protect-card p { font-size: 14px; color: var(--text-sub); }

/* 排片时间轴 */
.timeline-section {
  background: var(--panel-2);
  border-radius: 20px;
  padding: 30px 20px;
  border: 1px solid var(--border-strong);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.tl-item {
  display: flex;
  gap: 20px;
  position: relative;
}
.tl-time {
  width: 70px;
  font-weight: 700;
  color: #FF8A3D;
  font-size: 14px;
  text-align: right;
  padding-top: 2px;
}
.tl-content {
  flex: 1;
  background: var(--panel-1);
  padding: 12px 16px;
  border-radius: 12px;
  position: relative;
}
.tl-content::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFC64D;
  border: 2px solid var(--bg-dark);
}
.tl-content h4 { font-size: 15px; margin-bottom: 4px; }
.tl-content p { font-size: 13px; color: var(--text-sub); }

/* Download Section */
.download-section {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--bg-dark) 100%);
  border-radius: 24px;
  padding: 40px 20px;
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.dl-visual img {
  width: 200px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dl-content {
  text-align: center;
}
.dl-content h2 { margin-bottom: 10px; }
.dl-steps {
  margin: 20px 0;
  text-align: left;
  display: inline-block;
}
.dl-steps li {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}
.dl-steps li::before {
  content: '•';
  color: #FFC64D;
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

/* Float Widget */
.float-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(51, 21, 14, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  z-index: 999;
  width: 90%;
  max-width: 400px;
}
.float-download img { height: 24px; border-radius: 4px; }
.float-info { flex: 1; overflow: hidden; }
.float-info p { font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-btn {
  background: var(--main-grad);
  color: #1A0C08;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 30px 0;
  margin-top: 50px;
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
}
.footer-links {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: #FFC64D; }
.footer-copy { margin-bottom: 10px; }
.footer-copy a { color: var(--text-sub); }
.footer-time { font-size: 12px; color: var(--text-sub); margin-top: 10px; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--panel-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.modal-box p { font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.modal-box code {
  display: block;
  padding: 10px;
  background: var(--bg-darker);
  border-radius: 8px;
  font-size: 12px;
  word-break: break-all;
  color: #FFC64D;
  margin-bottom: 16px;
}
.modal-close {
  background: var(--main-grad);
  color: #1A0C08;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Breakpoints */
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
  .nav-links { display: flex; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; padding-right: 30px; }
  .hero-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero-gallery img { height: 220px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .list-layout { flex-direction: row; flex-wrap: wrap; }
  .list-item { width: calc(50% - 10px); }
  .accordion-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .review-list { display: grid; grid-template-columns: 1fr 1fr; }
  .download-section { flex-direction: row; justify-content: center; padding: 50px; }
  .dl-content { text-align: left; flex: 1; max-width: 500px; }
  .dl-visual img { width: 260px; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 42px; }
  .hero-gallery img { height: 280px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .list-item { width: calc(33.333% - 14px); }
  .rank-list { grid-template-columns: 1fr 1fr 1fr; }
  .review-list { grid-template-columns: 1fr 1fr 1fr; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .acc-item h4 { font-size: 18px; }
  .timeline::before { left: 50px; }
  .tl-content::before { left: -36px; }
  .tl-time { width: 90px; }
}