﻿/* ==========================================================================
   HearWords — 全站样式
   断点：桌面端 >= 768px，移动端 < 768px（依据「布局规范」）
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #003CFF;
  --brand-600: #002FCC;
  --brand-700: #0025A6;
  --brand-tint: #EDF2FF;
  --brand-tint-2: #DCE6FF;
  --accent: #d9762f;

  --ink: #0e1a2b;
  --ink-2: #2b3d55;
  --muted: #56687f;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --line: #e2e9f4;

  --navy: #0a1730;
  --navy-2: #101f3d;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 2px 8px rgba(14, 26, 43, .04);
  --shadow-md: 0 10px 28px rgba(14, 26, 43, .09);
  --shadow-lg: 0 28px 70px rgba(14, 26, 43, .14);

  --maxw: 1180px;
  --header-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica,
    Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid #7fb2ff;
  outline-offset: 3px;
  border-radius: 6px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 860px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 60, 255, .28);
}
.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 60, 255, .34);
}
.btn--primary:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .9375rem; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 26, 43, .05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .8rem;
  border: 0;
  background: none;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.nav-link:hover { background: var(--brand-tint); color: var(--brand-600); }
.nav-link__chev { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .nav-link__chev { transform: rotate(180deg); }

.nav-menu { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  z-index: 60;
  min-width: 17rem;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  animation: dropIn .16s ease-out;
}
.dropdown[hidden] { display: none; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .14s ease, color .14s ease;
}
.dropdown__link:hover { background: var(--brand-tint); color: var(--brand-600); }
.dropdown__link[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.dropdown__link[aria-disabled="true"]:hover { background: #f3f5f9; color: var(--ink-2); }

.dropdown__badge {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.dropdown__badge--noker { background: #6d5ce7; }
.dropdown__badge--podio { background: #e2662f; }
.dropdown__badge--vocal { background: #159a7a; }
.dropdown__badge--photo { background: #c2417e; }

.dropdown--anchors { min-width: 15rem; }

/* language dropdown */
.lang-menu { position: relative; margin-left: .35rem; }

.lang-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border: 1px solid transparent;
  background: none;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
.lang-menu__btn:hover { background: var(--brand-tint); }
.lang-menu__globe { font-size: 1rem; line-height: 1; }
.lang-menu__chev { width: 12px; height: 12px; transition: transform .2s ease; }
.lang-menu__btn[aria-expanded="true"] .lang-menu__chev { transform: rotate(180deg); }

.lang-menu__list {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 60;
  min-width: 11.5rem;
  max-height: min(65vh, 460px);
  overflow-y: auto;
  margin: 0;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  animation: dropIn .16s ease-out;
}
.lang-menu__list[hidden] { display: none; }
.lang-menu__sep {
  height: 1px;
  margin: .3rem .35rem;
  background: var(--line);
  padding: 0;
}

.lang-menu__item {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-menu__item:hover { background: var(--brand-tint); color: var(--brand-600); }
.lang-menu__item.is-current { color: var(--brand); font-weight: 800; }

.header__cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(900px 460px at 88% -8%, #DCE6FF 0%, rgba(220, 235, 255, 0) 62%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
}
.hero__sub {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  color: var(--muted);
  line-height: 1.75;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.9rem;
}
.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero__stat-icon { font-size: 1.05rem; line-height: 1; }

.hero__actions { margin-top: 2.2rem; }

.hero__media { justify-self: end; width: 100%; max-width: 430px; }

/* ---------- 7. Media frames (写死比例，避免布局抖动) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e9f1ff 0%, #f7faff 100%);
  box-shadow: var(--shadow-md);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--3x4 { aspect-ratio: 3 / 4; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }

.hero__media .media { border-radius: 26px; box-shadow: var(--shadow-lg); }

/* ---------- 8. Sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.65rem);
  font-weight: 800;
}
.section__sub {
  margin-top: .9rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- 9. Feature cards (2×2) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdff6;
}

.card__body { display: flex; flex-direction: column; }

/* 第 5 张通栏宽卡：文在左、图在右 */
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
}
.card--wide .card__media { margin: 0; justify-self: end; }

.card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.05rem;
  border-radius: 14px;
  background: var(--brand-tint);
  font-size: 1.5rem;
  line-height: 1;
}

.card__title {
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  font-weight: 800;
  margin-bottom: .6rem;
}
.card__desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 1.6rem;
}

.card__media {
  width: 100%;
  max-width: 260px;
  margin: auto auto 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(14, 26, 43, .10);
}

/* ---------- 10. 简单 / 可靠 / 无负担 ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.pillar {
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: .95rem;
  border-radius: 13px;
  background: var(--brand-tint);
  font-size: 1.3rem;
  line-height: 1;
}
.pillar__title {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: .45rem;
}
.pillar__desc {
  font-size: .9688rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 11. Use cases (左右交替) ---------- */
.usecases { display: grid; gap: clamp(1.5rem, 2.8vw, 2.5rem); }

.usecase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.usecase:nth-child(even) .usecase__media { order: 2; }

.usecase__media { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.usecase__num {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand);
}
.usecase__title {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.85rem);
  font-weight: 800;
  margin-bottom: .7rem;
}
.usecase__desc {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ---------- 11. Final CTA ---------- */
.cta {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(80, 150, 255, .38) 0%, rgba(80, 150, 255, 0) 62%),
    linear-gradient(135deg, #0a2f7a 0%, #003CFF 52%, #1e7bff 100%);
  color: #fff;
  text-align: center;
}
.cta__title {
  color: #fff;
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  max-width: 22em;
  margin-inline: auto;
}
.cta__sub {
  margin: 1.1rem auto 0;
  max-width: 40em;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  color: rgba(255, 255, 255, .86);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  flex-wrap: wrap;
}

/* App Store 徽标按钮（正式上线请替换为 Apple 官方徽标素材） */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.35rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}
.badge-appstore:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .36);
}
.badge-appstore__logo { width: 26px; height: 26px; flex: none; fill: currentColor; }
.badge-appstore__text { display: grid; line-height: 1.15; text-align: left; }
.badge-appstore__small { font-size: .68rem; letter-spacing: .02em; opacity: .82; }
.badge-appstore__big { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

.qr-card {
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: .85rem .85rem .75rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(3, 20, 52, .3);
}
.qr-card img {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 10px;
  background: #f2f6fc;
}
.qr-card span { font-size: .8125rem; font-weight: 700; color: var(--ink); }

/* ---------- 12. FAQ ---------- */
.faq { display: grid; gap: .75rem; }

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] {
  border-color: #bfd8f8;
  box-shadow: 0 8px 24px rgba(0, 60, 255, .08);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand-600); }

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-tint);
  transition: background-color .2s ease, transform .25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateY(-50%);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); transition: transform .25s ease; }
.faq__item[open] .faq__icon { background: var(--brand); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translateY(-50%) rotate(0deg); }

.faq__a {
  padding: 0 1.3rem 1.3rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  animation: faqIn .22s ease-out;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. Footer（白卡 + 三列 + 语言选择器） ---------- */
.site-footer {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-soft);
}

.site-footer .container { max-width: 1360px; }

.footer-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(14, 26, 43, .06);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .7rem;
}

.brand--footer { color: var(--ink); font-size: 1.2rem; }
.brand--footer:hover { color: var(--ink); }

.footer-links {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: .35rem;
}


.footer-col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1rem;
}

.footer-col__link {
  padding: .1rem 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease;
  white-space: nowrap;
}
.footer-col__link:hover { color: var(--brand); }

.footer-col__link--btn {
  background: none;
  border: 0;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.footer-col__link[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.footer-col__link[aria-disabled="true"]:hover { color: var(--muted); }

.footer-lang { flex: none; }

/* 页脚语言选择器：带边框的盒子 */
.lang-menu--footer { margin-left: 0; }
.lang-menu--footer .lang-menu__btn {
  padding: .55rem .85rem;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.lang-menu--footer .lang-menu__btn:hover {
  background: #fff;
  border-color: #c9dcf7;
}

.footer-copy {
  padding-top: clamp(1.75rem, 3.5vw, 2.4rem);
  font-size: .8125rem;
  color: var(--muted);
}

.footer-contact {
  display: inline-block;
  margin-top: .15rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease;
}
.footer-contact:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 14. Floating QR ---------- */
.floating-qr {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: .7rem .7rem .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.floating-qr img {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #f5f8fd;
}
.floating-qr p {
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- 15. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 35, .58);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(84vh, 780px);
  overflow: auto;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.modal__title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.modal__panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: .95rem;
}
.modal__panel p:last-child { margin-bottom: 0; }

.modal__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.modal__close:hover { background: var(--brand-tint); color: var(--brand-600); }

body.is-locked { overflow: hidden; }

/* ---------- 16. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .features [data-reveal]:nth-child(2) { transition-delay: .07s; }
.js .features [data-reveal]:nth-child(3) { transition-delay: .14s; }
.js .features [data-reveal]:nth-child(4) { transition-delay: .21s; }

/* ---------- 16b. 使用指南子页 ---------- */
.guide { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3rem, 6vw, 5rem); }

.guide__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
}
.guide__crumb a { color: var(--brand); text-decoration: none; }
.guide__crumb a:hover { text-decoration: underline; }
.guide__crumb span[aria-hidden] { color: #b8c4d6; }

.guide__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.guide__title {
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
}
.guide__sub {
  margin-top: .9rem;
  font-size: clamp(1rem, .96rem + .3vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
}

.guide__steps-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  /* 从正文窄栏里撑宽出来 */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 2 * var(--gutter, 1.5rem)));
}
/* 步骤数为奇数时，最后一张居中放，避免落单 */
.steps > .step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - (clamp(.9rem, 1.6vw, 1.25rem) / 2));
  justify-self: center;
}

.step {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.35rem);
  align-items: center;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.step:hover { box-shadow: var(--shadow-md); border-color: #cfdff6; }

.step__body { display: flex; gap: .55rem; align-items: flex-start; }
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.step__text {
  font-size: clamp(1rem, .96rem + .35vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-2);
  padding-top: .25rem;
}

.step__media {
  width: 148px;
  max-width: none;
  aspect-ratio: 9 / 19.5;
  border-radius: 16px;
}
.media--phone img { object-fit: cover; }

.tip {
  display: grid;
  gap: .4rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff8ec;
  border: 1px solid #f3ddb5;
  border-radius: var(--radius-md);
}
.tip__label {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #9a6212;
}
.tip__text { font-size: .9688rem; line-height: 1.72; color: #6b4d17; }

.guide__cta {
  display: flex;
  justify-content: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-block: 1px solid var(--line);
}

.guide__more-title {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
.guide__more-list { display: grid; gap: .55rem; }
.guide__more-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9688rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.guide__more-link::after { content: "›"; font-size: 1.1em; line-height: 1; }
.guide__more-link:hover { text-decoration: underline; }

.modal__contact-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.modal__contact-link:hover { text-decoration: underline; }

.modal__contact {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem !important;
  color: var(--muted);
  word-break: break-all;
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; max-width: 420px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  /* 汉堡菜单 */
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: .75rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(14, 26, 43, .12);
  }
  .site-nav.is-open { display: flex; animation: dropIn .18s ease-out; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: .85rem .5rem;
    border-bottom: 1px solid #f0f4fa;
    border-radius: 0;
    font-size: 1rem;
  }
  .nav-link:hover { background: transparent; }

  .dropdown {
    position: static;
    min-width: 0;
    margin: .35rem 0 .5rem;
    padding: .35rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: #f7faff;
    box-shadow: none;
    animation: none;
  }

  .lang-menu { margin: .75rem 0 0 .5rem; align-self: flex-start; }
  .lang-menu--footer { margin: 0; }
  .header__cta { margin: .9rem 0 0; }
  .header__cta .btn { width: 100%; }

  /* Hero：文上图下 */
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: .5rem; }
  .hero__media { max-width: 100%; }

  /* Features：单列 */
  .features { grid-template-columns: 1fr; }
  .card__media { max-width: 220px; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__media { justify-self: start; max-width: 200px; }

  /* 简单可靠：三栏变单列 */
  .pillars { grid-template-columns: 1fr; }

  /* Use cases：图上文下，取消交替 */
  .usecase { grid-template-columns: 1fr; gap: 1.25rem; }
  .usecase:nth-child(even) .usecase__media { order: 0; }

  /* CTA：纵向堆叠 */
  .cta__actions { flex-direction: column; }
  .cta__actions .badge-appstore { width: 100%; justify-content: center; }

  /* Footer：单行品牌，链接两列 */
  .footer-main { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 6vw, 3rem); padding-top: 0; }
  .footer-col__link { white-space: normal; }

  /* 悬浮组件在移动端隐藏，避免遮挡 CTA */
  .floating-qr { display: none; }

  /* 使用指南：单列，图在上 */
  
  
}

@media (max-width: 400px) {
  .footer-links { flex-direction: column; gap: 1.25rem; }
}

/* ---------- 18. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* App 图标版 Logo（满铺方图，补圆角以贴合原设计比例） */
.brand__mark--app { border-radius: 9px; }
/* 贴心支持卡片内的联系邮箱 */
.pillar__mail {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.pillar__mail:hover { text-decoration: underline; }

/* 指南步骤：窄屏两列 */
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    width: 100%; left: auto; transform: none;
  }
  .step { grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; padding: .8rem; }
  .step__media { width: 112px; border-radius: 14px; }
  .step__num { width: 30px; height: 30px; font-size: .9rem; }
  .step__text { font-size: .95rem; }
}
