:root {
  --primary: #F24B4B;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --star-yellow: #FFD166;
  --text-main: #222222;
  --text-sub: #666666;
  --border: #f0f0f0;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: var(--text-main); display: flex; align-items: center; gap: 8px;}
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.section-desc { color: var(--text-sub); font-size: 15px; margin-bottom: 30px; margin-top: -15px; }
.btn { display: inline-block; background-color: var(--primary); color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: bold; text-align: center; transition: 0.3s; }
.btn:hover { background-color: #d93a3a; transform: translateY(-2px); }
.btn-large { padding: 14px 40px; font-size: 18px; }

/* 顶部导航 */
header { background: var(--bg-white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo-link { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--primary); }
.logo-link img { height: 32px; width: auto; }
.nav-links { display: none; gap: 24px; font-size: 15px; font-weight: 500; color: var(--text-sub); }
.nav-links a:hover { color: var(--primary); }

/* Hero 首屏 */
.hero { background: var(--bg-white); padding: 40px 0 60px; overflow: hidden; position: relative; }
.hero-content { display: flex; flex-direction: column; gap: 40px; }
.hero-text h1 { font-size: 36px; line-height: 1.2; color: var(--text-main); margin-bottom: 20px; font-weight: 900; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 16px; color: var(--text-sub); margin-bottom: 30px; max-width: 500px; }
.hero-images { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-images img { border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.hero-images img:nth-child(1) { margin-top: 30px; }
.hero-images img:nth-child(2) { width: 100%; height: 100%; }

/* 四大特色 */
.features { padding: 60px 0; background: var(--bg-gray); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card { background: var(--bg-white); padding: 24px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--text-main); font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-sub); }

/* 每日更新播报 */
.daily-update { padding: 40px 0; background: var(--bg-white); border-bottom: 1px solid var(--border); }
.update-banner { display: flex; align-items: center; justify-content: space-between; background: #FFF0F0; padding: 20px; border-radius: var(--radius); border: 1px solid #FFD6D6; }
.update-text { display: flex; flex-direction: column; gap: 8px;}
.update-text h3 { font-size: 18px; color: var(--primary); margin: 0;}
.update-text p { font-size: 14px; color: var(--text-sub); margin: 0;}
.update-tag { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }

/* 精选分类 */
.categories { padding: 60px 0; background: var(--bg-gray); }
.category-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cat-card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; padding-bottom: 20px;}
.cat-card img { width: 100%; height: 200px; border-bottom: 1px solid var(--border); }
.cat-info { padding: 16px; }
.cat-info h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.cat-info p { font-size: 14px; color: var(--text-sub); }

/* 新番导视 */
.new-anime { padding: 60px 0; background: var(--bg-white); }
.timeline-layout { display: flex; flex-direction: column; gap: 30px; }
.timeline-poster { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.timeline-poster img { width: 100%; height: auto; aspect-ratio: 3/4; }
.timeline-content { display: flex; flex-direction: column; gap: 20px; }
.anime-item { border-left: 4px solid var(--primary); padding-left: 16px; }
.anime-time { display: inline-block; background: var(--star-yellow); color: #222; font-weight: bold; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.anime-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-main); }
.anime-item p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* 硬核解析 */
.hardcore-review { padding: 60px 0; background: var(--bg-gray); }
.review-container { background: var(--bg-white); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.review-img { flex: 1; border-radius: var(--radius); overflow: hidden; }
.review-img img { width: 100%; height: 100%; min-height: 250px; }
.review-text { flex: 2; }
.review-text h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.review-text p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; }
.review-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-sub); }
.review-btn { color: var(--primary); font-weight: bold; cursor: pointer; }

/* 角色打榜 */
.character-rank { padding: 60px 0; background: var(--bg-white); }
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-card { display: flex; align-items: center; gap: 16px; background: var(--bg-gray); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.rank-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--star-yellow); flex-shrink: 0; }
.rank-avatar img { width: 100%; height: 100%; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 16px; margin-bottom: 4px; }
.rank-info p { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.progress-bar { height: 8px; background: #eee; border-radius: 4px; width: 100%; overflow: hidden; margin-bottom: 4px; }
.progress-fill { height: 100%; background: var(--star-yellow); border-radius: 4px; }
.vote-count { font-size: 12px; color: var(--primary); font-weight: bold; text-align: right; }

/* 完结倒计时与催更墙 */
.countdown-wall { padding: 60px 0; background: var(--bg-gray); display: flex; flex-direction: column; gap: 30px;}
.countdown-box { background: var(--bg-white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); text-align: center; }
.countdown-box h3 { font-size: 20px; margin-bottom: 16px; color: var(--primary); }
.countdown-num { font-size: 36px; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.countdown-num span { font-size: 16px; color: var(--text-sub); font-weight: normal; }
.wall-comments { display: flex; flex-direction: column; gap: 12px; }
.wall-msg { background: var(--bg-white); padding: 12px 16px; border-radius: 20px; border-bottom-left-radius: 4px; font-size: 14px; color: var(--text-sub); box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.wall-msg strong { color: var(--text-main); }

/* 王牌漫评 */
.top-reviews { padding: 60px 0; background: var(--bg-white); }
.review-poster-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.poster-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.poster-card img { width: 100%; height: 300px; }
.poster-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 24px 16px 16px; color: #fff; }
.poster-info h3 { font-size: 18px; margin-bottom: 8px; }
.poster-info p { font-size: 13px; opacity: 0.9; }

/* 社区留言墙 */
.community-wall { padding: 60px 0; background: var(--bg-gray); }
.wall-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wall-bubble { background: var(--bg-white); padding: 16px; border-radius: var(--radius); font-size: 14px; color: var(--text-sub); border: 1px solid var(--border); }
.wall-bubble span { display: block; font-weight: bold; color: var(--primary); margin-bottom: 4px; }

/* 画廊 */
.gallery { padding: 40px 0; background: var(--bg-white); overflow: hidden; }
.gallery-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 160px; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 220px; }

/* 底部下载区 */
.download-area { background: var(--primary); padding: 60px 0; color: #fff; text-align: center; }
.download-area h2 { font-size: 28px; margin-bottom: 16px; color: #fff; }
.download-area p { font-size: 16px; margin-bottom: 30px; opacity: 0.9; }
.download-btn-white { background: #fff; color: var(--primary); padding: 14px 40px; font-size: 18px; border-radius: 30px; font-weight: bold; display: inline-block; transition: 0.3s; }
.download-btn-white:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* 悬浮按钮 */
.floating-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  background-color: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: 30px; font-weight: bold; font-size: 16px;
  box-shadow: 0 4px 15px rgba(242, 75, 75, 0.4);
  border: 2px solid #fff; display: flex; align-items: center; gap: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 75, 75, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(242, 75, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 75, 75, 0); }
}

/* 页脚 */
footer { background: var(--bg-gray); padding: 30px 0; text-align: center; font-size: 12px; color: #999; border-top: 1px solid var(--border); }
footer p { margin-bottom: 8px; }
footer a { color: #999; }
footer a:hover { color: var(--primary); }
.update-time { font-size: 12px; color: #aaa; margin-top: 10px; display: block; }

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-layout { flex-direction: row; }
  .timeline-poster { flex: 1; }
  .timeline-content { flex: 1; }
  .review-container { flex-direction: row; }
  .review-poster-grid { grid-template-columns: 1fr 1fr; }
  .wall-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-images { flex: 1; }
  .hero-text h1 { font-size: 48px; }
  .countdown-wall { flex-direction: row; }
  .countdown-box { flex: 1; }
  .wall-comments { flex: 1; }
  .gallery-item { flex: 0 0 200px; }
  .gallery-item img { height: 280px; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .wall-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item { flex: 0 0 240px; }
  .gallery-item img { height: 320px; }
}