:root {
  --primary: #ff8a3d;
  --primary-dark: #f2701f;
  --ink: #2d2a26;
  --ink-soft: #6f6a63;
  --bg: #fffaf5;
  --bg-alt: #fff3e8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(255, 138, 61, .12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary-dark); text-decoration: none; }

/* ---------- SVG 图标 ---------- */
.ic {
  width: 24px; height: 24px;
  fill: none; stroke: var(--primary-dark); stroke-width: 1.8;
  vertical-align: -5px;
}
.ic-check { width: 15px; height: 15px; stroke: #4caf7d; vertical-align: -2px; margin-right: 4px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 138, 61, .15);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand-icon { width: 26px; height: 26px; stroke: none; color: var(--primary); vertical-align: -7px; }
.brand-name em { font-style: normal; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--primary-dark); }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 13px; color: #fff !important; }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary); box-shadow: none; }

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 72px 24px 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 40px; line-height: 1.3; letter-spacing: .5px; }
.accent {
  background: linear-gradient(135deg, var(--primary), #ffb25e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 20px 0 28px; color: var(--ink-soft); font-size: 17px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 24px; }
.hero-points { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; }

/* 手机模型 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 260px; background: #1f1c1a; border-radius: 36px; padding: 12px;
  box-shadow: 0 24px 60px rgba(45, 42, 38, .25);
}
.phone-notch { width: 90px; height: 22px; background: #1f1c1a; border-radius: 0 0 14px 14px; margin: 0 auto; }
.phone-screen {
  background: linear-gradient(180deg, #fff4e9, #ffe6d2);
  border-radius: 24px; padding: 20px 16px; height: 430px;
  display: flex; flex-direction: column; gap: 14px;
}
.screen-time { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.chat-bubble {
  background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 10px 14px; font-size: 13px; box-shadow: 0 4px 14px rgba(255,138,61,.15);
  max-width: 92%;
}
.bubble-ic { margin-right: 2px; }
.pet-emoji { text-align: center; margin: auto 0; }
.pet-svg {
  width: 96px; height: 96px; stroke: #e08a4e; stroke-width: 1.4;
  filter: drop-shadow(0 10px 14px rgba(255,138,61,.3));
}
.status-ic { stroke: #4caf7d; }
.pet-status .ic-sm { vertical-align: -3px; }
.pet-status { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); background: rgba(255,255,255,.7); border-radius: 10px; padding: 8px 12px; }
.chat-input { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 12px; color: #b8b2aa; }

.float-card {
  position: absolute; background: var(--card); border-radius: 14px; padding: 12px 16px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow); line-height: 1.5;
}
.float-card small { display: inline-block; font-weight: 400; color: var(--ink-soft); }
.card-ic { width: 18px; height: 18px; vertical-align: -4px; }
.card-a { top: 6%; right: -4%; transform: rotate(3deg); }
.card-b { bottom: 8%; left: -6%; transform: rotate(-3deg); }

/* ---------- 通用区块 ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.section-alt {
  max-width: none; background: var(--bg-alt);
}
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section h2 { text-align: center; font-size: 30px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon svg { width: 36px; height: 36px; stroke-width: 1.6; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scene {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.scene h3 { font-size: 17px; margin-bottom: 8px; }
.scene-ic { vertical-align: -5px; margin-right: 4px; }
.scene p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--card); border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(255,138,61,.08);
}
summary { font-weight: 600; cursor: pointer; font-size: 15px; }
details p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 下载 ---------- */
.download-card {
  max-width: 720px; margin: 0 auto; background: var(--card); border-radius: 20px;
  padding: 40px; display: flex; gap: 40px; align-items: center; justify-content: center;
  box-shadow: var(--shadow); flex-wrap: wrap;
}
.qr-placeholder {
  width: 180px; height: 180px; border: 2px dashed var(--primary);
  border-radius: 16px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; color: var(--ink-soft); text-align: center; font-size: 13px;
}
.qr-icon svg { width: 44px; height: 44px; stroke-width: 1.5; }
.download-info ul { list-style: none; font-size: 14px; line-height: 2.2; }
.download-info b { color: var(--ink); }
.contact { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer { background: #2d2a26; color: #cfc9c2; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 36px 24px; text-align: center; }
.footer-brand { font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-paw { width: 20px; height: 20px; stroke: none; color: var(--primary); vertical-align: -4px; }
.footer-links { display: flex; gap: 24px; justify-content: center; font-size: 13px; margin-bottom: 16px; }
.footer-links a { color: #cfc9c2; }
.footer-links a:hover { color: var(--primary); }
.copyright { font-size: 12px; color: #8a847d; }

/* ---------- 隐私政策页 ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h1 { font-size: 28px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 32px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; padding-left: 10px; border-left: 4px solid var(--primary); }
.legal p, .legal li { font-size: 14.5px; color: #4c4740; margin-bottom: 8px; }
.legal ul { padding-left: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { margin-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .grid, .scenes { grid-template-columns: 1fr; }
  .card-a { right: 2%; } .card-b { left: 2%; }
}

/* ==========================================================
   v3 追加样式（官网合规改版）
   只追加、不改写上面的既有规则，覆盖利用 CSS 后置声明生效
   ========================================================== */

/* ---------- 通用：hidden 优先 ----------
   .site-meta / .entity-info 用了 display:flex，会覆盖浏览器默认的
   [hidden] { display: none }，导致"配置为空就隐藏"失效 */
[hidden] { display: none !important; }

/* ---------- SVG 图标库容器（原本是内联 style，挪出来以便收紧 CSP）---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 首屏补充 ---------- */
.hero-points li { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 合规与透明 ---------- */
.trust-section { padding-top: 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-top: 3px solid var(--primary);
}
.trust-num { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--primary-dark); margin-bottom: 8px; }
.trust-card h3 { font-size: 16px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--ink-soft); }
.trust-link { text-align: center; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 下载 / 内测申请 ---------- */
.launch-card { flex: 1 1 280px; max-width: 380px; }
.launch-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--primary-dark); background: rgba(255, 138, 61, .13);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.launch-card h3 { font-size: 18px; margin-bottom: 10px; }
.launch-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.download-info { flex: 1 1 240px; max-width: 320px; }
.contact-note { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 页脚主体 / 备案信息 ---------- */
.site-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center;
  font-size: 12px; color: #8a847d; margin-bottom: 10px;
}
.site-meta span:not([hidden]) ~ span:not([hidden])::before { content: "·"; margin-right: 10px; }
.site-meta a { color: #cfc9c2; }

/* ---------- 正文内的主体 / 备案信息 ---------- */
.entity-info {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-alt); font-size: 13.5px; color: #4c4740;
}
.entity-info span:not([hidden]) ~ span:not([hidden])::before { content: "·"; margin-right: 12px; }
.entity-info a { color: var(--primary-dark); }

/* ---------- 法律文档（隐私政策 / 用户协议）---------- */
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; }
.legal th, .legal td { border: 1px solid rgba(45, 42, 38, .14); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 600; }
.legal h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--ink); }
.legal .callout {
  background: var(--bg-alt); border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0;
  font-size: 14px; color: #4c4740;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal .doc-nav a {
  font-size: 13px; border: 1px solid rgba(255, 138, 61, .5);
  border-radius: 999px; padding: 3px 12px; color: var(--primary-dark);
}

/* ---------- 404 ---------- */
.error-page { max-width: 640px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; }
.error-page .error-code { font-size: 72px; font-weight: 700; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 24px; margin: 16px 0 10px; }
.error-page p { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 880px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .download-card { padding: 28px 20px; }
  .launch-card, .download-info { max-width: none; }
}