/* ============================================================
   栗子漫画 官网 — 明亮暖黄奶油白卡通杂志风
   配色：奶油黄 #fffbeb / 白卡 #ffffff / 深棕 #451a03 / 琥珀黄 #f59e0b / 亮黄 #fbbf24
   ============================================================ */

:root {
  --bg: #fffbeb;
  --bg-soft: #fef3c7;
  --card: #ffffff;
  --line: #fde68a;
  --text: #451a03;
  --text-soft: #92400e;
  --yellow: #f59e0b;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, #f59e0b, #fbbf24);
  --radius: 14px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--text);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--text);
}
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}
.brand-name em { font-style: normal; color: var(--yellow); }
.brand-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--gradient);
  color: #451a03;
  border-radius: 999px;
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--text);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ========== Hero ========== */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(245, 158, 11, 0.15), transparent 60%),
    radial-gradient(500px 250px at 15% 90%, rgba(251, 191, 36, 0.1), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: #fff;
  background: var(--text);
  padding: 4px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  background: var(--gradient);
  color: #451a03;
  border-radius: 999px;
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--text);
}
.btn-ghost {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 2px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-soft);
}
.hero-meta b { color: var(--text); font-weight: 700; }

.hero-phone { display: flex; justify-content: center; }
.hero-phone img {
  width: 300px;
  border-radius: 20px;
  border: 3px solid var(--text);
  box-shadow: 8px 8px 0 var(--yellow);
}

/* 三数字统计 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--card);
  padding: 28px 24px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ========== 通用 Section ========== */
.section { padding: 72px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 8px;
}
.section-head p { color: var(--text-soft); max-width: 640px; }

/* ========== 今日精选 3 卡 ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--line);
}
.featured-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.featured-body { padding: 20px; }
.featured-body h3 { font-size: 17px; margin-bottom: 6px; }
.featured-body p { font-size: 14px; color: var(--text-soft); }

/* ========== 六种阅读气质 6 格 ========== */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--text);
  border-left: 2px solid var(--text);
}
.trait-cell {
  padding: 32px 24px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  background: var(--card);
}
.trait-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
}
.trait-cell h3 { font-size: 18px; margin-bottom: 8px; }
.trait-cell p { font-size: 14px; color: var(--text-soft); }

/* ========== 引语区 ========== */
.quote-section {
  padding: 64px 0;
  text-align: center;
}
.quote-text {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 16px;
}
.quote-text em { font-style: normal; color: var(--yellow); }
.quote-author {
  font-size: 14px;
  color: var(--text-soft);
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--yellow);
  font-weight: 700;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-soft);
  font-size: 14px;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 22px 18px;
}

/* ========== 关于软件 ========== */
.about-section {
  padding: 64px 0;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.about-section h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}
.about-section p {
  color: var(--text-soft);
  margin-bottom: 24px;
}
.about-list {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.about-list li {
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.about-list li b { color: var(--text); font-weight: 700; }

/* ========== 下载 CTA ========== */
.download-cta {
  background: var(--gradient);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  color: #451a03;
  box-shadow: 8px 8px 0 var(--text);
}
.download-cta h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 10px;
}
.download-cta p { margin-bottom: 28px; opacity: 0.85; }
.download-cta .btn-primary {
  background: #fff;
  color: var(--yellow);
  border-color: var(--text);
  box-shadow: 4px 4px 0 var(--text);
}
.download-meta {
  font-size: 13px;
  margin-top: 16px;
  opacity: 0.8;
}
.download-meta b { font-weight: 700; }

/* ========== Footer ========== */
.site-footer {
  padding: 40px 0 48px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  border-top: 2px solid var(--text);
  background: var(--bg-soft);
}
.site-footer .brand { justify-content: center; margin-bottom: 10px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer .brand-name { font-size: 18px; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .stats-row { grid-template-columns: 1fr; gap: 1px; }
  .featured-grid { grid-template-columns: 1fr; }
  .traits-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--text);
    padding: 20px;
    gap: 16px;
  }
}
