/* ============================================================
   MollyPaw 官网 — 品牌样式表
   配色严格来自 BRAND.md：摩尼棕 + 摩尼白 + 爪印橙
   禁止冷色（蓝/绿/灰）作为主色
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* 摩尼棕 */
  --brown-900: #3A2A1A;   /* 摩尼黑 */
  --brown-700: #6B4226;   /* 深棕 — 主文字 */
  --brown-600: #8B5E3C;   /* 中棕 — 导航/次级 */
  --brown-500: #A67B5B;   /* 浅棕 — 悬停/装饰 */
  --brown-300: #D2B48C;   /* 奶棕 — 背景渐变/卡片底 */
  --brown-200: #E4D2BC;   /* 边框（由奶棕派生） */
  --brown-100: #F5EDE3;   /* 暖灰白 — 分隔线 */
  /* 摩尼白 */
  --white: #FFFFFF;
  --cream: #FFF8F0;       /* 米白 — 页面底色 */
  /* 强调 */
  --orange: #D4823A;      /* 爪印橙 — CTA */
  --orange-600: #B96C2A;  /* 悬停加深 */
  --orange-soft: #F2DCC4; /* 橙色浅底 */

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 8px rgba(107, 66, 38, .06);
  --shadow: 0 10px 30px rgba(107, 66, 38, .10);
  --shadow-l: 0 24px 60px rgba(107, 66, 38, .16);

  --wrap: 1160px;
  --ease: cubic-bezier(.22, .8, .28, 1);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", ui-monospace, monospace;

  /* 语义色（暗色模式会覆盖，别处只准用这些） */
  --page-bg: var(--cream);
  --card-bg: var(--white);
  --line: var(--brown-100);
  --line-strong: var(--brown-200);
  --text: var(--brown-700);
  --text-soft: var(--brown-600);
  --text-mute: var(--brown-500);
}

/* ============================================================
   暗色模式：切到「技术版」自动进入（程序员作息）
   BRAND 禁止冷色 → 暗色底用深棕，不用灰蓝
   ============================================================ */
html[data-mode="dev"] {
  --page-bg: #1C1310;
  --card-bg: #261B14;
  --line: #3A2A1F;
  --line-strong: #4A3626;
  --text: #F6E7D6;
  --text-soft: #D9C0A4;
  --text-mute: #A98A6B;
  --brown-100: #33241A;
  --brown-200: #45311F;
  --brown-300: #7A5B3E;
  --brown-500: #A98A6B;
  --brown-600: #D9C0A4;
  --brown-700: #F6E7D6;
  --white: #261B14;
  --cream: #1C1310;
  --orange: #E0913F;
  --orange-600: #F0A457;
  --orange-soft: #3A2818;
  --shadow-s: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --shadow-l: 0 26px 64px rgba(0, 0, 0, .65);
  color-scheme: dark;
}
html[data-mode="dev"] body { background: var(--page-bg); color: var(--text); }
html[data-mode="dev"] .nav {
  background: rgba(28, 19, 16, .82);
  border-bottom-color: transparent;
}
html[data-mode="dev"] .nav.scrolled {
  background: rgba(28, 19, 16, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}
html[data-mode="dev"] .nav-links a:hover { background: var(--brown-100); color: var(--text); }
html[data-mode="dev"] .nav-toggle span { background: var(--text); }
html[data-mode="dev"] .btn-ghost:hover { background: var(--brown-100); }
html[data-mode="dev"] .btn-primary { color: #23160D; }
html[data-mode="dev"] .btn-outline { color: var(--text); border-color: var(--line-strong); }
html[data-mode="dev"] .btn-outline:hover { background: var(--card-bg); border-color: var(--brown-300); }
html[data-mode="dev"] .ms-btn[aria-selected="true"] { color: #23160D; }

html[data-mode="dev"] .hero-glow {
  background:
    radial-gradient(46% 52% at 22% 26%, rgba(212, 130, 58, .22), transparent 70%),
    radial-gradient(40% 46% at 78% 14%, rgba(140, 94, 60, .30), transparent 72%),
    radial-gradient(50% 44% at 60% 78%, rgba(224, 145, 63, .10), transparent 70%);
}
html[data-mode="dev"] .pill {
  background: var(--card-bg); border-color: var(--line-strong); color: var(--text-soft);
}
html[data-mode="dev"] .pet-card {
  background: radial-gradient(58% 58% at 50% 42%, #2E211A 0%, #1F1611 62%, #2A1D15 100%);
  border-color: rgba(210, 180, 140, .16);
}
html[data-mode="dev"] .pet-chip,
html[data-mode="dev"] .stage-badge { background: var(--card-bg); border-color: var(--line-strong); color: var(--text-soft); }
html[data-mode="dev"] .ticker {
  background: linear-gradient(90deg, #221812, #1C1310, #221812);
  border-color: var(--line);
}
html[data-mode="dev"] .section-alt {
  background: linear-gradient(180deg, rgba(38, 27, 20, .75), var(--page-bg));
  border-color: var(--line);
}
html[data-mode="dev"] .dl-section { background: linear-gradient(180deg, var(--page-bg), rgba(38, 27, 20, .8)); }
/* 暗底上宠物不能糊成一坨，给一圈暖光把轮廓托出来 */
html[data-mode="dev"] .pet-img {
  filter: drop-shadow(0 0 26px rgba(224, 145, 63, .20)) drop-shadow(0 16px 24px rgba(0, 0, 0, .6));
}
html[data-mode="dev"] .pet-card-sm img {
  filter: drop-shadow(0 0 16px rgba(224, 145, 63, .16)) drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
}
html[data-mode="dev"] .cta-pet { filter: drop-shadow(0 0 22px rgba(224, 145, 63, .24)); }
html[data-mode="dev"] .card,
html[data-mode="dev"] .plain-card,
html[data-mode="dev"] .ver-block,
html[data-mode="dev"] .mirror-box,
html[data-mode="dev"] .rel-details,
html[data-mode="dev"] .cmp,
html[data-mode="dev"] .faq details,
html[data-mode="dev"] .road-item,
html[data-mode="dev"] .table-wrap,
html[data-mode="dev"] .pet-card-sm { background: var(--card-bg); }
html[data-mode="dev"] .card,
html[data-mode="dev"] .plain-card,
html[data-mode="dev"] .ver-block,
html[data-mode="dev"] .mirror-box,
html[data-mode="dev"] .rel-details,
html[data-mode="dev"] .faq details,
html[data-mode="dev"] .road-item,
html[data-mode="dev"] .pet-card-sm,
html[data-mode="dev"] .table-wrap { border-color: var(--line); }
html[data-mode="dev"] .steps li:hover { background: rgba(58, 40, 24, .55); }
html[data-mode="dev"] .card:hover,
html[data-mode="dev"] .road-item:hover,
html[data-mode="dev"] .pet-card-sm:hover { border-color: var(--brown-300); }
html[data-mode="dev"] .card code,
html[data-mode="dev"] .steps code,
html[data-mode="dev"] .code-note code,
html[data-mode="dev"] .faq code { background: var(--brown-100); color: var(--text); }
html[data-mode="dev"] .cmp thead th { background: var(--brown-100); color: var(--text-mute); }
html[data-mode="dev"] .cmp thead th.col-us { background: var(--brown-600); color: #23160D; }
html[data-mode="dev"] .cmp td.col-us { background: rgba(58, 40, 24, .55); color: var(--text); }
html[data-mode="dev"] .cmp th, html[data-mode="dev"] .cmp td { border-bottom-color: var(--line); }
html[data-mode="dev"] .cmp tbody tr:hover td { background: rgba(58, 40, 24, .35); }
html[data-mode="dev"] .table-wrap { box-shadow: var(--shadow); }
html[data-mode="dev"] .road-badge { background: var(--brown-100); color: var(--text-soft); }
html[data-mode="dev"] .road-item.done .road-badge { background: var(--orange-soft); color: var(--orange-600); }
html[data-mode="dev"] .road-item::before { background: var(--line-strong); }
html[data-mode="dev"] .road-item.done::before { background: var(--orange); }
html[data-mode="dev"] .plain-tip { background: var(--orange-soft); color: var(--text); }
html[data-mode="dev"] .mirror-row { background: #221812; border-color: var(--line); }
html[data-mode="dev"] .mirror-row.best { background: #2B1E15; border-color: var(--orange); }
html[data-mode="dev"] .rel-item { background: #221812; border-color: var(--line); }
html[data-mode="dev"] .rel-notes { border-left-color: var(--line-strong); }
html[data-mode="dev"] .rel-tag { background: var(--brown-100); color: var(--text-soft); }
html[data-mode="dev"] .rel-tag.latest { background: var(--orange-soft); color: var(--orange-600); }
html[data-mode="dev"] .mode-btn-mobile { background: var(--brown-100); border-color: var(--line-strong); color: var(--text); }
html[data-mode="dev"] .cta-band {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(122, 91, 62, .35), transparent 70%),
    linear-gradient(180deg, var(--page-bg), #221812);
  border-top-color: var(--line);
}
html[data-mode="dev"] .foot { background: #150E0A; }
html[data-mode="dev"] .foot-brand .brand em,
html[data-mode="dev"] .foot-mode strong,
html[data-mode="dev"] .link-btn,
html[data-mode="dev"] .foot-brand .brand-paw { color: var(--brown-300); }
html[data-mode="dev"] .mode-toast { background: #3A2818; color: var(--text); }
html[data-mode="dev"] .code-card { border-color: rgba(210, 180, 140, .18); }
html[data-mode="dev"] .faq summary::after,
html[data-mode="dev"] .rel-details summary::after { background: var(--orange-soft); color: var(--orange-600); }
html[data-mode="dev"] .skip-link { background: var(--orange); color: #23160D; }
html[data-mode="dev"] .ver-warn { background: var(--orange-soft); color: var(--text); }
html[data-mode="dev"] ::selection { background: #4A3626; color: var(--text); }

/* ---------- 模式切换：小白版 / 技术版 ---------- */
html[data-mode="lite"] .only-dev { display: none !important; }
html[data-mode="dev"] .only-lite { display: none !important; }

.mode-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px; background: var(--brown-100);
  border: 1px solid var(--brown-200); flex: none;
}
.ms-btn {
  position: relative; z-index: 1; flex: 1 1 0;
  padding: 6px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800; color: var(--brown-600);
  transition: color .25s var(--ease); white-space: nowrap;
}
.ms-btn[aria-selected="true"] { color: var(--white); }
.ms-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px); border-radius: 999px;
  background: var(--orange); box-shadow: 0 3px 10px rgba(212, 130, 58, .38);
  transition: transform .32s var(--ease);
}
html[data-mode="dev"] .ms-thumb { transform: translateX(100%); }
.mode-btn-mobile { display: none; }

.mode-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--brown-700); color: var(--cream);
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-l); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 150;
}
.mode-toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot-mode { margin-top: 16px; font-size: 14px; color: rgba(255, 248, 240, .72); }
.foot-mode strong { color: var(--brown-300); }
.link-btn {
  color: var(--brown-300); font-weight: 800; text-decoration: underline;
  text-underline-offset: 3px; padding: 0 4px;
}
.link-btn:hover { color: var(--white); }

/* 小白版专属组件 */
.plain-card {
  background: var(--white); border: 1px solid var(--brown-200);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); align-self: start;
}
.plain-card h3 { font-size: 20px; margin-bottom: 12px; }
.plain-card p { color: var(--brown-600); font-size: 15.5px; margin-bottom: 12px; }
.plain-tip {
  background: var(--orange-soft); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 14px 16px; margin: 16px 0 20px; font-size: 14.5px; color: var(--brown-700);
}
.btn-block { width: 100%; }
.road-item.todo::before { background: var(--brown-300); }
.road-item.todo .road-badge { background: var(--brown-100); color: var(--brown-500); }

/* ---------- 下载区 ---------- */
.dl-section { background: linear-gradient(180deg, var(--cream), rgba(245, 237, 227, .6)); }
.ver-block {
  background: var(--white); border: 1px solid var(--brown-200);
  border-radius: var(--radius-l); padding: 30px 32px;
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.ver-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; }
.ver-badge { display: inline-flex; align-items: center; gap: 10px; }
.ver-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(212, 130, 58, .55); animation: pulse 2.4s infinite; }
.ver-label { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--brown-500); }
.ver-name { font-size: 21px; font-weight: 900; color: var(--brown-700); }
.ver-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--brown-500); }
.ver-src { display: inline-flex; align-items: center; gap: 6px; }
.ver-src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brown-300); }
.ver-src.live::before { background: var(--orange); }
.ver-src.snapshot::before { background: var(--brown-500); }
.ver-src.offline::before { background: var(--brown-500); }
.ver-refresh { font-size: 13.5px; }
.ver-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ver-actions .btn { gap: 10px; }
.ico-line { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-size { font-style: normal; opacity: .8; font-size: 13.5px; font-weight: 700; }
.dl-via { font-style: normal; opacity: .85; font-size: 13px; font-weight: 700; margin-left: 4px; }
.dl-via.weak { opacity: .62; }
/* 禁用态：不要整体降 opacity（文字会糊在底色里看不清）。
   改成「灰底 + 深字」，文字照样清清楚楚，只是看起来不能点。 */
.btn-primary.is-disabled {
  background: var(--brown-200); color: var(--brown-700);
  cursor: progress; box-shadow: none !important; transform: none !important;
}
.btn-outline.is-disabled {
  background: var(--brown-100); color: var(--brown-600);
  border-color: var(--brown-200); border-style: dashed;
  cursor: progress; box-shadow: none !important; transform: none !important;
}
.btn-primary.is-disabled:hover,
.btn-outline.is-disabled:hover {
  background: var(--brown-200); transform: none !important; box-shadow: none !important;
}
.btn-outline.is-disabled:hover { background: var(--brown-100); }
html[data-mode="dev"] .btn-primary.is-disabled { background: var(--brown-100); color: var(--text-soft); }
html[data-mode="dev"] .btn-outline.is-disabled { background: rgba(58, 40, 24, .45); color: var(--text-mute); border-color: var(--line-strong); }
html[data-mode="dev"] .btn-primary.is-disabled:hover,
html[data-mode="dev"] .btn-outline.is-disabled:hover { background: var(--brown-100); }
.ver-warn {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-s);
  background: var(--orange-soft); border-left: 4px solid var(--orange);
  font-size: 14.5px; color: var(--brown-700);
}

.mirror-box {
  background: var(--white); border: 1px solid var(--brown-200);
  border-radius: var(--radius-l); padding: 30px 32px; box-shadow: var(--shadow-s);
  margin-bottom: 34px;
}
.mirror-head h3 { font-size: 21px; margin-bottom: 10px; }
.mirror-head p { color: var(--brown-600); font-size: 15.5px; max-width: 720px; }
.mirror-list { display: grid; gap: 10px; margin-top: 22px; }
.mirror-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--brown-100); background: var(--cream);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mirror-row:hover { border-color: var(--brown-300); transform: translateX(3px); box-shadow: var(--shadow-s); }
.mirror-row.best { border-color: var(--orange); background: var(--white); box-shadow: 0 10px 26px rgba(212, 130, 58, .16); }
.mirror-name { font-weight: 800; font-size: 15.5px; min-width: 150px; }
.mirror-host { font-size: 13px; color: var(--brown-500); font-family: var(--mono); }
.mirror-status { margin-left: auto; font-size: 13.5px; font-weight: 700; }
.mirror-status.ok { color: var(--orange-600); }
.mirror-status.wait { color: var(--brown-500); }
.mirror-status.bad { color: var(--brown-500); text-decoration: line-through; }
.mirror-row .btn { padding: 8px 18px; font-size: 14px; }
.mirror-foot { margin-top: 16px; font-size: 13.5px; }
.mirror-loading { color: var(--brown-500); font-size: 15px; padding: 6px 0; }

.warn-card {
  margin-top: 20px; border-left: 5px solid var(--orange);
}
.warn-card h3 { color: var(--orange-600); }
.install-card { margin-top: 34px; }
.install-steps { list-style: none; counter-reset: ins; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.install-steps li { counter-increment: ins; position: relative; padding-left: 40px; color: var(--brown-600); font-size: 15.5px; }
.install-steps li::before {
  content: counter(ins); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange-soft); color: var(--orange-600);
  font-weight: 900; font-size: 13.5px;
}
.install-steps strong { color: var(--brown-700); }

.rel-details {
  margin-top: 34px; background: var(--white); border: 1px solid var(--brown-200);
  border-radius: var(--radius); padding: 4px 24px; box-shadow: var(--shadow-s);
}
.rel-details summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: space-between;
}
.rel-details summary::-webkit-details-marker { display: none; }
.rel-details summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-600); font-weight: 900; }
.rel-details[open] summary::after { content: "−"; }
.rel-list { padding-bottom: 18px; display: grid; gap: 12px; }
.rel-item { border: 1px solid var(--brown-100); border-radius: var(--radius-s); padding: 14px 18px; background: var(--cream); }
.rel-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rel-item-head strong { font-size: 15.5px; }
.rel-tag { font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: var(--brown-100); color: var(--brown-600); }
.rel-tag.latest { background: var(--orange-soft); color: var(--orange-600); }
.rel-date { font-size: 13px; color: var(--brown-500); margin-left: auto; }
.rel-assets { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.rel-asset { font-size: 13.5px; color: var(--brown-600); }
.rel-notes {
  margin-top: 10px; font-size: 14px; color: var(--brown-600); white-space: pre-wrap;
  max-height: 190px; overflow: auto; border-left: 3px solid var(--brown-200); padding-left: 12px;
}

/* ---------- 在线试用（真实前端 iframe） ---------- */
.tryon { background: linear-gradient(180deg, var(--page-bg), rgba(245, 237, 227, .5)); }
.tryon-frame {
  border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--card-bg);
  box-shadow: var(--shadow-l);
}
.tryon-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; background: var(--brown-700); color: var(--cream);
  font-size: 13px; font-weight: 700;
}
.tryon-dots { display: inline-flex; gap: 6px; flex: none; }
.tryon-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 248, 240, .3); }
.tryon-dots i:first-child { background: var(--orange); }
.tryon-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tryon-open { margin-left: auto; color: var(--brown-300); font-weight: 800; white-space: nowrap; }
.tryon-open:hover { color: var(--white); }
.tryon-body { position: relative; height: 620px; background: var(--cream); }
.tryon-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.tryon-hint { margin-top: 18px; text-align: center; font-size: 15px; color: var(--text-soft); }
.tryon-hint strong { color: var(--orange-600); }

html[data-mode="dev"] .tryon { background: linear-gradient(180deg, var(--page-bg), rgba(38, 27, 20, .7)); }
html[data-mode="dev"] .tryon-bar { background: #150E0A; color: var(--text-soft); }
html[data-mode="dev"] .tryon-open { color: var(--brown-300); }
html[data-mode="dev"] .tryon-body { background: #150E0A; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown-700);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--orange-soft); color: var(--brown-900); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--brown-500); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brown-700); color: var(--white); padding: 10px 16px; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .ico { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 6px 18px rgba(212, 130, 58, .32);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212, 130, 58, .4); }
.btn-outline {
  background: transparent; color: var(--brown-700);
  border: 2px solid var(--brown-300);
}
.btn-outline:hover { border-color: var(--brown-600); background: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brown-700); }
.btn-ghost:hover { background: var(--brown-100); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 240, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--brown-100); box-shadow: 0 6px 24px rgba(107, 66, 38, .07); background: rgba(255, 248, 240, .95); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--brown-700); letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--orange); }
.brand-paw { width: 30px; height: 30px; color: var(--brown-600); flex: none; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--brown-600);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--brown-100); color: var(--brown-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--brown-700); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0;
  background:
    radial-gradient(46% 52% at 22% 26%, rgba(210, 180, 140, .55), transparent 70%),
    radial-gradient(40% 46% at 78% 14%, rgba(242, 220, 196, .85), transparent 72%),
    radial-gradient(50% 44% at 60% 78%, rgba(212, 130, 58, .13), transparent 70%);
  filter: blur(6px);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--brown-200);
  color: var(--brown-600); font-size: 13.5px; font-weight: 700;
  padding: 7px 16px 7px 12px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(212, 130, 58, .55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 130, 58, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 130, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 130, 58, 0); }
}

.hero h1 { margin: 22px 0 0; font-size: clamp(40px, 6vw, 66px); }
.hero h1 .hl { position: relative; color: var(--orange); display: inline-block; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 12px;
  background: var(--orange-soft); border-radius: 4px; z-index: -1;
}
.slogan { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--brown-600); font-style: italic; }
.lede { margin-top: 18px; font-size: 17.5px; color: var(--brown-600); max-width: 560px; }
.lede strong { color: var(--brown-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 30px 0 0; padding: 0; font-size: 14.5px; color: var(--brown-600); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: "🐾"; font-size: 13px; }
.hero-meta strong { color: var(--brown-700); }

/* Hero pet stage */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.pet-card {
  position: relative; width: min(400px, 88vw); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 42% 42% 46% 46% / 44% 44% 48% 48%;
  background: radial-gradient(58% 58% at 50% 42%, #FFFFFF 0%, var(--cream) 62%, var(--brown-200) 100%);
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(255, 255, 255, .8);
}
.pet-halo {
  position: absolute; width: 116%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(212, 130, 58, .22), rgba(210, 180, 140, .12), rgba(212, 130, 58, .22));
  filter: blur(38px); z-index: -1; animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pet-img {
  width: 78%; image-rendering: auto;
  filter: drop-shadow(0 18px 26px rgba(107, 66, 38, .26));
  animation: bob 4.2s ease-in-out infinite;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.pet-img.swap { opacity: 0; transform: scale(.94); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}

.pet-chip {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--brown-200);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--brown-700);
  box-shadow: var(--shadow-s); white-space: nowrap;
}
.pet-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.stage-badge {
  position: absolute; background: var(--white); border: 1px solid var(--brown-200);
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: var(--brown-600);
  box-shadow: var(--shadow-s); animation: float 6s ease-in-out infinite;
}
.stage-badge-a { top: 8%;  left: -2%; }
.stage-badge-b { top: 30%; right: -3%; animation-delay: -2s; }
.stage-badge-c { bottom: 16%; left: 2%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--brown-200); border-bottom: 1px solid var(--brown-200);
  background: linear-gradient(90deg, var(--brown-100), var(--cream), var(--brown-100));
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 26px; width: max-content;
  font-weight: 800; font-size: 15px; color: var(--brown-600); letter-spacing: .02em;
  animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span:nth-child(even) { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(245, 237, 227, .55), rgba(255, 248, 240, 1)),
    var(--cream);
  border-top: 1px solid var(--brown-100);
  border-bottom: 1px solid var(--brown-100);
}
.sec-head { max-width: 720px; margin-bottom: 54px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-head h2 em { font-style: normal; color: var(--orange); }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--brown-600); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--brown-100);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brown-200); }
.card-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 15px; background: var(--orange-soft); margin-bottom: 18px;
}
.card-ico svg,
.card-ico svg path,
.card-ico svg rect,
.card-ico svg ellipse,
.card-ico svg circle {
  fill: none; stroke: var(--orange-600); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-ico svg { width: 27px; height: 27px; }
.card-ico svg.ico-fill,
.card-ico svg.ico-fill ellipse,
.card-ico svg.ico-fill path { fill: var(--orange-600); stroke: none; }
.card h3 { font-size: 19.5px; margin-bottom: 10px; }
.card p { color: var(--brown-600); font-size: 15.5px; }
.card code { background: var(--brown-100); padding: 1px 6px; border-radius: 5px; color: var(--brown-700); }

/* ---------- Quickstart ---------- */
.start-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 18px; padding: 20px 18px; border-radius: var(--radius); transition: background .25s var(--ease); }
.steps li:hover { background: rgba(255, 255, 255, .85); }
.step-num {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: var(--white);
  font-weight: 900; font-size: 17px; box-shadow: 0 6px 16px rgba(212, 130, 58, .3);
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--brown-600); font-size: 15.5px; }
.steps code, .code-note code { background: var(--brown-100); padding: 1px 6px; border-radius: 5px; }

.code-card {
  background: var(--brown-900); border-radius: var(--radius);
  box-shadow: var(--shadow-l); overflow: hidden;
  border: 1px solid rgba(210, 180, 140, .22);
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid rgba(210, 180, 140, .16);
  background: rgba(255, 248, 240, .04);
}
.code-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brown-300); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--brown-300);
  background: rgba(210, 180, 140, .12); padding: 6px 13px; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.copy-btn .ico { width: 14px; height: 14px; }
.copy-btn:hover { background: rgba(210, 180, 140, .26); color: var(--white); }
.copy-btn.ok { background: var(--orange); color: var(--white); }

.code { margin: 0; padding: 22px 18px; overflow-x: auto; font-size: 13.6px; line-height: 1.85; }
.code code { color: #F3E6D6; font-size: inherit; }
.c-comment { color: #A98A6B; font-style: italic; }
.c-cmd { color: var(--brown-300); font-weight: 700; }
.code-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid rgba(210, 180, 140, .16);
  font-size: 13.5px; color: #C9AE92;
}
.tag {
  background: rgba(212, 130, 58, .18); color: #E8B37B;
  padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
}
.code-note { margin-left: auto; }
.code-note code { background: rgba(210, 180, 140, .14); color: #E9D6BE; }

/* ---------- Pet gallery ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pet-card-sm {
  text-align: center; padding: 22px 18px 24px;
  background: var(--white); border: 2px solid var(--brown-100);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pet-card-sm img {
  width: 100%; max-width: 170px; margin: 0 auto 6px;
  filter: drop-shadow(0 12px 18px rgba(107, 66, 38, .2));
  transition: transform .35s var(--ease);
}
.pet-card-sm:hover { transform: translateY(-7px); border-color: var(--brown-300); box-shadow: var(--shadow); }
.pet-card-sm:hover img { transform: scale(1.07) rotate(-2deg); }
.pet-card-sm.active { border-color: var(--orange); box-shadow: 0 14px 34px rgba(212, 130, 58, .24); }
.pet-card-sm h3 { font-size: 16px; margin-bottom: 6px; }
.pet-card-sm p { font-size: 14px; color: var(--brown-600); line-height: 1.6; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--brown-100); }
.cmp thead th { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--brown-500); background: var(--brown-100); }
.cmp thead th.col-us { color: var(--white); background: var(--brown-600); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: rgba(245, 237, 227, .5); }
.cmp td.col-us { font-weight: 800; color: var(--brown-700); background: rgba(242, 220, 196, .38); }
.cmp .yes::before { content: "✓ "; color: var(--orange); font-weight: 900; }

/* ---------- Roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road-item {
  position: relative; padding: 26px 22px;
  background: var(--white); border: 1px solid var(--brown-100); border-radius: var(--radius);
  box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.road-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.road-item::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--brown-200); }
.road-item.done::before { background: var(--orange); }
.road-badge {
  display: inline-block; font-size: 12.5px; font-weight: 900; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px; background: var(--brown-100); color: var(--brown-600); margin-bottom: 14px;
}
.road-item.done .road-badge { background: var(--orange-soft); color: var(--orange-600); }
.road-item h3 { font-size: 17px; margin-bottom: 8px; }
.road-item p { font-size: 14.5px; color: var(--brown-600); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--brown-100); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: var(--shadow-s);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: var(--brown-200); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange-soft); color: var(--orange-600);
  font-weight: 900; font-size: 18px; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--brown-600); font-size: 15.5px; }
.faq code { background: var(--brown-100); padding: 1px 6px; border-radius: 5px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: 92px 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(210, 180, 140, .5), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--brown-100));
  border-top: 1px solid var(--brown-200);
}
.cta-inner { position: relative; z-index: 1; }
.cta-pet {
  width: 128px; margin: 0 auto 18px;
  filter: drop-shadow(0 14px 22px rgba(107, 66, 38, .22));
  animation: bob 4.6s ease-in-out infinite;
}
.cta-band h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta-band p { margin-top: 12px; font-size: 17.5px; color: var(--brown-600); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.foot { background: var(--brown-700); color: var(--cream); padding: 62px 0 26px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.foot-brand .brand { color: var(--cream); font-size: 22px; }
.foot-brand .brand-paw { color: var(--brown-300); }
.foot-brand .brand em { color: var(--brown-300); }
.foot-brand p { margin-top: 14px; color: rgba(255, 248, 240, .72); font-size: 15px; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot-links h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-300); margin-bottom: 14px; }
.foot-links a { display: block; padding: 5px 0; color: rgba(255, 248, 240, .82); font-size: 15px; transition: color .2s var(--ease), transform .2s var(--ease); }
.foot-links a:hover { color: var(--white); transform: translateX(4px); }
.foot-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 248, 240, .16);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 14px; color: rgba(255, 248, 240, .68);
}
.foot-bottom .muted { color: rgba(255, 248, 240, .55); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { order: -1; min-height: 340px; }
  .pet-card { width: min(330px, 78vw); }
  .start-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 12px 20px 20px;
    background: var(--cream); border-bottom: 1px solid var(--brown-200);
    box-shadow: 0 18px 30px rgba(107, 66, 38, .12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .mode-switch { display: none; }
  .mode-btn-mobile {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--brown-100); border: 1px solid var(--brown-200);
    font-size: 13.5px; font-weight: 800; color: var(--brown-700);
    transition: background .2s var(--ease);
  }
  .mode-btn-mobile::after { content: "⇄"; color: var(--orange); font-size: 13px; }
  .mode-btn-mobile:active { background: var(--orange-soft); }
  .nav-actions .btn-ghost { display: none; }
  .section { padding: 68px 0; }
  .sec-head { margin-bottom: 38px; }
  .foot-inner { grid-template-columns: 1fr; gap: 34px; }
  .stage-badge-a { left: 0; }
  .stage-badge-b { right: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .nav-actions .btn-primary { padding: 9px 16px; font-size: 14px; }
  .grid-3, .pet-grid, .road { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 62px; }
  .hero-cta .btn { width: 100%; }
  .steps li { padding: 16px 12px; }
  .code { font-size: 12.6px; }
  .code-note { margin-left: 0; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .pet-card-sm img { max-width: 140px; }
  .ver-block, .mirror-box { padding: 22px 18px; }
  .ver-actions .btn { width: 100%; }
  .mirror-row { gap: 8px 12px; }
  .mirror-name { min-width: 0; }
  .mirror-status { margin-left: 0; width: 100%; }
  .rel-date { margin-left: 0; width: 100%; }
  .tryon-body { height: 460px; }
  .tryon-title { font-size: 12px; }
  /* 桌面软件界面在手机上塞不下，给个横向滚动，别压成一坨 */
  .tryon-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tryon-body iframe { min-width: 940px; }
  .tryon-hint { font-size: 14px; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .pet-img.swap { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .ticker, .cta-band, .hero-glow, .stage-badge { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
