:root {
    --bg-main: #0b0c10;
    --bg-card: #16181d;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #ec4899;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --radius: 12px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  ul { list-style: none; }

  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .header-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img { height: 32px; width: auto; border-radius: 6px; }
  .brand span { font-size: 1.2rem; font-weight: bold; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; color: transparent; }
  .nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
  .main-nav ul { display: flex; gap: 20px; font-size: 0.95rem; }
  .main-nav a { color: var(--text-muted); transition: color 0.2s; }
  .main-nav a:hover { color: var(--primary); }

  /* Hero */
  .hero-section {
    padding: 40px 16px; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%);
  }
  .hero-container { max-width: 800px; margin: 0 auto; }
  .hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; line-height: 1.2;
    background: linear-gradient(135deg, #fff, #94a3b8); -webkit-background-clip: text; color: transparent;
  }
  .hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
  .download-group {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px;
  }
  .btn-download {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 30px; font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(236,72,153,0.3);
  }
  .btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(236,72,153,0.5); }
  .btn-outline { background: transparent; border: 1px solid var(--primary); box-shadow: none; }
  .btn-outline:hover { background: rgba(236,72,153,0.1); }

  /* Marquee */
  .marquee-wrapper {
    overflow: hidden; white-space: nowrap; padding: 12px 0;
    background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .marquee-content {
    display: inline-block; animation: marquee 20s linear infinite;
    font-size: 0.9rem; font-weight: bold;
  }
  .marquee-content span {
    background: linear-gradient(90deg, #f472b6, #a78bfa, #22d3ee);
    -webkit-background-clip: text; color: transparent; margin: 0 15px;
  }
  @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

  /* Sections Common */
  .section-block { padding: 60px 16px; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-title { font-size: 2rem; text-align: center; margin-bottom: 40px; position: relative; }
  .section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; background: var(--primary); border-radius: 2px;
  }

  /* Section 1: 今日上新 (Grid) */
  .new-arrivals { background-color: #0f111a; }
  .grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s; }
  .card:hover { transform: translateY(-5px); }
  .card-img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
  .card-body { padding: 16px; }
  .card-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 8px; }
  .card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
  .tag { background: rgba(139,92,246,0.2); color: #a78bfa; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
  .card-desc { font-size: 0.9rem; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Section 2: 午夜小剧场 (Dark side-by-side) */
  .midnight-theater { background-color: #1a0b1a; }
  .theater-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
  .theater-img-box { flex: 1 1 300px; max-width: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
  .theater-content { flex: 1 1 400px; }
  .theater-content h3 { font-size: 1.5rem; color: #f472b6; margin-bottom: 16px; }
  .theater-list li { margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
  .theater-list strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
  .theater-list span { font-size: 0.9rem; color: var(--text-muted); }

  /* Section 3: 魔改剧库 (Table) */
  .library { background-color: #0c141f; }
  .table-responsive { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; text-align: left; }
  th, td { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  th { color: var(--accent); font-weight: normal; font-size: 0.9rem; text-transform: uppercase; }
  td { font-size: 0.95rem; }

  /* Section 4: 魔改二创坊 (Masonry/Tags) */
  .creation-workshop { background-color: #1a1c29; }
  .tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .tag-cloud span { background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 30px; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.1); cursor: default; transition: background 0.2s; }
  .tag-cloud span:hover { background: rgba(139,92,246,0.2); border-color: #8b5cf6; }

  /* Section 5: 魔改神评 (Comments) */
  .reviews { background-color: #0b0c10; }
  .review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
  .review-item { background: var(--bg-card); padding: 20px; border-radius: var(--radius); display: flex; gap: 16px; }
  .review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .review-body p { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 8px; }
  .review-user { font-size: 0.85rem; color: var(--primary); font-weight: bold; }

  /* Section 6: 每日金句墙 (Timeline) */
  .quotes-wall { background-color: #14121f; }
  .timeline { position: relative; max-width: 800px; margin: 0 auto; }
  .timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.1); transform: translateX(-50%); }
  .timeline-item { position: relative; margin-bottom: 30px; width: 50%; padding: 0 30px; }
  .timeline-item:nth-child(odd) { left: 0; text-align: right; }
  .timeline-item:nth-child(even) { left: 50%; text-align: left; }
  .timeline-content { background: var(--bg-card); padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
  .timeline-content strong { display: block; color: var(--accent); margin-bottom: 8px; font-size: 1.1rem; }

  /* Section 7: 隐私安全 & FAQ */
  .faq-section { background-color: #0f172a; }
  .faq-layout { display: flex; flex-wrap: wrap; gap: 40px; }
  .faq-left { flex: 1 1 300px; }
  .faq-right { flex: 1 1 400px; }
  .faq-item { background: var(--bg-card); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 12px; }
  .faq-item h4 { color: #f8fafc; margin-bottom: 8px; font-size: 1rem; }
  .faq-item p { color: var(--text-muted); font-size: 0.9rem; }

  /* Section 8: 下载与安装 */
  .download-section { background-color: #0d1117; text-align: center; }
  .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; text-align: left; }
  .step-card { background: #161b22; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
  .step-card .step-num { display: inline-block; width: 24px; height: 24px; background: var(--primary); color: white; border-radius: 50%; text-align: center; line-height: 24px; font-size: 0.85rem; margin-bottom: 12px; font-weight: bold; }

  /* Floating Download */
  .floating-download {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; padding: 12px 32px; border-radius: 30px; font-weight: bold;
    box-shadow: 0 10px 25px rgba(236,72,153,0.4); z-index: 999;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
  }
  .floating-download img { width: 24px; height: 24px; border-radius: 4px; }

  /* Footer */
  .site-footer { padding: 30px 16px; text-align: center; font-size: 0.85rem; color: #64748b; border-top: 1px solid rgba(255,255,255,0.05); }
  .site-footer p { margin-bottom: 10px; }
  .footer-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; }
  .footer-links a { color: #94a3b8; }
  .footer-links a:hover { color: var(--primary); }
  .beian { color: #475569; margin-top: 10px; display: block; }
  .update-time { display: block; margin-top: 5px; font-size: 0.8rem; color: #475569; }

  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-main); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 16px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; left: 0 !important; text-align: left !important; }
    .theater-layout { flex-direction: column; }
    .theater-img-box { width: 100%; max-width: 100%; }
    .faq-layout { flex-direction: column; }
    .download-group { flex-direction: column; align-items: stretch; }
    .btn-download { justify-content: center; }
  }