:root {
    --bg-dark: #120b1e;
    --bg-card: #1e1233;
    --purple-main: #8a2be2;
    --purple-light: #b27cff;
    --yellow-main: #ffd700;
    --yellow-soft: #ffe766;
    --red-btn: #e60026;
    --red-hover: #ff1a40;
    --text-main: #f0e6ff;
    --text-muted: #a893c4;
    --tissue-opacity: 0.4;
  }

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

  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }

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

  /* 纸巾下落背景动画 */
  .tissue-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  
  .tissue {
    position: absolute;
    top: -20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    animation: fall linear infinite;
  }

  .tissue:nth-child(1) { left: 10%; width: 20px; height: 30px; animation-duration: 12s; animation-delay: 0s; }
  .tissue:nth-child(2) { left: 30%; width: 15px; height: 25px; animation-duration: 15s; animation-delay: 2s; }
  .tissue:nth-child(3) { left: 50%; width: 25px; height: 35px; animation-duration: 10s; animation-delay: 4s; }
  .tissue:nth-child(4) { left: 70%; width: 18px; height: 28px; animation-duration: 18s; animation-delay: 1s; }
  .tissue:nth-child(5) { left: 90%; width: 22px; height: 32px; animation-duration: 14s; animation-delay: 5s; }
  .tissue:nth-child(6) { left: 20%; width: 16px; height: 22px; animation-duration: 16s; animation-delay: 7s; }
  .tissue:nth-child(7) { left: 80%; width: 24px; height: 34px; animation-duration: 11s; animation-delay: 3s; }

  @keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: var(--tissue-opacity); }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
  }

  /* 导航栏 */
  header {
    background: rgba(30, 18, 51, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--purple-main);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 20px;
  }

  .nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .logo-area img {
    height: 34px;
    border-radius: 6px;
  }

  .logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--yellow-main);
    white-space: nowrap;
  }

  .nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
  }

  .nav-links a {
    color: var(--text-main);
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 22px;
    border: 1.5px solid rgba(178, 124, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links a:hover {
    color: var(--yellow-main);
    background: rgba(138, 43, 226, 0.15);
  }

  .nav-links a:hover::before {
    opacity: 1;
  }

  .menu-toggle {
    display: none;
    background: var(--purple-main);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
  }

  /* 首屏 Hero */
  .hero {
    position: relative;
    z-index: 1;
    padding: 40px 20px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.2rem;
    color: var(--yellow-main);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
  }

  .download-btn {
    display: inline-block;
    background: var(--red-btn);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 0, 38, 0.5);
    transition: all 0.3s ease;
    border: 2px solid #ff4d6d;
    margin-bottom: 10px;
  }

  .download-btn:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 38, 0.7);
  }

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

  .carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: transform 0.5s ease;
    position: relative;
    height: 320px;
  }

  .carousel-card {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.5s ease;
    cursor: pointer;
    background: #333;
  }

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

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

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

  .play-icon {
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--yellow-main);
    margin-left: 4px;
  }

  /* 轮播图卡片位置和覆盖 */
  .carousel-card[data-pos="0"] { transform: translateX(0); z-index: 5; }
  .carousel-card[data-pos="1"] { transform: translateX(50%); z-index: 4; }
  .carousel-card[data-pos="2"] { transform: translateX(100%); z-index: 3; }
  .carousel-card[data-pos="3"] { transform: translateX(150%); z-index: 2; }
  .carousel-card[data-pos="4"] { transform: translateX(200%); z-index: 1; }

  /* 滚动横幅 */
  .ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(138, 43, 226, 0.2);
    border-top: 1px solid var(--purple-main);
    border-bottom: 1px solid var(--purple-main);
    padding: 12px 0;
    margin: 30px 0;
    position: relative;
    z-index: 1;
  }

  .ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
  }

  .ticker span {
    display: inline-block;
    padding: 0 40px;
    font-size: 1rem;
    color: var(--yellow-soft);
  }

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

  /* 通用区块 */
  section {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--yellow-main);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px dashed rgba(138, 43, 226, 0.5);
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
  }

  /* 漫库网格 */
  .grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }

  .grid-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }

  .grid-card:hover {
    border-color: var(--yellow-main);
    transform: translateY(-4px);
  }

  .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

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

  .img-wrap .play-overlay {
    width: 40px;
    height: 40px;
  }

  .grid-card:hover .play-overlay {
    opacity: 1;
  }

  .card-desc {
    padding: 10px;
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 特色介绍 */
  .feature-text {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: justify;
  }

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

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

  .danmu-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
  }

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

  .danmu-item {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px #000, -1px -1px 3px #000;
    font-size: 1.1rem;
    animation: danmu linear infinite;
    will-change: transform;
  }

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

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

  .rank-item {
    display: flex;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    align-items: center;
    padding: 10px;
    gap: 15px;
  }

  .rank-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yellow-main);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
  }

  .rank-item .img-wrap {
    width: 60px;
    height: 80px;
    aspect-ratio: auto;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .rank-info {
    flex-grow: 1;
  }

  .rank-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-main);
  }

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

  /* 历史介绍 */
  .history-box {
    background: linear-gradient(to right, rgba(30, 18, 51, 0.9), rgba(138, 43, 226, 0.2));
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--yellow-main);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
  }

  /* 常见问题 */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .faq-item {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    overflow: hidden;
  }

  .faq-q {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--yellow-soft);
    transition: background 0.3s;
  }

  .faq-q:hover {
    background: rgba(138, 43, 226, 0.15);
  }

  .faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .faq-item.active .faq-a {
    padding: 15px 20px;
    max-height: 200px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
  }

  .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
  }

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

  /* 网友热议 */
  .comment-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
  }

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

  .comment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--purple-main);
  }

  .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .comment-body {
    background: rgba(138, 43, 226, 0.1);
    padding: 12px 15px;
    border-radius: 0 12px 12px 12px;
    flex-grow: 1;
  }

  .comment-name {
    font-size: 0.85rem;
    color: var(--yellow-main);
    margin-bottom: 4px;
  }

  .comment-text {
    font-size: 0.95rem;
    color: var(--text-main);
  }

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

  .comment-form textarea {
    width: 100%;
    height: 80px;
    background: rgba(13, 8, 20, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    color: var(--text-main);
    padding: 10px;
    resize: vertical;
    font-family: inherit;
  }

  .comment-form button {
    align-self: flex-end;
    background: var(--purple-main);
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
  }

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

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

  .modal-overlay.active {
    display: flex;
  }

  .modal-box {
    background: var(--bg-card);
    border: 2px solid var(--yellow-main);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
  }

  .modal-box h3 {
    color: var(--yellow-main);
    margin-bottom: 15px;
    font-size: 1.2rem;
  }

  .modal-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
  }

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

  .modal-close {
    position: absolute;
    top: 10px; right: 15px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
  }

  /* 页脚 */
  footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--text-muted);
    font-size: 0.85rem;
  }

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

  footer a:hover {
    color: var(--yellow-main);
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .rank-list { grid-template-columns: 1fr; }
    .carousel-track { height: 260px; }
    .carousel-card { width: 160px; height: 220px; }
    .carousel-card[data-pos="0"] { transform: translateX(0); z-index: 5; }
    .carousel-card[data-pos="1"] { transform: translateX(40%); z-index: 4; }
    .carousel-card[data-pos="2"] { transform: translateX(80%); z-index: 3; }
    .carousel-card[data-pos="3"] { transform: translateX(120%); z-index: 2; }
    .carousel-card[data-pos="4"] { transform: translateX(160%); z-index: 1; }
  }

  @media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-card);
      flex-direction: column;
      padding: 15px;
      border-bottom: 2px solid var(--purple-main);
      border-radius: 0 0 12px 12px;
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .carousel-track { height: 200px; }
    .carousel-card { width: 120px; height: 170px; }
    .carousel-card[data-pos="0"] { transform: translateX(0); z-index: 5; }
    .carousel-card[data-pos="1"] { transform: translateX(30%); z-index: 4; }
    .carousel-card[data-pos="2"] { transform: translateX(60%); z-index: 3; }
    .carousel-card[data-pos="3"] { transform: translateX(90%); z-index: 2; }
    .carousel-card[data-pos="4"] { transform: translateX(120%); z-index: 1; }
    .rank-item { flex-direction: column; text-align: center; }
    .rank-item .img-wrap { width: 100%; height: auto; aspect-ratio: 3/4; }
  }