:root {
    --ink: #1c1a29;
    --paper: #f7f4ef;
    --accent: #ff4d6d;
    --accent-deep: #b8254a;
    --sky: #34508f;
    --sky-soft: #e3e9f7;
    --cream: #fdf3e3;
    --mint: #e7f3ee;
    --line: rgba(28, 26, 41, .12);
    --muted: #6b6678;
    --radius: 18px;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.7;
    font-size: 16px;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
  p { margin: 0 0 12px; }
  ul { margin: 0; padding: 0; list-style: none; }
  .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

  /* 顶部导航 */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 244, 239, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    display: flex; align-items: center; gap: 14px;
    max-width: 1180px; margin: 0 auto; padding: 10px 20px;
    flex-wrap: wrap;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
  .brand img { height: 34px; width: auto; border-radius: 8px; }
  .nav-toggle {
    margin-left: auto; display: none;
    background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 6px 12px; font-size: 14px;
    color: var(--ink); font-family: inherit;
  }
  .main-nav { width: 100%; }
  .main-nav ul {
    display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 6px 0 2px;
  }
  .main-nav a {
    display: inline-block; padding: 5px 10px; border-radius: 999px;
    font-size: 14px; color: var(--muted);
    transition: background .2s, color .2s, transform .2s;
  }
  .main-nav a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

  /* 首屏 */
  .hero {
    background:
      radial-gradient(1000px 500px at 85% -10%, #ffe0e6 0, transparent 65%),
      radial-gradient(700px 400px at 5% 110%, #e3e9f7 0, transparent 70%),
      var(--paper);
    padding: 34px 0 0;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  }
  .hero-tag {
    display: inline-block; font-size: 13px; letter-spacing: .06em;
    background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 999px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: 38px; letter-spacing: -.01em; margin-bottom: 14px;
  }
  .hero h1 em { font-style: normal; color: var(--accent-deep); }
  .hero-lead { color: var(--muted); font-size: 16px; max-width: 34em; }
  .dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .dl-btn {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    padding: 9px 18px; border-radius: 12px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--line); background: #fff;
    transition: transform .18s, box-shadow .18s, background .18s;
  }
  .dl-btn small { font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
  .dl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,26,41,.12); }
  .dl-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
  .dl-btn.primary small { color: rgba(255,255,255,.8); }
  .hero-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
  .hero-meta b { color: var(--ink); font-weight: 600; }

  /* 首屏图组 */
  .hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-visual .shot { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(28,26,41,.14); }
  .hero-visual .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
  .hero-visual .shot:hover img { transform: scale(1.05); }
  .hero-visual .shot.tall { grid-row: span 2; aspect-ratio: 3 / 4.4; }
  .hero-visual .shot.small { aspect-ratio: 4 / 3; }

  /* 跑马灯 */
  .marquee {
    margin-top: 30px; overflow: hidden; white-space: nowrap;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: #fff; padding: 10px 0;
  }
  .marquee-track { display: inline-block; animation: slide 26s linear infinite; }
  .marquee span {
    display: inline-block; margin: 0 22px; font-size: 15px; font-weight: 700;
    background: linear-gradient(90deg, #ff4d6d, #ff9a3c, #34508f, #ff4d6d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  section { padding: 56px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 26px; margin-bottom: 8px; }
  .sec-head p { color: var(--muted); font-size: 15px; margin: 0; }

  /* 同款小说魔改 */
  .novel { background: var(--cream); }
  .novel-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
  .novel-side img {
    border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover;
    box-shadow: 0 12px 28px rgba(28,26,41,.16);
  }
  .novel-side figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
  .novel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .novel-list li {
    font-size: 14.5px; padding-left: 20px; position: relative; color: #3b3648;
  }
  .novel-list li::before {
    content: "✎"; position: absolute; left: 0; top: 0; color: var(--accent-deep); font-size: 13px;
  }

  /* AI短剧 */
  .ai { background: #1c1a29; color: #f2efe9; }
  .ai .sec-head p { color: #a9a3bd; }
  .ai-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px;
  }
  .ai-strip figure { margin: 0; border-radius: 14px; overflow: hidden; background: #2a2740; }
  .ai-strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
  .ai-strip h3 { font-size: 16px; padding: 10px 12px 0; }
  .ai-strip p { font-size: 13px; color: #a9a3bd; padding: 4px 12px 12px; margin: 0; }
  .ai-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .ai-notes li {
    font-size: 14px; color: #d9d4e8; border-left: 2px solid var(--accent);
    padding-left: 12px;
  }

  /* 完结魔改剧 - 时间轴 */
  .finished { background: var(--sky-soft); }
  .timeline { position: relative; margin-top: 10px; padding-left: 26px; }
  .timeline::before {
    content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(#34508f, #ff4d6d); border-radius: 2px;
  }
  .timeline li { position: relative; padding: 0 0 18px 8px; }
  .timeline li::before {
    content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px;
    border-radius: 50%; background: #fff; border: 3px solid var(--sky);
  }
  .timeline time { font-weight: 700; color: var(--sky); margin-right: 10px; font-size: 14px; }
  .timeline span { font-size: 14.5px; }

  /* 热播榜 */
  .rank { background: #fff; }
  .rank-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
  .rank-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px dashed var(--line);
  }
  .rank-no {
    flex: none; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    background: var(--paper); color: var(--accent-deep);
  }
  .rank-item p { margin: 0; font-size: 14px; }
  .rank-item b { display: block; font-size: 14.5px; }

  /* 会员权益 */
  .vip { background: var(--mint); }
  .vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  .vip-card {
    background: #fff; border-radius: var(--radius); padding: 16px 18px;
    border: 1px solid rgba(52,80,143,.12);
  }
  .vip-card h3 { font-size: 15.5px; margin-bottom: 6px; }
  .vip-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

  /* 隐私 & 反馈 & FAQ */
  .privacy { background: #f0ece4; }
  .privacy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .privacy-list li, .faq-list li { font-size: 14.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
  .privacy-list b, .faq-list b { color: var(--accent-deep); margin-right: 6px; }

  .feedback { background: #fff; }
  .feedback p { max-width: 44em; }

  .faq { background: linear-gradient(180deg, #fff, #f7f4ef); }
  .faq-list li { display: block; }
  .faq-list q { display: block; font-weight: 600; font-style: normal; margin-bottom: 2px; }
  .faq-list cite { font-style: normal; color: var(--muted); font-size: 13.5px; }

  /* 下载专区 */
  .download { background: var(--ink); color: #f2efe9; }
  .download .sec-head h2 { color: #fff; }
  .download .sec-head p { color: #b6b0c6; }
  .dl-layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
  .steps { counter-reset: s; display: grid; gap: 10px; }
  .steps li {
    counter-increment: s; position: relative; padding-left: 40px;
    font-size: 14.5px; color: #ded9ea;
  }
  .steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 13px;
    display: grid; place-items: center; font-weight: 700;
  }
  .dl-layout .side-img img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; }
  .download .dl-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); }
  .download .dl-btn small { color: #a9a3bd; }
  .download .dl-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
  .download .dl-btn:hover { background: rgba(255,255,255,.1); }
  .download .dl-btn.primary:hover { background: #ff3358; }

  /* 浮动下载 */
  .float-dl {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 60; display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 10px 8px 8px;
    box-shadow: 0 10px 26px rgba(28,26,41,.2);
    max-width: calc(100% - 24px);
  }
  .float-dl img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
  .float-dl .fd-text { font-size: 12px; line-height: 1.35; color: var(--muted); }
  .float-dl .fd-text b { display: block; color: var(--ink); font-size: 13px; }
  .float-dl .fd-go {
    flex: none; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
    padding: 7px 14px; border-radius: 999px;
  }

  /* 页脚 */
  .site-footer {
    background: #efebe3; color: #6b6678; font-size: 12.5px; padding: 28px 0 90px;
    border-top: 1px solid var(--line);
  }
  .footer-grid { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
  .footer-brand { max-width: 320px; }
  .footer-brand b { color: var(--ink); font-size: 13.5px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .footer-nav a:hover { color: var(--accent-deep); }
  .footer-bottom { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #8b8698; }
  .site-footer a { color: #6b6678; }

  /* 弹窗 */
  .modal-mask {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(20,18,30,.55); padding: 20px;
    align-items: center; justify-content: center;
  }
  .modal-mask.on { display: flex; }
  .modal-box {
    background: #fff; border-radius: 18px; padding: 22px; max-width: 360px; width: 100%;
  }
  .modal-box p { font-size: 14px; margin-bottom: 14px; }
  .modal-box input {
    width: 100%; font-size: 12px; padding: 9px 10px; border-radius: 10px;
    border: 1px solid var(--line); color: var(--muted); background: var(--paper);
    font-family: inherit; margin-bottom: 12px;
  }
  .modal-actions { display: flex; gap: 10px; }
  .modal-actions button {
    flex: 1; padding: 9px 0; border-radius: 10px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  }
  .modal-actions .ok { background: var(--accent); border-color: var(--accent); color: #fff; }

  @media (max-width: 1024px) {
    .hero h1 { font-size: 32px; }
    .novel-grid { grid-template-columns: 240px 1fr; gap: 22px; }
    .dl-layout { grid-template-columns: 1fr 210px; }
    .privacy-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    section { padding: 40px 0; }
    .header-inner { padding: 8px 14px; gap: 10px; }
    .brand { font-size: 15px; }
    .brand img { height: 28px; }
    .nav-toggle { display: inline-block; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { gap: 4px; }
    .main-nav a { font-size: 13px; padding: 6px 10px; background: #fff; border: 1px solid var(--line); }
    .hero { padding-top: 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero h1 { font-size: 27px; }
    .hero-visual { grid-template-columns: 1fr 1fr; }
    .hero-visual .shot.tall { grid-row: span 1; aspect-ratio: 3/4; }
    .sec-head h2 { font-size: 22px; }
    .novel-grid { grid-template-columns: 1fr; }
    .novel-side img { aspect-ratio: 16/10; }
    .novel-list, .rank-columns, .ai-notes { grid-template-columns: 1fr; }
    .ai-strip { grid-template-columns: 1fr; }
    .dl-layout { grid-template-columns: 1fr; }
    .dl-layout .side-img { max-width: 220px; }
    .float-dl { bottom: 12px; padding: 6px 8px 6px 6px; gap: 8px; }
    .float-dl .fd-text { font-size: 11px; }
    .float-dl .fd-text b { font-size: 12px; }
    .float-dl .fd-go { padding: 6px 11px; font-size: 12px; }
    .site-footer { padding-bottom: 86px; }
  }