/* ============================================================
   我爱漫画 · 官网样式
   主题：暖调炭黑底 + 爆炸橙主色 + 琥珀黄辅助
   ============================================================ */

:root {
  --bg: #14100e;
  --bg-soft: #1d1714;
  --bg-card: #241c18;
  --line: rgba(231, 200, 175, 0.14);

  --primary: #ff7a3d;        /* 爆炸橙 */
  --primary-deep: #ea580c;
  --primary-dark: #c2410c;
  --accent: #fbbf24;         /* 琥珀黄 */
  --accent-deep: #f59e0b;

  --text: #fff7ed;
  --text-sub: #d6c3b3;
  --text-dim: #8a7a6e;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 10px 40px rgba(255, 122, 61, 0.28);
  --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(20, 16, 14, 0.88);
  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: 1px; }
.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(--text); }

/* ---------- 按钮 ---------- */
.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.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(214, 195, 179, 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(255, 122, 61, 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251, 191, 36, 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(255, 122, 61, 0.14);
  color: var(--primary);
  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;
}

.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: #0e0b09;
  border: 10px solid #2a211c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 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(20, 16, 14, 0.82);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  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;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.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); 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);
  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;
}
.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;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.45);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 122, 61, 0.14);
  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; }
.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);
}
.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(20, 16, 14, 0.92) 0%, rgba(20, 16, 14, 0.25) 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; }
.cat-mask p { font-size: 13px; color: var(--text-sub); }

/* 橙底 CTA 卡 */
.cat-cta {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 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.45);
  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;
}
.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; }
.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(255, 122, 61, 0.18), 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;
}
.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;
}
.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; }
}
