:root {
  --brand-yellow: #ffd233;
  --brand-yellow-deep: #ffb800;
  --ink: #181512;
  --ink-soft: #4a4138;
  --paper: #fffaf0;
  --paper-warm: #fdf1dc;
  --line: #e8dcc6;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(120, 92, 30, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand img {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.main-nav a:hover {
  background: var(--brand-yellow);
  color: var(--ink);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 210, 51, 0.45), transparent 46%),
    radial-gradient(circle at 6% 92%, rgba(255, 180, 90, 0.28), transparent 50%),
    linear-gradient(160deg, #fffdf7 0%, #fdf0d6 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 26px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff9f1c, #ff4d6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 480px;
}
.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-kpis span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.dl-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 108px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.dl-btn small {
  font-size: 11px;
  font-weight: 500;
  color: #96877a;
}
.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: #fffdf6;
}
.dl-btn.primary {
  background: linear-gradient(120deg, #ffd233, #ff9f1c);
  border-color: transparent;
  color: #3a2a00;
}
.dl-btn.primary small { color: #6b5200; }
.hero-note {
  font-size: 12px;
  color: #9a8a76;
}

/* Hero carousel */
.hero-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.hero-gallery figure {
  position: relative;
  width: 30%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(120, 92, 30, 0.22);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.hero-gallery figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.hero-gallery figure.middle {
  width: 38%;
  z-index: 2;
  transform: translateY(-10px);
  border: 3px solid #fff;
}
.hero-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 10px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.hero-gallery:hover figure:not(.middle) { transform: scale(1.03); }

/* Marquee */
.marquee {
  background: linear-gradient(90deg, #2a1b00, #4a2c05 50%, #2a1b00);
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid #6b4a10;
  border-bottom: 1px solid #6b4a10;
}
.marquee-track {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffe066, #ff9f1c, #ff4d6d, #ffe066);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Shared section ---------- */
.section {
  padding: 60px 20px;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-head {
  margin-bottom: 30px;
  max-width: 640px;
}
.section-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}
.section-head p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 原创短剧 — 横向海报滑条 */
.sec-original { background: #fff4dd; }
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #e0c48a; border-radius: 99px; }
.rail-card {
  flex: 0 0 172px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rail-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.rail-card-body { padding: 9px 10px 12px; }
.rail-card-body h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.4;
}
.rail-card-body p { font-size: 12px; color: #8c7c68; line-height: 1.5; }
.tagline {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #fff0c9;
  color: #9a6b00;
  font-weight: 700;
}

/* 魔改短剧 — 左侧竖图 + 右侧时间轴/列表 */
.sec-magai { background: #1c1620; color: #f4eef8; }
.sec-magai .section-head h2 { color: #ffe9ff; }
.sec-magai .section-head p { color: #b5a6bd; }
.magai-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: start;
}
.magai-poster {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid #46374f;
}
.magai-poster img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.magai-poster figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: #c7b8d1;
  background: #2a2130;
}
.magai-list { display: grid; gap: 12px; }
.magai-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #2a2130;
  border: 1px solid #40324a;
  border-radius: 12px;
  transition: border-color 0.25s, background 0.25s;
}
.magai-item:hover { border-color: #a86bd8; background: #32253b; }
.magai-num {
  font-size: 18px;
  font-weight: 900;
  color: #c68cf5;
  line-height: 1.3;
}
.magai-item h3 { font-size: 14px; font-weight: 800; margin-bottom: 2px; color: #f8f0ff; }
.magai-item p { font-size: 12.5px; color: #b6a8c0; line-height: 1.6; }

/* 热播短剧 — 双列卡片网格 */
.sec-hot { background: #eef6f0; }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hot-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #d8e8dc;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hot-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40, 100, 60, 0.12); }
.hot-card img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 9px; width: 100%; }
.hot-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.hot-card p { font-size: 12.5px; color: #6c7d71; line-height: 1.6; }
.hot-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.hot-meta span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #dff0e4; color: #2f7a4a; font-weight: 700;
}

/* 今日新剧 — 时间轴排片 */
.sec-today { background: #fff0f3; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(#ff9db4, #ffcf7a);
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: "";
  position: absolute; left: -25px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid #ff7d9c;
}
.tl-time {
  font-size: 13px; font-weight: 900; color: #d6456b;
  letter-spacing: 1px; margin-bottom: 2px;
}
.tl-item h3 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.tl-item p { font-size: 13px; color: #82606b; }

/* 会员权益 / 隐私安全 */
.sec-rights { background: #fbf6ff; }
.rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.right-card {
  background: #fff;
  border: 1px solid #e6d9f2;
  border-radius: 16px;
  padding: 18px 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.right-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(110, 70, 160, 0.12); }
.right-card h3 {
  font-size: 15px; font-weight: 800; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.right-card h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(135deg, #a86bd8, #ff9db4);
}
.right-card p { font-size: 13px; color: #6f6579; line-height: 1.65; }

/* 意见反馈 / 常见问题 — 一问一答 */
.sec-faq { background: #f2f7fb; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.faq-col h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.qa {
  background: #fff;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.qa h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: #23506b; }
.qa p { font-size: 13px; color: #5d7485; line-height: 1.65; }

/* 下载专区 */
.sec-download { background: #1b1a17; color: #f6f1e7; }
.sec-download .section-head h2 { color: #ffe9a8; }
.sec-download .section-head p { color: #b5a98f; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.step {
  background: #26241f;
  border: 1px solid #3b372e;
  border-radius: 14px;
  padding: 16px 15px;
}
.step b {
  display: inline-block;
  font-size: 12px;
  color: #1b1a17;
  background: #ffd233;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
}
.step h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 12.5px; color: #a99e88; line-height: 1.65; }
.sec-download .dl-btn {
  background: #26241f;
  border-color: #3b372e;
  color: #f6f1e7;
}
.sec-download .dl-btn small { color: #a99e88; }
.sec-download .dl-btn.primary {
  background: linear-gradient(120deg, #ffd233, #ff9f1c);
  border-color: transparent;
  color: #3a2a00;
}

/* 截图墙 */
.sec-wall { background: #fffaf0; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.wall-grid figure {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.wall-grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform 0.3s; }
.wall-grid figure:hover img { transform: scale(1.04); }

/* ---------- Floating download ---------- */
.float-dl {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(120, 92, 30, 0.25);
  max-width: calc(100vw - 28px);
}
.float-dl img {
  height: 40px; width: 40px; border-radius: 11px; object-fit: cover; flex-shrink: 0;
}
.float-dl-text { min-width: 0; }
.float-dl-text strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.float-dl-text span {
  display: block; font-size: 11px; color: #96877a; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.float-dl a.go {
  flex-shrink: 0;
  background: linear-gradient(120deg, #ffd233, #ff9f1c);
  color: #3a2a00;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
}

/* Copy modal */
.copy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 10, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.copy-modal.show { display: flex; }
.copy-box {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.copy-box p { font-size: 14px; color: var(--ink); margin-bottom: 12px; line-height: 1.6; }
.copy-box code {
  display: block;
  font-size: 12px;
  background: #fdf3dc;
  border: 1px dashed #e0c48a;
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 14px;
  word-break: break-all;
  color: #7a5c00;
}
.copy-box button {
  border: none;
  border-radius: 999px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(120deg, #ffd233, #ff9f1c);
  color: #3a2a00;
  cursor: pointer;
  margin: 0 4px;
}
.copy-box button.ghost { background: #f1ece2; color: #6b6255; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14110d;
  color: #8d8477;
  padding: 34px 20px 30px;
  font-size: 12.5px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}
.site-footer h4 { font-size: 13px; color: #c9c0b1; margin-bottom: 8px; }
.site-footer p { line-height: 1.75; margin-bottom: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-nav a { color: #8d8477; }
.footer-nav a:hover { color: #ffd233; }
.footer-bottom {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid #2a251e;
  font-size: 12px;
  color: #776f63;
  line-height: 1.8;
}
.footer-bottom a { color: #a49a89; }
.footer-bottom a:hover { color: #ffd233; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 28px; padding-top: 28px; }
  .magai-layout { grid-template-columns: 250px 1fr; gap: 24px; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .wall-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: 92px; }
  .header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    margin: 4px 0 0;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    background: #fffdf6;
    border: 1px solid var(--line);
    font-size: 14px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 16px 22px;
  }
  .hero-copy h1 { font-size: 26px; }
  .hero-lead { font-size: 14px; }
  .dl-row { gap: 8px; }
  .dl-btn { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 8px 12px; font-size: 13px; }
  .hero-gallery { gap: 8px; }
  .hero-gallery figure { width: 31%; }
  .hero-gallery figure.middle { width: 36%; border-width: 2px; }
  .hero-gallery figcaption { font-size: 10px; padding: 12px 6px 6px; }
  .marquee-track span { font-size: 13px; }
  .section { padding: 40px 16px; }
  .section-head { margin-bottom: 22px; }
  .magai-layout { grid-template-columns: 1fr; }
  .magai-poster { max-width: 260px; margin: 0 auto; }
  .hot-grid { grid-template-columns: 1fr; }
  .hot-card { grid-template-columns: 96px 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rail-card { flex: 0 0 148px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .float-dl { bottom: 12px; padding: 8px 12px 8px 8px; gap: 9px; }
  .float-dl img { height: 34px; width: 34px; }
  .float-dl-text strong { font-size: 13px; }
  .float-dl-text span { font-size: 10px; }
  .float-dl a.go { font-size: 12px; padding: 6px 13px; }
}