:root {
  --brand-pink: #ff4d79;
  --brand-orange: #ff7e38;
  --brand-yellow: #ffd23f;
  --brand-mint: #00d2b4;
  --bg-light: #fff9f4;
  --bg-dark: #1a1124;
  --text-dark: #2a1828;
  --text-light: #fff4f0;
  --text-muted: #8a7a88;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-jelly: 0 12px 28px rgba(255, 77, 121, 0.15), inset 0 2px 6px rgba(255,255,255,0.8), inset 0 -4px 8px rgba(255, 77, 121, 0.1);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.06);
  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* 滚动条隐藏 */
.scroll-x { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* 导航胶囊 */
.nav-wrapper {
  position: fixed; top: 20px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 100;
  pointer-events: none; transition: top 0.3s ease;
}
.nav-wrapper.scrolled { top: 10px; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 8px 12px 8px 20px; border-radius: 50px; box-shadow: 0 8px 24px rgba(255, 77, 121, 0.15);
  width: 90%; max-width: 900px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.nav-wrapper.scrolled .nav-pill { padding: 6px 10px 6px 16px; max-width: 820px; background: rgba(255,255,255,0.95); box-shadow: 0 4px 12px rgba(255,77,121,0.12); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--brand-pink); }
.nav-brand img { height: 32px; width: auto; border-radius: 8px; }
.nav-links { display: none; gap: 24px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--text-dark); transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-pink); }
.nav-btn {
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  color: #fff; padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 77, 121, 0.4); transition: transform 0.2s;
}
.nav-btn:hover { transform: scale(1.05); }

/* 通用区块样式 */
section { padding: 80px 20px; position: relative; overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; border-bottom: 2px dashed rgba(255,77,121,0.2); padding-bottom: 16px; }
.sec-title-wrap { display: flex; align-items: center; gap: 12px; }
.sec-bar { width: 8px; height: 32px; background: var(--brand-pink); border-radius: 4px; }
.sec-title { font-size: 2rem; font-weight: 900; letter-spacing: -0.5px; }
.sec-tag { background: #ffe4ea; color: var(--brand-pink); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }
.sec-num { font-size: 6rem; font-weight: 900; color: rgba(255,77,121,0.06); position: absolute; top: 10px; left: 10px; z-index: 1; line-height: 1; pointer-events: none; }

/* 1. 首屏 */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 40px; background: radial-gradient(circle at 50% 0%, #fff0f5 0%, #fff9f4 100%); }
.hero-particles { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--brand-yellow) 2px, transparent 2px), radial-gradient(var(--brand-pink) 1px, transparent 1px); background-size: 80px 80px, 50px 50px; background-position: 0 0, 25px 25px; opacity: 0.3; animation: bgMove 20s linear infinite; }
@keyframes bgMove { 0% { background-position: 0 0, 25px 25px; } 100% { background-position: 80px 80px, 75px 75px; } }
.hero-content { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 span { display: block; font-size: 1.5rem; margin-top: 10px; color: var(--text-dark); -webkit-text-fill-color: var(--text-dark); font-weight: 700; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 16px 36px; border-radius: 50px; font-size: 1.1rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-primary { background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange)); color: #fff; box-shadow: var(--shadow-jelly); }
.btn-primary:hover { transform: scale(1.05) translateY(-2px); }
.btn-secondary { background: #fff; color: var(--brand-pink); border: 2px solid var(--brand-pink); box-shadow: 0 8px 24px rgba(255,77,121,0.1); }
.btn-secondary:hover { background: #fff0f5; transform: scale(1.05); }

.data-pills { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.pill { background: #fff; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(255, 77, 121, 0.08); border: 1px solid #ffe4ea; display: flex; align-items: center; gap: 8px; }
.pill span { color: var(--brand-pink); font-size: 1.1rem; font-weight: 900; }

.main-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; margin-bottom: 40px; border: 2px solid #fff; }
.main-card-img { width: 100%; height: 240px; position: relative; }
.main-card-img img { width: 100%; height: 100%; }
.main-card-info { padding: 24px; }
.main-card-info h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.main-card-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.main-card-meta { display: flex; align-items: center; justify-content: space-between; }
.score { color: var(--brand-orange); font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; gap: 4px; }
.play-btn { background: var(--brand-mint); color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: 700; transition: transform 0.2s; }
.play-btn:hover { transform: scale(1.05); }

.mini-track { padding-bottom: 20px; gap: 16px; }
.mini-card { flex: 0 0 160px; border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-card); transition: transform 0.3s; }
.mini-card:hover { transform: translateY(-6px); }
.mini-card img { width: 100%; aspect-ratio: 3/4; }
.mini-card-title { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; padding: 20px 12px 12px; font-size: 0.9rem; font-weight: 700; }

/* 2. 热播剧场 */
.theater-sec { background: var(--bg-dark); color: var(--text-light); }
.theater-sec .sec-title { color: #fff; }
.theater-sec .sec-tag { background: rgba(255,255,255,0.1); color: #fff; }
.theater-sec .sec-num { color: rgba(255,255,255,0.03); }
.theme-row { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.theme-title-card { background: linear-gradient(135deg, rgba(255,77,121,0.2), rgba(255,126,56,0.2)); border: 1px solid rgba(255,77,121,0.3); padding: 24px; border-radius: var(--radius-md); }
.theme-title-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; color: var(--brand-yellow); }
.theme-title-card p { font-size: 0.9rem; color: #ccc; margin-bottom: 12px; }
.theme-count { font-size: 0.8rem; background: var(--brand-pink); color: #fff; padding: 2px 10px; border-radius: 10px; display: inline-block; }
.theme-scroll { gap: 16px; padding-bottom: 10px; }
.vert-card { flex: 0 0 140px; border-radius: var(--radius-md); overflow: hidden; background: #2a1b35; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.vert-card img { width: 100%; aspect-ratio: 3/4; }
.vert-card p { padding: 10px; font-size: 0.85rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3. 剧库 */
.lib-sec { background: #fdf3ed; }
.filter-bar { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 24px; }
.chip { background: #fff; border: 2px solid #ffe4ea; padding: 8px 20px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; color: var(--text-muted); transition: all 0.2s; }
.chip.active { background: var(--brand-pink); color: #fff; border-color: var(--brand-pink); }
.lib-grid { display: flex; flex-direction: column; gap: 16px; }
.lib-card-big { display: flex; gap: 16px; background: #fff; padding: 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.lib-card-big img { width: 120px; height: 160px; border-radius: var(--radius-sm); flex-shrink: 0; }
.lib-card-big-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lib-card-big-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.lib-card-big-info p { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lib-card-small { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.lib-card-small img { width: 100%; aspect-ratio: 3/4; }
.lib-card-small p { padding: 8px; font-size: 0.85rem; font-weight: 700; text-align: center; }
.load-more { text-align: center; margin-top: 32px; }
.load-more button { background: transparent; border: 2px solid var(--brand-pink); color: var(--brand-pink); padding: 12px 36px; border-radius: 30px; font-weight: 700; transition: all 0.2s; }
.load-more button:hover { background: var(--brand-pink); color: #fff; }

/* 4. 榜单 */
.rank-sec { background: var(--bg-dark); color: var(--text-light); }
.rank-sec .sec-title { color: #fff; }
.rank-sec .sec-num { color: rgba(255,255,255,0.03); }
.rank-layout { display: flex; flex-direction: column; gap: 24px; }
.rank-card { background: #2a1b35; border-radius: var(--radius-md); padding: 20px; border: 1px solid rgba(255,255,255,0.05); }
.week-king { position: relative; }
.week-king img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 3/4; margin-bottom: 16px; }
.king-badge { position: absolute; top: 30px; left: 30px; background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); padding: 4px 12px; border-radius: 20px; font-weight: 900; font-size: 0.8rem; color: #fff; box-shadow: 0 4px 12px rgba(255, 126, 56, 0.4); }
.king-info h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; color: var(--brand-yellow); }
.king-info p { font-size: 0.9rem; color: #ccc; margin-bottom: 16px; }
.heat-bar-container { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; position: relative; }
.heat-bar { height: 100%; background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink)); width: 85%; border-radius: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

.top-list { display: flex; flex-direction: column; gap: 12px; }
.top-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); transition: background 0.2s; }
.top-item:hover { background: rgba(255,255,255,0.08); }
.top-num { font-size: 1.2rem; font-weight: 900; color: var(--text-muted); width: 20px; }
.top-item:nth-child(-n+3) .top-num { color: var(--brand-pink); }
.top-item img { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; }
.top-info { flex: 1; min-width: 0; }
.top-info h4 { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info span { font-size: 0.8rem; color: var(--brand-yellow); }
.trend-up { color: #00d2b4; font-size: 0.8rem; font-weight: 700; }

.new-list { display: flex; flex-direction: column; gap: 12px; }
.new-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.new-info { display: flex; align-items: center; gap: 12px; }
.new-info img { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; }
.new-info h4 { font-size: 0.95rem; font-weight: 700; }
.rise-pct { color: var(--brand-orange); font-weight: 800; font-size: 0.9rem; }

/* 5. 评论墙 */
.comment-sec { background: #f7f4fe; }
.comment-sec .sec-num { color: rgba(0,210,180,0.06); }
.giant-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.stat-box { background: #fff; padding: 24px 16px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-card); border: 2px solid #fff; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--brand-mint); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.waterfall { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
.comment-card { background: #fff; padding: 20px; border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.comment-card.flash { animation: cardFlash 1s ease; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 0 rgba(0,210,180,0.5); } 70% { box-shadow: 0 0 0 10px rgba(0,210,180,0); } 100% { box-shadow: 0 0 0 0 rgba(0,210,180,0); } }
.comment-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comment-user img { width: 32px; height: 32px; border-radius: 50%; background: #ffe4ea; padding: 4px; }
.comment-user span { font-weight: 700; font-size: 0.9rem; }
.comment-text { font-size: 0.95rem; color: #444; margin-bottom: 12px; }
.comment-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tag { background: #fff; color: var(--text-dark); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.2s; }
.tag:hover { background: var(--brand-pink); color: #fff; }

/* 6. 追剧日历 */
.calendar-sec { background: var(--bg-dark); color: var(--text-light); }
.calendar-sec .sec-title { color: #fff; }
.calendar-sec .sec-num { color: rgba(255,255,255,0.03); }
.calendar-layout { display: flex; flex-direction: column; gap: 32px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-cell { background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
.day-cell:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.day-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.day-drama { font-size: 0.75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--brand-yellow); }
.day-ep { font-size: 0.7rem; color: #aaa; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.1); }
.time-item { position: relative; margin-bottom: 24px; }
.time-item::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-pink); box-shadow: 0 0 0 4px rgba(255,77,121,0.2); }
.time-label { font-size: 0.9rem; font-weight: 800; color: var(--brand-mint); margin-bottom: 4px; }
.time-drama { font-size: 1rem; font-weight: 700; }
.time-drama span { font-size: 0.85rem; color: #ccc; font-weight: 400; margin-left: 8px; }
.btn-remind { display: block; width: 100%; max-width: 300px; margin: 0 auto; background: linear-gradient(135deg, var(--brand-mint), #00a88f); color: #fff; padding: 16px; border-radius: 50px; font-weight: 800; font-size: 1rem; text-align: center; box-shadow: 0 8px 20px rgba(0, 210, 180, 0.3); transition: transform 0.2s; }
.btn-remind:hover { transform: scale(1.02); }

/* 7. 三合一 */
.final-sec { background: #fff9f4; padding-bottom: 40px; }
.final-sec .sec-num { color: rgba(255,77,121,0.06); }
.faq-list { margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #ffe4ea; }
.faq-q { padding: 20px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--brand-pink); transition: transform 0.3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); font-size: 0.95rem; }
.faq-item.active .faq-a { padding: 0 20px 20px; max-height: 200px; }

.download-box { text-align: center; margin-bottom: 60px; background: linear-gradient(135deg, #ffe4ea, #fff0e0); padding: 40px 20px; border-radius: var(--radius-lg); }
.download-box h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; color: var(--brand-pink); }
.dl-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.dl-btn { background: var(--text-dark); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dl-btn:hover { background: #000; }

footer { background: #2a1828; color: #fff; padding: 60px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--brand-yellow); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #aaa; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-brand img { height: 40px; border-radius: 8px; margin-bottom: 16px; background: #fff; padding: 4px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: #777; font-size: 0.8rem; }
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom p { margin-bottom: 8px; }

/* 动画类 */
.reveal { opacity: 1; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 4rem; }
  .main-card { flex-direction: row; align-items: stretch; }
  .main-card-img { width: 45%; height: auto; }
  .main-card-info { width: 55%; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .main-card-info h2 { font-size: 2rem; }
  .mini-card { flex: 0 0 180px; }
  .theme-row { flex-direction: row; align-items: center; }
  .theme-title-card { width: 240px; flex-shrink: 0; }
  .theme-scroll { flex: 1; }
  .lib-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
  .lib-card-big { grid-column: 1 / 2; grid-row: 1 / 3; flex-direction: column; }
  .lib-card-big img { width: 100%; height: 280px; }
  .lib-small-grid { display: contents; }
  .rank-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .week-king { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; }
  .giant-stats { grid-template-columns: repeat(4, 1fr); }
  .waterfall { grid-template-columns: 1fr 1fr; }
  .calendar-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 5rem; }
  .hero h1 span { font-size: 2rem; }
  .waterfall { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .comment-card:nth-child(1) { margin-top: 0; }
  .comment-card:nth-child(2) { margin-top: 20px; }
  .comment-card:nth-child(3) { margin-top: 10px; }
  .comment-card:nth-child(4) { margin-top: -20px; }
  .comment-card:nth-child(5) { margin-top: 30px; }
  .comment-card:nth-child(6) { margin-top: 10px; }
  .nav-pill { padding: 8px 16px 8px 24px; }
  .nav-links { gap: 32px; }
}