:root {
  --bg-main: #F4F9FF;
  --bg-light: #E8F3FF;
  --brand-blue: #2B8CFF;
  --deep-blue: #1A5FB4;
  --coral: #FF5A5F;
  --mint: #20C997;
  --orange: #FFB020;
  --card-bg: #FFFFFF;
  --text-main: #2C3E50;
  --text-sub: #718096;
  --shadow-soft: 0 12px 32px rgba(43,140,255,0.12);
  --shadow-hover: 0 16px 40px rgba(43,140,255,0.2);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --font-title: 'Alibaba PuHuiTi', 'Source Han Sans Heavy', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Source Han Sans Regular', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* 顶部导航 */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 72px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { height: 36px; width: 36px; border-radius: 10px; }
.header-title { font-family: var(--font-title); font-size: 24px; color: var(--deep-blue); font-weight: 900; letter-spacing: 1px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--text-main); position: relative; padding: 8px 0; }
.nav-links a.active { color: var(--deep-blue); font-weight: bold; }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 4px; background: var(--coral); border-radius: 2px; }
.header-right { display: flex; align-items: center; gap: 20px; }
.search-icon { width: 24px; height: 24px; fill: var(--text-sub); cursor: pointer; }
.btn-download-top {
  background: var(--coral); color: #fff; padding: 10px 24px; border-radius: 30px;
  font-weight: bold; font-size: 15px; font-family: var(--font-title);
  box-shadow: 0 4px 12px rgba(255,90,95,0.3); transition: all 0.3s;
}
.btn-download-top:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,90,95,0.5); }

/* 首屏 Hero */
.hero {
  position: relative; min-height: 600px;
  background: radial-gradient(circle at 70% 30%, #2B8CFF, #1A5FB4);
  display: flex; align-items: center; padding: 0 5%; overflow: hidden;
}
.hero-deco { position: absolute; opacity: 0.1; font-size: 60px; color: #fff; user-select: none; pointer-events: none; }
.hero-deco.star1 { top: 10%; left: 50%; font-size: 100px; }
.hero-deco.star2 { bottom: 20%; right: 10%; font-size: 80px; }
.hero-content { flex: 1; z-index: 2; max-width: 500px; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
  color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 14px; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.4);
}
.hero h1 { font-family: var(--font-title); font-size: 56px; color: #fff; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 32px; letter-spacing: 2px; }
.hero-search {
  background: #fff; border-radius: 40px; padding: 6px 6px 6px 24px;
  display: flex; align-items: center; box-shadow: 0 12px 32px rgba(26,95,180,0.3);
  margin-bottom: 24px;
}
.hero-search input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text-main); background: transparent; }
.hero-search input::placeholder { color: #a0aec0; }
.hero-search button {
  background: var(--coral); color: #fff; border: none; border-radius: 30px;
  padding: 12px 32px; font-size: 16px; font-weight: bold; cursor: pointer;
  font-family: var(--font-title); transition: all 0.3s;
}
.hero-search button:hover { background: #e04a4f; }
.hero-stats { display: flex; gap: 20px; color: rgba(255,255,255,0.8); font-size: 14px; }
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center; position: relative; height: 500px;
}
.hero-fan { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.hero-fan img {
  position: absolute; width: 220px; height: 320px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.4);
  border: 4px solid #fff; transition: transform 0.4s;
}
.hero-fan img:nth-child(1) { transform: translateX(-80px) rotate(-10deg) scale(0.9); z-index: 1; }
.hero-fan img:nth-child(2) { transform: translateY(-20px) scale(1.1); z-index: 3; }
.hero-fan img:nth-child(3) { transform: translateX(80px) rotate(10deg) scale(0.9); z-index: 2; }

/* 快捷入口 */
.quick-links {
  position: relative; z-index: 10; margin: -50px 5% 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.quick-card {
  background: var(--card-bg); border-radius: var(--radius-md); padding: 24px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}
.quick-card:hover { transform: translateY(-4px); }
.quick-icon { width: 48px; height: 48px; background: var(--bg-light); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 24px; }
.quick-text h3 { font-family: var(--font-title); font-size: 18px; color: var(--deep-blue); margin-bottom: 4px; }
.quick-text p { font-size: 13px; color: var(--text-sub); }

/* 通用区块 */
section { padding: 80px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-family: var(--font-title); font-size: 36px; color: var(--deep-blue); display: flex; align-items: center; gap: 16px; }
.live-dot { width: 12px; height: 12px; background: var(--mint); border-radius: 50%; position: relative; }
.live-dot::after { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0.4; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.5); opacity: 0; } }
.view-all { color: var(--brand-blue); font-size: 16px; font-weight: 500; }

/* 今日更新 */
.update-section { background: #fff; }
.update-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.comic-card {
  background: var(--bg-main); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: all 0.3s; display: flex; flex-direction: column;
}
.comic-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.comic-cover-wrap { position: relative; padding-top: 133%; overflow: hidden; }
.comic-cover-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.4s; }
.comic-card:hover .comic-cover-wrap img { transform: scale(1.05); }
.update-badge {
  position: absolute; top: 0; right: 0; background: var(--mint); color: #fff;
  padding: 6px 12px; font-size: 12px; font-weight: bold; border-bottom-left-radius: 12px;
}
.comic-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.comic-title { font-family: var(--font-title); font-size: 22px; color: var(--deep-blue); margin-bottom: 8px; }
.comic-meta { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; display: flex; gap: 8px; }
.comic-desc {
  background: var(--bg-main); padding: 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-main); line-height: 1.6; flex: 1;
}

/* 霸屏推荐 */
.banner-section { background: var(--bg-light); position: relative; overflow: hidden; }
.halftone { position: absolute; opacity: 0.1; background-image: radial-gradient(var(--brand-blue) 1px, transparent 1px); background-size: 10px 10px; pointer-events: none; }
.banner-section .halftone { top: 0; left: 0; width: 100%; height: 100%; }
.banner-content {
  background: #fff; border-radius: var(--radius-lg); display: flex; overflow: hidden;
  box-shadow: var(--shadow-soft); position: relative; z-index: 1;
}
.banner-image { width: 40%; position: relative; padding: 24px; background: var(--bg-main); }
.banner-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); border: 8px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: rotate(-2deg); }
.banner-text { width: 60%; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.banner-text h2 { font-family: var(--font-title); font-size: 42px; color: var(--deep-blue); margin-bottom: 16px; line-height: 1.2; }
.banner-text p { font-size: 18px; color: var(--text-sub); line-height: 1.8; margin-bottom: 32px; }
.btn-primary { display: inline-block; background: var(--coral); color: #fff; padding: 16px 48px; border-radius: 30px; font-size: 20px; font-weight: bold; font-family: var(--font-title); box-shadow: 0 8px 24px rgba(255,90,95,0.3); transition: all 0.3s; align-self: flex-start; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,90,95,0.5); }

/* 热门榜单 */
.rank-section { background: #fff; }
.rank-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.rank-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 2px solid var(--bg-light); padding-bottom: 12px; }
.rank-tab { font-size: 18px; font-weight: bold; color: var(--text-sub); cursor: pointer; }
.rank-tab.active { color: var(--deep-blue); position: relative; }
.rank-tab.active::after { content: ''; position: absolute; bottom: -14px; left: 0; width: 100%; height: 2px; background: var(--deep-blue); }
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item { display: flex; align-items: center; gap: 20px; background: var(--bg-main); padding: 16px; border-radius: var(--radius-md); transition: all 0.3s; }
.rank-item:hover { transform: translateX(8px); background: var(--bg-light); }
.rank-num { font-family: var(--font-title); font-size: 36px; font-weight: 900; width: 40px; text-align: center; font-style: italic; }
.rank-num.top1 { background: linear-gradient(to bottom, #FFD700, #FFA500); -webkit-background-clip: text; color: transparent; }
.rank-num.top2 { background: linear-gradient(to bottom, #E0E0E0, #A0A0A0); -webkit-background-clip: text; color: transparent; }
.rank-num.top3 { background: linear-gradient(to bottom, #CD7F32, #8B4513); -webkit-background-clip: text; color: transparent; }
.rank-cover { width: 60px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 18px; color: var(--deep-blue); margin-bottom: 6px; }
.rank-info p { font-size: 13px; color: var(--text-sub); }
.rank-trend { font-size: 14px; color: var(--coral); font-weight: bold; }
.editor-pick { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.editor-pick img { width: 100%; height: 280px; object-fit: cover; }
.pick-content { padding: 24px; }
.pick-tag { display: inline-block; background: var(--orange); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 12px; }
.pick-content h3 { font-family: var(--font-title); font-size: 24px; color: var(--deep-blue); margin-bottom: 8px; }
.pick-stars { color: var(--orange); font-size: 18px; margin-bottom: 12px; }
.pick-desc { font-size: 14px; color: var(--text-main); line-height: 1.8; }

/* 分类探索 */
.category-section { background: var(--bg-main); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card {
  background: #fff; border-radius: var(--radius-md); padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow-soft); transition: all 0.3s;
}
.category-card:hover { background: var(--bg-light); transform: translateY(-4px); }
.cat-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.cat-name { font-family: var(--font-title); font-size: 22px; color: var(--deep-blue); margin-bottom: 8px; }
.cat-stat { font-size: 13px; color: var(--text-sub); }

/* 新作速递 */
.new-section { background: var(--bg-light); }
.new-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.new-card { display: flex; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.3s; }
.new-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.new-img { width: 45%; position: relative; }
.new-img img { width: 100%; height: 100%; object-fit: cover; }
.new-tag { position: absolute; bottom: 16px; right: 16px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 20px; font-size: 12px; color: var(--text-main); font-weight: bold; }
.new-info { width: 55%; padding: 32px; display: flex; flex-direction: column; }
.new-info h3 { font-family: var(--font-title); font-size: 26px; color: var(--deep-blue); margin-bottom: 8px; }
.new-meta { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; display: flex; gap: 12px; }
.new-desc { font-size: 15px; color: var(--text-main); line-height: 1.8; }

/* FAQ */
.faq-section { background: #fff; }
.faq-title { font-family: var(--font-title); font-size: 36px; color: var(--deep-blue); text-align: center; margin-bottom: 48px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-card { background: var(--bg-main); border-radius: var(--radius-md); padding: 24px; border-left: 4px solid var(--coral); }
.faq-card h3 { font-size: 18px; color: var(--deep-blue); margin-bottom: 12px; font-weight: bold; }
.faq-card p { font-size: 15px; color: var(--text-main); line-height: 1.8; margin-bottom: 16px; }
.faq-footer { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); }
.faq-footer span { font-size: 16px; }

/* 下载专区 */
.download-section {
  background: linear-gradient(135deg, #1A5FB4, #2B8CFF); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 100px 5%; position: relative; overflow: hidden;
}
.download-text h2 { font-family: var(--font-title); font-size: 48px; margin-bottom: 24px; line-height: 1.2; }
.download-features { margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.df-item { display: flex; align-items: center; gap: 12px; font-size: 18px; color: rgba(255,255,255,0.9); }
.df-icon { width: 24px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; }
.download-btns { display: flex; gap: 16px; margin-bottom: 24px; }
.btn-store {
  display: flex; align-items: center; gap: 12px; background: #000; color: #fff;
  padding: 12px 24px; border-radius: 12px; transition: transform 0.3s; min-width: 160px;
}
.btn-store:hover { transform: translateY(-2px); }
.store-icon { font-size: 28px; }
.store-text span { display: block; font-size: 10px; color: #aaa; }
.store-text strong { font-size: 16px; }
.version-info { font-size: 13px; color: rgba(255,255,255,0.6); }
.download-visual { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }
.mascot { position: absolute; top: 10%; right: 10%; width: 100px; height: 100px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 5; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mockup { position: absolute; width: 220px; height: 450px; border-radius: 32px; border: 8px solid #fff; background: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); transition: all 0.4s; }
.mockup img { width: 100%; height: 100%; object-fit: cover; }
.mockup.center { z-index: 3; transform: translateY(0); }
.mockup.left { z-index: 2; transform: translateX(-100px) translateY(40px) rotate(-5deg) scale(0.9); }
.mockup.right { z-index: 1; transform: translateX(100px) translateY(40px) rotate(5deg) scale(0.9); }
.download-visual:hover .mockup.left { transform: translateX(-140px) translateY(40px) rotate(-8deg) scale(0.95); }
.download-visual:hover .mockup.right { transform: translateX(140px) translateY(40px) rotate(8deg) scale(0.95); }
.platform-text { position: absolute; bottom: -20px; font-family: var(--font-title); font-size: 20px; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* 页脚 */
.footer { background: var(--bg-main); padding: 60px 5% 24px; border-top: 1px solid var(--bg-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 32px; width: 32px; border-radius: 8px; }
.footer-brand span { font-family: var(--font-title); font-size: 20px; color: var(--deep-blue); font-weight: bold; }
.footer-desc { font-size: 13px; color: var(--text-sub); max-width: 300px; line-height: 1.8; }
.footer-links h4 { font-size: 16px; color: var(--deep-blue); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-sub); transition: color 0.3s; }
.footer-links a:hover { color: var(--brand-blue); }
.footer-bottom { border-top: 1px solid var(--bg-light); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-sub); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--text-sub); }
.footer-bottom a:hover { color: var(--brand-blue); }
.update-time { display: inline-block; margin-left: 12px; color: #a0aec0; }

/* 移动端适配 */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding: 60px 5%; min-height: auto; }
  .hero-content { max-width: 100%; text-align: center; margin-bottom: 40px; }
  .hero-search { max-width: 500px; margin: 0 auto 24px; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; height: 400px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .update-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-content { flex-direction: column; }
  .banner-image { width: 100%; height: 300px; }
  .banner-text { width: 100%; padding: 40px; text-align: center; }
  .banner-text h2 { font-size: 32px; }
  .btn-primary { align-self: center; }
  .rank-layout { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .new-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .download-section { grid-template-columns: 1fr; padding: 60px 5%; text-align: center; }
  .download-features { align-items: center; }
  .download-btns { justify-content: center; }
  .download-visual { height: 500px; margin-top: 40px; }
  .mockup.left, .mockup.right { display: none; }
  .mockup.center { position: relative; transform: none; margin: 0 auto; }
  .download-visual:hover .mockup.center { transform: none; }
  .platform-text { bottom: -10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-desc { margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-fan img { width: 140px; height: 200px; }
  .hero-fan img:nth-child(1) { transform: translateX(-60px) rotate(-10deg) scale(0.9); }
  .hero-fan img:nth-child(3) { transform: translateX(60px) rotate(10deg) scale(0.9); }
  .section-title { font-size: 28px; }
  .update-grid { grid-template-columns: 1fr; }
  .new-card { flex-direction: column; }
  .new-img { width: 100%; height: 200px; }
  .new-info { width: 100%; padding: 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .download-text h2 { font-size: 32px; }
  .download-btns { flex-direction: column; align-items: center; }
  .btn-store { width: 100%; justify-content: center; }
  .mockup { width: 200px; height: 400px; }
  .mockup.left, .mockup.right { display: none; }
  .mockup.center { position: relative; transform: none; margin: 0 auto; }
  .download-visual { height: 450px; }
  .platform-text { text-align: center; width: 100%; }
}