:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-variant: #eaf1f7;
  --text-primary: #1e3140;
  --text-secondary: #587082;
  --text-tertiary: #849caf;
  --divider: #e2ecf4;
  --accent: #368dd1;
  --accent-filled: #2472ae;
  --accent-text: #1f659c;
  --accent-soft: #e8f3fc;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --series-alt: #7c6ca1;
  --series-alt-soft: #f2eef8;
  --coral: #e56b55;
  --coral-soft: #fff1ed;
  --apricot: #d9822b;
  --apricot-soft: #fff6eb;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 48px rgba(30, 49, 64, 0.08), 0 2px 6px rgba(30, 49, 64, 0.03);
  --shadow-soft: 0 6px 24px rgba(30, 49, 64, 0.045);
  --max-w: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(226, 236, 244, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 22.5%;
  object-fit: cover;
  display: block;
  box-shadow: 0 3px 10px rgba(30, 49, 64, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(54, 141, 209, 0.08);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--divider);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6B7A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 28px 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-select:hover,
.lang-select:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent);
  outline: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, #2d82c4 0%, #21689f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(36, 114, 174, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: btnSheen 5.5s ease-in-out infinite;
}

@keyframes btnSheen {
  0%, 72% { left: -120%; }
  100% { left: 160%; }
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(36, 114, 174, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.btn-primary.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(36, 114, 174, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--divider);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 40px;
  transition: padding 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(520px 360px at 14% 12%, rgba(233, 197, 165, 0.22), transparent 68%);
}

body.hero-compact .hero {
  padding: 26px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--divider);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(30, 49, 64, 0.04);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .accent-word {
  background: linear-gradient(120deg, #1f659c 0%, #368dd1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  color: var(--success);
  font-weight: 700;
}

/* iPhone Real Screenshot Mockup */
.mockup-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  perspective: 1100px;
}

.phone-frame {
  width: 100%;
  max-width: 286px;
  background: linear-gradient(160deg, #2b3c4b 0%, #17232d 100%);
  border-radius: 44px;
  padding: 9px;
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: max-width 1.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 1.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 1.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 30px 72px rgba(24, 42, 58, 0.24),
    0 8px 22px rgba(24, 42, 58, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.hero-compact .phone-frame {
  max-width: 214px;
  border-radius: 36px;
  box-shadow:
    0 20px 46px rgba(24, 42, 58, 0.18),
    0 4px 12px rgba(24, 42, 58, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-frame.expanded {
  max-width: 300px !important;
  border-radius: 46px !important;
  cursor: zoom-out;
}

.phone-screen-img-wrap {
  position: relative;
  background: var(--bg);
  border-radius: 35px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  transition: border-radius 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.hero-compact .phone-screen-img-wrap {
  border-radius: 28px;
}

.phone-frame.expanded .phone-screen-img-wrap {
  border-radius: 37px !important;
}

/* 左右平移 + 渐变无闪烁轮播 */
.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: translateX(22%);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.phone-slide.is-prev {
  opacity: 0;
  transform: translateX(-22%);
}

.phone-slide.is-next {
  opacity: 0;
  transform: translateX(22%);
}

.phone-slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* 屏幕表层柔和玻璃反光 */
.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* 液态玻璃 Tab 指示器（Liquid Glass Sliding Pill） */
.screen-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 28px rgba(30, 49, 64, 0.1),
    0 2px 6px rgba(30, 49, 64, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(54, 141, 209, 0.08);
}

.screen-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 243, 252, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 14px rgba(36, 114, 174, 0.18),
    0 1px 3px rgba(30, 49, 64, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 1);
  transition: transform 0.5s cubic-bezier(0.32, 1.1, 0.36, 1),
              width 0.5s cubic-bezier(0.32, 1.1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.screen-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.screen-tab:hover {
  color: var(--text-primary);
}

.screen-tab.active {
  color: var(--accent-text);
  font-weight: 700;
}

/* 核心刚需免费区随首屏收缩自然上滑显现 */
#free {
  transition: transform 1.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.hero-compact) #free {
  transform: translateY(18px);
  opacity: 0.72;
}

body.hero-compact #free {
  transform: translateY(0);
  opacity: 1;
}

/* Apple Store 双向滚动微动效（上下滑入滑出皆有柔和过渡） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.from-top {
  transform: translateY(-18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .phone-frame,
  .phone-screen-img-wrap,
  .phone-slide,
  .screen-tab-indicator,
  #free,
  .reveal {
    transition: none !important;
  }
  .btn-primary::after {
    animation: none !important;
  }
  body:not(.hero-compact) #free,
  .reveal {
    transform: none;
    opacity: 1;
  }
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.22s ease;
}

/* Included Free Section */
.free-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.free-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.free-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  background: var(--success-soft);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.free-card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.free-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pro-note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 14px 20px;
}

/* Med Strip */
.med-strip {
  padding: 22px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.72);
}

.med-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.med-chip {
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.18;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* 3-Step Journey */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #c8def0;
  box-shadow: var(--shadow-card);
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-box.blue { background: var(--accent-soft); color: var(--accent-text); }
.icon-box.green { background: var(--success-soft); color: #059669; }
.icon-box.purple { background: var(--series-alt-soft); color: var(--series-alt); }
.icon-box.coral { background: var(--coral-soft); color: var(--coral); }
.icon-box.amber { background: var(--apricot-soft); color: var(--apricot); }

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* Privacy Banner */
.privacy-banner {
  background: linear-gradient(135deg, #1d3142 0%, #1d4e75 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(29, 49, 66, 0.18);
}

.privacy-banner h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.privacy-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.privacy-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px 14px;
  border-radius: 13px;
}

/* Bottom CTA Band */
.cta-band {
  background: linear-gradient(135deg, #e8f3fc 0%, #f5efe6 100%);
  border: 1px solid var(--divider);
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(30, 49, 64, 0.025);
}

details.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-text);
  font-weight: 500;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Legal & Support Pages */
.doc-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.doc-card h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.doc-card h2 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.doc-card p,
.doc-card li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.doc-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 780px;
}

/* Language Selector handled via i18n.js */

@media (max-width: 880px) {
  .hero-grid,
  .features-grid,
  .steps-grid,
  .free-grid,
  .privacy-banner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .privacy-banner,
  .doc-card {
    padding: 26px;
  }
}
