/* 相依相伴官网首页专用样式（法律页仍用 style.css，互不影响） */
:root {
  --red: #D31F45;
  --red-deep: #A5112F;
  --red-dark: #B8183B;
  --pink: #E8457A;
  --pink-soft: #FFD3DD;
  --ink: #1C1416;
  --ink2: #5F5559;
  --ink3: #8E8488;
  --line: #F0E4E1;
  --bg: #FFFBF9;
  --bg2: #FFF4F1;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.home {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:where(.home) :where(h1, h2, h3, p) { margin: 0; }
:where(.home) a { color: inherit; text-decoration: none; }
:where(.home) img { display: block; max-width: 100%; height: auto; }
.h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 首屏：和 App Store 标题素材同一套红色渐变 + 漂浮回忆卡片 ---------- */
.h-hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(820px, 100vh); padding: 0 24px 96px; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 42% 55% at 50% 50%, rgba(255,214,222,.5) 0%, rgba(255,214,222,0) 70%),
    radial-gradient(ellipse 60% 70% at 85% 8%, #F2657F 0%, rgba(242,101,127,0) 60%),
    radial-gradient(ellipse 60% 80% at 8% 100%, #A5112F 0%, rgba(165,17,47,0) 60%),
    linear-gradient(135deg, #E23A5C 0%, #D31F45 45%, #B8183B 100%);
}
.h-hero::after { /* 底部弧线过渡到暖白 */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 64px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.h-nav {
  position: relative; z-index: 3; width: 100%; max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; height: 76px;
}
.h-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: 2px; }
.h-brand svg { width: 34px; height: 34px; }
.h-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.h-links a { opacity: .88; transition: opacity .2s; }
.h-links a:hover { opacity: 1; }
.h-navdl { font-size: 15px; font-weight: 600; padding: 7px 18px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); transition: background .2s; }
.h-navdl:hover { background: rgba(255,255,255,.28); }

.h-hero-in { position: relative; z-index: 2; margin: auto; padding-top: 24px; max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.h-mark { width: 72px; height: 72px; filter: drop-shadow(0 8px 24px rgba(110,0,25,.25)); }
.h-kicker { margin-top: 18px; font-size: 15px; letter-spacing: 4px; opacity: .9; }
.h-hero h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.2; font-weight: 700; letter-spacing: 3px; text-shadow: 0 8px 30px rgba(110,0,25,.25); }
.h-lead { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.85; color: rgba(255,255,255,.92); max-width: 540px; text-wrap: balance; }

.h-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.h-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; border: 0; transition: transform .15s, box-shadow .2s, background .2s;
}
.h-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.h-btn:active { transform: scale(.97); }
.h-btn-light { background: #fff; color: var(--red); box-shadow: 0 12px 30px rgba(110,0,25,.25); }
.h-btn-light:hover { box-shadow: 0 16px 36px rgba(110,0,25,.32); }
.h-btn-line { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.h-btn-line:hover { background: rgba(255,255,255,.2); }
.h-soon { font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.22); margin-left: 2px; }

/* 漂浮卡片 */
.h-deco { position: absolute; inset: 0; pointer-events: none; }
.h-deco > * { position: absolute; }
.d-heart { fill: #fff; }
.d-h1 { width: 26vw; max-width: 380px; aspect-ratio: 1; left: -6vw; top: 52%; opacity: .08; transform: rotate(-16deg); }
.d-h2 { width: 18vw; max-width: 280px; aspect-ratio: 1; right: 4vw; top: 4%; opacity: .1; transform: rotate(30deg); }
.d-h3 { width: 9vw; max-width: 140px; aspect-ratio: 1; right: 26vw; bottom: 9%; opacity: .08; transform: rotate(20deg); }
.d-h4 { width: 5vw; max-width: 70px; aspect-ratio: 1; left: 23vw; top: 9%; opacity: .12; transform: rotate(-10deg); }
.d-pola {
  --w: clamp(120px, 12vw, 190px); width: var(--w); height: calc(var(--w) * 1.18);
  padding: calc(var(--w) * .06) calc(var(--w) * .06) calc(var(--w) * .19); border-radius: 6px;
  background: rgba(255,255,255,.94); box-shadow: 0 24px 60px rgba(110,0,25,.3);
}
.d-pola i { display: block; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; }
.d-pola svg { width: 100%; height: 100%; display: block; }
.d-elder { left: 9%; top: 19%; transform: rotate(-10deg); }
.d-kid { right: 15%; top: 58%; transform: rotate(-7deg); }
.d-lover { right: 4.5%; top: 36%; transform: rotate(11deg); }
.d-glass { background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.38); border-radius: 18px; box-shadow: 0 20px 50px rgba(110,0,25,.22); }
.d-voice { --w: clamp(150px, 12.5vw, 210px); left: 15%; top: 57%; width: var(--w); height: calc(var(--w) * .37); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .08); transform: rotate(-4deg); }
.d-voice b { width: calc(var(--w) * .17); margin-right: calc(var(--w) * .02); aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-voice b svg { width: 55%; height: 55%; }
.d-voice i { display: block; width: calc(var(--w) * .035); height: calc(var(--h) * 46%); border-radius: 4px; background: rgba(255,255,255,.9); }
.d-env { left: 5%; top: 74%; width: clamp(120px, 11.5vw, 190px); transform: rotate(9deg); filter: drop-shadow(0 18px 36px rgba(110,0,25,.3)); }
.d-check { --w: clamp(150px, 12.5vw, 210px); right: 10%; top: 14%; width: var(--w); padding: calc(var(--w) * .08); display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 10px; transform: rotate(7deg); }
.d-check svg { width: 70%; aspect-ratio: 1; fill: #fff; margin: auto; }
.d-check i { width: 24%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.4); margin: auto; }

/* ---------- 引言 ---------- */
.h-intro { padding: 72px 0 40px; text-align: center; }
.h-intro h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.45; font-weight: 700; letter-spacing: 1px; }
.h-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.h-trio article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 28px; }
.h-trio p { margin-top: 14px; color: var(--ink2); font-size: 16px; }
.h-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: #FDE7EB; color: var(--red); font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.h-tag-pink { background: #FDE3EC; color: var(--pink); }

/* ---------- 三段功能：文案 + 两张海报 ---------- */
.h-feat { padding: 40px 0; }
.h-feat-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.h-feat-alt .h-copy { order: 2; }
.h-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: 3px; }
.h-eyebrow b { font-size: 13px; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; background: var(--red); color: #fff; }
.h-feat-pink .h-eyebrow { color: var(--pink); }
.h-feat-pink .h-eyebrow b { background: var(--pink); }
.h-copy h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.h-desc { margin-top: 18px; font-size: 18px; color: var(--ink2); line-height: 1.85; }
.h-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.h-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.h-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 17px; height: 17px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.2 0 3.6 1.2 5.2 3 1.6-1.8 3-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.2 0 3.6 1.2 5.2 3 1.6-1.8 3-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.h-feat-pink .h-list li::before { background: var(--pink); }

.h-shots { position: relative; height: 620px; }
.h-shots::before { /* 海报后面一团柔和的光 */
  content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, #FFE1E6 0%, rgba(255,225,230,0) 68%);
}
.h-feat-pink .h-shots::before { background: radial-gradient(circle, #FFE0EC 0%, rgba(255,224,236,0) 68%); }
.h-shot { position: absolute; width: 270px; border-radius: 28px; box-shadow: 0 30px 60px rgba(120,10,40,.2), 0 8px 18px rgba(120,10,40,.1); background: #F5D5DC; }
.h-shot-main { z-index: 2; left: 8%; top: 10px; transform: rotate(-4deg); }
.h-shot-back { z-index: 1; right: 6%; top: 46px; width: 250px; transform: rotate(5deg); }
.h-feat-alt .h-shot-main { left: auto; right: 8%; transform: rotate(4deg); }
.h-feat-alt .h-shot-back { right: auto; left: 6%; transform: rotate(-5deg); }

/* ---------- 聊天和通话 ---------- */
.h-daily { padding: 56px 0 24px; }
.h-daily h2, .h-privacy h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); line-height: 1.4; font-weight: 700; letter-spacing: 1px; }
.h-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.h-grid4 > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.h-grid4 svg { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-grid4 h3 { margin-top: 14px; font-size: 18px; font-weight: 700; }
.h-grid4 p { margin-top: 6px; font-size: 15px; color: var(--ink2); line-height: 1.7; }

/* ---------- 隐私承诺 ---------- */
.h-privacy { padding: 88px 0 40px; }
.h-eyebrow-c { justify-content: center; margin-bottom: 12px; }
.h-promise > div { background: var(--bg2); border-color: transparent; }
.h-promise svg { width: 30px; height: 30px; }

/* ---------- 下载 ---------- */
#download { padding-top: 48px; padding-bottom: 80px; scroll-margin-top: 20px; }
.h-band {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 64px 24px 60px;
  background:
    radial-gradient(ellipse 50% 80% at 90% 0%, #F2657F 0%, rgba(242,101,127,0) 60%),
    radial-gradient(ellipse 50% 80% at 5% 100%, #A5112F 0%, rgba(165,17,47,0) 60%),
    linear-gradient(135deg, #E23A5C 0%, #D31F45 50%, #B8183B 100%);
}
.h-band-mark { width: 60px; height: 60px; }
.h-band h2 { margin-top: 16px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; font-weight: 700; letter-spacing: 2px; }
.h-band p { margin-top: 12px; font-size: 17px; color: rgba(255,255,255,.9); }
.h-br-m { display: none; }

/* ---------- 页脚 ---------- */
.h-foot { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 44px; font-size: 14px; color: var(--ink3); }
.h-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-foot-brand { display: flex; align-items: center; gap: 12px; }
.h-foot-brand svg { width: 44px; height: 44px; }
.h-foot-brand span { display: flex; flex-direction: column; line-height: 1.4; }
.h-foot-brand b { color: var(--ink); font-size: 17px; letter-spacing: 1px; }
.h-foot-brand small { font-size: 13px; color: var(--ink3); letter-spacing: 2px; }
.h-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink2); }
.h-foot-links a:hover, .h-foot-meta a:hover { color: var(--red); }
.h-foot-meta { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 4px; line-height: 1.8; }
.h-dot { margin: 0 8px; }

.h-toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: #1C1416; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 15px; white-space: nowrap; transition: opacity .2s, transform .2s;
}
.h-toast.on { opacity: 1; transform: translate(-50%, 0); }

.home :focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.h-hero :focus-visible, .h-band :focus-visible { outline-color: #fff; }

/* ---------- 中等宽度 ---------- */
@media (max-width: 1100px) {
  .d-voice, .d-env { display: none; }
  .d-elder { left: 3%; }
  .d-kid { right: 4%; top: 64%; }
  .d-lover { right: 3%; top: 30%; }
  .d-check { display: none; }
  .h-shot { width: 230px; }
  .h-shot-back { width: 210px; }
  .h-shots { height: 560px; }
}
@media (max-width: 900px) {
  .h-links { display: none; }
  .h-navdl { margin-left: auto; }
  .h-hero-in { max-width: 520px; }
  .d-pola { --w: 100px; }
  .h-feat-in { grid-template-columns: 1fr; gap: 28px; }
  .h-feat-alt .h-copy { order: 0; }
  .h-shots { max-width: 520px; width: 100%; margin: 0 auto; }
  .h-trio { grid-template-columns: 1fr; }
  .h-grid4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .h-wrap { padding: 0 20px; }
  .h-hero { min-height: 0; padding: 0 20px 84px; }
  .h-nav { height: 64px; }
  .h-brand { font-size: 17px; }
  .h-brand svg { width: 30px; height: 30px; }
  .h-navdl { padding: 5px 16px; font-size: 14px; }
  /* 三张拍立得排在标题上方 */
  .h-hero-in { padding-top: 196px; margin: 0 auto; }
  .d-pola { --w: 104px; }
  .d-elder { left: calc(50% - 150px); top: 84px; transform: rotate(-11deg); }
  .d-kid { left: calc(50% - 52px); right: auto; top: 70px; transform: rotate(2deg); z-index: 1; }
  .d-lover { right: calc(50% - 150px); top: 90px; transform: rotate(12deg); }
  .d-h1 { width: 60vw; left: -22vw; top: 60%; }
  .d-h2 { width: 40vw; right: -8vw; top: 30%; }
  .d-h3, .d-h4 { display: none; }
  .h-mark { display: none; }
  .h-kicker { margin-top: 8px; font-size: 13px; letter-spacing: 3px; }
  .h-hero h1 { font-size: 36px; letter-spacing: 2px; }
  .h-hero h1 { line-height: 1.25; }
  .h-lead { font-size: 16px; margin-top: 20px; }
  .h-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-top: 28px; gap: 12px; }
  .h-btn { justify-content: center; height: 52px; }
  .h-hero::after { height: 36px; }

  .h-intro { padding: 44px 0 16px; }
  .h-intro h2 { font-size: 24px; }
  .h-trio { margin-top: 28px; gap: 14px; }
  .h-trio article { padding: 20px 20px 22px; border-radius: 18px; }
  .h-trio p { font-size: 15px; margin-top: 10px; }

  .h-feat { padding: 44px 0 36px; }
  .h-copy h2 { font-size: 28px; margin-top: 14px; }
  .h-desc { font-size: 16px; margin-top: 12px; }
  .h-list { margin-top: 18px; gap: 10px; }
  .h-list li { font-size: 15px; }
  .h-shots { height: 400px; max-width: 340px; }
  .h-shot { width: 170px; border-radius: 20px; }
  .h-shot-back { width: 156px; top: 30px; }
  .h-shot-main { left: 4%; }
  .h-shot-back { right: 2%; }
  .h-feat-alt .h-shot-main { right: 4%; }
  .h-feat-alt .h-shot-back { left: 2%; }

  .h-daily { padding: 36px 0 8px; }
  .h-daily h2, .h-privacy h2 { font-size: 24px; }
  .h-grid4 { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .h-grid4 > div { padding: 18px 16px; border-radius: 16px; }
  .h-grid4 h3 { font-size: 16px; margin-top: 10px; }
  .h-grid4 p { font-size: 14px; }
  .h-privacy { padding: 56px 0 24px; }
  .h-promise { grid-template-columns: 1fr; }
  .h-promise > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; }
  .h-promise svg { grid-row: span 2; width: 28px; height: 28px; margin-top: 2px; }
  .h-promise h3 { margin-top: 0; }

  #download { padding-top: 32px; padding-bottom: 56px; }
  .h-band { border-radius: 24px; padding: 44px 20px 40px; }
  .h-band h2 { font-size: 24px; }
  .h-band p { font-size: 15px; }
  .h-band .h-cta { margin-left: auto; margin-right: auto; }
  .h-br-m { display: inline; }

  .h-foot { padding: 32px 0 36px; }
  .h-foot-links { gap: 8px 18px; font-size: 14px; }
  .h-dot { display: none; }
  .h-foot-meta p:last-child a { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-btn, .h-toast { transition: none; }
}
