/* ============================================================
   公司限期易 着陆页样式
   设计令牌对齐 App src/theme.ts，确保网页到 App 体验一致
   ============================================================ */

:root {
  /* 色彩 —— 与 App theme.ts 同步 */
  --primary: #003d5c;
  --harbour: #0b5f78;
  --harbour-deep: #052f46;
  --harbour-mist: #dff4f8;
  --info: #006a8e;
  --info-soft: #eef8fb;
  --legal-soft: #e6f2f7;
  --jade: #62d6a7;
  --jade-soft: #e8fbf3;
  --gold: #f6c84c;
  --gold-soft: #fff8de;
  --ops: #a65c25;
  --ops-soft: #fff3e8;
  --ink: #1a1a2e;
  --muted: #4a5568;
  --paper: #f5f8fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --danger: #e53e3e;
  --success: #38a169;

  /* 字体 */
  --font-heading: -apple-system, "SF Pro Display", "Helvetica Neue", "PingFang HK", "Noto Sans HK", sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Helvetica Neue", "PingFang HK", "Noto Sans HK", sans-serif;

  /* 间距 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 3px rgba(5, 47, 70, 0.06), 0 4px 16px rgba(5, 47, 70, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}
.container--narrow { max-width: 820px; }

.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.icon--info { stroke: var(--info); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--harbour-deep); box-shadow: 0 4px 14px rgba(246, 200, 76, .4); }
.btn--gold:hover { box-shadow: 0 6px 20px rgba(246, 200, 76, .55); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--harbour); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Topbar（与官网呼应） ---------- */
.topbar { background: var(--harbour-deep); color: #cde7ef; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar__brand { letter-spacing: .02em; }
.topbar__link { color: var(--jade); text-decoration: none; font-weight: 700; }
.topbar__link:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.navbar__logo { display: flex; align-items: center; gap: var(--sp-sm); text-decoration: none; color: var(--ink); }
.navbar__icon { width: 32px; height: 32px; border-radius: 8px; }
.navbar__name { font-family: var(--font-heading); font-weight: 900; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(98, 214, 167, .14), transparent 60%),
    var(--harbour-deep);
  color: #fff;
  padding: 64px 0 72px;
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-xxl); align-items: center; }
.hero__copy { max-width: 600px; }
.kicker { font-family: var(--font-heading); font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-md); }
.kicker--jade { color: var(--jade); }
.hero__title { font-family: var(--font-heading); font-weight: 900; font-size: 34px; line-height: 1.18; letter-spacing: -.01em; }
.hero__sub { color: #cde7ef; font-size: 16px; margin-top: var(--sp-lg); }
.hero__point { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 20px; line-height: 1.4; margin-top: var(--sp-xl); }
.hero__cta { margin-top: var(--sp-xl); }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-lg); margin-top: var(--sp-xl); font-size: 14px; color: var(--jade); }
.hero__trust li::before { content: "✓ "; font-weight: 900; }

.hero__visual { display: flex; justify-content: center; }
.phone-placeholder {
  width: 240px; aspect-ratio: 9 / 19;
  border-radius: 32px;
  border: 2px dashed rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #cde7ef;
}
.phone-placeholder span { font-weight: 800; }
.phone-placeholder small { font-size: 12px; opacity: .7; }

/* ---------- 通用 Section ---------- */
.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section__title { font-family: var(--font-heading); font-weight: 900; font-size: 28px; line-height: 1.3; letter-spacing: -.01em; }
.section__title--center { text-align: center; }
.section__lead { color: var(--muted); margin-top: var(--sp-md); font-size: 16px; }
.section__after { text-align: center; margin-top: var(--sp-xl); padding-top: var(--sp-xl); border-top: 1px solid var(--line); }
.section__after p { color: var(--muted); margin-bottom: var(--sp-lg); }

/* ---------- 计算器 ---------- */
.calc {
  margin-top: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--harbour-mist);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-card);
}
.calc__label { display: flex; align-items: center; gap: var(--sp-sm); font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--primary); }
.calc__row { display: flex; gap: var(--sp-md); margin-top: var(--sp-md); }
.calc__input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 16px;
  padding: 13px var(--sp-lg);
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink); background: var(--surface);
}
.calc__input:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.calc__hint { color: var(--muted); font-size: 13px; margin-top: var(--sp-sm); }

.calc__result { margin-top: var(--sp-xl); }
.calc__result-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: var(--sp-md); }
.calc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.calc__cell { border-radius: var(--radius-md); padding: var(--sp-lg); display: flex; flex-direction: column; gap: 6px; }
.calc__cell--info { background: var(--info-soft); }
.calc__cell--gold { background: var(--gold-soft); }
.calc__cell--jade { background: var(--jade-soft); }
.calc__cell-label { font-size: 13px; color: var(--muted); }
.calc__cell-value { font-family: var(--font-heading); font-weight: 900; font-size: 19px; color: var(--harbour-deep); }
.calc__cell-note { font-size: 12px; font-weight: 700; color: var(--ops); }

.calc__late { margin-top: var(--sp-lg); border-top: 1px solid var(--line); padding-top: var(--sp-md); }
.calc__late summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); list-style: none; }
.calc__late summary::-webkit-details-marker { display: none; }
.calc__late summary::before { content: "▸ "; }
.calc__late[open] summary::before { content: "▾ "; }
.calc__table { width: 100%; border-collapse: collapse; margin-top: var(--sp-md); font-size: 14px; }
.calc__table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc__table td:last-child { text-align: right; font-weight: 800; color: var(--harbour-deep); }
.calc__source { font-size: 12px; color: var(--muted); margin-top: var(--sp-md); }

/* ---------- 痛点共情 ---------- */
.empathy { list-style: none; margin-top: var(--sp-xl); display: grid; gap: var(--sp-md); }
.empathy li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--sp-lg); font-size: 16px; color: var(--ink);
  position: relative; padding-left: 48px;
}
.empathy li::before {
  content: ""; position: absolute; left: var(--sp-lg); top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--harbour-mist);
}
.empathy__close {
  margin-top: var(--sp-xl); font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  color: var(--harbour-deep); text-align: center; line-height: 1.6;
}

/* ---------- 三步流程 ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); margin-top: var(--sp-xxl); }
.step { background: var(--harbour-mist); border-radius: var(--radius-md); padding: var(--sp-xl); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--primary);
  font-family: var(--font-heading); font-weight: 900; font-size: 18px;
  margin-bottom: var(--sp-md);
}
.step__title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--ink); }
.step__desc { color: var(--muted); font-size: 15px; margin-top: var(--sp-sm); }

/* ---------- 信任区 ---------- */
.trust { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); margin-top: var(--sp-xxl); }
.trust__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-xl); }
.trust__icon { font-size: 28px; display: block; margin-bottom: var(--sp-md); }
.trust__title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--primary); }
.trust__desc { color: var(--muted); font-size: 15px; margin-top: var(--sp-sm); }

.trust__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); margin-top: var(--sp-xxl); }
.shot-placeholder {
  aspect-ratio: 9 / 16; border-radius: var(--radius-md);
  border: 2px dashed var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { margin-top: var(--sp-xxl); display: grid; gap: var(--sp-md); }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq__q {
  cursor: pointer; list-style: none; padding: var(--sp-lg) var(--sp-xl);
  font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--info); flex-shrink: 0; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 var(--sp-xl) var(--sp-lg); background: var(--paper); }
.faq__a p { color: var(--muted); font-size: 14px; padding-top: var(--sp-md); }
.faq__src { font-size: 12px !important; color: var(--info) !important; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--harbour-deep); color: #fff; padding: 56px 0 40px; }
.footer__cta { text-align: center; }
.footer__tagline { font-family: var(--font-heading); font-weight: 900; font-size: 22px; margin-bottom: var(--sp-xl); }
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .2);
}
.store-btn__icon { width: 24px; height: 24px; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; font-family: var(--font-heading); font-weight: 800; font-size: 16px; line-height: 1.15; text-align: left; }
.store-btn span small { font-weight: 500; font-size: 11px; opacity: .8; }
.store-btn--soon { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); cursor: default; }

.footer__info { text-align: center; margin-top: var(--sp-xxl); padding-top: var(--sp-xl); border-top: 1px solid rgba(255, 255, 255, .12); color: #9fc4d2; font-size: 13px; }
.footer__info p { margin-bottom: 4px; }
.footer__info a { color: #9fc4d2; text-decoration: none; }
.footer__info a:hover { color: #fff; text-decoration: underline; }
.footer__home { display: inline-block; margin-bottom: var(--sp-md); color: var(--jade) !important; font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.footer__legal { margin-top: var(--sp-md) !important; font-size: 12px; opacity: .8; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 640px) {
  .calc__grid { gap: var(--sp-lg); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero { padding: 88px 0 96px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
  .hero__title { font-size: 40px; }
  .phone-placeholder { width: 280px; }
  .section { padding: 80px 0; }
  .section__title { font-size: 30px; }
}
