:root {
    --bg-main: #fffef2;
    --bg-section: #fff9d6;
    --bg-nav: #ffffff;
    --accent-red: #e53935;
    --accent-red-hover: #c62828;
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #f0e6b6;
  }

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

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

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

  /* 顶部滚动横幅 */
  .top-banner {
    background-color: var(--accent-red);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    display: flex;
  }
  .top-banner-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 15s linear infinite;
    padding-left: 100%;
  }
  @keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  /* 导航条 */
  .navbar {
    background-color: var(--bg-nav);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-main);
  }
  .nav-logo img {
    height: 32px;
    display: block;
  }
  .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 15px;
  }
  .nav-links a {
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    color: var(--text-light);
  }
  .nav-links a:hover {
    background-color: var(--bg-section);
    color: var(--accent-red);
  }

  /* 首屏 */
  .hero {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-section) 100%);
    padding: 60px 20px;
    text-align: center;
  }
  .hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-main);
  }
  .hero h1 span {
    color: var(--accent-red);
  }
  .hero p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
  }
  .btn-download {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
  }
  .btn-download:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
  }
  .update-time {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
  }

  /* 轮播图区域 */
  .carousel-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-slide.active {
    opacity: 1;
    z-index: 1;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
    cursor: pointer;
  }
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dcdcdc;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .dot.active {
    background-color: var(--accent-red);
  }

  /* 漫展栏目 */
  .comic-grid-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-main);
  }
  .section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  .comic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .comic-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    background-color: #f5f5f5;
  }
  .comic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .comic-card:hover img {
    transform: scale(1.05);
  }
  .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 6px;
  }

  /* 评论模块 */
  .reviews-section {
    background-color: var(--bg-section);
    padding: 40px 20px;
  }
  .reviews-container {
    max-width: 800px;
    margin: 0 auto;
  }
  .review-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }
  .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
  }
  .review-user {
    font-weight: bold;
    color: var(--text-main);
  }
  .review-content {
    font-size: 15px;
    color: var(--text-main);
  }

  /* 弹窗 */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .modal-overlay.show {
    display: flex;
  }
  .modal-box {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .modal-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
  }
  .modal-box p {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 14px;
  }
  .modal-box .btn-download {
    font-size: 16px;
    padding: 10px 30px;
    width: 100%;
  }

  /* 页脚 */
  footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
  }
  footer p {
    margin-bottom: 8px;
  }
  footer a {
    color: #999;
    text-decoration: underline;
  }
  footer a:hover {
    color: var(--text-light);
  }

  /* 响应式 */
  @media (min-width: 768px) {
    .hero h1 { font-size: 42px; }
    .nav-logo { font-size: 22px; }
    .comic-grid { grid-template-columns: repeat(3, 1fr); }
    .modal-box { width: 400px; }
  }

  @media (min-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .hero p { font-size: 18px; }
    .btn-download { font-size: 20px; padding: 16px 50px; }
    .comic-grid { grid-template-columns: repeat(6, 1fr); gap: 15px; }
    .carousel-container { aspect-ratio: 21 / 9; }
  }