:root {
    --rainbow: linear-gradient(135deg, #FF4D4D 0%, #FF9F1C 25%, #FFD166 45%, #06D6A0 65%, #4D96FF 82%, #7C4DFF 100%);
    --primary: #7C4DFF;
    --bg-light: #F7F8FA;
    --text-main: #1A1A1A;
    --text-sub: #666666;
    --card-bg: #FFFFFF;
    --radius: 16px;
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 32px rgba(124,77,255,0.15);
    --max-width: 1200px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; object-fit: cover; }

  /* Header */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
  .nav-brand img { height: 32px; width: auto; border-radius: 6px; }
  .nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--text-sub); }
  .nav-links a:hover { color: var(--primary); }
  .nav-actions { display: flex; align-items: center; gap: 16px; }
  .search-box {
    display: flex; align-items: center; background: var(--bg-light);
    border-radius: 20px; padding: 6px 16px; border: 1px solid #E5E7EB;
  }
  .search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 140px; color: var(--text-main); }
  .btn-primary {
    background: var(--rainbow); color: #fff; font-weight: bold;
    padding: 8px 20px; border-radius: 20px; font-size: 14px;
    border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

  /* Hero */
  .hero {
    position: relative; padding: 80px 20px;
    background: radial-gradient(circle at top right, rgba(124,77,255,0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(255,77,77,0.1), transparent 50%);
    overflow: hidden;
  }
  .hero-container { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 40px; }
  .hero-text { flex: 1; }
  .hero-text h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
  .hero-text h1 span { background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .hero-text p { font-size: 18px; color: var(--text-sub); margin-bottom: 32px; }
  .hero-buttons { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .btn-badge {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
    padding: 8px 16px; font-size: 14px; font-weight: bold; color: var(--text-main);
    display: flex; align-items: center; gap: 6px; transition: border-color 0.2s;
  }
  .btn-badge:hover { border-color: var(--primary); color: var(--primary); }
  .hero-qr { display: flex; gap: 20px; align-items: center; background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); width: fit-content; }
  .hero-qr img { width: 80px; height: 80px; border-radius: 8px; background: var(--bg-light); }
  .hero-qr-info { font-size: 14px; color: var(--text-sub); }
  .hero-qr-info strong { display: block; font-size: 16px; color: var(--text-main); margin-bottom: 4px; }
  .hero-stats { display: flex; gap: 24px; margin-top: 32px; font-size: 14px; color: var(--text-sub); }
  .hero-stats span { font-weight: bold; color: var(--text-main); font-size: 18px; }

  .hero-visual { flex: 1; position: relative; display: flex; justify-content: center; }
  .phone-mockup {
    width: 220px; height: 440px; background: #000; border-radius: 32px;
    padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative; z-index: 2;
  }
  .phone-screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; position: relative; background: #333; }
  .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
  .phone-mockup-2 {
    position: absolute; top: 40px; right: -20px; z-index: 1;
    width: 180px; height: 360px; opacity: 0.8; transform: rotate(5deg);
  }
  .float-bubble {
    position: absolute; top: 20px; left: 20px;
    background: #fff; padding: 8px 12px; border-radius: 20px;
    font-size: 12px; font-weight: bold; box-shadow: var(--shadow); z-index: 3;
    animation: float 3s ease-in-out infinite;
  }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  /* Sections General */
  section { padding: 64px 20px; }
  section:nth-child(even) { background-color: #fff; }
  .section-inner { max-width: var(--max-width); margin: 0 auto; }
  .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
  .section-title { font-size: 28px; font-weight: bold; position: relative; display: inline-block; padding-bottom: 8px; }
  .section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--rainbow); border-radius: 2px;
  }
  .tabs { display: flex; gap: 12px; }
  .tab-btn {
    background: transparent; border: none; font-size: 16px; color: var(--text-sub);
    cursor: pointer; padding: 8px 16px; border-radius: 20px; font-weight: bold;
  }
  .tab-btn.active { background: var(--bg-light); color: var(--primary); }

  /* Cards Grid */
  .card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .drama-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
    position: relative; display: flex; flex-direction: column;
  }
  .drama-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
  .drama-poster { position: relative; aspect-ratio: 3/4; overflow: hidden; }
  .drama-poster img { width: 100%; height: 100%; transition: transform 0.3s; }
  .drama-card:hover .drama-poster img { transform: scale(1.05); }
  .tag-corner {
    position: absolute; top: 8px; left: 8px;
    padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; color: #fff;
  }
  .tag-exclusive { background: var(--rainbow); }
  .tag-free { background: #06D6A0; }
  .tag-hot { background: #FF4D4D; }
  .drama-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .drama-title { font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drama-meta { font-size: 12px; color: var(--text-sub); display: flex; justify-content: space-between; align-items: center; }
  .tag-list { display: flex; gap: 4px; flex-wrap: wrap; }
  .tag-pill { background: var(--bg-light); color: var(--text-sub); padding: 2px 8px; border-radius: 12px; font-size: 11px; }
  .hot-value { color: #FF4D4D; font-weight: bold; }

  /* Ranking */
  .ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .rank-column { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
  .rank-header { font-size: 20px; font-weight: bold; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #E5E7EB; }
  .rank-item:last-child { border-bottom: none; }
  .rank-num { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #fff; flex-shrink: 0; }
  .rank-1 .rank-num { background: #FFB300; }
  .rank-2 .rank-num { background: #B0BEC5; }
  .rank-3 .rank-num { background: #CD7F32; }
  .rank-4 .rank-num, .rank-5 .rank-num { background: #9CA3AF; }
  .rank-cover { width: 48px; height: 64px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
  .rank-cover img { width: 100%; height: 100%; }
  .rank-info { flex: 1; overflow: hidden; }
  .rank-info .title { font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rank-info .desc { font-size: 12px; color: var(--text-sub); }
  .rank-top-card { background: linear-gradient(to bottom, #FDFDFF, #F3F0FF); padding: 16px; border-radius: 12px; margin-bottom: 12px; }
  .rank-top-card .rank-item { border-bottom: none; padding: 0; }
  .rank-top-card .hook { font-size: 12px; color: var(--primary); margin-top: 4px; }

  /* Categories */
  .category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .category-card {
    background: #fff; border-radius: 12px; padding: 20px; text-align: center;
    box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
    transition: all 0.2s;
  }
  .category-card:hover { border-color: var(--primary); transform: translateY(-2px); }
  .category-icon { font-size: 24px; margin-bottom: 8px; }
  .category-name { font-size: 14px; font-weight: bold; }

  /* Exclusive */
  .exclusive-banner {
    background: var(--rainbow); border-radius: var(--radius); padding: 24px 32px;
    color: #fff; display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
  }
  .exclusive-banner h3 { font-size: 24px; font-weight: bold; }
  .exclusive-banner a { color: #fff; font-size: 14px; opacity: 0.9; }
  .exclusive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

  /* Features */
  .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .feature-card {
    background: #fff; padding: 24px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center;
  }
  .feature-icon { font-size: 32px; margin-bottom: 12px; }
  .feature-card h4 { font-size: 16px; margin-bottom: 8px; }
  .feature-card p { font-size: 13px; color: var(--text-sub); }

  /* Reviews */
  .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .review-card {
    background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary); }
  .review-nickname { font-weight: bold; font-size: 14px; }
  .review-stars { color: #FFB300; font-size: 12px; }
  .review-text { font-size: 14px; color: var(--text-sub); }

  /* Footer */
  .footer { background: #222; color: #A0A0A0; padding: 64px 20px 32px; }
  .footer-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
  .footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
  .footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
  .footer-col a:hover { color: #fff; }
  .footer-bottom { max-width: var(--max-width); margin: 0 auto; border-top: 1px solid #333; padding-top: 24px; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
  .footer-bottom a { color: #A0A0A0; text-decoration: underline; }
  .footer-bottom a:hover { color: #fff; }
  .update-time { font-size: 12px; color: #666; margin-top: 8px; }

  /* Mobile Bottom Bar */
  .mobile-download-bar {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 200;
    background: var(--rainbow); padding: 12px 20px; justify-content: space-between; align-items: center;
    color: #fff; box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  }
  .mobile-download-bar span { font-weight: bold; font-size: 15px; }
  .btn-white { background: #fff; color: var(--primary); font-weight: bold; padding: 6px 16px; border-radius: 20px; font-size: 14px; }

  /* Responsive */
  @media (max-width: 1024px) {
    .hero-text h1 { font-size: 36px; }
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .exclusive-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .search-box { display: none; }
    .menu-toggle { display: block; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 32px; }
    .hero-buttons { justify-content: center; }
    .hero-qr { margin: 0 auto; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
    .card-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
    .drama-card { flex: 0 0 160px; scroll-snap-align: start; }
    .ranking-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .exclusive-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
    .exclusive-grid .drama-card { flex: 0 0 160px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .mobile-download-bar { display: flex; }
    body { padding-bottom: 60px; }
    .footer-container { grid-template-columns: 1fr; }
  }