:root {
    --bg-main: #0f0a14;
    --bg-card: #1c1225;
    --text-main: #f4eef8;
    --text-muted: #b8a9c4;
    --accent-red: #e63946;
    --accent-pink: #ff6b9d;
    --accent-purple: #9d4edd;
    --accent-gold: #f4a261;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
  }

  * {
    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-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for floating window */
  }

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

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

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-group img {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
  }

  .logo-text {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .nav-links {
    display: none; /* Mobile first */
    gap: 20px;
    list-style: none;
  }

  .nav-links li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .nav-links li a:hover {
    color: var(--accent-pink);
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
  }

  /* Mobile Dropdown Menu */
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 15px;
    z-index: 99;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: var(--text-main);
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Hero Section */
  .hero {
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(230, 57, 70, 0.2), transparent 50%);
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

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

  /* Hero Carousel */
  .hero-carousel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .hero-carousel::-webkit-scrollbar {
    display: none;
  }

  .hero-carousel img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
  }

  .hero-carousel img:hover {
    transform: translateY(-5px);
  }

  /* Download Buttons Group */
  .download-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
  }

  .btn-primary {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
  }

  .btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
  }

  .btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Marquee */
  .marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
  }

  .marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-gold);
  }

  .marquee-content span {
    margin: 0 15px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

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

  /* Sections General */
  section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
    display: inline-block;
    border-bottom: 3px solid var(--accent-pink);
    padding-bottom: 5px;
  }

  .center-title {
    text-align: center;
  }

  /* Section: Novel & AI (Alternating Layout) */
  .novel-section {
    background-color: var(--bg-card);
  }

  .layout-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .layout-split.reversed {
    flex-direction: column;
  }

  .split-img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
  }

  .split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .split-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-gold);
  }

  .content-list {
    list-style: none;
  }

  .content-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-purple);
    font-size: 14px;
    color: var(--text-muted);
  }

  /* Section: Completed (Card Grid) */
  .completed-section {
    background-color: #150e1c;
  }

  .grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  .card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  .card-info {
    padding: 10px;
  }

  .card-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-info .tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }

  .tag {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-pink);
    border-radius: 4px;
  }

  .date-tag {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
  }

  /* Section: Hot Ranking (Timeline/List) */
  .hot-section {
    background: linear-gradient(180deg, #0f0a14, #1a1124);
  }

  .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .rank-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .rank-num {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-gold);
    width: 30px;
    text-align: center;
    margin-right: 15px;
  }

  .rank-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 15px;
  }

  .rank-info {
    flex: 1;
  }

  .rank-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
  }

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

  /* Section: Member & Privacy (FAQ Style) */
  .faq-section {
    background-color: #1a1124;
  }

  .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }

  .faq-q {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-pink);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
  }

  .faq-a {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* Section: Download Zone */
  .download-zone {
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.15), transparent);
    text-align: center;
  }

  .download-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
  }

  .step {
    display: flex;
    gap: 15px;
  }

  .step-num {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
  }

  .step-text {
    font-size: 14px;
    color: var(--text-muted);
  }

  .download-zone-img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-md);
    margin: 20px auto;
  }

  /* Section: Feedback */
  .feedback-section {
    background-color: var(--bg-card);
  }

  .feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
  }

  .feedback-form input,
  .feedback-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
  }

  .feedback-form textarea {
    resize: vertical;
    min-height: 100px;
  }

  /* User Comments */
  .comments-wrap {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .comment {
    display: flex;
    gap: 10px;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .comment-body {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  }

  .comment-name {
    font-size: 12px;
    color: var(--accent-pink);
    margin-bottom: 4px;
  }

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

  /* Floating Download Window */
  .floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    background: rgba(28, 18, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-purple);
    border-radius: var(--radius-lg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  }

  .float-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .float-info img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
  }

  .float-text h5 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .float-text p {
    font-size: 10px;
    color: var(--text-muted);
  }

  .float-btn {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
  }

  /* Footer */
  footer {
    padding: 30px 20px;
    background-color: #0a060e;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
  }

  .footer-nav a {
    color: var(--text-muted);
  }

  .footer-nav a:hover {
    color: var(--text-main);
  }

  .footer-copy {
    margin-bottom: 10px;
  }

  /* Modal for iOS Safari/Baidu */
  .copy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

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

  .copy-modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  .copy-modal-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--accent-gold);
  }

  .copy-modal-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    text-align: center;
  }

  .copy-modal-close {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
  }

  /* Media Queries */
  @media (min-width: 768px) {
    .nav-links {
      display: flex;
    }
    .mobile-menu-btn {
      display: none;
    }
    header {
      padding: 15px 40px;
    }
    .hero h1 {
      font-size: 36px;
    }
    .hero-carousel img {
      width: 160px;
      height: 240px;
    }
    .grid-cards {
      grid-template-columns: repeat(3, 1fr);
    }
    .layout-split {
      flex-direction: row;
      align-items: center;
    }
    .layout-split.reversed {
      flex-direction: row-reverse;
    }
    .split-img {
      width: 40%;
    }
    .split-content {
      width: 60%;
      padding: 0 20px;
    }
    .section-title {
      font-size: 26px;
    }
  }

  @media (min-width: 1024px) {
    .hero h1 {
      font-size: 42px;
    }
    .grid-cards {
      grid-template-columns: repeat(4, 1fr);
    }
    .container {
      max-width: 1200px;
      margin: 0 auto;
    }
    .split-img {
      width: 35%;
    }
    .split-content {
      width: 65%;
      padding: 0 40px;
    }
    .download-zone-img {
      max-width: 400px;
    }
  }