:root {
    --bg-dark: #0f111a;
    --bg-darker: #08090d;
    --bg-card: #181b26;
    --accent-pink: #ff2a6d;
    --accent-cyan: #05d9e8;
    --accent-purple: #9d4edd;
    --text-main: #f0f2f5;
    --text-muted: #a0a5b5;
    --radius: 12px;
    --transition: all 0.3s ease;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for floating dock */
  }

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

  /* Header & Nav */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-cyan);
  }
  .brand img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
  }
  .desktop-nav {
    display: flex;
    gap: 15px;
  }
  .desktop-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
  }
  .desktop-nav a:hover {
    color: var(--accent-pink);
  }
  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transition: var(--transition);
  }
  .desktop-nav a:hover::after { width: 100%; }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav.active { display: flex; }

  /* Hero Section */
  .hero {
    position: relative;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #1c1e2e 0%, var(--bg-darker) 70%);
  }
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 30px;
  }
  .hero-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    width: 100%;
    max-width: 1000px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-gallery::-webkit-scrollbar { display: none; }
  .hero-gallery .poster {
    flex: 0 0 200px;
    height: 280px;
    border-radius: var(--radius);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: var(--transition);
  }
  .hero-gallery .poster:hover {
    transform: translateY(-5px) scale(1.02);
  }
  .hero-gallery .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-gallery .poster span {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.8rem;
    padding: 20px 10px 8px;
    text-align: left;
  }

  .download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-width: 120px;
  }
  .btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
  }
  .btn-alt {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
  }
  .btn-alt:hover {
    background: rgba(255,255,255,0.2);
  }

  /* Marquee */
  .marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-weight: bold;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
  }
  .marquee-content span { margin-right: 30px; }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Global Section Styles */
  section {
    padding: 50px 20px;
  }
  .section-center {
    max-width: 1100px;
    margin: 0 auto;
  }
  .section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
  }

  /* Magic Section (同款魔改) */
  .bg-magic { background: #121626; }
  .magic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .magic-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
  }
  .magic-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
  }
  .magic-card img {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
  }
  .magic-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent-cyan);
  }
  .magic-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255,42,109,0.2);
    color: var(--accent-pink);
    margin-right: 5px;
  }

  /* Completed Section (完结魔改剧) */
  .bg-completed { background: #1a1423; }
  .completed-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  @media (min-width: 768px) {
    .completed-layout {
      flex-direction: row;
      align-items: flex-start;
    }
  }
  .completed-left {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .completed-left img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .completed-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 768px) {
    .completed-right { grid-template-columns: 1fr 1fr; }
  }
  .list-item {
    background: rgba(255,255,255,0.03);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-pink);
  }
  .list-item a {
    color: var(--accent-cyan);
    font-weight: bold;
  }

  /* Hot Section (本周热播榜) with Timeline */
  .bg-hot { background: #0d1117; }
  .hot-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  .timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .timeline-time {
    font-weight: bold;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    min-width: 60px;
    text-align: right;
    position: relative;
  }
  .timeline-time::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
  }
  .timeline-content {
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 8px;
    flex: 1;
    border: 1px solid rgba(255,255,255,0.05);
  }
  .timeline-content h4 {
    color: #fff;
    margin-bottom: 5px;
  }
  .timeline-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  /* Reviews Section (用户神评) */
  .bg-reviews { background: #15121e; }
  .review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
  }
  @media (min-width: 768px) {
    .review-grid { grid-template-columns: 1fr 1fr; }
  }
  .review-card {
    background: linear-gradient(145deg, #1c1a27, #121019);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
  }
  .review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-darker);
    padding: 2px;
    border: 1px solid var(--accent-purple);
    flex-shrink: 0;
  }
  .review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  .review-body h4 {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    margin-bottom: 6px;
  }
  .review-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* VIP Section (会员权益) */
  .bg-vip { background: #1f1a13; }
  .vip-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
  }
  .vip-card {
    background: rgba(255,215,0,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    padding: 20px 15px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
  }
  .vip-card:hover {
    background: rgba(255,215,0,0.1);
    transform: translateY(-4px);
  }
  .vip-card h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .vip-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  /* Privacy Section (隐私安全) */
  .bg-privacy { background: #0f151a; }
  .privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(5, 217, 232, 0.2);
  }
  .privacy-content h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.2rem;
  }
  .privacy-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  /* FAQ Section (常见问题) */
  .bg-faq { background: #14121c; }
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    background: rgba(255,255,255,0.03);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .faq-q {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
  }
  .faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  .faq-item.active .faq-a {
    padding: 15px 20px;
    max-height: 200px;
  }

  /* Install Section */
  .bg-install { background: #1a1212; }
  .install-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
  }
  @media (min-width: 768px) {
    .install-layout {
      flex-direction: row;
      align-items: stretch;
    }
  }
  .install-img {
    flex: 1;
    max-width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .install-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .install-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }
  .step-item {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-pink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }
  .step-text h4 { font-size: 0.95rem; color: #fff; }
  .step-text p { font-size: 0.8rem; color: var(--text-muted); }

  /* Feedback Section */
  .bg-feedback { background: #161b22; padding-top: 30px; padding-bottom: 30px;}
  .feedback-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.2);
  }
  .feedback-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }

  /* Footer */
  footer {
    background: #050608;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  footer a {
    color: #666;
    text-decoration: none;
  }
  footer a:hover { color: var(--text-muted); }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  .footer-nav a { color: #777; }
  .footer-info { margin-bottom: 10px; line-height: 1.8; }

  /* Floating Bottom Dock */
  .floating-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 90%;
    max-width: 450px;
  }
  .floating-dock img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  .dock-info h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
  }
  .dock-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
  }
  .dock-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Modal for PC/Android */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 300px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .modal-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
  }
  .modal-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    text-align: center;
  }
  .modal-box button {
    width: 100%;
    padding: 10px;
    background: var(--accent-pink);
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 1.6rem; }
    .hero-gallery .poster { flex: 0 0 160px; height: 220px; }
    .magic-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
  }