:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --primary-red: #e60000;
    --primary-red-hover: #ff1a1a;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --border-color: #333333;
    --bubble-bg: rgba(255, 255, 255, 0.05);
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  /* 导航条 */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
  }

  .logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
  }

  .logo-box img {
    height: 32px;
    border-radius: 4px;
  }

  .nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--bubble-bg);
    background: var(--bubble-bg);
    transition: all 0.3s;
  }

  .nav-links a:hover {
    color: var(--text-main);
    border-color: var(--primary-red);
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
  }

  /* 首屏区域 */
  .hero {
    padding: 100px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-main);
  }

  .btn-download {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    margin-bottom: 15px;
  }

  .btn-download:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.05);
  }

  .update-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
  }

  /* 滚动横幅 */
  .marquee-wrap {
    background: var(--primary-red);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    margin: 30px 0;
  }

  .marquee-text {
    display: inline-block;
    animation: marquee 15s linear infinite;
    font-weight: bold;
  }

  @keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
  }

  /* 轮播图 */
  .carousel-section {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
  }

  .carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
  }

  .carousel-card {
    position: absolute;
    width: 240px;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.5s, z-index 0.5s, opacity 0.5s;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }

  .carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(230, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
  }

  .carousel-card:hover .play-icon {
    opacity: 1;
  }

  /* 内容区块通用 */
  section.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main);
  }

  .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 0;
  }

  /* 剧库/热播网格 */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .grid-item {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  .grid-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
  }

  .grid-text {
    padding: 15px;
    font-size: 14px;
    color: var(--text-muted);
  }

  /* 排行榜 */
  .rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
  }

  .rank-item {
    display: flex;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
  }

  .rank-item img {
    width: 100px;
    height: 140px;
    object-fit: cover;
  }

  .rank-info {
    padding: 15px;
    flex: 1;
  }

  .rank-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .rank-stats {
    font-size: 13px;
    color: var(--primary-red);
  }

  /* 特色与历史 */
  .text-block {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
  }

  /* 弹幕互动 */
  .danmaku-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
  }

  .danmaku-player img {
    width: 100%;
    display: block;
    opacity: 0.7;
  }

  .danmaku-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .danmaku-item {
    position: absolute;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 1px 1px 2px #000;
    animation: fly linear forwards;
  }

  @keyframes fly {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
  }

  /* 常见问题 */
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    border-bottom: 1px solid var(--border-color);
  }

  .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 20px 0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    padding: 0;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 20px;
  }

  /* 网友热议 */
  .comments-section {
    max-width: 800px;
    margin: 0 auto;
  }

  .comment-list {
    margin-bottom: 30px;
  }

  .comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--surface-color);
    padding: 15px;
    border-radius: 8px;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .comment-content {
    flex: 1;
  }

  .comment-name {
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 5px;
  }

  .comment-text {
    font-size: 14px;
    color: var(--text-muted);
  }

  .comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .comment-form textarea {
    width: 100%;
    height: 100px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 15px;
    border-radius: 8px;
    resize: none;
  }

  .comment-form button {
    align-self: flex-end;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
  }

  /* 弹窗 */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    border: 1px solid var(--primary-red);
  }

  .modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .modal-content button {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
  }

  /* 页脚 */
  footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
  }

  /* 响应式 */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: var(--bg-color);
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
    }

    .nav-links.show {
      display: flex;
    }

    .nav-toggle {
      display: block;
    }

    .hero h1 {
      font-size: 24px;
    }

    .carousel-container {
      height: 300px;
    }

    .carousel-card {
      width: 180px;
      height: 260px;
    }

    .grid-item img {
      height: 300px;
    }
  }