/* 家有宠 / Homepaw 官网：纸色底、墨绿字，印章红只给“盖章”这件事用。
   不加载任何外部字体、脚本或统计。 */

:root {
  --paper: #F5F1E7;
  --card: #FCFBF7;
  --tile: #EFE9DA;
  --ink: #5A5A40;
  --ink-strong: #45452F;
  --muted: #726D5C;
  --line: #E8E4D9;
  --line-2: #CFC8B6;
  --seal: #C45A45;
  --seal-text: #A94A38;
  --honey: #F2C572;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
          "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Songti SC", Georgia, serif;
}
html[lang="en"] { --display: Georgia, "Iowan Old Style", "Times New Roman", serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75; overflow-wrap: break-word;
}

a { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--ink-strong); line-height: 1.3; font-weight: 600; text-wrap: balance; }
h2 { font-family: var(--display); font-size: 32px; margin: 0 0 10px; letter-spacing: .5px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, ul { margin: 0 0 14px; }

/* 顶部 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 241, 231, .94); border-bottom: 1px solid var(--line);
       -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-strong); text-decoration: none; font-family: var(--display); font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--ink-strong); }
.nav .lang { color: var(--ink-strong); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr 330px; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.hero h1 { font-family: var(--display); font-size: 60px; margin: 0 0 6px; letter-spacing: 2px; }
html[lang="en"] .hero h1 { letter-spacing: 0; }
.hero .sub { font-size: 22px; color: var(--ink-strong); margin: 0 0 18px; }
.hero .pitch { font-size: 17px; max-width: 30em; margin-bottom: 26px; }
.hero-icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 6px 20px rgba(90, 90, 64, .16); margin-bottom: 22px; }
.badge { display: inline-block; border-radius: 12px; }
.badge img { display: block; height: 58px; width: auto; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.phone { width: 330px; padding: 11px; border-radius: 54px; background: #2E2D25; box-shadow: 0 30px 70px rgba(46, 45, 37, .28); transform: rotate(2deg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 44px; }

/* 首屏里的章：页面打开时落下一次 */
.hero-seal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-right: 16px;
             vertical-align: 8px; background: var(--seal); color: #FFF8EE; border-radius: 10px;
             font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-size: 31px; letter-spacing: 0; transform: rotate(-5deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-seal { animation: drop .45s cubic-bezier(.3, 1.5, .55, 1) .35s both; }
  @keyframes drop { from { opacity: 0; transform: rotate(-16deg) scale(1.9); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }
}

/* 功能目录 */
.index { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 0; list-style: none; }
.index a { display: inline-block; padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
           text-decoration: none; font-size: 15px; color: var(--ink-strong); }
.index a:hover { border-color: var(--seal); }

/* 功能章节：截图一侧、说明一侧，左右交替 */
.chapter { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; padding: 72px 0; border-top: 1px dashed var(--line-2); }
.chapter.flip { grid-template-columns: 1fr 300px; }
.chapter.flip .visual { order: 2; }
.chapter.text-only { grid-template-columns: 1fr; }
.visual { position: sticky; top: 92px; }
.visual img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 18px 44px rgba(69, 69, 47, .18); display: block; }
.intro { font-size: 18px; color: var(--ink-strong); max-width: 34em; }

/* 功能细节：每条前面一枚小章 */
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 32px; }
.points li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 15px; height: 15px; border: 2px solid var(--seal);
                     border-radius: 4px; transform: rotate(-8deg); }
.points b { display: block; color: var(--ink-strong); font-weight: 600; }
.points span { font-size: 15px; }
.ui { color: var(--ink-strong); white-space: nowrap; }
.pro { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: var(--honey); color: #4A3F1E;
       font-size: 12px; font-weight: 600; line-height: 20px; vertical-align: 2px; white-space: nowrap; }

/* 名章样式 */
.seals { display: flex; flex-wrap: wrap; gap: 22px 30px; margin: 26px 0 6px; padding: 0; list-style: none; }
.seals li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-align: center; width: 92px; }
.sl { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
      font-size: 30px; line-height: 1; color: var(--seal-text); border: 3px solid var(--seal); border-radius: 9px; transform: rotate(-6deg); }
.sl.filled { background: var(--seal); color: #FFF8EE; }
.sl.round { border-radius: 50%; transform: rotate(5deg); }
.sl.double { flex-direction: column; width: 46px; height: 70px; font-size: 24px; background: var(--seal); color: #FFF8EE; gap: 2px; transform: rotate(-3deg); }

/* 通知 */
.notes { display: grid; gap: 12px; margin: 22px 0 0; max-width: 520px; }
.bubble { display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; background: rgba(252, 251, 247, .92); border: 1px solid var(--line);
          border-radius: 20px; padding: 12px 16px; box-shadow: 0 8px 22px rgba(69, 69, 47, .08); }
.bubble img { width: 38px; height: 38px; border-radius: 9px; grid-row: span 2; }
.bubble b { color: var(--ink-strong); font-size: 15px; }
.bubble p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.bubble .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bubble .acts span { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: var(--tile); color: var(--ink-strong); }

/* 手表 */
.watches { display: flex; gap: 22px; flex-wrap: wrap; }
.watch { width: 196px; padding: 26px 15px; border-radius: 58px; background: #3A3830; box-shadow: 0 20px 44px rgba(46, 45, 37, .28); position: relative; }
.watch::after { content: ""; position: absolute; right: -9px; top: 70px; width: 9px; height: 46px; border-radius: 0 6px 6px 0; background: #C2602F; }
.watch img { width: 100%; height: auto; display: block; border-radius: 36px; box-shadow: none; }

/* 免费与会员 */
.compare { width: 100%; border-collapse: collapse; margin: 22px 0 8px; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--tile); color: var(--ink-strong); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink-strong); width: 26%; }
.compare tr:last-child > * { border-bottom: 0; }
.plans { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.plans li { padding: 10px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.plans b { color: var(--ink-strong); }

/* 常见问题 */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink-strong); }
details p { margin: 0 0 14px; }

/* 结尾 */
.closing { text-align: center; padding: 80px 0 30px; border-top: 1px dashed var(--line-2); }
.closing p.line { font-family: var(--display); font-size: 30px; color: var(--ink-strong); margin: 0 0 22px; }
.closing .note { max-width: 40em; margin: 18px auto 0; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; text-align: center; }
  .hero .pitch { margin-left: auto; margin-right: auto; }
  .phone { width: 250px; margin: 0 auto; border-radius: 42px; padding: 9px; }
  .phone img { border-radius: 34px; }
  .index { justify-content: center; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .chapter.flip .visual { order: 0; }
  .visual { position: static; max-width: 250px; margin: 0 auto; }
  .visual.watches { max-width: none; justify-content: center; }
  .watch { width: 160px; border-radius: 48px; padding: 22px 12px; }
  .watch img { border-radius: 30px; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 44px; }
  .hero-seal { width: 40px; height: 40px; font-size: 24px; margin-right: 12px; vertical-align: 6px; }
  h2 { font-size: 26px; }
  .nav { gap: 2px 12px; font-size: 14px; }
  .compare th, .compare td { padding: 10px 12px; }
  .compare tbody th { width: 34%; }
}

/* 实际 Watch App 截图 + Apple 产品外框，按原始 600×960 素材屏幕坐标嵌入。 */
#watch { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
.watch-showcase { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start;max-width:520px; }
.watch-figure { margin:0;min-width:0;text-align:center; }
.watch-device { position:relative;width:100%;aspect-ratio:600 / 960; }
.watch-showcase .watch-screen { position:absolute;left:14.833333%;top:23.229167%;width:70.333333%;height:53.541667%;object-fit:contain;border-radius:24% / 20%;box-shadow:none;background:#000; }
.watch-showcase .watch-hardware { position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:0;box-shadow:none;pointer-events:none; }
.watch-figure figcaption { font-size:12px;color:var(--muted);margin-top:14px; }
@media(max-width:1050px) and (min-width:821px){
 #watch{grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);gap:32px}
 .watch-showcase{gap:12px}
}
@media(max-width:820px){
 #watch{grid-template-columns:minmax(0,1fr);gap:32px}
 .visual.watch-showcase{width:100%;max-width:520px;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 auto}
}
@media(max-width:480px){
 .visual.watch-showcase{max-width:270px;grid-template-columns:minmax(0,1fr);gap:28px}
 .watch-figure figcaption{margin-top:8px;font-size:13px}
}
