/* ========== tokens ========== */
:root {
  --bg-1: #fbfaf7;
  --bg-2: #eef1ee;
  --card: #ffffff;
  --ink: #16201d;
  --muted: rgba(22, 32, 29, .60);
  --faint: rgba(22, 32, 29, .42);
  --line: rgba(22, 32, 29, .10);
  --accent: #0e7c6b;
  --accent-dark: #0a6557;
  --accent-soft: rgba(14, 124, 107, .10);
}

/* ========== reset ========== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(640px 420px at 78% 8%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

/* ========== layout (flex centering, old-device safe) ========== */
.stage {
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 40px 18px;
}

/* ========== card ========== */
.portal {
  width: 100%;
  max-width: 480px;            /* fallback for min(); robust on old browsers */
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 26px;
  box-shadow:
    0 1px 2px rgba(16, 33, 29, .04),
    0 22px 54px rgba(16, 33, 29, .09);

  opacity: 0;
  -webkit-transform: translateY(14px);
  transform: translateY(14px);
  -webkit-animation: rise .5s ease forwards;
  animation: rise .5s ease forwards;
}

@-webkit-keyframes rise {
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== brand chip ========== */
.brand { margin-bottom: 20px; }

.chip {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 600;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-animation: pulse 1.6s ease-in-out infinite;
  animation: pulse 1.6s ease-in-out infinite;
}

@-webkit-keyframes pulse {
  0%, 100% { opacity: .45; } 50% { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: .45; } 50% { opacity: 1; }
}

/* ========== lead text ========== */
.lead { margin-bottom: 20px; }

.headline {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.3;
}

.tagline {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ========== meter (cosmetic) ========== */
.meter { margin-bottom: 22px; }

.meter-track {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  -webkit-transition: width 240ms ease;
  transition: width 240ms ease;
}

/* ========== primary CTA ========== */
.cta {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 13px;
  font-weight: 600;
  -webkit-transition: -webkit-transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cta-main {
  height: 58px;
  font-size: 17.5px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  box-shadow: 0 10px 24px rgba(14, 124, 107, .26);
}

.cta-main:hover {
  background: var(--accent-dark);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 124, 107, .30);
}

.cta-main:active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.cta-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ========== secondary routes ========== */
.routes-block { margin-top: 24px; }

.routes-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 11px;
}

.routes {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.route {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 50px;
  width: 100%;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  -webkit-transition: border-color 120ms ease, background 120ms ease, -webkit-transform 120ms ease;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.route + .route { margin-top: 11px; }

.route:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.route:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
}

/* ========== note + credit ========== */
.note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.credit {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

.credit-sep { margin: 0 6px; }

/* ========== reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .portal { -webkit-animation: none; animation: none; opacity: 1; -webkit-transform: none; transform: none; }
  .chip-dot { -webkit-animation: none; animation: none; opacity: 1; }
  .meter-bar { -webkit-transition: none; transition: none; }
}

/* ========== tablet ========== */
@media (min-width: 600px) {
  .portal {
    max-width: 500px;
    padding: 36px 34px 28px;
  }
  .headline { font-size: 25px; }
}

/* ========== desktop: 加大卡片 + 字号填充屏幕（不使用 scale 变形） ========== */
@media (min-width: 1024px) {
  .stage { padding: 56px 24px; }

  .portal {
    max-width: 560px;
    padding: 44px 44px 34px;
    border-radius: 20px;
  }

  .chip { font-size: 14.5px; padding: 7px 15px; }
  .chip-dot { width: 9px; height: 9px; }

  .headline { font-size: 28px; }
  .tagline { font-size: 16.5px; margin-top: 9px; }

  .meter { margin-bottom: 26px; }
  .meter-track { height: 7px; }

  .cta-main { height: 64px; font-size: 19px; border-radius: 14px; }
  .cta-arrow { font-size: 20px; }

  .routes-block { margin-top: 28px; }
  .routes-label { font-size: 13px; }
  .route { height: 56px; font-size: 17px; }
  .route + .route { margin-top: 12px; }

  .note { font-size: 15px; margin-top: 28px; padding-top: 22px; }
  .credit { font-size: 13.5px; margin-top: 20px; }
}
