:root {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-hover: #2c2c2c;
    --primary: #ffca28;
    --primary-hover: #ffd54f;
    --primary-text: #1a1a1a;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border: #333333;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --max-width: 1200px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

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

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

  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
  }

  .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--primary-text);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
  }

  .skip-link:focus {
    top: 0;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
  }

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

  .nav-links {
    display: none;
    gap: 24px;
    font-size: 15px;
  }

  .nav-links a {
    color: var(--text-muted);
    transition: color 0.2s;
  }

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

  .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--primary-text);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
  }

  .btn-download:hover {
    background-color: var(--primary-hover);
  }

  .btn-download:active {
    transform: scale(0.96);
  }

  /* Hero */
  .hero {
    padding: 60px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
  }

  .hero h1 span {
    color: var(--primary);
  }

  .hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-actions .btn-download {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 24px;
  }

  /* Categories */
  .section-title {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
  }

  .section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
  }

  .category-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .category-row::-webkit-scrollbar {
    display: none;
  }

  .category-tag {
    background-color: var(--surface);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 16px;
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
  }

  .category-tag:hover, .category-tag.active {
    background-color: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
  }

  /* Feature Grid */
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .feature-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.2s, background 0.2s;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    background-color: var(--surface-hover);
  }

  .feature-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
  }

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

  /* Drama Cards */
  .drama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .drama-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
  }

  .drama-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .drama-cover {
    position: relative;
    aspect-ratio: 3/4;
    background-color: #222;
  }

  .drama-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .drama-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.7);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(4px);
  }

  .drama-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .drama-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .drama-desc {
    color: var(--text-muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .drama-meta {
    font-size: 12px;
    color: var(--primary);
    margin-top: auto;
  }

  /* Article Section */
  .article-section {
    padding: 60px 0;
    background-color: var(--surface);
  }

  .article-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .article-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 16px;
  }

  .article-content h3 {
    margin: 32px 0 16px;
    color: var(--text-main);
  }

  /* FAQ */
  .faq-section {
    padding: 60px 0;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .faq-item details {
    width: 100%;
  }

  .faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary::after {
    content: "＋";
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s;
  }

  .faq-item details[open] summary::after {
    content: "－";
  }

  .faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
  }

  /* Mobile Bottom Bar */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    z-index: 99;
  }

  .mobile-bottom-bar .btn-download {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
  }

  /* Footer */
  .site-footer {
    background-color: var(--bg);
    padding: 40px 0 80px; /* Space for mobile bottom bar */
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
  }

  .footer-download-area {
    background-color: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
  }

  .footer-download-area h3 {
    color: var(--text-main);
    margin-bottom: 16px;
  }

  .footer-download-area .btn-download {
    padding: 12px 32px;
  }

  .footer-info p {
    margin-bottom: 8px;
  }

  .footer-info a {
    color: var(--text-muted);
    text-decoration: underline;
  }

  /* Image Gallery (Horizontal Scroll) */
  .gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-scroll::-webkit-scrollbar {
    display: none;
  }
  .gallery-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface);
  }
  .gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  .gallery-item p {
    padding: 12px;
    font-size: 14px;
    color: var(--text-muted);
  }

  /* Media Queries */
  @media (min-width: 768px) {
    .nav-links {
      display: flex;
    }
    .hero {
      padding: 100px 0;
    }
    .hero h1 {
      font-size: 48px;
    }
    .hero-actions {
      flex-direction: row;
      justify-content: center;
    }
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .drama-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .mobile-bottom-bar {
      display: none;
    }
    .site-footer {
      padding-bottom: 40px;
    }
  }

  @media (min-width: 1024px) {
    .feature-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .drama-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }