:root {
  --primary: #ff5a36;
  --primary-dark: #e0431f;
  --bg: #fff9f5;
  --text: #2a1810;
  --text-light: #6e584f;
  --card-bg: #ffffff;
  --border: #ffe3d6;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* 顶部导航 */
header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo-box { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); }
.logo-box img { height: 32px; border-radius: 6px; }
.nav-scroll { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { font-size: 14px; font-weight: 500; color: var(--text-light); white-space: nowrap; padding: 8px 0; transition: color 0.2s; }
.nav-scroll a:hover, .nav-scroll a.active { color: var(--primary); font-weight: bold; }
.header-btns { display: none; gap: 10px; }
.header-btns a { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: bold; color: white; background: var(--primary); }

/* 通用容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding: 40px 0; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; text-align: center; position: relative; }
.section-title span { display: block; font-size: 12px; color: var(--text-light); font-weight: normal; margin-top: 6px; letter-spacing: 2px; }
.section-title::after { content: ''; display: block; width: 40px; height: 4px; background: var(--primary); border-radius: 2px; margin: 10px auto 0; }

/* Hero 区域 */
.hero { padding: 30px 0; background: linear-gradient(180deg, #ffe8df 0%, #fff9f5 100%); overflow: hidden; }
.hero-swiper { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.hero-slider-main { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; max-height: 80vh; box-shadow: 0 10px 30px rgba(255, 90, 54, 0.2); }
.hero-slider-main img { height: 100%; width: 100%; object-fit: cover; }
.hero-slider-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); }
.hero-text { position: absolute; bottom: 20px; left: 20px; right: 20px; color: white; z-index: 2; }
.hero-text h1 { font-size: 28px; line-height: 1.3; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-subtext { display: none; }
.hero-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.hero-btns .btn { padding: 14px 20px; border-radius: 50px; font-size: 16px; font-weight: bold; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: none; }
.btn-android { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(255, 90, 54, 0.4); }
.btn-ios { background: #333; color: white; }
.btn-icons { display: flex; gap: 10px; }

/* 推荐区 */
.recommend-bg { background: #fff; }
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.drama-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.2s; }
.drama-card:hover { transform: translateY(-4px); }
.drama-poster { position: relative; aspect-ratio: 3/4; }
.drama-poster img { height: 100%; width: 100%; object-fit: cover; }
.badge-free { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.drama-info { padding: 10px; }
.drama-title { font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.drama-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }
.drama-meta .tag { background: #fff0eb; color: var(--primary); padding: 2px 6px; border-radius: 4px; }

/* 排行榜列表 */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; gap: 12px; background: white; padding: 12px; border-radius: 12px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.rank-num { font-size: 20px; font-weight: 900; font-style: italic; color: #ccc; width: 24px; text-align: center; }
.rank-item:nth-child(1) .rank-num { color: #f5a623; }
.rank-item:nth-child(2) .rank-num { color: #b8c2cc; }
.rank-item:nth-child(3) .rank-num { color: #cd7f32; }
.rank-img { width: 80px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; }
.rank-img img { height: 100%; width: 100%; object-fit: cover; }
.rank-info { flex: 1; }
.rank-title { font-weight: bold; font-size: 16px; margin-bottom: 6px; }
.rank-desc { font-size: 13px; color: var(--text-light); }

/* AI 区域 */
.ai-section { background: linear-gradient(135deg, #f4f0ff 0%, #fff 100%); }
.split-layout { display: flex; flex-direction: column; gap: 20px; }
.split-img { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.08); aspect-ratio: 3/4; max-height: 400px; margin: 0 auto; width: 100%; max-width: 300px; }
.split-img img { height: 100%; width: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; justify-content: center; }
.split-text h3 { font-size: 22px; margin-bottom: 12px; color: #5c3cff; }
.split-text p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }
.split-text ul { display: flex; flex-direction: column; gap: 10px; }
.split-text li { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.split-text li::before { content: '✓'; color: #5c3cff; font-weight: bold; }

/* FAQ */
.faq-section { background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.faq-q { font-weight: bold; font-size: 16px; margin-bottom: 8px; display: flex; gap: 8px; color: var(--primary-dark); }
.faq-a { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* 评论区 */
.comment-section { background: #fff9f5; }
.comment-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.comment-card { background: white; padding: 16px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #ddd; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; font-weight: bold; overflow: hidden; }
.avatar svg { width: 100%; height: 100%; }
.user-name { font-weight: bold; font-size: 14px; }
.stars { color: #ffb800; font-size: 12px; letter-spacing: 2px; }
.comment-text { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.likes { font-size: 12px; color: #999; display: flex; justify-content: flex-end; gap: 4px; }

/* App 教程 */
.app-guide { background: #fff; }
.step-list { display: flex; flex-direction: column; gap: 20px; }
.step-item { display: flex; gap: 16px; align-items: center; background: var(--bg); padding: 16px; border-radius: 12px; }
.step-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-text { flex: 1; }
.step-text h4 { font-size: 16px; margin-bottom: 4px; }
.step-text p { font-size: 13px; color: var(--text-light); }

/* 页脚 */
footer { padding: 30px 16px; text-align: center; font-size: 12px; color: #999; background: #fff; border-top: 1px solid var(--border); line-height: 1.8; }
footer a { color: #999; }
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 6px; }

/* 模态框 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { background: white; border-radius: 16px; padding: 24px; width: 100%; max-width: 340px; text-align: center; }
.modal-title { font-size: 16px; font-weight: bold; margin-bottom: 16px; color: var(--text); }
.modal-input { width: 100%; padding: 12px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; margin-bottom: 20px; text-align: center; }
.modal-btn { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }

/* 图片墙/瀑布流 */
.gallery-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .header-btns { display: flex; }
  .hero-swiper { flex-direction: row; align-items: center; gap: 40px; }
  .hero-slider-main { flex: 1; aspect-ratio: 16/9; max-height: 500px; }
  .hero-content { flex: 1; }
  .hero-text { position: relative; bottom: auto; left: auto; right: auto; color: var(--text); }
  .hero-text h1 { color: var(--text); text-shadow: none; font-size: 36px; }
  .hero-subtext { display: block; font-size: 16px; color: var(--text-light); margin-top: 12px; }
  .hero-btns { flex-direction: row; margin-top: 30px; }
  .hero-btns .btn { flex: 1; }
  .hero-slider-mask { display: none; }
  
  .grid-layout { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .comment-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout { flex-direction: row; align-items: center; gap: 40px; }
  .split-img { flex: 1; max-width: none; aspect-ratio: 4/3; }
  .split-img img { object-fit: contain; background: #fff; }
  .split-text { flex: 1; }
  .step-list { flex-direction: row; }
  .step-item { flex-direction: column; text-align: center; flex: 1; }
  .gallery-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-layout { grid-template-columns: repeat(4, 1fr); }
  .hero-text h1 { font-size: 44px; }
  .gallery-wall { grid-template-columns: repeat(4, 1fr); }
}