:root {
    --bg-color: #0d0f1a;
    --surface-color: #191c2e;
    --surface-hover: #22263f;
    --primary-color: #ff2a75;
    --secondary-color: #00e5ff;
    --accent-color: #ffe600;
    --text-main: #f0f0f5;
    --text-muted: #9aa0b5;
    --y2k-border: 2px solid #fff;
    --glow-primary: 0 0 10px rgba(255, 42, 117, 0.6), 0 0 20px rgba(255, 42, 117, 0.3);
    --glow-secondary: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.3);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: "PingFang SC", "Microsoft YaHei", 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, 229, 255, 0.08), transparent 25%);
    background-attachment: fixed;
  }

  a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
  }

  ul {
    list-style: none;
  }

  img {
    display: block;
    max-width: 100%;
    object-fit: cover;
  }

  /* Typography & Titles */
  h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }

  .section-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--glow-primary);
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    border: var(--y2k-border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
  }

  .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff6b9d);
    box-shadow: var(--glow-primary);
  }

  .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 42, 117, 0.8), 0 0 30px rgba(255, 42, 117, 0.5);
  }

  .btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(255, 42, 117, 0.5);
  }

  .btn-outline {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
  }

  .btn-outline:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
  }

  /* Layout */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
  }

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

  .search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
  }

  .search-bar input {
    width: 100%;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
  }

  .search-bar input:focus {
    border-color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
  }

  .nav-links {
    display: none;
    gap: 20px;
    font-size: 15px;
    font-weight: bold;
  }

  .nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: var(--glow-secondary);
  }

  .user-actions {
    display: flex;
    gap: 12px;
  }

  .user-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Hero Section */
  .hero {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 42, 117, 0.4));
  }

  .hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--y2k-border);
    box-shadow: var(--glow-secondary);
    aspect-ratio: 3/4;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(13, 15, 26, 0.95), transparent);
  }

  .hero-overlay h3 {
    font-size: 20px;
    color: var(--accent-color);
  }

  .hero-overlay span {
    font-size: 14px;
    color: var(--secondary-color);
  }

  /* Category Quick Access */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
  }

  .category-item {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 20px 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
  }

  .category-item:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
  }

  .category-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
  }

  .category-name {
    font-size: 14px;
    font-weight: bold;
  }

  /* Editors Choice */
  .scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .scroll-container::-webkit-scrollbar {
    height: 8px;
  }
  .scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  .scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--glow-primary);
  }

  .large-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--y2k-border);
    position: relative;
    transition: all 0.3s;
  }

  .large-card:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-primary);
    z-index: 2;
  }

  .large-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.5s;
  }

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

  .large-card-info {
    padding: 15px;
    background: var(--surface-color);
    position: relative;
  }

  .large-card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent-color);
  }

  .large-card-info p {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Ranking Section */
  .ranking-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
  }

  .tab-btn.active {
    background: var(--surface-color);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
  }

  .ranking-list {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .rank-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
  }

  .rank-item:last-child {
    border-bottom: none;
  }

  .rank-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
  }

  .rank-num {
    font-size: 24px;
    font-weight: 900;
    width: 40px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
  }

  .rank-item:nth-child(1) .rank-num { color: var(--primary-color); text-shadow: var(--glow-primary); }
  .rank-item:nth-child(2) .rank-num { color: var(--secondary-color); }
  .rank-item:nth-child(3) .rank-num { color: var(--accent-color); }

  .rank-cover {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    margin: 0 15px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .rank-info {
    flex: 1;
  }

  .rank-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .rank-info p {
    font-size: 13px;
    color: var(--text-muted);
  }

  .rank-heat {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    background: rgba(255, 42, 117, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
  }

  /* Latest Updates Grid */
  .update-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 60px;
  }

  .update-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s;
  }

  .update-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
  }

  .update-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
  }

  .update-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

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

  .update-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 15, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .update-card:hover .update-overlay {
    opacity: 1;
  }

  .update-overlay span {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    transform: translateY(10px);
    transition: transform 0.3s;
  }

  .update-card:hover .update-overlay span {
    transform: translateY(0);
  }

  .update-info {
    padding: 12px;
  }

  .update-info h4 {
    font-size: 15px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .update-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
  }

  /* Theme Collections */
  .collection-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
  }

  .collection-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .collection-header h3 {
    font-size: 20px;
    color: var(--accent-color);
  }

  .collection-books {
    display: flex;
    gap: 15px;
  }

  .mini-book {
    flex: 1;
    text-align: center;
  }

  .mini-book img {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
  }

  .mini-book:hover img {
    border-color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
  }

  .mini-book p {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* App Preview */
  .preview-section {
    margin-bottom: 60px;
  }

  .preview-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .preview-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--y2k-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
  }

  .preview-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--glow-primary);
  }

  /* Footer */
  footer {
    background: #080911;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 16px;
  }

  .footer-col p, .footer-col li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
  }

  .footer-bottom .time {
    display: block;
    margin-top: 8px;
    opacity: 0.6;
  }

  /* Responsive */
  @media (min-width: 768px) {
    .header-inner {
      flex-wrap: nowrap;
    }
    .nav-links {
      display: flex;
    }
    .hero {
      grid-template-columns: 1fr 1fr;
      text-align: left;
    }
    .hero-content {
      text-align: left;
    }
    .hero-content p {
      margin-left: 0;
    }
    .hero-banner {
      margin: 0;
      justify-self: end;
    }
    .category-grid {
      gap: 20px;
    }
    .update-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .collection-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .preview-gallery {
      grid-template-columns: repeat(4, 1fr);
    }
    .footer-content {
      grid-template-columns: repeat(3, 1fr);
    }
    .section-title {
      font-size: 32px;
    }
    .hero-content h1 {
      font-size: 52px;
    }
  }

  @media (min-width: 1024px) {
    .category-grid {
      grid-template-columns: repeat(6, 1fr);
    }
    .update-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .collection-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }