/* ============================================================
   SwipeTo · 落地页
   设计变量 / 基础 / header / 各 section / footer / media
   排版思路:
     · hero 改为左文 + 右手机的常规布局,但 phone-shot 用 flex 横向并排居中,
       取代之前绝对定位 + 巨大 min-height,让 hero 容器跟随内容高度。
     · closing-cta / trust 加 paddingTop/Bottom 让区段呼吸。
     · feature-card 加 padding,提升文字可读性。
     · hero-stats 改成横排(flex),让三个特点并排成"一行"而不是三列压缩网格。
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #fff8ef;
  --bg-soft: #fffdf9;
  --text: #30251f;
  --muted: #75675f;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(92, 58, 39, 0.14);
  --accent: #f26f5e;
  --accent-strong: #c94f62;
  --gold: #f7b852;
  --violet: #8a6fd6;
  --shadow-sm: 0 8px 24px rgba(117, 76, 48, 0.06);
  --shadow-md: 0 16px 36px rgba(117, 76, 48, 0.14);
  --shadow-lg: 0 22px 70px rgba(117, 76, 48, 0.10);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --shadow: var(--shadow-md);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(247, 184, 82, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 0%, rgba(138, 111, 214, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7eb 0%, #fffdf8 48%, #fff8ef 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(242, 111, 94, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
}
.main-nav a:hover { color: var(--accent-strong); }

/* ---------- Layout container ---------- */

.section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  font-weight: 800;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-weight: 800;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-text, .trust-card p, .closing-cta p, .feature-card p, .legal-shell p, .legal-list {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.hero-text { font-size: 18px; max-width: 540px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 80px;
}

.hero-copy { max-width: 620px; }

/* hero 按钮 + 元信息 + 下载注解 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-stats div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}
.hero-stats dt { font-size: 22px; font-weight: 900; line-height: 1.1; }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* hero 右侧手机图：前后重叠手牌式 */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.phone-shot {
  position: absolute;
  max-width: 360px;
  width: 38%;
  border-radius: 38px;
  box-shadow: var(--shadow-md);
  border: 10px solid rgba(255, 255, 255, 0.86);
  background: #fff;
  flex: 0 1 auto;
  object-fit: cover;
}

.secondary-shot {
  width: 38%;
  transform: rotate(-3deg) translate(-25%, 4%);
  box-shadow: var(--shadow-sm);
  z-index: 0;
}

.primary-shot {
  transform: rotate(3deg) translate(25%, -4%);
  z-index: 1;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 36px rgba(201, 79, 98, 0.26);
}
.button-primary:hover { box-shadow: 0 22px 44px rgba(201, 79, 98, 0.32); }

.button-secondary {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(201, 79, 98, 0.32);
  backdrop-filter: blur(14px);
}
.button-secondary:hover { background: rgba(255, 255, 255, 0.84); }

/* ---------- Features grid ---------- */

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 80px 0 96px;
}

.feature-row {
  display: grid;
  gap: 20px;
}

.feature-row-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.feature-row-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Features 第一列：intro 描述块 */
.feature-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0 0;
}

.feature-intro .eyebrow {
  margin: 0;
}

.feature-intro h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 800;
  text-align: left;
}

.feature-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14.5px;
  text-align: left;
}

/* 每张卡：序号 → 标题 → 描述 → 大图 */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffdfa 0%, var(--card) 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 111, 94, 0.36);
}

.feature-card .feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 顶部大图：撑满卡宽，比例贴近实际内容 */
.feature-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
  margin: 14px 0 0;
  order: 99;
  border-radius: var(--radius-sm);
}

/* ---------- Trust ---------- */

.trust {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px 0;
}

.trust-card,
.closing-cta,
.legal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
}

.trust-card {
  padding: 48px 56px;
  text-align: center;
}

.trust-card h2 { margin: 0 auto 14px; max-width: 760px; }
.trust-card p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.trust-list div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.trust-list div::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  margin-bottom: 4px;
}

.trust-list strong { font-size: 18px; }
.trust-list span {
  color: var(--muted);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- Closing CTA ---------- */

.closing-cta {
  text-align: center;
  padding: 80px 56px;
  margin: 80px auto;
  max-width: 880px;
  background:
    linear-gradient(135deg, rgba(247, 184, 82, 0.18) 0%, rgba(242, 111, 94, 0.18) 100%),
    rgba(255, 255, 255, 0.7);
}
.closing-cta h2 { margin: 0 auto 14px; max-width: 720px; }
.closing-cta p {
  margin: 0 auto;
  max-width: 620px;
}

.closing-cta .closing-version {
  margin: 0 auto 18px;
  max-width: none;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.closing-cta .button {
  min-height: 56px;
  padding: 0 48px;
  margin-top: 8px;
}

/* ---------- Legal pages shared ---------- */

.legal-page { padding: 28px 16px 56px; }

.legal-shell {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
}
.legal-shell h1 {
  font-size: clamp(36px, 6vw, 58px);
  margin-bottom: 12px;
}
.legal-updated { font-size: 14px; }

.legal-shell section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-shell h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.legal-list { padding-left: 1.2em; }
.legal-list li + li { margin-top: 10px; }

/* 双语栏(隐私/协议/关于)中英分段 */
.legal-lang-sep {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.legal-en h2 {
  color: var(--accent-strong);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.legal-en p,
.legal-en ul.legal-list li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.lang-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(240, 138, 46, 0.12));
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  font-weight: 800;
  color: var(--text);
}

.footer-copy {
  margin-right: 6px;
}

.footer-icp {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-icp:hover { color: var(--accent-strong); }

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* ---------- Media queries ---------- */

@media (max-width: 980px) {
  .site-header { align-items: flex-start; gap: 18px; }
  .main-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0 56px;
  }
  .hero-visual {
    min-height: 380px;
  }
  .hero-text { max-width: none; }
  .phone-shot.primary-shot { width: 36%; transform: rotate(2deg) translate(20%, -3%); }
  .phone-shot.secondary-shot { width: 36%; transform: rotate(-2deg) translate(-20%, 3%); }
  .feature-row-top { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .feature-row-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .feature-row-bottom .feature-card:last-child { grid-column: 1 / -1; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list div:last-child { grid-column: 1 / -1; }
  .closing-cta { padding: 64px 40px; margin: 56px auto; }
}

@media (max-width: 560px) {
  h1 { letter-spacing: -0.035em; }
  .hero { padding: 28px 0 48px; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .phone-shot.primary-shot { width: 40%; transform: rotate(2deg) translate(15%, -3%); }
  .phone-shot.secondary-shot { width: 40%; transform: rotate(-2deg) translate(-15%, 3%); }
  .feature-row-top,
  .feature-row-bottom { grid-template-columns: 1fr; }
  .feature-row-bottom .feature-card:last-child { grid-column: auto; }
  .trust { padding: 36px 0; }
  .trust-list { grid-template-columns: 1fr; gap: 12px; }
  .trust-list div:last-child { grid-column: auto; }
  .closing-cta { padding: 48px 28px; margin: 40px auto; }
  .closing-cta .button { width: 100%; }
}

/* ---------- Language switch (ZH / EN) ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  margin-left: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 79, 98, 0.28);
}

.lang-switch .lang-sep {
  color: var(--line);
  font-weight: 400;
}

/* ---------- WeChat "open in browser" hint dialog ---------- */

.wechat-hint[hidden] { display: none !important; }

.wechat-hint {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(48, 37, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: wechat-hint-fade 0.18s ease-out;
}

.wechat-hint-card {
  position: relative;
  width: min(360px, 100%);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: wechat-hint-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.wechat-hint-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.wechat-hint-close:hover { background: rgba(92, 58, 39, 0.08); color: var(--text); }
.wechat-hint-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wechat-hint-icon {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

.wechat-hint-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wechat-hint-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.wechat-hint-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.wechat-hint-steps li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.wechat-hint-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wechat-hint-steps li + li { border-top: 1px solid var(--line); }
.wechat-hint-steps strong { color: var(--accent-strong); font-weight: 800; }

.wechat-hint-ok {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
}

@keyframes wechat-hint-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wechat-hint-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-hint, .wechat-hint-card { animation: none; }
}
