:root {
  --bg: #f4f6fa;
  --bg-alt: #ffffff;
  --navy: #0b1f3a;
  --navy-light: #16325c;
  --gold: #c9a227;
  --gold-light: #f5e6a8;
  --wa: #25d366;
  --wa-dark: #1da851;
  --text: #1a1a2e;
  --muted: #5c6478;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(11, 31, 58, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* Top bar */
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.top-bar__badge {
  background: rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

.top-bar__text {
  opacity: 0.85;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 55%, #1e4a7a 100%);
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero__title em {
  color: var(--gold-light);
  font-style: normal;
}

.hero__sub {
  font-size: 15px;
  opacity: 0.88;
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero__points {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

.hero__points li {
  padding: 4px 0;
  opacity: 0.92;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  width: 100%;
  max-width: 340px;
  height: 56px;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn--lg {
  max-width: 100%;
  height: 58px;
  font-size: 19px;
}

.btn--sticky {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  background: var(--wa);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.65); }
}

.hero__note {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.65;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-light);
}

.stat span {
  font-size: 10px;
  opacity: 0.7;
  line-height: 1.3;
}

/* Sections */
.section {
  padding: 32px 20px;
}

.section--alt {
  background: var(--bg-alt);
}

.section--trust {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.section__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}

/* Pain cards */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pain-card__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.pain-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.pain-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Service list */
.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* Steps */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.steps__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold) 0%, #a88620 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.steps strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}

.steps p {
  font-size: 13px;
  color: var(--muted);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-light);
}

/* FAQ */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* CTA block */
.cta-block {
  margin: 0 16px 24px;
  padding: 28px 20px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-block__tag {
  display: inline-block;
  background: rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.cta-block h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cta-block p {
  font-size: 14px;
  opacity: 0.88;
  margin-bottom: 20px;
}

.cta-block strong {
  color: var(--gold-light);
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.footer__copy {
  margin-top: 8px;
  opacity: 0.6;
}

/* Sticky bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.sticky-bar__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar__text strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.sticky-bar__text span {
  font-size: 11px;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

/* Phone modal — API 配对流程 */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.phone-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.phone-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.65);
}

.phone-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 20px calc(24px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(165deg, var(--navy-light) 0%, var(--navy) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-bottom: none;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.phone-modal.is-open .phone-modal__sheet {
  transform: translateY(0);
}

.phone-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.phone-modal__sub {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.phone-modal__box {
  padding: 18px 16px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.phone-modal__label {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.phone-field {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: var(--gold);
}

.phone-field__plus {
  flex: 0 0 auto;
  padding: 0 2px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.phone-field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px 0 6px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
  -webkit-text-fill-color: #fff;
}

.phone-field__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
}

.phone-modal__hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.phone-modal__error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #fda4af;
  font-size: 13px;
  text-align: center;
}

.phone-modal__btn {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.phone-modal__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}
