:root {
    --bg-dark: #0a0e0b;
    --bg-card: #121a14;
    --bg-card-hover: #1a261d;
    --primary-green: #2ecc71;
    --primary-green-dim: #27ae60;
    --text-main: #e8f5e9;
    --text-muted: #8fae96;
    --btn-red: #e74c3c;
    --btn-red-hover: #c0392b;
    --border-color: #1f3324;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

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

  body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  /* 导航条 */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 14, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
  }

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

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-green);
  }

  .logo-area img {
    height: 32px;
    width: auto;
    border-radius: 4px;
  }

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

  .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: var(--primary-green);
  }

  /* 首屏 */
  .hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
  }

  .hero h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
  }

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

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

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

  .update-time {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* 滚动横幅 */
  .marquee-wrap {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
  }

  .marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .marquee-content span {
    margin: 0 20px;
  }

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

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

  .section-title {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    text-align: center;
  }

  /* 轮播图 (扑克牌样式) */
  .carousel-section {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 500px;
    perspective: 1000px;
  }

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

  .carousel-card {
    position: absolute;
    width: 250px;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
  }

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

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

  .play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 5px;
  }

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

  /* 社区(片库) */
  .grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
  }

  .media-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }

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

  .media-card .play-icon {
    width: 40px;
    height: 40px;
  }

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

  .card-text {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-main);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
  }

  /* 特色 */
  .feature-text {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
  }
  
  .feature-text strong {
    color: var(--primary-green);
  }

  /* 排行榜 */
  .rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .rank-card {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }

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

  .rank-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .rank-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

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

  .rank-stats span {
    color: var(--btn-red);
    font-weight: bold;
  }

  /* 弹幕播放界面 */
  .danmaku-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }

  .danmaku-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

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

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

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

  /* 历程 */
  .timeline {
    border-left: 3px solid var(--primary-green);
    padding-left: 30px;
    margin-left: 20px;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 40px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
  }

  .timeline-item h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .timeline-item p {
    color: var(--text-muted);
  }

  /* FAQ */
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  details {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
  }

  summary {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
  }

  summary::-webkit-details-marker {
    display: none;
  }

  summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s;
  }

  details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
  }

  .faq-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
  }

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

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

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

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

  .comment-body .username {
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 5px;
  }

  .comment-body .text {
    font-size: 0.95rem;
  }

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

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

  .comment-form button {
    align-self: flex-end;
    background-color: var(--primary-green);
    color: #000;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }

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

  .modal.active {
    display: flex;
  }

  .modal-content {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--primary-green);
    max-width: 400px;
    width: 90%;
  }

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

  .modal-content .btn-download {
    padding: 10px 30px;
    font-size: 1rem;
  }

  .modal-content .close-btn {
    margin-top: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
  }
  
  .modal-content p {
    margin-bottom: 20px;
  }

  /* 页脚 */
  footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-dark);
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .footer-content a {
    color: var(--text-muted);
    transition: color 0.3s;
  }
  
  .footer-content a:hover {
    color: var(--primary-green);
  }
  
  .about-us {
    margin-top: 20px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-us summary {
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-block;
  }
  
  .about-us summary::-webkit-details-marker {
    display: none;
  }
  
  .about-us summary::after {
    display: none;
  }
  
  .about-links {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .about-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
  }
  
  .about-links a:hover {
    color: var(--primary-green);
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .rank-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: var(--bg-dark);
      flex-direction: column;
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    
    .hero h1 { font-size: 1.8rem; }
    .carousel-card { width: 200px; height: 300px; }
    .carousel-section { height: 400px; }
    
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .rank-grid { grid-template-columns: 1fr; }
    
    .feature-text { padding: 20px; font-size: 1rem; }
  }