:root {
    --bg: #160d12;
    --bg-soft: #1f1118;
    --panel: #26151d;
    --panel-2: #2f1a23;
    --line: rgba(255, 143, 173, 0.16);
    --peach: #ff7a9e;
    --peach-2: #ffb3a7;
    --peach-deep: #d94f74;
    --text: #f6e9ee;
    --text-dim: #c2a6b2;
    --text-faint: #8d6f7b;
  }

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

  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 76px;
  }

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

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

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

  /* ---------- 顶部 ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(22, 13, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    flex-shrink: 0;
  }

  .brand img {
    height: 34px;
    width: auto;
    border-radius: 8px;
  }

  .nav {
    display: none;
    gap: 22px;
    font-size: 14px;
    color: var(--text-dim);
  }

  .nav a:hover { color: var(--peach); }

  .header-dl {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach), var(--peach-deep));
    color: #2a0d17;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* ---------- 首屏 ---------- */
  .hero {
    position: relative;
    padding: 42px 0 54px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 15% 0%, rgba(255, 122, 158, 0.20), transparent 58%),
      radial-gradient(ellipse at 90% 90%, rgba(217, 79, 116, 0.16), transparent 55%),
      var(--bg);
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(255, 122, 158, 0.12), transparent 70%);
    pointer-events: none;
  }

  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 34px;
  }

  .hero-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 122, 158, 0.10);
    color: var(--peach-2);
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .hero h1 {
    margin: 16px 0 14px;
    font-size: 32px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--peach);
  }

  .hero-lead {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 560px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-main {
    background: linear-gradient(135deg, var(--peach), var(--peach-deep));
    color: #2a0d17;
    box-shadow: 0 10px 26px rgba(217, 79, 116, 0.32);
  }

  .btn-ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
  }

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

  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-faint);
  }

  .hero-tags span {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* 轮播 */
  .slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }

  .slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
  }

  .slide {
    flex: 0 0 100%;
    position: relative;
  }

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

  .slide-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 16px;
    background: linear-gradient(to top, rgba(15, 8, 12, 0.94), rgba(15, 8, 12, 0));
    font-size: 14px;
    color: #ffe6ed;
  }

  .slide-cap strong { display: block; font-size: 16px; margin-bottom: 2px; }
  .slide-cap span { color: var(--text-dim); font-size: 13px; }

  .slider-dots {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    gap: 7px;
    z-index: 3;
  }

  .slider-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s, width 0.25s;
  }

  .slider-dots i.on {
    width: 20px;
    border-radius: 999px;
    background: var(--peach);
  }

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

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

  .sec-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--peach);
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .sec-head h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.35;
  }

  .sec-head p {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 14px;
    max-width: 640px;
  }

  .rule {
    height: 3px;
    width: 46px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--peach), transparent);
    margin-top: 14px;
  }

  /* 剧库 */
  .library { background: var(--bg-soft); }

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

  .lib-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--panel);
  }

  .lib-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  .lib-card:hover img { transform: scale(1.05); }

  .lib-meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 12px 12px;
    background: linear-gradient(to top, rgba(15, 8, 12, 0.95), rgba(15, 8, 12, 0));
    font-size: 13px;
    line-height: 1.5;
  }

  .lib-meta b { display: block; font-size: 14px; }
  .lib-meta small { color: var(--text-dim); font-size: 12px; }

  /* 专题 */
  .topic { background: var(--bg); }

  .topic-list {
    display: grid;
    gap: 18px;
  }

  .topic-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
  }

  .topic-card img {
    width: 108px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
  }

  .topic-body h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--peach-2);
  }

  .topic-body p {
    font-size: 13.5px;
    color: var(--text-dim);
  }

  .topic-body .chip {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 6px;
    color: var(--peach);
    background: rgba(255, 122, 158, 0.10);
    border: 1px solid var(--line);
  }

  /* 排行榜 */
  .rank { background: var(--bg-soft); }

  .rank-list {
    list-style: none;
    display: grid;
    gap: 10px;
    counter-reset: rank;
  }

  .rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    counter-increment: rank;
  }

  .rank-item::before {
    content: counter(rank);
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.05);
  }

  .rank-item:nth-child(1)::before,
  .rank-item:nth-child(2)::before,
  .rank-item:nth-child(3)::before {
    color: #2a0d17;
    background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  }

  .rank-item img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .rank-txt { min-width: 0; }
  .rank-txt b { display: block; font-size: 15px; }
  .rank-txt span {
    font-size: 12.5px;
    color: var(--text-faint);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank-heat {
    margin-left: auto;
    font-size: 12px;
    color: var(--peach);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 避雷入坑 */
  .guide { background: var(--bg); }

  .guide-cols {
    display: grid;
    gap: 16px;
  }

  .guide-box {
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
  }

  .guide-box h3 {
    font-size: 17px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--peach-2);
  }

  .guide-box h3 i {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-style: normal;
    font-size: 13px;
    background: rgba(255, 122, 158, 0.14);
    color: var(--peach);
  }

  .guide-box ol,
  .guide-box ul {
    list-style: none;
    display: grid;
    gap: 11px;
    font-size: 14px;
    color: var(--text-dim);
  }

  .guide-box li::before {
    content: "·";
    color: var(--peach);
    font-weight: 700;
    margin-right: 8px;
  }

  /* 评价 */
  .reviews { background: var(--bg-soft); }

  .review-grid {
    display: grid;
    gap: 14px;
  }

  .review-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #2a0d17;
    background: linear-gradient(135deg, var(--peach-2), var(--peach));
    flex-shrink: 0;
  }

  .review-top b { font-size: 14px; }
  .review-top span { display: block; font-size: 12px; color: var(--text-faint); }
  .review-card p { font-size: 14px; color: var(--text-dim); }

  /* 常见问题 */
  .faq { background: var(--bg); max-width: 860px; margin: 0 auto; }

  .faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .faq-q {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
  }

  .faq-q::before {
    content: "Q";
    color: var(--peach);
    margin-right: 8px;
    font-size: 13px;
  }

  .faq-a {
    font-size: 14px;
    color: var(--text-dim);
    padding-left: 22px;
  }

  /* 下载 */
  .download {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 122, 158, 0.22), transparent 62%),
      var(--bg-soft);
    text-align: center;
    padding: 60px 0 68px;
    border-top: 1px solid var(--line);
  }

  .download h2 { font-size: 25px; }

  .download p {
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 520px;
    margin: 12px auto 0;
  }

  .platform-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 8px;
  }

  .platform {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-dim);
    min-width: 150px;
    justify-content: flex-start;
    transition: border-color 0.2s, color 0.2s;
  }

  .platform:hover { border-color: var(--peach); color: var(--text); }

  .platform i {
    font-style: normal;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 14px;
    background: rgba(255, 122, 158, 0.14);
    color: var(--peach);
    flex-shrink: 0;
  }

  .platform b { display: block; font-size: 14px; color: var(--text); }
  .platform small { font-size: 11.5px; color: var(--text-faint); }

  .dl-note {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 18px;
  }

  /* 底部固定下载条 */
  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 13, 18, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
  }

  .sticky-txt { min-width: 0; }
  .sticky-txt b { display: block; font-size: 14px; }
  .sticky-txt span { font-size: 11.5px; color: var(--text-faint); }

  .sticky-bar .btn {
    padding: 11px 22px;
    font-size: 14px;
    flex-shrink: 0;
  }

  /* 页脚 */
  .site-footer {
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #120a0e;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    line-height: 1.9;
  }

  .site-footer a { color: var(--text-faint); }
  .site-footer a:hover { color: var(--peach); }
  .site-footer time { color: var(--text-faint); }

  /* ---------- 断点 ---------- */
  @media (min-width: 768px) {
    .nav { display: flex; }
    .hero { padding: 54px 0 64px; }
    .hero-grid { grid-template-columns: 1fr 0.85fr; align-items: center; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .slider { max-width: 360px; margin-left: auto; width: 100%; }
    .lib-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .topic-list { grid-template-columns: repeat(2, 1fr); }
    .rank-list { grid-template-columns: repeat(2, 1fr); }
    .guide-cols { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .section--wide .rank-list { gap: 12px; }
    .sticky-bar { justify-content: center; }
    .sticky-txt { display: none; }
  }

  @media (min-width: 1024px) {
    .hero h1 { font-size: 46px; }
    .lib-grid { grid-template-columns: repeat(5, 1fr); }
    .topic-list { grid-template-columns: repeat(3, 1fr); }
    .review-grid { grid-template-columns: repeat(3, 1fr); }
    .rank-list { grid-template-columns: repeat(3, 1fr); }
    section { padding: 68px 0; }
    .sec-head h2 { font-size: 28px; }
    .download h2 { font-size: 30px; }
  }