:root {
    --bg: #f7f9f5;
    --bg-alt: #ffffff;
    --text: #2d3329;
    --text-light: #67705f;
    --green: #5c9e4a;
    --green-light: #e8f2e4;
    --orange: #f08a35;
    --orange-light: #fdf0e3;
    --berry: #d44d5c;
    --border: #e1e6dc;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(60, 80, 50, 0.06);
    --transition: all 0.3s ease;
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  button { cursor: pointer; border: none; font-family: inherit; }
  input { font-family: inherit; }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 249, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

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

  .logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
  }

  .logo-area img {
    height: 32px;
    width: auto;
    border-radius: 8px;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
  }

  .nav-links a {
    transition: color 0.2s;
  }

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

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .search-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-download {
    background: var(--green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
  }

  .btn-download:hover {
    background: #4a863b;
    transform: translateY(-1px);
  }

  .hamburger {
    display: none;
    background: none;
    font-size: 24px;
    color: var(--text);
  }

  /* Hero */
  .hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
  }

  .hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 158, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
  }

  .hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--green), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
  }

  .hero-search {
    display: flex;
    background: var(--bg-alt);
    border-radius: 30px;
    padding: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    max-width: 480px;
  }

  .hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    color: var(--text);
  }

  .hero-search input::placeholder {
    color: #a0a89a;
  }

  .hero-search button {
    background: var(--green);
    color: #fff;
    border-radius: 24px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
  }

  .hero-search button:hover {
    background: #4a863b;
  }

  .hot-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--text-light);
  }

  .hot-words span {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
  }

  .hot-words span:hover {
    border-color: var(--green);
    color: var(--green);
  }

  .hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .btn-primary-lg {
    background: var(--green);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
  }

  .btn-primary-lg:hover {
    background: #4a863b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 158, 74, 0.3);
  }

  .btn-outline-lg {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: inline-block;
  }

  .btn-outline-lg:hover {
    border-color: var(--text);
  }

  .hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
  }

  .stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
  }

  .stat-label {
    font-size: 13px;
    color: var(--text-light);
  }

  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-poster {
    width: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }

  .hero-poster:nth-child(2) {
    transform: translateY(20px);
  }

  .hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-poster:hover {
    transform: translateY(-5px);
  }

  .hero-poster:nth-child(2):hover {
    transform: translateY(15px);
  }

  /* Section Common */
  section {
    padding: 60px 0;
  }

  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
  }

  .section-header h2 span {
    color: var(--green);
  }

  .section-header p {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 4px;
  }

  .section-header .more-link {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .section-header .more-link:hover {
    color: var(--green);
  }

  /* Hot Shelf */
  .hot-shelf {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hot-shelf::-webkit-scrollbar {
    display: none;
  }

  .drama-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
  }

  .drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 80, 50, 0.12);
  }

  .card-cover {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
  }

  .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .drama-card:hover .card-cover img {
    transform: scale(1.06);
  }

  .card-info {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .tag {
    background: var(--green-light);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 6px;
  }

  .tag.hot {
    background: var(--orange-light);
    color: var(--orange);
  }

  .card-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--radius);
  }

  .drama-card:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .card-hover-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-watch {
    background: var(--green);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
  }

  /* Categories */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .category-item {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    cursor: pointer;
  }

  .category-item:hover {
    border-color: var(--green);
    transform: translateY(-3px);
  }

  .category-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
  }

  /* Rankings */
  .tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar { display: none; }

  .tab-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    transition: var(--transition);
  }

  .tab-btn.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-alt);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .rank-item:hover {
    transform: translateX(4px);
  }

  .rank-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--border);
    width: 32px;
    text-align: center;
    font-style: italic;
  }

  .rank-item:nth-child(1) .rank-num { color: var(--orange); }
  .rank-item:nth-child(2) .rank-num { color: var(--berry); }
  .rank-item:nth-child(3) .rank-num { color: var(--green); }

  .rank-cover {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }

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

  .rank-info {
    flex: 1;
    min-width: 0;
  }

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

  .rank-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
  }

  /* Discover */
  .discover-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .discover-filters input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
  }

  .discover-filters input:focus {
    border-color: var(--green);
  }

  .discover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
  }

  .empty-state.show {
    display: block;
  }

  .empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
  }

  /* Features */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .feature-card {
    background: var(--bg-alt);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .feature-card:hover {
    transform: translateY(-4px);
  }

  .feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
  }

  /* Download Section */
  .download-section {
    background: linear-gradient(135deg, var(--green-light), var(--orange-light));
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 1000px;
  }

  .download-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
  }

  .download-section p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
  }

  .btn-download-lg {
    background: var(--text);
    color: #fff;
    padding: 18px 48px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
  }

  .btn-download-lg:hover {
    background: #1a1f18;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  /* Footer */
  footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: #a0a89a;
  }

  footer p {
    margin-bottom: 8px;
  }

  footer a {
    color: #a0a89a;
    transition: color 0.2s;
  }

  footer a:hover {
    color: var(--text);
  }

  /* Animations */
  .fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    transform: translateY(0);
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .hero-search {
      margin: 0 auto 16px;
    }
    .hot-words {
      justify-content: center;
    }
    .hero-cta {
      justify-content: center;
    }
    .hero-stats {
      justify-content: center;
    }
    .hero-visual {
      margin-top: 40px;
    }
    .category-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .discover-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 64px;
      left: 0;
      width: 100%;
      background: var(--bg-alt);
      flex-direction: column;
      padding: 20px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.05);
      gap: 16px;
      border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
      display: flex;
    }
    .hamburger {
      display: block;
    }
    .nav-actions .search-btn {
      display: none;
    }
    .hero-text h1 {
      font-size: 32px;
    }
    .hero-visual {
      gap: 8px;
    }
    .hero-poster {
      width: 100px;
    }
    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .tab-content.active {
      grid-template-columns: 1fr;
    }
    .discover-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
      grid-template-columns: 1fr;
    }
    .download-section {
      padding: 40px 20px;
      margin: 20px;
    }
    .download-section h2 {
      font-size: 24px;
    }
    .btn-download-lg {
      width: 100%;
      padding: 16px;
      text-align: center;
    }
  }