/* ========== ① 设计 token ========== */
:root {
  --bg: #FFF9F6;
  --surface: #FFFFFF;
  --blush: #FDEFF3;
  --accent: #D6336C;
  --accent-deep: #B02557;
  --accent-soft: #FBE3EC;
  --peach: #E8590C;
  --peach-soft: #FFE8D9;
  --mint: #0B8A6D;
  --mint-soft: #DCF3EC;
  --lavender: #7048E8;
  --lavender-soft: #EAE2FC;
  --butter: #FFC078;
  --butter-soft: #FFF1DE;
  --ink: #45303E;
  --ink-soft: #7A5C68;
  --line: #F3DFE4;
  --shadow: 0 20px 40px rgba(214, 51, 108, .08);
  --shadow-lift: 0 12px 28px rgba(214, 51, 108, .16);
  --radius: 24px;
  --radius-sm: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ========== ② Reset 与基础排版 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; border-radius: 4px; }

/* ========== ③ 通用布局与区块壳 ========== */
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--blush { background: var(--blush); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-deep); background: var(--accent-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }
.check {
  flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--mint-soft); color: var(--mint);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

/* ========== ④ 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; border-radius: 999px; padding: 12px 28px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn[aria-disabled="true"]:hover { box-shadow: none; background: var(--accent); }

/* —— App Store 官方徽章 ——
   遵守 Apple《App Store Marketing Guidelines》：使用官方原稿不改色不加动效，
   屏显最小高度 40px，四周留白 ≥ 徽章高度 1/4。 */
.store-badge { display: inline-flex; align-items: center; border-radius: 8px; }
.store-badge img { display: block; height: 40px; width: auto; }
.store-badge--lg img { height: 48px; }
.store-badge.header-cta { padding: 0; }

/* ========== ⑤ Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: rgba(255, 249, 246, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: none; gap: 24px; margin-inline: auto; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: .9375rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.header-cta { margin-left: auto; font-size: .9375rem; padding: 9px 20px; }
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ========== ⑥ Footer ========== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer-grid { display: grid; gap: 36px; margin-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand p { color: var(--ink-soft); font-size: .9375rem; margin-top: 12px; max-width: 300px; }
.footer-col h3 { font-size: .875rem; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink); font-size: .9375rem; font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--ink-soft); font-size: .8125rem;
}

/* ========== ⑦ 滚动渐显（JS 加 .is-visible；no-js 直接可见） ========== */
/* 入场位移用 translate 属性而非 transform：避免以更高优先级覆盖卡片的 transform hover（见块⑩） */
html:not(.no-js) .reveal { opacity: 0; translate: 0 16px; transition: opacity .3s ease-out, translate .3s ease-out; }
html:not(.no-js) .reveal.is-visible { opacity: 1; translate: none; }

/* ========== ⑧ Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html:not(.no-js) .reveal { opacity: 1; translate: none; }
}

/* ========== ⑨ Hero ========== */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-a { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, var(--accent-soft), transparent 65%); }
.blob-b { width: 360px; height: 360px; right: -100px; top: 40px; background: radial-gradient(circle, var(--lavender-soft), transparent 65%); }
.blob-c { width: 320px; height: 320px; left: 38%; bottom: -140px; background: radial-gradient(circle, var(--peach-soft), transparent 65%); }
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.highlight { color: var(--accent); }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); margin-bottom: 28px; }
.hero-copy { text-align: center; max-width: 720px; margin-inline: auto; }
.hero-checks { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; justify-items: center; }
.hero-checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* —— Hero 轮播 —— */
.hero-carousel { position: relative; }
.carousel-viewport {
  overflow: hidden; touch-action: pan-y;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.carousel-track { display: flex; list-style: none; transition: transform .4s var(--ease); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide img {
  width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
/* 箭头相对整节定位；上移 20px 抵消圆点行高，视觉上对齐图片垂直中心 */
.carousel-arrow {
  position: absolute; top: calc(50% - 20px); translate: 0 -50%; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; opacity: .6;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .15s var(--ease), box-shadow .15s var(--ease);
}
.carousel-arrow.is-prev { left: 14px; }
.carousel-arrow.is-next { right: 14px; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { opacity: 1; box-shadow: var(--shadow-lift); }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.carousel-dots button {
  width: 24px; height: 24px; padding: 0; border: none; border-radius: 999px;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.carousel-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent-soft);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.carousel-dots button:hover::before { transform: scale(1.2); }
.carousel-dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.2); }
/* 降级：no-js 只显第一张、隐藏控件；触屏隐藏箭头 */
html.no-js .carousel-arrow, html.no-js .carousel-dots, html.no-js .carousel-status { display: none; }
html.no-js .carousel-slide:not(:first-child) { display: none; }
@media (hover: none) { .carousel-arrow { display: none; } }

/* ========== ⑩ 使用方法与功能网格 ========== */
.steps { display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card, .feature-card, .privacy-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step-card:hover, .feature-card:hover, .privacy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-card { position: relative; padding: 32px 28px; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; font-size: 1.125rem; color: #fff; margin-bottom: 18px; }
.step-card:nth-of-type(1) .step-num { background: var(--accent); }
.step-card:nth-of-type(2) .step-num { background: var(--peach); }
.step-card:nth-of-type(3) .step-num { background: var(--lavender); }
.step-card h3, .feature-card h3, .privacy-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step-card p, .feature-card p, .privacy-card p { color: var(--ink-soft); font-size: .9375rem; }
.features { display: grid; gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .feature-card--wide { grid-column: span 2; } }
.feature-card { padding: 26px 22px; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }
.fi-rose { background: var(--accent-soft); color: var(--accent); }
.fi-peach { background: var(--peach-soft); color: var(--peach); }
.fi-mint { background: var(--mint-soft); color: var(--mint); }
.fi-lavender { background: var(--lavender-soft); color: var(--lavender); }
.fi-butter { background: var(--butter-soft); color: #B25E00; }

/* ========== ⑪ 隐私理念 / 定价 / CTA ========== */
.privacy-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .privacy-cards { grid-template-columns: repeat(3, 1fr); } }
.privacy-card { padding: 30px 28px; }
.pricing-card {
  position: relative; max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 2px solid var(--accent); border-radius: 28px;
  padding: 44px 36px 36px; box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.25rem; }
.pricing-price { font-size: 3.25rem; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.pricing-price small { font-size: 1.125rem; color: var(--ink-soft); font-weight: 600; }
.pricing-note { color: var(--ink-soft); font-size: .9375rem; margin-bottom: 24px; }
.pricing-list { list-style: none; text-align: left; display: grid; gap: 12px; margin: 0 auto 28px; }
.pricing-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.pricing-foot { font-size: .8125rem; color: var(--ink-soft); margin-top: 16px; }
.pricing-grid { display: grid; gap: 32px 18px; max-width: 960px; margin: 56px auto 0; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.pricing-card--free { border-color: var(--line); }
.pricing-badge--neutral { background: var(--ink-soft); }
.cta-panel {
  background: linear-gradient(135deg, var(--accent), #C2255C 55%, var(--lavender));
  border-radius: 32px; padding: clamp(48px, 7vw, 80px) 24px; text-align: center; color: #fff;
}
.cta-panel h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-panel p { opacity: .92; margin-bottom: 32px; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { box-shadow: 0 12px 28px rgba(69, 48, 62, .25); }
.btn-white[aria-disabled="true"] { opacity: .75; }

/* ========== ⑫ FAQ ========== */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron { flex: none; width: 20px; height: 20px; color: var(--ink-soft); transition: transform .2s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-soft); }
/* 平滑展开（渐进增强：旧浏览器忽略，退化为直接展开） */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    opacity: 0; block-size: 0; overflow-y: clip;
    transition: content-visibility .2s allow-discrete, opacity .2s, block-size .2s;
  }
  .faq-item[open]::details-content { opacity: 1; block-size: auto; }
}

/* ========== ⑬ 正文页（隐私政策） ========== */
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.01em; margin-bottom: 8px; }
.prose .prose-date { color: var(--ink-soft); margin-bottom: 40px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose a { font-weight: 600; }

/* ========== ⑭ 无障碍补丁 ========== */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 700;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ========== ⑮ 双语隐私政策 ========== */
.policy-grid { display: grid; gap: 48px; }
.policy-grid .prose { max-width: none; }
@media (min-width: 1024px) {
  .policy-grid { grid-template-columns: 1fr 1fr; }
  .prose-en { padding-right: 44px; }
  .prose-zh { border-left: 1px solid var(--line); padding-left: 44px; }
}
