:root {
    --bg-dark: #120c1c;
    --bg-card: #1d142c;
    --purple-primary: #8b5cf6;
    --purple-light: #a78bfa;
    --yellow-primary: #fbbf24;
    --yellow-light: #fde68a;
    --red-button: #ef4444;
    --red-hover: #dc2626;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --nav-bg: rgba(29, 20, 44, 0.85);
    --border-color: rgba(139, 92, 246, 0.3);
  }

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

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

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

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

  /* 导航栏 */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--yellow-primary);
  }

  .brand img {
    height: 32px;
    width: auto;
  }

  .nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--purple-primary);
    color: var(--purple-light);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
  }

  .nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    list-style: none;
  }

  .nav-links li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(139, 92, 246, 0.1);
  }

  .nav-links li a:hover {
    color: var(--yellow-light);
    border-color: var(--yellow-primary);
    background: rgba(251, 191, 36, 0.1);
  }

  /* 英雄区 */
  .hero {
    padding: 60px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #2a1b40 0%, var(--bg-dark) 70%);
  }

  .hero h1 {
    font-size: 36px;
    color: var(--yellow-primary);
    margin-bottom: 16px;
  }

  .hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
  }

  .btn-download {
    display: inline-block;
    background-color: var(--red-button);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  }

  .btn-download:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
  }

  .update-time {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
  }

  /* 滚动横幅 */
  .ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.15);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    white-space: nowrap;
  }

  .ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
    color: var(--yellow-light);
    font-weight: 500;
  }

  .ticker span {
    margin-right: 40px;
  }

  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

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

  .section-title {
    font-size: 28px;
    color: var(--purple-light);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
  }

  .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--yellow-primary);
    margin: 10px auto 0;
    border-radius: 2px;
  }

  /* 轮播图 */
  .carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
    perspective: 1000px;
  }

  .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel-card {
    position: absolute;
    width: 240px;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
  }

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

  /* 卡片位置排列 */
  .carousel-card[data-pos="0"] { transform: translateX(0) scale(1.1); z-index: 5; border-color: var(--yellow-primary); }
  .carousel-card[data-pos="1"] { transform: translateX(160px) scale(0.9) rotate(5deg); z-index: 4; opacity: 0.8; }
  .carousel-card[data-pos="2"] { transform: translateX(300px) scale(0.8) rotate(10deg); z-index: 3; opacity: 0.6; }
  .carousel-card[data-pos="-1"] { transform: translateX(-160px) scale(0.9) rotate(-5deg); z-index: 4; opacity: 0.8; }
  .carousel-card[data-pos="-2"] { transform: translateX(-300px) scale(0.8) rotate(-10deg); z-index: 3; opacity: 0.6; }

  .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.8);
    transition: background 0.3s;
  }

  .play-btn-overlay::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    margin-left: 4px;
  }

  .carousel-card:hover .play-btn-overlay {
    background: rgba(239, 68, 68, 0.8);
  }

  /* 剧库网格 */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .grid-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }

  .grid-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .grid-item:hover img {
    transform: scale(1.05);
  }

  .grid-item .play-btn-overlay {
    width: 50px;
    height: 50px;
  }

  .grid-item .play-btn-overlay::after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
  }

  .grid-text {
    padding: 12px;
    font-size: 14px;
    color: var(--text-main);
    background: linear-gradient(to top, #1d142c 80%, transparent);
  }

  /* 特色介绍 */
  .feature-text {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    text-indent: 2em;
    max-width: 800px;
    margin: 0 auto;
  }

  .feature-text strong {
    color: var(--yellow-primary);
  }

  /* 排行榜 */
  .rank-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .rank-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
  }

  .rank-item img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
  }

  .rank-info {
    flex: 1;
  }

  .rank-info h4 {
    font-size: 16px;
    color: var(--yellow-light);
    margin-bottom: 6px;
  }

  .rank-stats {
    font-size: 12px;
    color: var(--text-muted);
  }

  .rank-stats span {
    margin-right: 15px;
    color: var(--red-button);
  }

  /* 弹幕互动 */
  .video-player-mock {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }

  .video-player-mock img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
  }

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

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

  @keyframes slide-left {
    from { transform: translateX(100%); }
    to { transform: translateX(-200%); }
  }

  /* 历史介绍 */
  .history-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
  }

  .history-text p {
    margin-bottom: 15px;
  }

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

  .faq-item {
    background: var(--bg-card);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s;
  }

  .faq-item.active {
    border-color: var(--purple-primary);
  }

  .faq-question {
    padding: 16px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
  }

  .faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--yellow-primary);
    transition: transform 0.3s;
  }

  .faq-item.active .faq-question::after {
    transform: rotate(45deg);
  }

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

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

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

  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .comment-item {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
  }

  .comment-content {
    flex: 1;
  }

  .comment-user {
    font-size: 14px;
    color: var(--purple-light);
    margin-bottom: 4px;
  }

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

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

  .comment-form textarea {
    width: 100%;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    resize: none;
    font-family: inherit;
  }

  .comment-form textarea:focus {
    outline: none;
    border-color: var(--yellow-primary);
  }

  .comment-form button {
    align-self: flex-end;
    background: var(--purple-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
  }

  .comment-form button:hover {
    background: var(--purple-light);
  }

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

  footer a {
    color: var(--text-muted);
    text-decoration: underline;
  }

  footer a:hover {
    color: var(--purple-light);
  }

  .footer-content {
    margin-bottom: 10px;
  }

  .footer-time {
    margin-top: 10px;
    opacity: 0.6;
  }

  /* 弹窗 */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s;
  }

  .modal-overlay.show .modal-content {
    transform: translateY(0);
  }

  .modal-content h3 {
    color: var(--yellow-primary);
    margin-bottom: 20px;
  }

  .modal-content p {
    color: var(--text-main);
    margin-bottom: 25px;
  }

  .modal-content .btn-download {
    display: block;
    width: 100%;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-dark);
      flex-direction: column;
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
      display: flex;
    }
    .nav-toggle {
      display: block;
    }
    .grid-3 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .hero h1 {
      font-size: 28px;
    }
    .carousel-container {
      height: 350px;
    }
    .carousel-card {
      width: 160px;
      height: 240px;
    }
    .carousel-card[data-pos="1"] { transform: translateX(100px) scale(0.9) rotate(5deg); }
    .carousel-card[data-pos="2"] { transform: translateX(180px) scale(0.8) rotate(10deg); }
    .carousel-card[data-pos="-1"] { transform: translateX(-100px) scale(0.9) rotate(-5deg); }
    .carousel-card[data-pos="-2"] { transform: translateX(-180px) scale(0.8) rotate(-10deg); }
    .grid-3 {
      grid-template-columns: 1fr;
    }
    .rank-item img {
      width: 60px;
      height: 85px;
    }
  }