:root {
    --red-1: #e63946;
    --red-2: #ff6b6b;
    --red-soft: rgba(230, 57, 70, 0.08);
    --yellow: #ffd166;
    --yellow-deep: #f4b400;
    --ink: #2b2b33;
    --ink-soft: #6b6b76;
    --bg: #fffaf8;
    --card: #ffffff;
    --line: #f0e2df;
    --radius: 14px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 107, 107, 0.10), transparent 42%),
      radial-gradient(circle at 88% 22%, rgba(255, 209, 102, 0.14), transparent 40%);
    pointer-events: none;
    z-index: 0;
  }
  .fa-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }
  .fa-rain i {
    position: absolute;
    top: -10vh;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(230,57,70,0), rgba(230,57,70,0.45));
    animation: fall linear infinite;
  }
  .fa-rain i:nth-child(1) { left: 6%; animation-duration: 9s; animation-delay: 0s; }
  .fa-rain i:nth-child(2) { left: 18%; animation-duration: 12s; animation-delay: 2s; width: 8px; height: 8px; }
  .fa-rain i:nth-child(3) { left: 31%; animation-duration: 10s; animation-delay: 4s; }
  .fa-rain i:nth-child(4) { left: 44%; animation-duration: 14s; animation-delay: 1s; width: 5px; height: 5px; }
  .fa-rain i:nth-child(5) { left: 58%; animation-duration: 11s; animation-delay: 3s; }
  .fa-rain i:nth-child(6) { left: 71%; animation-duration: 13s; animation-delay: 5s; width: 9px; height: 9px; }
  .fa-rain i:nth-child(7) { left: 84%; animation-duration: 9.5s; animation-delay: 2.5s; }
  .fa-rain i:nth-child(8) { left: 93%; animation-duration: 15s; animation-delay: 6s; width: 5px; height: 5px; }
  @keyframes fall {
    0% { transform: translateY(-10vh) scale(0.8); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(110vh) scale(1.1); opacity: 0; }
  }
  .wrap {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ============ 导航 ============ */
  header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 248, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .brand img {
    height: 34px;
    width: auto;
    border-radius: 8px;
    display: block;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
  }
  .nav-links a {
    display: inline-block;
    padding: 6px 11px;
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 20px;
    transition: color .2s, background .2s;
  }
  .nav-links a:hover { color: var(--red-1); background: var(--red-soft); }
  .nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--red-1);
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
  }
  .nav-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
    color: #6b4a00 !important;
    font-weight: 700;
    padding: 8px 18px !important;
    border-radius: 22px !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.35);
    white-space: nowrap;
  }

  /* ============ 首屏 ============ */
  .hero {
    padding: 46px 0 30px;
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1.28;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #c1121f, var(--red-1), #ff8a5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero p.lead {
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 26px;
  }
  .hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffe08a, var(--yellow-deep));
    color: #5c3d00;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(244, 180, 0, 0.45);
    transition: transform .2s, box-shadow .2s;
  }
  .btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(244, 180, 0, 0.55); }
  .hero-note { font-size: 13px; color: var(--ink-soft); }
  .hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
  }
  .hero-tags span {
    font-size: 13px;
    color: var(--red-1);
    background: var(--red-soft);
    border: 1px solid rgba(230, 57, 70, 0.18);
    padding: 6px 14px;
    border-radius: 20px;
  }

  /* 轮播 */
  .carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(200, 60, 60, 0.22);
    border: 4px solid #fff;
    background: #f4e6e3;
  }
  .carousel-stage {
    position: relative;
    aspect-ratio: 3 / 4.1;
    width: 100%;
  }
  .carousel-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity .5s ease;
  }
  .carousel-stage img.is-hidden { opacity: 0; }
  .carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 4;
  }
  .carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
  }
  .carousel-dots button.active { background: var(--yellow); width: 20px; border-radius: 5px; }

  /* 滚动横幅 */
  .ticker {
    margin-top: 34px;
    background: linear-gradient(90deg, var(--red-1), #ff8a5c, var(--red-1));
    border-radius: 22px;
    overflow: hidden;
    padding: 11px 0;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.22);
  }
  .ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMove 26s linear infinite;
  }
  .ticker-track span {
    color: #fff;
    font-size: 14px;
    padding: 0 34px;
    white-space: nowrap;
    position: relative;
  }
  .ticker-track span::after {
    content: "✦";
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
  }
  @keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ============ 通用区块 ============ */
  section { padding: 58px 0; position: relative; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 {
    font-size: 28px;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
  }
  .section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red-1), var(--yellow-deep));
  }
  .section-head p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-top: 10px;
    max-width: 720px;
  }

  /* 卡片网格 */
  .poster-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .poster-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(180, 100, 90, 0.08);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
  }
  .poster-card:hover { transform: translateY(-5px); box-shadow: 0 14px 26px rgba(200, 80, 70, 0.16); }
  .poster-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f6e8e5;
  }
  .poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: background .2s, transform .2s;
    pointer-events: none;
  }
  .play-btn::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 13px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
  }
  .poster-card:hover .play-btn { background: rgba(230, 57, 70, 0.75); transform: translate(-50%, -50%) scale(1.08); }
  .poster-body { padding: 10px 11px 12px; }
  .poster-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .poster-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .poster-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--red-1);
    font-weight: 600;
    margin-top: 6px;
  }
  .poster-meta .fire { color: #ff7849; }

  /* 剧库横滑 */
  .scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-row::-webkit-scrollbar { height: 6px; }
  .scroll-row::-webkit-scrollbar-thumb { background: #f0c9c4; border-radius: 3px; }
  .scroll-row .poster-card { scroll-snap-align: start; }

  /* 排行榜 */
  .rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .rank-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(180, 100, 90, 0.07);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
  }
  .rank-item:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(200, 80, 70, 0.15); }
  .rank-no {
    flex: 0 0 30px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #d9c4bf;
    font-style: italic;
  }
  .rank-item:nth-child(1) .rank-no { color: #e63946; }
  .rank-item:nth-child(2) .rank-no { color: #f4794b; }
  .rank-item:nth-child(3) .rank-no { color: #f4b400; }
  .rank-thumb {
    position: relative;
    flex: 0 0 74px;
    height: 98px;
    border-radius: 10px;
    overflow: hidden;
    background: #f6e8e5;
  }
  .rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rank-thumb .play-btn { width: 32px; height: 32px; }
  .rank-thumb .play-btn::before { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
  .rank-info { flex: 1; min-width: 0; }
  .rank-info h3 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
  .rank-info .rank-tag { font-size: 12.5px; color: var(--ink-soft); }
  .rank-bar {
    height: 6px;
    background: #f6e8e5;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
  }
  .rank-bar i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--red-1), var(--yellow-deep));
  }
  .rank-num { font-size: 12px; color: var(--red-1); font-weight: 700; margin-top: 5px; }

  /* 历史 */
  .history-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: 0 6px 20px rgba(180, 100, 90, 0.07);
  }
  .history-box p { font-size: 15.5px; color: #4a4a55; margin-bottom: 14px; }
  .history-box p:last-child { margin-bottom: 0; }
  .history-box strong { color: var(--red-1); }

  /* FAQ */
  .faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 16px;
    box-shadow: 0 3px 12px rgba(180, 100, 90, 0.06);
  }
  .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    position: relative;
    padding-right: 24px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red-1);
    font-size: 18px;
    font-weight: 700;
  }
  .faq-item[open] summary::after { content: "−"; }
  .faq-item p {
    font-size: 14px;
    color: var(--ink-soft);
    padding: 0 0 14px;
    line-height: 1.7;
  }

  /* 网友热议 */
  .discuss-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
  .comment-list { display: flex; flex-direction: column; gap: 10px; }
  .comment-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 16px;
  }
  .comment-item summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 0 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding-right: 24px;
  }
  .comment-item summary::-webkit-details-marker { display: none; }
  .comment-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--red-1);
    font-size: 17px;
  }
  .comment-item[open] summary::after { content: "−"; }
  .comment-answer { padding: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
  .comment-answer .who { color: var(--red-1); font-weight: 600; font-size: 13px; }

  .comment-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(180, 100, 90, 0.08);
  }
  .comment-form h3 { font-size: 17px; margin-bottom: 6px; }
  .comment-form p.tip { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
  .comment-form input,
  .comment-form textarea {
    width: 100%;
    border: 1px solid #ecd6d1;
    background: #fffaf8;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    margin-bottom: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
  }
  .comment-form input:focus,
  .comment-form textarea:focus {
    border-color: var(--red-2);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
  }
  .comment-form button {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--red-1), #ff8a5c);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: filter .2s;
  }
  .comment-form button:hover { filter: brightness(1.06); }

  /* 弹窗 */
  .modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(35, 20, 20, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
  }
  .modal-mask.open { display: flex; }
  .modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px 26px 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }
  .modal-box h4 { font-size: 19px; margin-bottom: 10px; color: var(--ink); }
  .modal-box p { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
  .modal-box .modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffe08a, var(--yellow-deep));
    color: #5c3d00;
    font-weight: 700;
    font-size: 15px;
    padding: 11px 26px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(244, 180, 0, 0.4);
    margin: 0 6px 8px;
  }
  .modal-box .modal-close {
    display: inline-block;
    background: #f6ecea;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 26px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin: 0 6px 8px;
  }

  /* 页脚 */
  footer.site-footer {
    margin-top: 20px;
    padding: 30px 0 34px;
    border-top: 1px solid var(--line);
    background: rgba(255, 246, 243, 0.8);
    font-size: 12.5px;
    color: #9a8d8a;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  footer.site-footer p { margin-bottom: 6px; }
  footer.site-footer a { color: #9a8d8a; text-decoration: none; }
  footer.site-footer a:hover { color: var(--red-1); }
  footer.site-footer time { font-variant-numeric: tabular-nums; }

  /* 响应式 */
  @media (max-width: 1024px) {
    .parent-guard { display: none; }
    .hero-grid { grid-template-columns: 1fr 320px; gap: 32px; }
    .hero h1 { font-size: 34px; }
    .poster-grid { grid-template-columns: repeat(3, 1fr); }
    .discuss-wrap { grid-template-columns: 1fr; }
    .rank-list { grid-template-columns: 1fr; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 6px 8px; font-size: 13.5px; }
  }
  @media (max-width: 768px) {
    .parent-guard { display: none; }
    .nav-toggle { display: inline-block; }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fffaf8;
      border-bottom: 1px solid var(--line);
      padding: 12px 20px 18px;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      box-shadow: 0 12px 22px rgba(180, 100, 90, 0.12);
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 9px 8px; }
    .nav-download { margin-top: 8px; text-align: center; }
    .hero { padding: 30px 0 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 15px; }
    .carousel { max-width: 260px; }
    .btn-download { font-size: 15px; padding: 13px 24px; }
    section { padding: 42px 0; }
    .section-head h2 { font-size: 23px; }
    .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .faq-list { grid-template-columns: 1fr; }
    .scroll-row { grid-auto-columns: 150px; }
    .history-box { padding: 22px 20px; }
    .history-box p { font-size: 14.5px; }
    .ticker-track span { font-size: 13px; padding: 0 22px; }
  }