:root {
    --bg-color: #fcfdfa;
    --surface-color: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --primary-green: #4ca766;
    --primary-green-hover: #3b8a51;
    --accent-orange: #ff8c42;
    --accent-red: #e53e3e;
    --light-green: #e6f4ea;
    --light-orange: #fff3e0;
    --border-color: #edf2f7;
    --radius-card: 16px;
    --radius-btn: 24px;
    --shadow-card: 0 8px 24px rgba(149, 157, 165, 0.1);
    --shadow-hover: 0 16px 32px rgba(149, 157, 165, 0.2);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

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

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  ul {
    list-style: none;
  }

  /* 模糊柔光装饰 */
  .glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
  }
  .glow-1 { width: 400px; height: 400px; background: var(--light-green); top: -100px; left: -100px; }
  .glow-2 { width: 300px; height: 300px; background: var(--light-orange); top: 200px; right: -50px; }

  /* 导航条 */
  header {
    position: sticky;
    top: 0;
    background: rgba(252, 253, 250, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-container {
    max-width: 1200px;
    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;
    color: var(--primary-green);
  }

  .nav-brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }

  .nav-links {
    display: flex;
    gap: 24px;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
  }

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

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

  .btn-download-nav {
    background-color: var(--primary-green);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
  }

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

  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
  }

  /* 主内容区 */
  main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* 首屏 */
  .hero-section {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
  }

  .hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
  }

  .search-box {
    display: flex;
    background: var(--surface-color);
    border-radius: 30px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
  }

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

  .search-box button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .search-box button:hover {
    background: var(--primary-green-hover);
  }

  .hot-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
  }

  .hot-searches span {
    color: var(--text-muted);
  }

  .hot-searches a {
    color: var(--text-main);
    background: var(--light-orange);
    padding: 4px 12px;
    border-radius: 12px;
    transition: background 0.3s;
  }

  .hot-searches a:hover {
    background: #ffe0b2;
  }

  .hero-stats {
    display: flex;
    gap: 30px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
  }

  .hero-stats strong {
    color: var(--primary-green);
    font-size: 18px;
  }

  .btn-primary-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), #6bd18c);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(76, 167, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(76, 167, 102, 0.4);
  }

  .hero-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transform: rotate(2deg);
  }

  .hero-collage img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  .hero-collage img:nth-child(2) { transform: translateY(20px); }
  .hero-collage img:nth-child(3) { transform: translateY(40px); }

  /* 通用区块样式 */
  section {
    padding: 60px 0;
    position: relative;
  }

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

  .section-title h2 {
    font-size: 32px;
    color: var(--text-main);
    font-weight: bold;
  }

  .section-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
    margin-top: 8px;
  }

  .section-title p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
  }

  /* 卡片样式 */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

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

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

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

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

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

  .card-info {
    padding: 16px;
  }

  .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
  }

  .card-tag {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
  }

  .card-hover-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .drama-card:hover .card-hover-desc {
    opacity: 1;
  }

  .card-hover-desc p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .btn-watch {
    background: var(--accent-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
  }

  /* 热播推荐横滚 */
  .horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .horizontal-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
  }

  .horizontal-scroll .drama-card {
    min-width: 160px;
    scroll-snap-align: start;
  }

  /* 题材分类 */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .category-card {
    background: var(--surface-color);
    border-radius: var(--radius-card);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: all 0.3s;
  }

  .category-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
  }

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

  .category-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main);
  }

  /* 榜单 */
  .tab-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .tab-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
  }

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

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

  .ranking-item {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 12px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
  }

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

  .rank-num {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-orange);
    width: 30px;
    text-align: center;
    margin-right: 12px;
  }

  .ranking-item img {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
  }

  .rank-info {
    flex: 1;
  }

  .rank-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
  }

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

  /* 平台特色 */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--surface-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

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

  .feature-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
  }

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

  /* 下载入口 */
  .download-section {
    background: linear-gradient(135deg, var(--light-green), var(--light-orange));
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
  }

  .download-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-main);
  }

  .download-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
  }

  /* 页脚 */
  footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
  }

  footer a {
    color: var(--text-muted);
    transition: color 0.3s;
  }

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

  .update-time {
    margin-top: 8px;
    font-size: 12px;
    color: #a0aec0;
  }

  /* 滚动淡入初始可见 */
  .fade-in {
    transition: transform 0.6s ease, opacity 0.6s ease;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-section {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .hero-content h1 {
      font-size: 40px;
    }
    .search-box {
      max-width: 500px;
      margin: 0 auto 16px;
    }
    .hot-searches {
      justify-content: center;
    }
    .hero-stats {
      justify-content: center;
    }
    .hero-collage {
      display: none; /* 平板端隐藏拼贴图以保持整洁，或者可以放到下方 */
    }
    .ranking-list {
      grid-template-columns: 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(--surface-color);
      flex-direction: column;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      gap: 16px;
    }
    .nav-links.active {
      display: flex;
    }
    .mobile-menu-btn {
      display: block;
    }
    .btn-download-nav {
      display: none;
    }
    .hero-content h1 {
      font-size: 32px;
    }
    .section-title h2 {
      font-size: 26px;
    }
    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
      grid-template-columns: 1fr;
    }
    .download-section h2 {
      font-size: 28px;
    }
    .download-section p {
      font-size: 16px;
    }
    .drama-card:hover {
      transform: none; /* 移动端取消悬停上浮 */
    }
    .drama-card:hover .card-cover img {
      transform: none;
    }
    .card-hover-desc {
      display: none; /* 移动端去掉悬停遮罩 */
    }
  }