:root {
    --bg-dark: #121216;
    --bg-card: #1c1c22;
    --bg-light: #25252d;
    --text-main: #f2f2f5;
    --text-muted: #9a9aa5;
    --primary: #e84a5f;
    --primary-hover: #ff647a;
    --gradient: linear-gradient(135deg, #e84a5f, #ff7b8a);
    --border-radius: 12px;
    --max-width: 1200px;
  }

  * { 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-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  /* Header */
  header {
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid #2a2a33;
  }
  .header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo-group { display: flex; align-items: center; gap: 8px; }
  .logo-group img { height: 32px; width: auto; border-radius: 6px; }
  .logo-group span { font-size: 1.1rem; font-weight: bold; color: var(--text-main); }
  .nav-links { display: none; gap: 20px; }
  .nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
  .nav-links a:hover { color: var(--primary); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .search-box {
    display: none;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 4px 12px;
  }
  .search-box input {
    border: none;
    background: transparent;
    color: var(--text-main);
    outline: none;
    font-size: 0.85rem;
    width: 100px;
  }
  .search-box input::placeholder { color: var(--text-muted); }
  .btn-download {
    background: var(--gradient);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.2s;
    white-space: nowrap;
  }
  .btn-download:hover { transform: scale(1.05); }

  /* Main Content */
  main { max-width: var(--max-width); margin: 0 auto; padding-bottom: 40px; }

  /* Hero Section */
  .hero {
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(232, 74, 95, 0.15) 0%, transparent 70%);
  }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 2rem; margin-bottom: 12px; line-height: 1.3; }
  .hero-text h1 span { color: var(--primary); }
  .hero-text p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }
  .hero-demo-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .hero-demo-stats strong { color: var(--text-main); font-size: 1.2rem; display: block; }
  .hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .hero-actions .btn-download { padding: 12px 32px; font-size: 1.1rem; }
  
  /* Hero Carousel */
  .hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--bg-card);
  }
  .hero-track {
    display: flex;
    transition: transform 0.3s ease-out;
    cursor: grab;
  }
  .hero-track:active { cursor: grabbing; }
  .hero-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 500px;
  }
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
  }
  .hero-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    border-radius: var(--border-radius);
  }
  .hero-slide-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
  .hero-slide-info p { font-size: 0.85rem; color: #ccc; }

  /* Section Common */
  section { padding: 30px 16px; }
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .section-header h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
  .section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
  }
  .more-link { font-size: 0.85rem; color: var(--text-muted); }
  
  /* Horizontal Scroll List */
  .scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scroll-container::-webkit-scrollbar { display: none; }
  .scroll-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .scroll-card:hover { transform: translateY(-4px); }
  .scroll-card img {
    width: 140px;
    height: 196px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
  }
  .scroll-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .scroll-card-tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(232, 74, 95, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
  }

  /* Hot Recommendations */
  .hot-rec-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hot-rec-detail {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .hot-rec-detail img {
    width: 80px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
  }
  .hot-rec-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
  .hot-rec-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }
  .hot-rec-info .heat { color: var(--primary); font-weight: bold; }

  /* Update Calendar */
  .calendar-list { display: flex; flex-direction: column; gap: 12px; }
  .cal-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .cal-time { font-weight: bold; color: var(--primary); width: 60px; flex-shrink: 0; }
  .cal-info { flex: 1; }
  .cal-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
  .cal-info p { font-size: 0.8rem; color: var(--text-muted); }
  .cal-status { font-size: 0.8rem; padding: 4px 8px; border-radius: 4px; background: var(--bg-light); white-space: nowrap; }
  .cal-status.done { color: #4cd964; background: rgba(76, 217, 100, 0.1); }
  .cal-status.wait { color: var(--primary); background: rgba(232, 74, 95, 0.1); }

  /* Ranking */
  .rank-list { display: flex; flex-direction: column; gap: 12px; }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 10px 12px;
    border-radius: var(--border-radius);
  }
  .rank-num { font-size: 1.2rem; font-weight: bold; width: 24px; text-align: center; color: var(--text-muted); }
  .rank-num.top { color: var(--primary); }
  .rank-cover { width: 50px; height: 70px; object-fit: cover; border-radius: 6px; }
  .rank-info { flex: 1; }
  .rank-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
  .rank-info p { font-size: 0.8rem; color: var(--text-muted); }
  .rank-trend { font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }
  .rank-trend.up { color: #4cd964; }
  .rank-trend.down { color: #ff3b30; }
  .rank-trend.flat { color: var(--text-muted); }

  /* Categories */
  .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .cat-card h4 { font-size: 0.95rem; }
  .cat-card p { font-size: 0.75rem; color: var(--text-muted); }
  .cat-covers { display: flex; gap: 6px; overflow: hidden; }
  .cat-covers img { width: 45%; height: 60px; object-fit: cover; border-radius: 4px; }

  /* Exclusive */
  .exclusive-main {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
  }
  .exclusive-main img { width: 90px; height: 126px; object-fit: cover; border-radius: 8px; }
  .exclusive-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .exclusive-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
  .countdown-badge { background: var(--bg-light); padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; color: var(--primary); }
  
  .exclusive-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ex-item { background: var(--bg-card); border-radius: 8px; padding: 10px; }
  .ex-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
  .ex-item p { font-size: 0.75rem; color: var(--text-muted); }

  /* Free Zone */
  .free-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .free-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
  .free-card-info { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
  .free-card-info h4 { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .free-card-info p { font-size: 0.75rem; color: var(--text-muted); }
  .free-tag { font-size: 0.7rem; padding: 2px 4px; border-radius: 4px; display: inline-block; width: fit-content; }
  .free-tag.long { background: rgba(76, 217, 100, 0.15); color: #4cd964; }
  .free-tag.limit { background: rgba(232, 74, 95, 0.15); color: var(--primary); }
  .progress-bar { width: 100%; height: 4px; background: var(--bg-light); border-radius: 2px; margin-top: 4px; }
  .progress-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 60%; }

  /* Reviews */
  .review-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .review-scroll::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 260px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .review-header { display: flex; align-items: center; gap: 10px; }
  .review-header img { width: 36px; height: 36px; border-radius: 50%; background: #333; }
  .review-meta h4 { font-size: 0.9rem; }
  .review-stars { color: #ffb400; font-size: 0.8rem; letter-spacing: 2px; }
  .review-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
  
  .stats-row {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
  }
  .stat-item { text-align: center; }
  .stat-item strong { display: block; font-size: 1.4rem; color: var(--primary); }
  .stat-item span { font-size: 0.8rem; color: var(--text-muted); }

  /* Download Section */
  .download-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a20 100%);
    border-top: 1px solid #2a2a33;
  }
  .download-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
  .step-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--border-radius);
  }
  .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(232, 74, 95, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .step-text h4 { font-size: 1rem; margin-bottom: 4px; }
  .step-text p { font-size: 0.85rem; color: var(--text-muted); }
  
  .download-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .dl-btn {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 14px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s;
  }
  .dl-btn:hover { border-color: var(--primary); }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 8px; }
  .faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  .faq-question {
    padding: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
  }
  .faq-question::after { content: '+'; color: var(--text-muted); }
  .faq-item.active .faq-question::after { content: '-'; }
  .faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .faq-item.active .faq-answer { padding: 0 16px 16px; max-height: 200px; }

  /* Footer */
  footer {
    text-align: center;
    padding: 30px 16px;
    font-size: 0.75rem;
    color: #666;
    border-top: 1px solid #2a2a33;
  }
  footer p { margin-bottom: 8px; }
  footer a { color: #888; }
  footer a:hover { text-decoration: underline; }

  /* Floating Download Bar */
  .floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 34, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    z-index: 999;
  }
  .floating-bar p { font-size: 0.85rem; font-weight: bold; }
  .floating-actions { display: flex; gap: 8px; }
  .floating-actions .btn-download { padding: 6px 12px; font-size: 0.8rem; }

  /* Responsive */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .search-box { display: flex; }
    .hero { flex-direction: row; align-items: center; padding: 60px 24px; }
    .hero-text { flex: 1; text-align: left; }
    .hero-carousel { flex: 1; max-height: 400px; }
    .hero-slide { max-height: 400px; }
    .section-header h2 { font-size: 1.5rem; }
    .scroll-card { flex: 0 0 160px; }
    .scroll-card img { width: 160px; height: 224px; }
    .hot-rec-layout { flex-direction: row; }
    .hot-rec-detail { flex: 1; flex-direction: column; text-align: center; }
    .hot-rec-detail img { width: 120px; height: 168px; }
    .hot-rec-list { flex: 1; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .exclusive-list { grid-template-columns: repeat(3, 1fr); }
    .free-grid { grid-template-columns: repeat(4, 1fr); }
    .download-steps { flex-direction: row; }
    .step-item { flex: 1; }
    .download-btns { flex-direction: row; justify-content: center; padding-bottom: 20px; }
    .dl-btn { min-width: 200px; }
    .floating-bar { display: none; } /* Hide on desktop */
  }

  @media (min-width: 1024px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-carousel { max-height: 500px; }
    .hero-slide { max-height: 500px; }
    .scroll-card { flex: 0 0 180px; }
    .scroll-card img { width: 180px; height: 252px; }
  }