/* ============================================
   漫客阅读器 单页官网样式
   主题：品牌紫 × 薄荷青 撞色 · 亮色阅读风
   ============================================ */

:root {
  --purple: #7b3fe4;
  --purple-deep: #5b28c9;
  --purple-soft: #f3efff;
  --mint: #17bfb2;
  --mint-soft: #e7faf7;
  --gold: #ffc94d;
  --ink: #282033;
  --muted: #6f6580;
  --line: #efe8fb;
  --bg: #fdfbff;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(123, 63, 228, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #9d5cf0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(123, 63, 228, 0.32);
}

.btn-primary:hover { box-shadow: 0 10px 26px rgba(123, 63, 228, 0.42); }

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

.btn-ghost:hover { background: var(--purple-soft); }

.btn-lg { padding: 15px 34px; font-size: 16px; }

.btn-sm { padding: 10px 22px; font-size: 14px; }

.btn-download-lg {
  background: #fff;
  color: var(--purple-deep);
  font-size: 18px;
  padding: 17px 46px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.btn-download-lg:hover { transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 251, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--purple), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover { color: var(--purple); background: var(--purple-soft); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download-nav { padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 201, 77, 0.20), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(23, 191, 178, 0.14), transparent 36%),
    radial-gradient(circle at 70% 88%, rgba(123, 63, 228, 0.14), transparent 40%),
    linear-gradient(180deg, #f8f4ff, #fdfbff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--mint);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--purple-deep), var(--purple), #a25bf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  gap: 42px;
}

.stat dt {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.stat dd {
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-icon-wrap {
  width: 320px;
  height: 320px;
  border-radius: 30%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 46px rgba(123, 63, 228, 0.22);
  border: 6px solid #fff;
  position: relative;
}

.hero-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30%;
  box-shadow: inset 0 0 0 2px rgba(123, 63, 228, 0.12);
}

.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30%;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-head-left { text-align: left; margin: 0 0 26px; }

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-head .section-desc {
  font-size: 16px;
  color: var(--muted);
}

.section-features { background: #fff; border-top: 1px solid var(--line); }
.section-category { background: var(--bg); }
.section-rank { background: #fff; border-top: 1px solid var(--line); }
.section-showcase { background: var(--bg); }
.section-news { background: #fff; border-top: 1px solid var(--line); }
.section-about { background: var(--bg); }
.section-download { background: #fff; border-top: 1px solid var(--line); }

/* ---------- 特色功能 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), #9d5cf0);
  color: #fff;
  margin-bottom: 18px;
}

.feature-card:nth-child(2n) .feature-icon {
  background: linear-gradient(135deg, var(--mint), #3dd6c9);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 书城分类 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-item:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.category-icon { color: var(--purple); margin-bottom: 4px; }

.category-name {
  font-size: 17px;
  font-weight: 700;
}

.category-count {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 热门榜单 ---------- */
.rank-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }

.rank-no {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  min-width: 30px;
}

.rank-no-1 { color: var(--purple); }
.rank-no-2 { color: #a25bf0; }
.rank-no-3 { color: var(--gold); }

.rank-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.rank-heat {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
}

.rank-feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(150deg, #f5f0ff, #f0fbf9);
  border: 1px solid #e6ddfb;
  border-radius: 20px;
  padding: 22px;
}

.rank-feature-img {
  width: 200px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(123, 63, 228, 0.18);
}

.rank-feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple-deep);
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rank-feature h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-feature-info p:not(.rank-feature-tag) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- 界面展示 ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 20px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.showcase-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.showcase-shot {
  display: block;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
}

.showcase-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.showcase-card:hover .showcase-shot img { transform: scale(1.04); }

.showcase-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase-title a:hover { color: var(--purple); }

.showcase-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 软件更新 ---------- */
.news-timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 0 0 30px;
  position: relative;
}

.news-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 78px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}

.news-date {
  flex: 0 0 54px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), #9d5cf0);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 4px;
}

.news-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  flex: 1;
}

.news-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.news-body p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 关于 ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.about-copy p {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.about-points li {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 8px 16px;
  border-radius: 999px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-img {
  width: 250px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(123, 63, 228, 0.18);
  transform: rotate(2deg);
}

/* ---------- 下载引导 ---------- */
.download-banner {
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 201, 77, 0.28), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, var(--purple), #8a4de8 55%, #a25bf0);
  color: #fff;
  border-radius: 26px;
  padding: 66px 40px;
}

.download-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-banner p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 30px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0 44px;
}

.footer-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
}

.footer-links a { color: var(--muted); }

.footer-links a:hover { color: var(--purple); }

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 30px; }
  .hero-title { font-size: 46px; }
  .rank-wrap { grid-template-columns: 1fr; }
  .rank-feature { max-width: 560px; margin: 0 auto; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; text-align: center; }
  .section-head-left { text-align: center; margin: 0 auto 26px; }
  .about-points { justify-content: center; }
}

@media (max-width: 768px) {
  .site-header { position: relative; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.06);
  }

  .main-nav.open { display: flex; }

  .nav-link {
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
  }

  .btn-download-nav { display: none; }

  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .hero { padding: 60px 0 60px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .hero-icon-wrap { width: 220px; height: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 18px; }
  .rank-feature { grid-template-columns: 1fr; text-align: center; }
  .rank-feature-img { margin: 0 auto; width: 180px; }
  .news-item { gap: 14px; }
  .news-item:not(:last-child)::before { left: 68px; }
  .news-date { flex-basis: 48px; }
  .download-banner { padding: 48px 22px; }
  .download-banner h2 { font-size: 26px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-stats { gap: 20px; }
}
