/* 傑睿行銷官網 — 方向 D「明亮插畫」 */
:root {
  --navy: #041e49;
  --blue: #1f5eff;
  --blue-dark: #0b3fc4;
  --coral: #f47c5c;
  --pale: #e8efff;
  --pale-2: #f5f8ff;
  --pale-3: #eef3ff;
  --line: #dfe5f0;
  --text-2: #3c4762;
  --text-3: #56627a;
  --radius: 20px;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-zh);
  color: var(--navy);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: 72px; }
.section--pale { background: var(--pale-2); }
.en { font-family: var(--font-en); font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.dot { color: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.section-head .en { font-size: clamp(40px, 5vw, 64px); }
.section-head__sub { font-size: 15px; font-weight: 700; color: var(--blue); }

.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--pale-3); color: var(--blue); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 10px; border: 0;
  background: var(--blue); color: #ffffff; font: 700 16px/1 var(--font-zh);
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); color: #ffffff; }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 17px; }
.btn--ghost { background: #ffffff; color: var(--blue); border: 2px solid var(--blue); }
.btn--ghost:hover { background: var(--pale-3); color: var(--blue-dark); }
.btn--white { background: #ffffff; color: var(--blue); }
.btn--white:hover { background: var(--pale-3); color: var(--blue-dark); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px;
}

/* ---------- 導覽列 ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding-top: 16px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #ffffff; border-radius: 999px; padding: 10px 12px 10px 24px;
  box-shadow: 0 6px 24px rgba(31, 94, 255, 0.12);
}
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); }
.nav__links .en { font-size: 14px; }
.nav__links small { font-size: 11px; color: var(--text-3); }
.nav__cta { min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 14px rgba(31, 94, 255, 0.3); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 64px 80px; overflow: hidden; }
.hero__shapes { position: absolute; right: 0; top: -40px; width: min(52%, 680px); height: auto; pointer-events: none; }
.hero__inner { position: relative; }
.hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 640px; padding-block: 40px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; line-height: 1.3; }
.hero__lead { font-size: 17px; line-height: 1.9; color: var(--text-2); max-width: 30em; }
.hero__note { font-size: 14px; font-weight: 700; color: var(--blue); }
.hero__cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.report-card {
  position: absolute; right: max(40px, calc((100% - 1200px) / 2 + 40px)); top: 120px; width: 300px;
  background: #ffffff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(4, 30, 73, 0.14);
  display: flex; flex-direction: column; gap: 14px;
}
.report-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.report-card__head .chip { font-size: 12px; }
.report-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-card__stats div { background: var(--pale-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--text-3); }
.report-card__stats i { display: block; height: 8px; border-radius: 4px; }

/* ---------- RESULTS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stat { background: #ffffff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--pale-3); display: flex; align-items: center; justify-content: center; }
.stat__num { font-size: 56px; color: var(--blue); }
.stat__label { font-size: 15px; color: var(--text-2); }

/* ---------- 客戶 Logo ---------- */
.clients { padding-block: 48px; }
.clients__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.clients__title { font-size: 15px; font-weight: 700; color: var(--text-2); }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.clients__grid li { height: 84px; border: 1.5px solid #e6eaf2; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.clients__grid img { max-width: 100%; max-height: 100%; object-fit: contain; }
.clients__more { font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- SERVICE ---------- */
.services { display: flex; flex-direction: column; gap: 56px; }
.service { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: center; }
.service__art { height: 280px; background: #ffffff; border-radius: 24px; padding: 12px; box-shadow: 0 10px 30px rgba(4, 30, 73, 0.06); }
.service__art svg { width: 100%; height: 100%; }
.service__text { display: flex; flex-direction: column; gap: 12px; }
.service__no { font-size: 13px; color: var(--text-3); }
.service h3 { font-size: 26px; font-weight: 900; color: var(--blue); }
.service p { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.service__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.platforms { background: #ffffff; border-radius: 20px; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.platforms__title { font-size: 14px; font-weight: 700; color: var(--text-2); }
.platforms ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 20px; align-items: center; margin: 0; padding: 0; list-style: none; }
.platforms img { width: 100%; max-width: 150px; height: 36px; object-fit: contain; }

/* ---------- 中段 CTA ---------- */
.cta {
  background: var(--blue); border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #ffffff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.cta__main { display: flex; align-items: center; gap: 20px; position: relative; }
.cta__icon { width: 96px; height: 96px; border-radius: 50%; background: #ffffff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.cta p { font-size: 16px; line-height: 1.8; color: #dce6ff; }
.cta__action { display: flex; justify-content: flex-end; position: relative; }

/* ---------- FLOW ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.flow li { background: #ffffff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.flow .en { font-size: 28px; color: var(--blue); }
.flow strong { font-size: 17px; }
.flow span:last-child { font-size: 14px; line-height: 1.7; color: var(--text-2); }

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form { background: #ffffff; border-radius: 24px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  min-height: 46px; border: 1.5px solid #c6cfdf; border-radius: 10px; padding: 10px 14px;
  font: 400 16px/1.5 var(--font-zh); color: var(--navy); background: #ffffff; width: 100%;
}
.field textarea { resize: vertical; }
.field input:invalid:not(:placeholder-shown) { border-color: #d64545; }
.req { color: var(--coral); }
.group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.group legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 10px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #c6cfdf; background: #ffffff; color: var(--navy); font-size: 14px; cursor: pointer;
}
.pick input:checked + span { border-color: var(--blue); background: var(--pale-3); color: var(--blue); font-weight: 700; }
.pick input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: 13px; color: var(--text-3); text-align: center; }
.form__error { font-size: 14px; color: #c62828; text-align: center; min-height: 1em; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-card { background: var(--navy); color: #ffffff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-card h3 { font-size: 22px; font-weight: 900; line-height: 1.5; }
.contact-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #dce6ff; }
.contact-card a { color: #ffffff; }

/* ---------- 頁尾 ---------- */
.footer { background: var(--navy); color: #c7d2ea; padding-block: 48px 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__logo { background: #ffffff; border-radius: 10px; padding: 10px 14px; }
.footer__logo img { height: 48px; width: auto; }
.footer__dog { width: 116px; height: 64px; object-fit: cover; border-radius: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { color: #ffffff; }
.footer a { color: #c7d2ea; text-decoration: none; }
.footer a:hover { color: #ffffff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

.mobile-cta { display: none; }

/* ---------- 感謝頁 ---------- */
.thanks-hero { padding-block: 80px 72px; }
.thanks-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.thanks-hero__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.thanks-hero__check { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.thanks-hero .en { font-size: clamp(40px, 5vw, 64px); }
.thanks-hero h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.4; }
.thanks-hero p { font-size: 17px; line-height: 1.9; color: var(--text-2); max-width: 30em; }
.thanks-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.thanks-art { margin: 0 auto; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; }
.thanks-art__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thanks-art__circle { position: absolute; left: 22%; top: 24%; width: 56%; height: 56%; border-radius: 50%; background: #ffffff; border: 6px solid #ffffff; box-shadow: 0 16px 40px rgba(4, 30, 73, 0.15); display: flex; align-items: center; justify-content: center; }
.thanks-art__circle svg { width: 62%; height: 62%; }
.thanks-art__bubble { position: absolute; left: 4%; top: 8%; background: var(--coral); color: #ffffff; border-radius: 20px 20px 20px 4px; padding: 12px 20px; box-shadow: 0 8px 20px rgba(244, 124, 92, 0.3); font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { background: #ffffff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps__top { display: flex; align-items: center; justify-content: space-between; }
.steps .en { font-size: 28px; color: var(--blue); }
.steps h3 { font-size: 18px; font-weight: 900; }
.steps p { font-size: 15px; line-height: 1.8; color: var(--text-2); }
.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: start; }
.prep__card { border: 1.5px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.prep__card h2, .prep .contact-card h2 { font-size: 22px; font-weight: 900; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.8; color: var(--text-2); }
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex-shrink: 0; margin-top: 4px; }

/* ---------- 手機 ---------- */
@media (max-width: 760px) {
  .section { padding-block: 48px; }
  .site-header { padding-top: 12px; }
  .nav { padding: 8px 8px 8px 18px; gap: 8px; }
  .nav__logo img { height: 26px; }
  .nav__cta { min-height: 44px; padding: 0 16px; font-size: 13px; box-shadow: none; }
  .nav__toggle {
    display: flex; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pale-3);
    align-items: center; justify-content: center; cursor: pointer;
  }
  .nav__links {
    display: none; position: absolute; left: 20px; right: 20px; top: 72px; flex-direction: column; gap: 0;
    background: #ffffff; border-radius: 20px; padding: 8px; box-shadow: 0 12px 30px rgba(4, 30, 73, 0.15);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { flex-direction: row; gap: 10px; padding: 14px 16px; min-height: 44px; }
  .nav__links .en { font-size: 16px; }
  .nav__links small { font-size: 14px; }

  .hero { padding-block: 40px 48px; }
  .hero__shapes { right: -70px; top: -30px; width: 240px; opacity: .55; }
  .hero__text { padding-block: 8px; }
  .report-card { display: none; }

  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 16px 10px; gap: 6px; text-align: center; align-items: center; }
  .stat__icon { width: 34px; height: 34px; border-radius: 10px; }
  .stat__icon svg { width: 20px; height: 20px; }
  .stat__num { font-size: 26px; }
  .stat__label { font-size: 12px; line-height: 1.4; }

  .clients__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .clients__grid li { height: 60px; padding: 8px; border-radius: 10px; }

  .services { gap: 36px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service__art { height: 200px; padding: 8px; order: -1; }
  .service h3 { font-size: 22px; }
  .platforms { padding: 20px 16px; }
  .platforms ul { grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
  .platforms img { height: 28px; }

  .cta { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .cta__main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta__icon { width: 64px; height: 64px; }
  .cta__icon svg { width: 40px; height: 40px; }
  .cta__action { justify-content: stretch; }
  .cta__action .btn { width: 100%; min-height: 52px; padding: 0 24px; }

  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow li { padding: 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; align-items: center; }
  .flow .en { font-size: 24px; grid-row: span 2; }

  .contact__grid { grid-template-columns: 1fr; gap: 16px; }
  .form { padding: 20px; gap: 18px; }
  .form__row { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { border-radius: 20px; padding: 24px; }

  .footer { padding-block: 40px 96px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__brand { grid-column: 1 / -1; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96); box-shadow: 0 -6px 20px rgba(4, 30, 73, 0.1);
  }
  .mobile-cta .btn { width: 100%; min-height: 52px; }

  .thanks-hero { padding-block: 36px 48px; }
  .thanks-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .thanks-hero__check, .thanks-hero .en { display: none; }
  .thanks-hero h1 { font-size: 26px; }
  .thanks-hero p { font-size: 16px; }
  .thanks-hero__btns { flex-direction: column; width: 100%; }
  .thanks-art { max-width: 280px; order: -1; }
  .thanks-art__bubble { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { padding: 18px; gap: 8px; }
  .prep { grid-template-columns: 1fr; gap: 16px; }
  .prep__card, .prep .contact-card { padding: 24px; }
  .prep__card h2, .prep .contact-card h2 { font-size: 20px; }
  .thanks-page .footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
