:root {
    --yellow: #ffd400;
    --yellow-dark: #e6be00;
    --yellow-light: #fff6cc;
    --text: #2b2b2b;
    --text-light: #666;
    --bg: #fdfaf0;
    --card-bg: #ffffff;
    --border: #f0e6b8;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }
  /* 背景动漫图 */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/Snap16721.webp') center/cover no-repeat;
    opacity: 0.08;
    z-index: -2;
    pointer-events: none;
  }
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(253,250,240,0.6) 0%, rgba(253,250,240,0.9) 100%);
    z-index: -1;
    pointer-events: none;
  }

  /* 桃花飘落 */
  .petal {
    position: fixed;
    top: -50px;
    width: 14px;
    height: 14px;
    background-color: #ffb7c5;
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
  }

  /* 导航 */
  .header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--yellow);
    z-index: 100;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
  }
  .logo-area img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }
  .nav-toggle {
    display: none;
    background: var(--yellow);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
  }
  .nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--yellow-dark); }

  /* 首屏 */
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .hero-text { flex: 1; }
  .hero-text h1 {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--text);
  }
  .hero-text h1 span { color: var(--yellow-dark); }
  .hero-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 480px;
  }
  .download-btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--text);
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 212, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 212, 0, 0.6);
  }

  /* 轮播图 */
  .carousel {
    flex: 1;
    max-width: 520px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    aspect-ratio: 3 / 4;
  }
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
  }
  .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  /* 滚动横幅 */
  .marquee-bar {
    background: var(--yellow);
    color: var(--text);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    font-size: 15px;
  }
  .marquee-content {
    display: inline-block;
    animation: marquee 18s linear infinite;
  }
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 通用区块 */
  section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
  }
  .section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
  }
  .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 40px;
  }

  /* 卡片网格 */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .comic-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s;
  }
  .comic-card:hover { transform: translateY(-4px); }
  .comic-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
  }
  .card-info {
    padding: 14px 16px;
  }
  .card-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
  }
  .card-info p {
    font-size: 13px;
    color: var(--text-light);
  }
  .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 212, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .play-overlay::after {
    content: '';
    border-left: 16px solid var(--text);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
  }
  .comic-card:hover .play-overlay { opacity: 1; }

  /* 优势 */
  .advantage-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--yellow);
    box-shadow: 0 6px 24px rgba(255, 212, 0, 0.15);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }
  .advantage-box p {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
  }

  /* 排行榜 */
  .rank-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--border);
  }
  .rank-num {
    font-size: 24px;
    font-weight: bold;
    color: var(--yellow-dark);
    min-width: 36px;
    text-align: center;
  }
  .rank-item img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
  }
  .rank-info { flex: 1; }
  .rank-info h3 { font-size: 16px; margin-bottom: 4px; }
  .rank-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
  }

  /* 播放互动 */
  .player-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  }
  .player-wrap img { width: 100%; display: block; }
  .danmaku-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .danmaku {
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    animation: danmaku-move linear infinite;
  }
  @keyframes danmaku-move {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }

  /* 历史 */
  .history-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 36px 40px;
    border-left: 6px solid var(--yellow);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    max-width: 860px;
    margin: 0 auto;
  }
  .history-box p {
    font-size: 15px;
    color: var(--text);
    line-height: 2;
    margin-bottom: 16px;
  }
  .history-box p:last-child { margin-bottom: 0; }

  /* 常见问题 */
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .faq-question::after {
    content: '+';
    color: var(--yellow-dark);
    font-size: 20px;
    font-weight: bold;
  }
  .faq-item.active .faq-question::after { content: '−'; }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
  }
  .faq-item.active .faq-answer { max-height: 200px; }
  .faq-answer p {
    padding-bottom: 18px;
    font-size: 14px;
    color: var(--text-light);
  }

  /* 网友热议 */
  .comments-box {
    max-width: 800px;
    margin: 0 auto;
  }
  .comment-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  .comment-body { flex: 1; }
  .comment-body strong { font-size: 14px; color: var(--text); }
  .comment-body p { font-size: 14px; color: var(--text-light); margin-top: 4px; }
  .comment-form {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-top: 30px;
  }
  .comment-form textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
  }
  .comment-form textarea:focus { border-color: var(--yellow-dark); }
  .comment-form button {
    margin-top: 12px;
    background: var(--yellow);
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
  }

  /* 弹窗 */
  .modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal.show { display: flex; }
  .modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 36px 30px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popIn 0.3s ease;
  }
  @keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .modal-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
  }
  .modal-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
  }
  .modal-content .download-btn {
    padding: 12px 32px;
    font-size: 16px;
  }
  .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
  }

  /* 页脚 */
  .footer {
    background: #f5f0e0;
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 40px;
    border-top: 1px solid var(--border);
  }
  .footer p { margin-bottom: 6px; }
  .footer a { color: #999; text-decoration: none; }
  .footer a:hover { text-decoration: underline; }
  .footer time { font-size: 12px; }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero { flex-direction: column; padding: 40px 20px; }
    .hero-text { text-align: center; }
    .hero-text p { margin: 0 auto 28px; }
    .carousel { max-width: 400px; width: 100%; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
      display: none;
      position: absolute;
      top: 64px;
      left: 0;
      right: 0;
      background: #fff;
      flex-direction: column;
      padding: 16px 20px;
      gap: 14px;
      border-bottom: 2px solid var(--yellow);
      box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .hero-text h1 { font-size: 28px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .section-title { font-size: 22px; }
    .advantage-box { padding: 24px; }
    .history-box { padding: 24px; }
    section { padding: 40px 16px; }
    .rank-stats { flex-direction: column; gap: 2px; }
  }
  @media (max-width: 480px) {
    .grid-3 { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 24px; }
  }
  /* 兜底防止横向滚动 */
  html, body { max-width: 100%; overflow-x: hidden; }