/* PetTime 官网样式 —— 与 App 品牌色保持一致 */
:root {
  --primary: #5B8CFF;
  --primary-strong: #4675ED;
  --accent: #FF7DAE;
  --success: #33C27F;
  --warning: #FFB84D;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --bg-base: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-muted: #EEF2F7;
  --border: #E5E7EB;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 8px 24px rgba(91, 140, 255, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F3F6FF;
    --text-secondary: #AAB4C5;
    --text-tertiary: #7F8CA1;
    --bg-base: #0B1220;
    --bg-card: #141E2E;
    --bg-muted: #1E2A3E;
    --border: #2A364D;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11, 18, 32, 0.72); }
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a { color: var(--text-secondary); }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.nav a.active { color: var(--text-primary); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 24px 56px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(255,125,174,0.12));
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin: 18px 0 16px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { color: white; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }

/* ---------- Features ---------- */
.section {
  padding: 56px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section .sub {
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(91,140,255,0.14), rgba(255,125,174,0.14));
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.price-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.price-card .price {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0 2px;
  color: var(--text-primary);
}
.price-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.price-card .desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 8px 0 0;
}

/* ---------- Long-form doc page ---------- */
.doc h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.doc .doc-meta {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 8px;
  letter-spacing: -0.005em;
}
.doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.doc p, .doc li { color: var(--text-primary); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc code {
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.doc .callout {
  background: linear-gradient(135deg, rgba(91,140,255,0.06), rgba(255,125,174,0.06));
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 24px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }

/* ---------- Guide / FAQ page ---------- */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 8px 0 28px;
  font-size: 14px;
}
.guide-toc a {
  color: var(--text-secondary);
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 999px;
}
.guide-toc a:hover { color: var(--primary); text-decoration: none; }

.qa {
  border-top: 1px solid var(--border);
  padding: 18px 0 6px 48px;          /* 预留 48px 给左侧 Q/A 徽章轨道(含 12px 间距) */
  position: relative;
}
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa .q {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.qa .q::before,
.qa .a::before {
  position: absolute;
  left: -40px;
  top: 1px;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}
.qa .q::before {
  content: "Q";
  background: rgba(91,140,255,0.12);
  color: var(--primary-strong);
}
.qa .a {
  position: relative;
  margin: 4px 0 12px;
  color: var(--text-primary);
}
.qa .a::before {
  content: "A";
  background: rgba(51,194,127,0.14);
  color: #1F9C63;
}
@media (prefers-color-scheme: dark) {
  .qa .a::before { color: #5CD79B; }
}
/* 列表型答案:A 徽章独占一行,列表内容换到下一行展示 */
.qa ol.a,
.qa ul.a {
  padding-left: 1.4em;
  padding-top: 26px;
}
.qa li { margin: 3px 0; }
/* 同一组 Q&A 里的次级说明:不再带 A 徽章,只做轻量灰字补充 */
.qa .a-note {
  margin: -4px 0 12px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.guide-shot {
  margin: 14px 0 18px;
}
.guide-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-muted),
      var(--bg-muted) 12px,
      rgba(91,140,255,0.05) 12px,
      rgba(91,140,255,0.05) 24px
    );
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.guide-shot figcaption {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-16 { margin-top: 16px; }
.text-muted { color: var(--text-secondary); }
