:root {
    --bg-dark: #0a0a0c;
    --bg-card: #151518;
    --bg-elevated: #1e1e24;
    --red-main: #e52e3d;
    --red-glow: rgba(229, 46, 61, 0.35);
    --red-dim: #a51f2c;
    --text-main: #f2f2f2;
    --text-sub: #a0a0a8;
    --text-muted: #6b6b72;
    --border-sub: #2a2a30;
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; }

  /* 下落粒子背景 */
  .falling-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .falling-bg span {
    position: absolute;
    top: -20px;
    width: 2px; height: 2px;
    background: var(--red-main);
    border-radius: 50%;
    opacity: 0.4;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0% { transform: translateY(0); opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
  }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

  /* 导航条 */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-sub);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .logo-wrap img { height: 32px; width: auto; border-radius: 6px; }
  .logo-wrap .product-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
  .nav-links {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    font-size: 14px;
    color: var(--text-sub);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
  }
  .nav-links a:hover { color: var(--red-main); background: rgba(229, 46, 61, 0.08); }
  .nav-toggle {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-sub);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle:hover { border-color: var(--red-main); color: var(--red-main); }

  /* 首屏 Hero */
  .hero {
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
    gap: 48px;
  }
  .hero-text { flex: 1; min-width: 0; }
  .hero-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--red-main);
    background: rgba(229, 46, 61, 0.1);
    border: 1px solid rgba(229, 46, 61, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 1px;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  .hero h1 em { font-style: normal; color: var(--red-main); }
  .hero-desc {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 28px;
    max-width: 520px;
  }
  .hero-desc p { margin-bottom: 8px; }
  .download-btn {
    display: inline-block;
    background: var(--red-main);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 6px 24px var(--red-glow);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
  }
  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--red-glow);
    background: #f03a4a;
  }
  .hero-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

  /* 首屏轮播 */
  .hero-carousel {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-sub);
  }
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  .carousel-slide {
    min-width: 100%;
    position: relative;
  }
  .carousel-slide img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
  .carousel-slide .slide-tag {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 13px;
    color: #fff;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background: var(--bg-card);
  }
  .carousel-dots button {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
  }
  .carousel-dots button.active { background: var(--red-main); width: 16px; border-radius: 3px; }

  /* 滚动横幅 */
  .ticker-wrap {
    background: linear-gradient(90deg, var(--red-dim), var(--red-main), var(--red-dim));
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;
    z-index: 1;
    margin: 0 -20px;
  }
  .ticker-track {
    display: inline-block;
    animation: ticker 28s linear infinite;
  }
  .ticker-track span {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 60px;
  }
  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 通用区块 */
  section { padding: 50px 0; position: relative; z-index: 1; }
  .section-head { margin-bottom: 28px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .section-head h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    padding-left: 14px;
  }
  .section-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 22px;
    background: var(--red-main);
    border-radius: 2px;
  }
  .section-head .head-sub { font-size: 13px; color: var(--text-muted); }

  /* 图片卡片网格 */
  .poster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .poster-grid.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }

  .poster-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
  }
  .poster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.6), 0 0 0 1px var(--red-main);
    border-color: var(--red-main);
  }
  .poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s;
  }
  .poster-card:hover img { transform: scale(1.04); }
  .poster-card .play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    pointer-events: none;
  }
  .poster-card .play-btn::after {
    content: "";
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
  }
  .poster-card:hover .play-btn {
    background: var(--red-main);
    transform: translate(-50%, -50%) scale(1.1);
  }
  .poster-info {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    min-height: 54px;
    display: flex;
    align-items: center;
  }
  .poster-card.large .poster-info { min-height: 60px; font-size: 14px; }

  /* 剧库介绍 */
  .library-intro {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-left: 3px solid var(--red-main);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
  }

  /* 私藏一句话 */
  .private-card { position: relative; }
  .private-card .one-liner {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-card);
  }
  .private-card .one-liner strong { color: var(--red-main); font-weight: 600; }

  /* 热推理由 */
  .reason-card .reason-text {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
  }
  .reason-card .reason-text b { color: var(--text-main); font-weight: 600; display: block; margin-bottom: 4px; font-size: 14px; }

  /* 排行榜 */
  .rank-list { display: flex; flex-direction: column; gap: 12px; }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--radius);
    padding: 10px 16px 10px 10px;
    transition: border-color 0.2s, background 0.2s;
  }
  .rank-item:hover { border-color: var(--red-main); background: var(--bg-elevated); }
  .rank-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    font-style: italic;
  }
  .rank-item:nth-child(1) .rank-num { color: var(--red-main); }
  .rank-item:nth-child(2) .rank-num { color: #f06a76; }
  .rank-item:nth-child(3) .rank-num { color: #c44553; }
  .rank-thumb {
    width: 56px; height: 74px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .rank-info { flex: 1; min-width: 0; }
  .rank-info .rank-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rank-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
  .rank-meta .heat { color: var(--red-main); }
  .rank-meta .play-count { color: var(--text-sub); }

  /* 历史 */
  .history-block {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--radius);
    padding: 28px;
    font-size: 14.5px;
    color: var(--text-sub);
    line-height: 1.9;
  }
  .history-block p { margin-bottom: 14px; }
  .history-block p:last-child { margin-bottom: 0; }
  .history-block strong { color: var(--text-main); }

  /* 常见问题手风琴 */
  .faq-list { display: flex; flex-direction: column; gap: 10px; }
  .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: inherit;
  }
  .faq-question:hover { color: var(--red-main); }
  .faq-question .faq-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    position: relative;
    transition: transform 0.3s;
  }
  .faq-question .faq-icon::before,
  .faq-question .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--red-main);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .faq-question .faq-icon::before { width: 12px; height: 2px; top: 8px; left: 3px; }
  .faq-question .faq-icon::after { width: 2px; height: 12px; top: 3px; left: 8px; }
  .faq-item.open .faq-question .faq-icon::after { transform: rotate(90deg); opacity: 0; }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .faq-answer-inner {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    border-top: 1px solid var(--border-sub);
    padding-top: 14px;
  }
  .faq-item.open .faq-answer { max-height: 200px; }

  /* 网友热议 */
  .comment-section { display: flex; flex-direction: column; gap: 20px; }
  .comment-list { display: flex; flex-direction: column; gap: 14px; }
  .comment-item {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--radius);
    padding: 14px 16px;
  }
  .comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-sub);
    background: var(--bg-elevated);
  }
  .comment-body { flex: 1; min-width: 0; }
  .comment-name { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
  .comment-time { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
  .comment-content { font-size: 14px; color: var(--text-sub); }

  .comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--radius);
    padding: 18px;
  }
  .comment-form label { font-size: 13px; color: var(--text-sub); display: block; margin-bottom: 8px; }
  .comment-form textarea {
    width: 100%;
    min-height: 90px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-sub);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    padding: 12px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
  }
  .comment-form textarea:focus { outline: none; border-color: var(--red-main); }
  .comment-form .form-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
  .submit-btn {
    background: var(--red-main);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
  }
  .submit-btn:hover { background: #f03a4a; }

  /* 弹窗 */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-sub);
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    position: relative;
  }
  .modal-box h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-main); }
  .modal-box p { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.6; }
  .modal-box .modal-download {
    display: inline-block;
    background: var(--red-main);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 8px;
    box-shadow: 0 6px 20px var(--red-glow);
    transition: background 0.2s;
  }
  .modal-box .modal-download:hover { background: #f03a4a; }
  .modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
  }
  .modal-close:hover { color: var(--text-main); }

  /* 页脚 */
  footer {
    border-top: 1px solid var(--border-sub);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 2;
  }
  footer p { margin-bottom: 4px; }
  footer a { color: var(--text-muted); }
  footer a:hover { color: var(--red-main); }
  footer .update-time { font-size: 11px; color: #5a5a60; }

  /* 响应式 1024px */
  @media (max-width: 1024px) {
    .poster-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
    .poster-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { gap: 32px; }
    .hero h1 { font-size: 32px; }
    .hero-carousel { width: 240px; }
  }

  /* 响应式 768px */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      background: var(--bg-dark);
      flex-direction: column;
      padding: 10px 20px;
      border-bottom: 1px solid var(--border-sub);
      gap: 2px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero {
      flex-direction: column-reverse;
      padding: 30px 0 20px;
      gap: 28px;
      text-align: center;
    }
    .hero-text { width: 100%; }
    .hero h1 { font-size: 26px; }
    .hero-desc { margin-left: auto; margin-right: auto; font-size: 14px; }
    .hero-carousel { width: 220px; }
    .poster-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section-head h2 { font-size: 20px; }
    section { padding: 34px 0; }
    .rank-item { gap: 10px; padding: 8px; }
    .rank-thumb { width: 44px; height: 60px; }
    .rank-info .rank-title { font-size: 14px; }
    .rank-meta { gap: 10px; font-size: 11px; }
    .history-block { padding: 20px; font-size: 14px; }
    .ticker-track span { font-size: 12px; margin-right: 40px; }
  }