:root {
    --bg-dark: #0d0a08;
    --bg-caramel: #1a120c;
    --gold: #F5A623;
    --peach: #FF8C42;
    --coral: #FF6B5B;
    --brown: #8B5E3C;
    --text-main: #FFF8F0;
    --text-sub: rgba(255, 248, 240, 0.7);
    --glass-bg: rgba(255, 248, 240, 0.06);
    --glass-border: rgba(245, 166, 35, 0.1);
    --font-stack: 'PingFang SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }

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

  body {
    font-family: var(--font-stack);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-caramel) 100%);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

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

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

  /* 悬浮玻璃导航栏 */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(13, 10, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.3s ease;
  }

  header.scrolled {
    background: rgba(13, 10, 8, 0.95);
    border-bottom: 1px solid var(--gold);
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-area img {
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.35);
  }

  .logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  nav {
    display: none;
  }

  @media (min-width: 768px) {
    nav {
      display: flex;
      gap: 24px;
      font-size: 15px;
      color: var(--text-sub);
    }
    nav a:hover {
      color: var(--gold);
    }
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .btn-download {
    background: linear-gradient(135deg, var(--gold), var(--peach));
    border-radius: 100px;
    color: var(--bg-caramel);
    font-weight: 700;
    padding: 8px 20px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: none;
  }

  @media (min-width: 768px) {
    .btn-download {
      display: inline-block;
    }
    .btn-download:hover {
      box-shadow: 0 6px 30px rgba(255, 140, 66, 0.45);
      transform: translateY(-2px) scale(1.05);
    }
  }

  /* 通用区块样式 */
  section {
    padding: 60px 5%;
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
  }

  @media (min-width: 768px) {
    .section-title {
      font-size: 32px;
    }
  }

  .section-sub {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 24px;
  }

  @media (min-width: 768px) {
    .section-sub {
      font-size: 16px;
    }
  }

  .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
  }

  /* Hero 首屏 */
  .hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, rgba(26, 18, 12, 0.8) 0%, var(--bg-dark) 100%);
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    animation: breathe 6s infinite alternate;
    z-index: 0;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.12) 0%, transparent 70%);
    animation: breathe 8s infinite alternate-reverse;
    z-index: 0;
  }

  @keyframes breathe {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  @media (min-width: 1024px) {
    .hero-content {
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
    }
  }

  .hero-text-area {
    flex: 1;
  }

  .hero-tag {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.2);
  }

  .hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.5), 0 0 40px rgba(255, 140, 66, 0.2);
  }

  @media (min-width: 768px) {
    .hero h1 {
      font-size: 56px;
    }
  }

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

  .hero-brand-slogan {
    font-size: 14px;
    color: rgba(255, 248, 240, 0.5);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
  }

  .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
  }

  @media (min-width: 1024px) {
    .hero-buttons {
      justify-content: flex-start;
    }
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--peach));
    border-radius: 100px;
    color: var(--bg-caramel);
    font-weight: 700;
    padding: 12px 32px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-primary:hover {
    box-shadow: 0 6px 30px rgba(255, 140, 66, 0.45);
    transform: translateY(-2px) scale(1.02);
  }

  .btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 100px;
    font-weight: 700;
    padding: 12px 32px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .btn-secondary:hover {
    background: rgba(245, 166, 35, 0.15);
  }

  .hero-image-area {
    display: none;
  }

  @media (min-width: 1024px) {
    .hero-image-area {
      display: block;
      position: relative;
      width: 300px;
      height: 530px;
    }
    .phone-frame {
      width: 100%;
      height: 100%;
      border-radius: 32px;
      border: 4px solid rgba(255, 255, 255, 0.1);
      background: var(--bg-dark);
      position: relative;
      box-shadow: 0 0 60px rgba(245, 166, 35, 0.2);
      overflow: hidden;
    }
    .phone-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 64px;
      height: 64px;
      background: var(--gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 10px rgba(245, 166, 35, 0.2);
      animation: pulse 2s infinite;
    }
    .play-btn::after {
      content: '';
      display: block;
      width: 0;
      height: 0;
      border-top: 12px solid transparent;
      border-bottom: 12px solid transparent;
      border-left: 20px solid var(--bg-caramel);
      margin-left: 6px;
    }
  }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(245, 166, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
  }

  /* 情绪分类入口 */
  .mood-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .mood-scroll::-webkit-scrollbar { display: none; }

  .mood-item {
    flex: 0 0 auto;
    min-width: 140px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
  }

  .mood-item:hover {
    border-color: var(--gold);
    background: rgba(245, 166, 35, 0.12);
    transform: scale(1.05);
  }

  /* 搜索热词 */
  .hot-words {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hot-word {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
    color: rgba(255, 248, 240, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .hot-word:hover {
    background: rgba(245, 166, 35, 0.15);
    color: #fff;
  }

  /* 卡片网格通用 */
  .grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  @media (min-width: 768px) {
    .grid-layout {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
  }

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

  .drama-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
  }

  .drama-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

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

  .drama-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.25);
    border-color: var(--gold);
  }

  .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 12px 12px;
    background: linear-gradient(to top, rgba(13,10,8,0.9), transparent);
  }

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

  .card-tag {
    font-size: 12px;
    color: rgba(255, 248, 240, 0.55);
  }

  /* 榜单 */
  .ranking-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
  }
  .ranking-tab {
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    color: var(--text-sub);
    font-size: 14px;
    cursor: pointer;
  }
  .ranking-tab.active {
    background: var(--gold);
    color: var(--bg-caramel);
    font-weight: 700;
  }

  .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--glass-bg);
    border-radius: 12px;
    gap: 12px;
  }
  .ranking-num {
    font-size: 20px;
    font-weight: 800;
    width: 24px;
    text-align: center;
  }
  .ranking-num.top1 { color: var(--gold); text-shadow: 0 0 10px rgba(245, 166, 35, 0.5); }
  .ranking-num.top2 { color: var(--peach); }
  .ranking-num.top3 { color: var(--coral); }
  .ranking-cover {
    width: 40px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
  }
  .ranking-title {
    font-size: 14px;
    flex: 1;
  }
  .ranking-hot {
    font-size: 12px;
    color: var(--gold);
  }

  /* AI 实验室 */
  .ai-lab {
    background: radial-gradient(circle at center, rgba(26, 18, 12, 0.8) 0%, var(--bg-dark) 100%);
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  @media (min-width: 768px) {
    .ai-lab {
      flex-direction: row;
    }
  }
  .vote-card {
    flex: 1;
  }
  .vote-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-bg);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 8px;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--peach), var(--coral));
    width: 65%;
    border-radius: 100px;
  }

  /* 暖光剧场 */
  .warm-theater {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #2a1a10 100%);
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  @media (min-width: 768px) {
    .warm-theater {
      flex-direction: row;
      align-items: center;
    }
  }
  .warm-img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(245, 166, 35, 0.15);
  }
  .feat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
  }
  .feat-item {
    padding: 16px;
    background: var(--glass-bg);
    border-radius: 12px;
    border-left: 3px solid transparent;
  }
  .feat-item:hover {
    border-left-color: var(--gold);
  }
  .feat-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .feat-item p {
    font-size: 14px;
    color: var(--text-sub);
  }

  /* 下载区 */
  .download-section {
    background: radial-gradient(circle at center, rgba(245, 166, 35, 0.1) 0%, var(--bg-dark) 80%);
    text-align: center;
    padding: 60px 5%;
    border-radius: 24px;
  }
  .download-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
  }
  @media (min-width: 1024px) {
    .download-layout {
      flex-direction: row;
      justify-content: center;
      text-align: left;
    }
  }
  .download-feats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
  }
  .download-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
  }
  .download-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  @media (min-width: 768px) {
    .download-btns {
      flex-direction: row;
    }
  }
  .btn-android {
    background: linear-gradient(135deg, var(--gold), var(--peach));
    color: var(--bg-caramel);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
    transition: all 0.3s ease;
  }
  .btn-android:hover {
    box-shadow: 0 6px 30px rgba(255, 140, 66, 0.45);
    transform: translateY(-2px);
  }
  .btn-ios {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
  }
  .btn-ios:hover {
    background: rgba(245, 166, 35, 0.15);
  }

  /* 页脚 */
  footer {
    background: #080604;
    padding: 40px 5% 20px;
    font-size: 14px;
    color: var(--text-sub);
    position: relative;
  }
  .footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--peach), transparent);
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  }
  @media (min-width: 768px) {
    .footer-content {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  .footer-col h4 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 16px;
  }
  .footer-col ul {
    list-style: none;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-col ul li a:hover {
    color: var(--gold);
  }
  .footer-bottom {
    border-top: 1px solid rgba(255, 248, 240, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 248, 240, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  /* 关于我们 details */
  details {
    margin-top: 16px;
    font-size: 12px;
  }
  details summary {
    cursor: pointer;
    color: rgba(255, 248, 240, 0.4);
    list-style: none; /* 隐藏默认箭头 */
  }
  details summary::-webkit-details-marker {
    display: none;
  }
  details summary:hover {
    color: var(--gold);
  }
  .about-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 248, 240, 0.4);
  }
  .about-links a:hover {
    color: var(--gold);
  }

  /* 动画类 */
  .fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  /* 用 JS 添加初始状态的类，确保无 JS 时也能正常显示 */
  .js-enabled .fade-up {
    opacity: 0;
    transform: translateY(30px);
  }

  .js-enabled .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-1 { transition-delay: 0.05s; }
  .stagger-2 { transition-delay: 0.1s; }