/*
  拜托拜托宣传站样式（首页 index.html 与支持页 support/index.html 共用）。
  视觉基准：R5 商店宣传图（暖白底、珊瑚强调、奶油/雾蓝/薄荷辅助色、圆角大面板）。
  标题字体：猫啃什锦体按页面实际用字做的子集（assets/promo/display.woff2，OFL，改名为 BaituoDisplay）。
  只对 .display 元素使用展示字体；正文一律系统字体，避免子集缺字。
  移动端优先：375px 宽度不得横向滚动；溢出的吉祥物和设备图由所在区块 overflow 裁掉。
*/

@font-face {
  font-family: "BaituoDisplay";
  src: url("promo/display.woff2?v=20261112") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff7ee;
  --card: #fffdf9;
  --ink: #2d1d16;
  --muted: #6d5649;
  --coral: #f2543a;
  --coral-deep: #c63d26;
  --coral-soft: #ffe2d6;
  --peach: #ffe9dc;
  --cream: #fff1c9;
  --yellow: #ffcc3d;
  --blue: #e5f0ff;
  --mint: #dff3e6;
  --line: rgba(80, 45, 28, .1);
  --shadow: 0 24px 60px rgba(110, 60, 35, .14);
  --display: "BaituoDisplay", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --radius-xl: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
p { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

/* ---------- 宣传图式标题装饰 ---------- */
/* 珊瑚色圆角块（对应宣传图里的「有安排」「再确认」） */
.pill {
  display: inline-block;
  margin-left: .12em;
  padding: .02em .32em .06em;
  border-radius: .32em;
  background: var(--coral);
  color: #fff;
  transform: rotate(-2deg);
  box-shadow: 0 6px 0 rgba(198, 61, 38, .25);
}
/* 珊瑚色文字 */
.hl-text { color: var(--coral); }
/* 黄色手写下划线（宣传图里的「家里的事」「彼此更轻松」） */
.ul, .hl-ul {
  background: linear-gradient(transparent 78%, var(--yellow) 78%, var(--yellow) 92%, transparent 92%);
  padding-inline: .04em;
}
/* 宣传图右上角的说明小牌 */
.tag {
  display: inline-block;
  padding: .7em 1.15em;
  border-radius: 18px;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
}
.tag-cream { background: var(--cream); }
.tag-white { background: rgba(255, 255, 255, .85); }
.spark {
  display: inline-block;
  width: .55em; height: .55em;
  margin-left: .08em;
  vertical-align: .35em;
  background:
    linear-gradient(var(--coral), var(--coral)) 0 30% / 100% 16% no-repeat,
    linear-gradient(var(--coral), var(--coral)) 20% 100% / 70% 16% no-repeat;
  transform: rotate(-28deg);
  border-radius: 4px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 247, 238, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; }
.brand img { border-radius: 9px; }
.site-nav { display: none; gap: 26px; margin-left: auto; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--coral-deep); }
.header-download {
  margin-left: auto;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}

/* ---------- App Store 按钮（纯文字，不用 Apple 标志） ---------- */
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; padding: 10px 26px 11px;
  border-radius: 18px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 10px 0 var(--coral-deep), 0 18px 34px rgba(198, 61, 38, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn small { font-size: 12px; opacity: .85; letter-spacing: .04em; }
.store-btn strong { font-size: 20px; }
.store-btn:hover { transform: translateY(2px); box-shadow: 0 8px 0 var(--coral-deep), 0 14px 26px rgba(198, 61, 38, .26); }
.store-btn:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--coral-deep); }
.store-btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 0 rgba(0, 0, 0, .18); }
.store-btn-light:hover { box-shadow: 0 8px 0 rgba(0, 0, 0, .18); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 0; }
.hero-grid { display: grid; gap: 8px; }
.hero-grid > *, .panel > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; text-align: center; }
.kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 14px; font-weight: 600;
}
.hero-title { margin-top: 18px; font-size: clamp(34px, 11vw, 92px); line-height: 1.18; }
.hero-title .line { display: block; white-space: nowrap; }
.lead { margin: 20px auto 0; max-width: 30em; color: var(--muted); font-size: 17px; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 28px; }
.cta-note { color: var(--muted); font-size: 13px; }

.hero-stage { position: relative; height: clamp(470px, 128vw, 640px); margin-top: 18px; }
.blob { position: absolute; border-radius: 50%; }
.blob-a { width: 120%; aspect-ratio: 1; left: -10%; top: 46%; background: #ffd7c4; }
.blob-b { width: 70%; aspect-ratio: 1; right: -24%; top: 8%; background: var(--blue); }
.hero-phone {
  position: absolute; left: 50%; top: 0;
  width: min(78%, 400px);
  transform: translateX(-46%) rotate(4deg);
  filter: drop-shadow(0 30px 40px rgba(90, 45, 20, .25));
}
.hero-yellow { position: absolute; width: min(36%, 190px); left: 2%; top: 4%; transform: rotate(-6deg); z-index: 2; }
.hero-blue { position: absolute; width: min(32%, 170px); right: 3%; bottom: -14px; z-index: 2; }
.hero-tag { display: none; }

/* ---------- 功能区面板 ---------- */
.feature { padding: 18px 0; }
.feature:first-of-type { padding-top: 0; }
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 36px 22px 0;
}
.panel-coral { background: linear-gradient(170deg, #fff1e8 0%, #ffd9c8 100%); }
.panel-cream { background: linear-gradient(170deg, #fffaf0 0%, var(--cream) 100%); }
.panel-blue { background: linear-gradient(170deg, #f5f9ff 0%, #dbe9ff 100%); }
.panel-mint { background: linear-gradient(170deg, #f4fbf6 0%, var(--mint) 100%); }
.panel-peach { background: linear-gradient(170deg, #fff5ef 0%, var(--peach) 100%); }
.panel-dark { background: radial-gradient(circle at 70% 70%, #4a3127 0%, #24160f 70%); color: #fff7ee; }

.feature-copy { position: relative; z-index: 2; text-align: center; }
.step-no {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--coral-deep);
}
.panel-dark .step-no { color: var(--yellow); }
.feature h2 { margin-top: 8px; font-size: clamp(36px, 10vw, 60px); line-height: 1.25; }
.feature-copy .tag { margin-top: 18px; }
.feature-copy > p:last-child { margin: 18px auto 0; max-width: 26em; color: var(--muted); font-size: 16px; }
.panel-dark .feature-copy > p:last-child { color: rgba(255, 247, 238, .72); }
.panel-dark .hl-text { color: #ff8a6e; }

.feature-media { position: relative; margin-top: 26px; height: clamp(360px, 104vw, 520px); }
.feature-media .phone {
  position: absolute; left: 50%; top: 0;
  width: min(74%, 340px);
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 34px rgba(90, 45, 20, .22));
}
.duo-phones .phone-back { width: min(54%, 280px); transform: translateX(-90%) rotate(-5deg); top: 30px; }
.duo-phones .phone-front { width: min(54%, 280px); transform: translateX(-8%) rotate(4deg); }
.mascot { position: absolute; z-index: 2; filter: drop-shadow(0 12px 18px rgba(60, 30, 15, .18)); }
.mascot-envelope { width: min(36%, 180px); left: -1%; bottom: 8%; }
.mascot-files { width: min(36%, 180px); right: -1%; bottom: 10%; }
.watch {
  position: relative; margin: 0 auto;
  width: min(86%, 400px);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}
.feature-watch .feature-media { height: auto; padding-bottom: 36px; }

/* 日历 + 家里 两张卡 */
.pair-grid { display: grid; gap: 18px; }
.card-col { text-align: center; padding-bottom: 0; }
.card-col h2 { font-size: clamp(32px, 9vw, 46px); }
.card-col p { margin: 14px auto 0; max-width: 22em; color: var(--muted); }
.card-col .phone {
  width: min(78%, 330px);
  margin: 26px auto -40px;
  filter: drop-shadow(0 26px 34px rgba(90, 45, 20, .2));
  /* 设备下半截被面板裁掉，只露出上部界面 */
}
.card-col { max-height: none; }

/* ---------- 隐私 ---------- */
.privacy { padding: 70px 0 30px; }
.privacy-head { text-align: center; }
.privacy-head h2 { font-size: clamp(34px, 9.5vw, 54px); line-height: 1.25; }
.privacy-head p { margin: 18px auto 0; max-width: 32em; color: var(--muted); }
.privacy-grid { display: grid; gap: 16px; margin-top: 32px; }
.privacy-card {
  padding: 26px 24px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(110, 60, 35, .06);
}
.privacy-card h3 { font-size: 19px; margin-bottom: 10px; }
.privacy-card p { color: var(--muted); font-size: 15px; }
.privacy-card p + p { margin-top: 10px; }
.privacy-more { margin-top: 22px; text-align: center; }
.privacy-more a { color: var(--coral-deep); font-weight: 600; text-decoration: none; }
.privacy-more a:hover { text-decoration: underline; }

/* ---------- 下载 ---------- */
.download { padding: 40px 0 60px; }
.download-card {
  display: grid; justify-items: center; gap: 6px;
  padding: 30px 22px 44px;
  border-radius: var(--radius-xl);
  background: var(--coral);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.download-duo { width: min(62%, 280px); }
.download-copy h2 { font-size: clamp(40px, 11vw, 64px); line-height: 1.2; }
.download-copy .hl-text { color: var(--yellow); }
.download-copy p { margin: 14px auto 26px; max-width: 24em; opacity: .9; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; color: var(--ink); font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--coral-deep); }
.footer-legal { font-size: 13px; }

/* ---------- 宽屏 ---------- */
@media (min-width: 760px) {
  .site-nav { display: flex; }
  .site-nav + .header-download { margin-left: 8px; }
  .pair-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .card-col .phone { margin-bottom: -90px; }
}

@media (min-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: min(760px, calc(100svh - 62px)); }
  .hero-copy { text-align: left; padding-bottom: 40px; }
  .lead { margin-left: 0; font-size: 19px; }
  .cta-row { flex-direction: row; align-items: center; justify-content: flex-start; }
  .hero-stage { height: 720px; margin-top: 0; }
  .blob-a { width: 110%; left: -6%; top: 52%; }
  .blob-b { width: 62%; right: -18%; top: 6%; }
  .hero-phone { width: 400px; top: 40px; }
  .hero-yellow { width: 200px; left: -4%; top: 14px; }
  .hero-blue { width: 180px; right: -2%; bottom: -20px; }
  .hero-tag { display: block; position: absolute; right: 0; top: 190px; z-index: 3; transform: rotate(3deg); box-shadow: var(--shadow); }

  .panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 0 64px; min-height: 600px; }
  .panel.reverse .feature-copy { order: 2; }
  .feature-copy { text-align: left; padding: 70px 0; }
  .feature-copy > p:last-child { margin-left: 0; }
  .feature-media { height: 600px; margin-top: 0; align-self: stretch; }
  .feature-media .phone { width: 330px; top: 70px; }
  .duo-phones .phone-back { width: 280px; top: 100px; transform: translateX(-90%) rotate(-5deg); }
  .duo-phones .phone-front { width: 280px; top: 60px; transform: translateX(-10%) rotate(4deg); }
  .mascot-envelope { width: 190px; left: -10px; bottom: 70px; }
  .mascot-files { width: 190px; right: -10px; bottom: 90px; }
  .feature-watch .feature-media { height: auto; padding: 50px 0; align-self: center; }
  .watch { width: 400px; }

  .card-col { display: block; padding: 50px 40px 0; min-height: 0; text-align: center; }
  .card-col .phone { width: 320px; margin: 34px auto -110px; }

  .download-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 40px; padding: 40px 64px; }
  .download-duo { width: 300px; }
  .download-copy p { margin-left: 0; }

  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .site-footer nav { justify-content: center; }
}

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

/* ---------- 支持页 ---------- */
.support-page { padding: 40px 0 30px; }
.support-hero { text-align: center; }
.support-hero h1 { margin-top: 16px; font-size: clamp(38px, 10.5vw, 64px); line-height: 1.22; }
.support-hero > p:last-child { margin: 18px auto 0; max-width: 30em; color: var(--muted); }
.support-mascots { display: flex; justify-content: center; margin-top: 18px; }
.support-mascots img { width: 200px; }
.support-grid { display: grid; gap: 16px; margin-top: 30px; }
.support-card {
  padding: 26px 24px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(110, 60, 35, .06);
}
.support-card h2 { font-size: 19px; margin-bottom: 10px; }
.support-card p { color: var(--muted); font-size: 15px; }
.support-card p + p { margin-top: 10px; }
.support-card a { color: var(--coral-deep); }
.support-card.contact { background: var(--cream); border-color: transparent; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-weight: 600; }
.support-links a { text-decoration: none; }
.support-english { margin-top: 34px; }
.support-english .kicker { margin-bottom: 14px; }
@media (min-width: 760px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
  .support-card.wide { grid-column: 1 / -1; }
}
