:root {
    --bg-color: #0b0914;
    --bg-card: #16122a;
    --text-main: #f0eaff;
    --text-muted: #a79bc4;
    --neon-pink: #ff2a75;
    --neon-cyan: #00f0ff;
    --neon-purple: #9d4edd;
    --neon-yellow: #ffea00;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
      radial-gradient(circle at 15% 50%, rgba(255, 42, 117, 0.08), transparent 25%),
      radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; object-fit: cover; }

  /* 导航栏 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  }
  .brand-logo img { height: 36px; width: auto; border-radius: 6px; }

  .header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
  }
  .header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 42, 117, 0.4);
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
  }
  .header-search input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  }

  .nav-links {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  .nav-links a:hover { color: var(--neon-pink); text-shadow: 0 0 8px rgba(255, 42, 117, 0.5); }

  .btn-login {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
  }
  .btn-login:hover {
    background: rgba(157, 78, 221, 0.2);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
  }
  .btn-login:active { transform: scale(0.95); }

  /* Hero 区域 */
  .hero-section {
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-content { flex: 1; max-width: 500px; }
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 42, 117, 0.2);
    font-weight: 900;
  }
  .hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
  }
  .btn-main {
    display: inline-block;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 42, 117, 0.4);
    transition: all 0.3s ease;
  }
  .btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 42, 117, 0.7);
  }
  .btn-main:active { transform: translateY(1px) scale(0.98); }

  /* 轮播海报 */
  .hero-carousel {
    flex: 1;
    max-width: 460px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 240, 255, 0.2);
  }
  .carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
  }
  .carousel-track img {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
  }
  .carousel-indicators {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
  }
  .indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
  }
  .indicator.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    width: 24px;
    border-radius: 4px;
  }

  /* 通用区块 */
  .section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
  }
  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 2px dashed rgba(157, 78, 221, 0.3);
    padding-bottom: 12px;
  }
  .section-title {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  }
  .section-more {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    cursor: pointer;
  }

  /* 快捷入口 */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 20px;
  }
  .category-item {
    background: var(--bg-card);
    padding: 20px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .category-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
    box-shadow: 0 8px 20px rgba(255, 42, 117, 0.2);
  }
  .cat-icon { font-size: 2rem; margin-bottom: 8px; }
  .cat-name { font-size: 0.95rem; font-weight: bold; }

  /* 编辑精选 */
  .featured-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  .featured-cards::-webkit-scrollbar { display: none; }
  .featured-card {
    min-width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }
  .featured-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    border-color: var(--neon-purple);
  }
  .featured-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  .featured-info { padding: 16px; }
  .featured-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 8px; color: var(--neon-yellow); }
  .featured-desc { font-size: 0.85rem; color: var(--text-muted); }

  /* 排行榜 */
  .rank-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .rank-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
  }
  .rank-tab.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  }
  .rank-list {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
  }
  .rank-item:hover { background: rgba(255, 255, 255, 0.04); }
  .rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    width: 32px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
  }
  .rank-item:nth-child(1) .rank-num { color: var(--neon-yellow); }
  .rank-item:nth-child(2) .rank-num { color: #d0d0d0; }
  .rank-item:nth-child(3) .rank-num { color: #cd7f32; }
  .rank-item img { width: 50px; height: 70px; border-radius: 4px; }
  .rank-info { flex: 1; }
  .rank-name { font-weight: bold; font-size: 1rem; }
  .rank-author { font-size: 0.8rem; color: var(--text-muted); }
  .rank-hot { font-size: 0.85rem; color: var(--neon-pink); }

  /* 最新更新 */
  .update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
  .update-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
  }
  .update-card:hover { transform: translateY(-5px); }
  .update-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
  .update-cover img { width: 100%; height: 100%; transition: transform 0.3s; }
  .update-card:hover .update-cover img { transform: scale(1.05); }
  .update-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 9, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .update-card:hover .update-overlay { opacity: 1; }
  .overlay-btn {
    background: var(--neon-cyan);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 12px var(--neon-cyan);
  }
  .update-info { padding: 12px; }
  .update-title { font-size: 0.95rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .update-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; margin-top: 4px; }

  /* 主题漫单 */
  .collection-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .collection-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .collection-title { font-size: 1.2rem; color: var(--neon-pink); margin-bottom: 16px; }
  .collection-books { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
  .collection-books::-webkit-scrollbar { display: none; }
  .collection-books img {
    width: 100px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    transition: transform 0.2s;
    cursor: pointer;
  }
  .collection-books img:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }

  /* 实图展示 */
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .showcase-grid img {
    border-radius: var(--radius-md);
    border: 2px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: all 0.3s;
    width: 100%;
    height: auto;
  }
  .showcase-grid img:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.03);
  }

  /* 页脚 */
  .site-footer {
    background: #06040c;
    border-top: 1px solid rgba(157, 78, 221, 0.3);
    padding: 40px 24px 20px;
    margin-top: 60px;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
  }
  .footer-col h4 { color: var(--neon-cyan); margin-bottom: 16px; font-size: 1.1rem; }
  .footer-col p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; max-width: 400px; }
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .update-time { display: block; margin-top: 6px; color: #6b5c8a; }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .site-header { flex-wrap: wrap; padding: 12px 16px; }
    .header-search { order: 3; width: 100%; max-width: none; margin-top: 8px; }
    .nav-links { display: none; }
    .hero-section { flex-direction: column; padding: 40px 16px; text-align: center; gap: 30px; }
    .hero-title { font-size: 2.2rem; }
    .hero-carousel { width: 100%; max-width: 340px; margin: 0 auto; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .section-wrap { padding: 30px 16px; }
    .section-title { font-size: 1.4rem; }
    .update-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  }