/* ============ 小黑猫漫画 官网样式（暖橙浅色主题） ============ */
:root {
  --bg: #fff8f1;
  --bg-2: #fff1e3;
  --card: #ffffff;
  --border: rgba(180, 120, 40, 0.14);
  --primary: #ff7a00;
  --primary-dark: #e56a00;
  --accent: #2b2b2b;
  --grad: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
  --text: #2b2b2b;
  --muted: #8a7d6f;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(210, 120, 30, 0.16);
}

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

html { scroll-behavior: smooth; }

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

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

.container { width: min(1180px, 92%); margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ico { width: 18px; height: 18px; flex: none; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 122, 0, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 94, 58, 0.45); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-2); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 241, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 28px; }
.nav-link { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(255, 149, 0, 0.18), transparent 60%),
  radial-gradient(900px 480px at -10% 20%, rgba(255, 94, 58, 0.12), transparent 60%);
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title { font-size: 52px; line-height: 1.18; font-weight: 900; letter-spacing: 1px; }
.hero-sub { margin: 22px 0 32px; color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-top: 44px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats span { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 300px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #ffb35c, #ff7a00);
  box-shadow: var(--shadow);
}
.phone-img { border-radius: 30px; width: 100%; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.float-card img { width: 34px; height: 34px; border-radius: 8px; }
.float-card .ico { color: var(--primary); }
.float-card strong { display: block; font-size: 13px; }
.float-card span { font-size: 11px; color: var(--muted); }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { bottom: 10%; right: -4%; }

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 38px; font-weight: 800; line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(255, 94, 58, 0.15));
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ============ 截图 ============ */
.shots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.shot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 9/19; object-fit: cover; object-position: top; }
.shot figcaption {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ============ 下载 CTA ============ */
.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  background: var(--grad);
  border-radius: 26px;
  padding: 54px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 24px 60px rgba(255, 122, 0, 0.35);
}
.download-info h2 { font-size: 34px; font-weight: 800; margin: 18px 0 14px; color: #fff; }
.download-info h2 .grad-text { background: #fff; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: #fff; }
.download-info p { color: rgba(255, 255, 255, 0.92); margin-bottom: 28px; max-width: 460px; }
.download-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.download-side { display: flex; justify-content: flex-end; }
.download-side img {
  height: 300px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-2);
}
.footer-wrap { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand span { font-weight: 600; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 18px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--primary-dark); }
.copyright { color: #b3a493; font-size: 13px; }

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(255, 122, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 20px; height: 20px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero { padding: 50px 0 70px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-title { font-size: 38px; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shots-row { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; padding: 36px; }

  .nav-links, .nav-download { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    padding: 18px 6%;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .shots-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 22px; }
  .phone-frame { width: 240px; }
  .float-card { display: none; }
  .download-info h2 { font-size: 26px; }
}
