/* ============================================================
   漫小社 · 官网样式（新版 manxiaoshe-max.cn）
   主题：深漫黑金黑底 + 漫金主色 + 雪白点缀
   ============================================================ */

:root {
  --bg: #1a0f05;
  --bg-soft: #2a1a08;
  --card: #3a240c;
  --card-2: #4a3012;
  --border: #6a4818;
  --text: #fffbe6;
  --muted: #d8c090;
  --primary: #d4af37;
  --primary-strong: #e8c94f;
  --primary-deep: #a88a2a;
  --accent: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 15, 5, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

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

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name em {
  font-style: normal;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-download {
  background: var(--primary);
  color: #1a0f05;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-download:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

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

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span::before {
  content: "●";
  color: var(--primary);
  margin-right: 6px;
  font-size: 10px;
}

/* 手机样机 */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 40px;
  background: #0f0903;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 8px #0f0903, 0 0 0 9px var(--border);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  position: absolute;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.chip-gold {
  top: 60px;
  left: -20px;
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.3);
}

.chip-white {
  bottom: 100px;
  right: -20px;
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   数据条
   ============================================================ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

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

/* ============================================================
   通用 section
   ============================================================ */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   功能卡片
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   书库分类
   ============================================================ */
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.book-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4.4;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.15s ease;
}

.book-card:hover { transform: translateY(-4px); }

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 9, 3, 0.92) 0%, rgba(15, 9, 3, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.book-overlay h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.book-overlay p {
  font-size: 13px;
  color: var(--muted);
}

.book-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #1a0f05;
}

.book-cta .big {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.book-cta .label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.book-cta .mini-btn {
  padding: 9px 18px;
  background: #1a0f05;
  color: var(--primary-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   编号亮点
   ============================================================ */
.highlights {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.highlight-num {
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}

.highlight-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

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

/* ============================================================
   下载 CTA
   ============================================================ */
.download-cta {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.download-cta h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-cta p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 { font-size: 38px; }
  .nav-links { display: none; }
  .features-grid, .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .phone { width: 260px; height: 520px; }
}

@media (max-width: 560px) {
  .features-grid, .library-grid {
    grid-template-columns: 1fr;
  }
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
