:root {
    --bg: #fdfaf5;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-light: #777777;
    --primary: #c92a4a;
    --gold: #d4af37;
    --border: #e8e0d5;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --radius: 12px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  
  /* 顶部导航 */
  header {
    position: sticky;
    top: 0;
    background: rgba(253, 250, 245, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }
  .logo-group { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 18px; color: var(--primary); }
  .logo-group img { height: 32px; width: auto; }
  .nav-links { display: none; gap: 20px; font-size: 15px; }
  .nav-links a:hover { color: var(--primary); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .search-box { display: none; border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; font-size: 14px; outline: none; width: 150px; }
  .btn-download-top {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 通用区块 */
  section { padding: 40px 20px; border-bottom: 1px dashed var(--border); position: relative; }
  h2 { font-size: 24px; margin-bottom: 20px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
  h2::before { content: ''; display: block; width: 4px; height: 24px; background: var(--gold); border-radius: 2px; }
  h3 { font-size: 16px; font-weight: 600; margin-top: 8px; }
  
  /* 首页首屏 */
  .hero { text-align: center; padding-top: 60px; }
  .hero h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.3; }
  .hero p { color: var(--text-light); margin-bottom: 24px; }
  .hero-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-cover-grid img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 3 / 4;
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto 30px;
  }
  .btn-android, .btn-ios {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: 14px 0;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-main);
    min-height: 48px;
    transition: all 0.3s;
  }
  .btn-android:active, .btn-ios:active {
    background: var(--gold);
    color: #fff;
  }

  /* 热播推荐 - 屏风折阵 (简化版两列卡) */
  .drama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .drama-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s;
  }
  .drama-card:active { transform: scale(0.98); }
  .drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
  .drama-info { padding: 10px; }
  .drama-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .drama-title-row h3 { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tag { font-size: 12px; color: var(--primary); background: #fdf0f2; padding: 2px 6px; border-radius: 4px; }
  .hot-val { font-size: 12px; color: var(--text-light); }

  /* 排行榜 */
  .rank-list {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .rank-item:last-child { border-bottom: none; }
  .rank-num { font-size: 20px; font-weight: bold; color: var(--gold); width: 24px; }
  .rank-item img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
  .rank-detail { flex: 1; }
  .rank-detail h3 { font-size: 15px; margin: 0 0 4px; }
  .rank-meta { font-size: 12px; color: var(--text-light); }

  /* 题材分类 */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
  }
  .cat-card h3 { color: var(--primary); margin-bottom: 4px; }
  .cat-card p { font-size: 13px; color: var(--text-light); }

  /* 独立首发 */
  .exclusive-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
  }
  .exclusive-card img {
    width: 100px;
    height: 133px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gold);
  }
  .exclusive-card div { flex: 1; }
  .exclusive-card h3 { font-size: 18px; margin-bottom: 8px; }
  .exclusive-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
  .btn-reserve {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
  }

  /* 免费专区 */
  .free-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .free-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    text-align: center;
  }
  .free-card img { width: 100%; border-radius: 8px; aspect-ratio: 3/4; object-fit: cover; margin-bottom: 8px; }
  .free-card h3 { font-size: 14px; margin: 0; }
  .free-badge { font-size: 12px; color: var(--primary); background: #fdf0f2; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }

  /* 互动区 */
  .vote-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .vote-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .vote-info h3 { font-size: 15px; margin: 0; }
  .vote-btn {
    background: #fdf0f2;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    min-height: 36px;
  }

  /* 常见问题 */
  details {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
  }
  summary {
    padding: 16px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; font-size: 20px; color: var(--text-light); }
  details[open] summary::after { content: '-'; }
  .faq-content { padding: 0 16px 16px; color: var(--text-light); font-size: 14px; }

  /* 下载安装 */
  .download-section { text-align: center; }
  .steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
  }
  .step-item {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
  }
  .step-item h3 { color: var(--primary); margin-bottom: 4px; }
  .step-item p { font-size: 13px; color: var(--text-light); }
  .download-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
  }
  .download-actions a {
    flex: 1;
    background: var(--gold);
    color: #fff;
    padding: 16px 0;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 页脚 */
  footer {
    background: #f5f0e8;
    padding: 30px 20px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border);
  }
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .footer-links a:hover { color: var(--primary); }
  .copyright { margin-bottom: 8px; }
  .footer-meta a { color: var(--text-light); text-decoration: underline; }

  /* 底部悬浮下载条 */
  .floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    display: flex;
    gap: 12px;
    z-index: 2000;
  }
  .floating-bar a {
    flex: 1;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 24px;
    font-weight: bold;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 响应式 */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .search-box { display: block; }
    .hero-cover-grid { grid-template-columns: repeat(4, 1fr); }
    .drama-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .free-grid { grid-template-columns: repeat(4, 1fr); }
    .steps { flex-direction: row; }
    .step-item { flex: 1; }
    .floating-bar { display: none; }
  }
  @media (min-width: 1024px) {
    header { padding: 10px 40px; }
    section { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
    .hero-cover-grid { grid-template-columns: repeat(5, 1fr); }
    .drama-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(5, 1fr); }
    .free-grid { grid-template-columns: repeat(5, 1fr); }
    footer { padding: 40px; }
  }