:root {
    --ink: #15151c;
    --ink-soft: #4a4a58;
    --paper: #f5f2ec;
    --paper-2: #efe9df;
    --line: #d9d2c4;
    --accent: #e0452f;
    --accent-deep: #b32c1c;
    --gold: #c99a4b;
    --violet: #5a4a8c;
    --teal: #2c6f6b;
    --ocean: #1f2a44;
    --radius: 18px;
    --shadow: 0 18px 45px -22px rgba(20, 18, 30, 0.55);
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  img { display: block; max-width: 100%; }

  a { color: inherit; text-decoration: none; }

  h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: .2px; }

  p { margin: 0 0 .8em; }

  .wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ---------- 顶部导航 ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(21, 21, 28, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
  }

  .brand img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 9px;
  }

  .nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
  }

  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    display: block;
    padding: 7px 11px;
    color: #d8d5e2;
    font-size: 14.5px;
    border-radius: 9px;
    transition: color .2s, background .2s;
    white-space: nowrap;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--violet));
  }

  /* ---------- 首屏 ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 15% 20%, rgba(224,69,47,.32), transparent 55%),
      radial-gradient(circle at 85% 10%, rgba(90,74,140,.4), transparent 50%),
      linear-gradient(160deg, #1b1b28 0%, #262033 60%, #15151c 100%);
    color: #f3f1ea;
    padding: 46px 0 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero-copy h1 .hl {
    background: linear-gradient(100deg, #ff8a5c, #ffd36b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-copy p {
    color: #cfc9dd;
    font-size: 15.5px;
    max-width: 560px;
  }

  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
    list-style: none;
    padding: 0;
  }

  .hero-tags li {
    font-size: 13px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: #e8e4f2;
  }

  .dl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .18s, box-shadow .18s, background .18s;
    border: 1px solid transparent;
    cursor: pointer;
  }

  .btn:hover { transform: translateY(-2px); }

  .btn-main {
    background: linear-gradient(120deg, var(--accent), #ff7a4d);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(224,69,47,.9);
  }

  .btn-ghost {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.28);
    color: #f1eef8;
  }

  .btn-ghost:hover { background: rgba(255,255,255,.16); }

  .hero-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-poster {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255,255,255,.14);
    animation: softFloat 7s ease-in-out infinite;
  }

  .hero-poster:nth-child(2) { animation-delay: 1.2s; }
  .hero-poster:nth-child(3) { animation-delay: 2.1s; }
  .hero-poster:nth-child(4) { animation-delay: 3s; }

  .hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-poster span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 10px 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to top, rgba(10,10,16,.9), transparent);
  }

  @keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }

  /* 跑马灯 */
  .marquee {
    margin-top: 38px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.28);
  }

  .marquee-track {
    display: flex;
    width: max-content;
    animation: slideLeft 26s linear infinite;
  }

  .marquee-track span {
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #ff6a3d, #ffd24a, #63e6be, #7f8bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  @keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ---------- 通用区块 ---------- */
  section { padding: 58px 0; }

  .sec-head { margin-bottom: 26px; }

  .sec-kicker {
    display: inline-block;
    font-size: 12.5px;
    letter-spacing: 2px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .sec-head h2 {
    font-size: clamp(22px, 3vw, 32px);
  }

  .sec-head p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 15px;
    max-width: 720px;
  }

  /* 魔改专区：左右结构 */
  .sec-mod { background: #efe6f5; }
  .sec-mod .sec-kicker { background: #d8c4ec; color: #4a2d70; }

  .split {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 30px;
    align-items: start;
  }

  .split.rev { grid-template-columns: 1.22fr .78fr; }

  .poster-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid #fff;
    background: #fff;
  }

  .poster-frame img { width: 100%; }

  .poster-caption {
    padding: 12px 14px;
    background: #fff;
    font-size: 13px;
    color: var(--ink-soft);
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
  }

  .tag-row li {
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 5px;
    background: #ede4f7;
    color: #553a7a;
  }

  .list-plain { list-style: none; margin: 0; padding: 0; }

  .list-plain li {
    position: relative;
    padding: 7px 0 7px 22px;
    font-size: 14.5px;
    border-bottom: 1px dashed #d5c7e4;
  }

  .list-plain li::before {
    content: "";
    position: absolute;
    left: 4px; top: 16px;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--violet);
  }

  /* 完结魔改剧：六边形卡片 */
  .sec-done { background: #fdf3e7; }
  .sec-done .sec-kicker { background: #f4d9b2; color: #7a4d12; }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
  }

  .story-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 26px -18px rgba(90,60,20,.55);
    border: 1px solid #f0dfc6;
    transition: transform .2s, box-shadow .2s;
  }

  .story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -18px rgba(90,60,20,.7);
  }

  .story-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .story-card .body { padding: 10px 12px 14px; }

  .story-card h3 { font-size: 15.5px; margin-bottom: 4px; }

  .story-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

  .meta-date {
    display: inline-block;
    margin-top: 7px;
    font-size: 11.5px;
    color: #8a6a3a;
    background: #fbecd3;
    padding: 1px 7px;
    border-radius: 4px;
  }

  /* 热播榜：排行 */
  .sec-rank { background: #1f2a44; color: #eef2fa; }
  .sec-rank .sec-kicker { background: #33436b; color: #ffd36b; }
  .sec-rank .sec-head h2 { color: #fff; }
  .sec-rank .sec-head p { color: #a9b6d4; }

  .rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 26px;
  }

  .rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 14.5px;
  }

  .rank-list .num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    background: linear-gradient(140deg, #ff7a4d, #c93a55);
    color: #fff;
  }

  .rank-list .note {
    margin-left: auto;
    font-size: 12px;
    color: #93a3c6;
    white-space: nowrap;
  }

  /* 用户神评 */
  .sec-comment { background: #eaf3f1; }
  .sec-comment .sec-kicker { background: #c3e2dc; color: #1f5c55; }

  .comment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .comment {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #d3e6e2;
    box-shadow: 0 10px 22px -18px rgba(20,70,66,.6);
  }

  .comment img.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #cfe7e2;
  }

  .comment .who {
    font-size: 13px;
    font-weight: 800;
    color: #1f5c55;
    margin-bottom: 2px;
  }

  .comment p {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
  }

  /* 会员权益 */
  .sec-vip { background: #f7efd9; }
  .sec-vip .sec-kicker { background: #ecd9a5; color: #7a5a12; }

  .vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
  }

  .vip-item {
    background: #fffdf7;
    border: 1px solid #ecdcb4;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
  }

  .vip-item h3 {
    font-size: 15.5px;
    margin-bottom: 6px;
    color: #6b4a08;
  }

  .vip-item p { font-size: 13.5px; color: #6f6449; margin: 0; }

  .vip-item::after {
    content: "";
    position: absolute;
    right: -26px; top: -26px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #f3e4b8;
  }

  /* 隐私 + 反馈 */
  .sec-privacy { background: #f1f1f6; }
  .sec-privacy .sec-kicker { background: #d9d9e9; color: #3d3d63; }

  .twocol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .panel {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e0e0ee;
    box-shadow: 0 14px 30px -24px rgba(40,40,80,.7);
  }

  .panel h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #33335c;
  }

  .panel ul { margin: 0; padding-left: 18px; }

  .panel li {
    font-size: 14px;
    color: var(--ink-soft);
    padding: 3px 0;
  }

  /* 排片时间轴 */
  .sec-schedule { background: #2c2420; color: #f0e7e0; }
  .sec-schedule .sec-kicker { background: #4a3b33; color: #ffc98b; }
  .sec-schedule .sec-head h2 { color: #fff; }
  .sec-schedule .sec-head p { color: #bca99c; }

  .timeline {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .time-slot {
    flex: 1 0 152px;
    background: #3a2f29;
    border: 1px solid #55453c;
    border-radius: 14px;
    padding: 14px;
  }

  .time-slot .t {
    font-size: 19px;
    font-weight: 800;
    color: #ffc98b;
    letter-spacing: 1px;
  }

  .time-slot .s {
    font-size: 13px;
    color: #d8c6b8;
    margin-top: 6px;
    line-height: 1.55;
  }

  /* 常见问题 */
  .sec-faq { background: #f5f2ec; }
  .sec-faq .sec-kicker { background: #e2dccd; color: #55503f; }

  .faq-list { display: grid; gap: 12px; }

  .faq-item {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid var(--line);
  }

  .faq-item h3 {
    font-size: 15.5px;
    margin-bottom: 6px;
    color: #2b2b38;
  }

  .faq-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

  /* 下载专区 */
  .sec-download {
    background:
      radial-gradient(circle at 80% 25%, rgba(201,154,75,.28), transparent 55%),
      linear-gradient(150deg, #201f2e, #2b2340);
    color: #f2eef8;
  }

  .dl-layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 30px;
    align-items: center;
  }

  .dl-layout h2 {
    font-size: clamp(22px, 3vw, 32px);
    color: #fff;
    margin-bottom: 12px;
  }

  .dl-layout p { color: #c6bcd8; font-size: 15px; }

  .steps {
    list-style: none;
    margin: 18px 0 24px;
    padding: 0;
    counter-reset: st;
    display: grid;
    gap: 10px;
  }

  .steps li {
    counter-increment: st;
    position: relative;
    padding-left: 44px;
    font-size: 14.5px;
    color: #ded6ec;
  }

  .steps li::before {
    content: counter(st);
    position: absolute;
    left: 0; top: -2px;
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #201f2e;
    background: linear-gradient(140deg, #ffd36b, #c99a4b);
  }

  .dl-poster {
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,.16);
    box-shadow: var(--shadow);
  }

  .dl-poster img { width: 100%; }

  /* 浮动下载条 */
  .float-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 80;
    width: min(560px, calc(100% - 28px));
    background: rgba(21, 21, 30, .96);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
  }

  .float-bar img {
    width: 36px; height: 36px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .float-bar .fb-txt {
    min-width: 0;
    flex: 1;
  }

  .float-bar .fb-txt strong {
    display: block;
    font-size: 14px;
    color: #fff;
  }

  .float-bar .fb-txt small {
    display: block;
    font-size: 11.5px;
    color: #b4aec9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .float-bar .btn {
    padding: 8px 15px;
    font-size: 13.5px;
    flex-shrink: 0;
  }

  /* 复制链接弹窗 */
  .copy-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    padding: 18px;
  }

  .copy-modal.on { display: flex; }

  .copy-box {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  }

  .copy-box p {
    font-size: 14.5px;
    color: #2b2b38;
    margin-bottom: 14px;
  }

  .copy-box input {
    width: 100%;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #d8d2c4;
    border-radius: 9px;
    margin-bottom: 14px;
    color: #444;
    background: #f7f5f0;
  }

  .copy-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  /* 页脚 */
  .site-footer {
    background: #15151c;
    color: #8f8aa0;
    padding: 30px 0 100px;
    font-size: 12.5px;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    margin: 0; padding: 0;
  }

  .footer-links a { color: #b3aec6; }
  .footer-links a:hover { color: #fff; }

  .footer-meta { line-height: 1.9; }
  .footer-meta a { color: #b3aec6; }
  .footer-meta time { color: #7d788e; }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-copy { text-align: left; }
    .split, .split.rev { grid-template-columns: 1fr; }
    .split.rev .poster-frame { max-width: 340px; }
    .split .poster-frame { max-width: 340px; }
    .dl-layout { grid-template-columns: 1fr; }
    .dl-poster { max-width: 320px; }
    .rank-list { grid-template-columns: 1fr; }
  }

  @media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; padding: 9px 16px; }
    .nav-toggle { display: inline-block; }
    .main-nav {
      display: none;
      width: 100%;
      order: 3;
      padding-bottom: 10px;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
      flex-direction: column;
      gap: 2px;
    }
    .main-nav a { padding: 10px 12px; font-size: 15px; }
    section { padding: 40px 0; }
    .hero { padding-top: 30px; }
    .hero-copy h1 { font-size: 26px; }
    .hero-copy p { font-size: 14.5px; }
    .hero-collage { gap: 9px; }
    .hero-poster span { font-size: 11px; padding: 16px 7px 6px; }
    .btn { padding: 10px 15px; font-size: 14px; }
    .dl-row .btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
    .comment-grid { grid-template-columns: 1fr; }
    .twocol { grid-template-columns: 1fr; }
    .float-bar .fb-txt small { display: none; }
    .float-bar .btn { padding: 8px 12px; font-size: 13px; }
    .site-footer { padding-bottom: 110px; }
    .rank-list .note { display: none; }
  }

  @media (max-width: 420px) {
    .brand span { font-size: 16px; }
    .dl-row .btn { flex: 1 1 100%; }
  }