/* ============================================================
   喵趣漫画 · 官网样式
   主题：暖奶杏白底 + 橘橙主色 + 柔粉点缀（可爱治愈风）
   ============================================================ */

:root {
  --bg: #fff8f1;
  --bg-soft: #fff1e3;
  --bg-card: #ffffff;
  --line: rgba(194, 65, 12, 0.12);

  --primary: #f97316;        /* 橘橙 */
  --primary-deep: #ea580c;
  --primary-dark: #c2410c;
  --accent: #fb7185;         /* 柔粉，呼应猫腮红 */
  --accent-deep: #f43f5e;

  --text: #431407;            /* 暖棕黑，不用纯黑 */
  --text-sub: #92400e;
  --text-dim: #b45309;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(249, 115, 22, 0.12);
  --shadow-glow: 0 12px 32px rgba(249, 115, 22, 0.35);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  position: relative; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.brand-name em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-sub); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(194, 65, 12, 0.3);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav { padding: 10px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; left: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.12), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(249, 115, 22, 0.12); color: var(--primary-deep);
  font-size: 13px; font-weight: 600; margin-bottom: 22px; letter-spacing: 1px;
}
.hero h1 {
  font-size: 56px; line-height: 1.15; font-weight: 900;
  letter-spacing: 2px; margin-bottom: 20px; color: var(--text);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-sub); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 28px; color: var(--text-dim); font-size: 14px; }
.hero-meta span::before {
  content: "✓"; color: var(--primary); margin-right: 6px; font-weight: 700;
}

/* 手机样机 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 600px;
  border-radius: 38px; background: #fff;
  border: 10px solid #fdba74;
  box-shadow: 0 30px 80px rgba(249, 115, 22, 0.25), var(--shadow-glow);
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-badge {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(67, 20, 7, 0.78); backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; color: #fff; white-space: nowrap;
}
.float-chip {
  position: absolute; padding: 10px 16px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; font-size: 13px; color: var(--text);
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.12);
}
.float-chip.c1 { top: 40px; left: -30px; }
.float-chip.c2 { bottom: 120px; right: -30px; }

/* ---------- 数据条 ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 36px 0; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-num small { font-size: 16px; color: var(--accent-deep); margin-left: 2px; }
.stat-label { color: var(--text-sub); font-size: 14px; margin-top: 4px; }

/* ---------- 区块 ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  color: var(--accent-deep); font-size: 14px; font-weight: 700;
  letter-spacing: 3px; margin-bottom: 12px;
}
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; color: var(--text); }
.section-head p { color: var(--text-sub); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ---------- 功能卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(249, 115, 22, 0.45); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(249, 115, 22, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--primary);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; color: var(--text); }
.feature-card p { color: var(--text-sub); font-size: 14px; line-height: 1.7; }

/* ---------- 书库 ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; border: 1px solid var(--line);
  display: block; color: var(--text);
  box-shadow: var(--shadow-soft);
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(67, 20, 7, 0.88) 0%, rgba(67, 20, 7, 0.2) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.cat-mask h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.cat-mask p { font-size: 13px; color: #ffedd5; }

/* 橘橙 CTA 卡 */
.cat-cta {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.cat-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-cta-inner { text-align: center; padding: 20px; }
.cat-cta-num { font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 14px; }
.cat-cta-txt { font-size: 15px; font-weight: 600; line-height: 1.6; margin-bottom: 16px; }
.cat-cta-arrow { font-size: 22px; font-weight: 700; }

/* ---------- 亮点 ---------- */
.showcase { background: var(--bg-soft); }
.showcase-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.num-item {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: var(--shadow-soft);
}
.num-num {
  font-size: 44px; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 22px; letter-spacing: 2px;
}
.num-item h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; color: var(--text); }
.num-item p { color: var(--text-sub); font-size: 14px; line-height: 1.8; }

/* ---------- 下载 CTA ---------- */
.download-cta {
  text-align: center; padding: 100px 24px;
  position: relative; overflow: hidden;
}
.download-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15), transparent 60%);
  pointer-events: none;
}
.download-cta .cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.download-cta h2 { font-size: 42px; font-weight: 900; margin-bottom: 16px; letter-spacing: 1px; color: var(--text); }
.download-cta p { color: var(--text-sub); font-size: 17px; margin-bottom: 36px; }
.download-cta .btn { font-size: 18px; padding: 16px 48px; }
.cta-note { margin-top: 18px; font-size: 13px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0; text-align: center;
  color: var(--text-dim); font-size: 14px;
  background: var(--bg-soft);
}
.footer .foot-brand { color: var(--text-sub); font-weight: 600; margin-bottom: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 50px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero h1 { font-size: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .showcase-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .download-cta h2 { font-size: 30px; }
  .float-chip.c1 { left: 0; }
  .float-chip.c2 { right: 0; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .phone { width: 260px; height: 520px; }
}
