:root {
  color-scheme: light;
  --bg: #f5f6ef;
  --paper: #fffdf4;
  --surface: #ffffff;
  --surface-soft: #e9f1e8;
  --ink: #111713;
  --ink-soft: #223027;
  --muted: #5b675f;
  --line: #06c755;
  --line-dark: #039b42;
  --yellow: #ffd54a;
  --red: #e94b35;
  --blue: #2f72bc;
  --border: #d6ddd5;
  --shadow: 0 18px 48px rgba(17, 23, 19, 0.16);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 23, 19, 0.12);
  background: rgba(255, 253, 244, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #e4eadf;
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(640px, calc(100svh - 28px));
  padding: 42px 0 32px;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.88), rgba(17, 23, 19, 0.55) 44%, rgba(17, 23, 19, 0.18)),
    var(--hero-image) var(--hero-position, center) / cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 26%;
  background: linear-gradient(0deg, rgba(17, 23, 19, 0.52), rgba(17, 23, 19, 0));
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(6, 199, 85, 0.12), rgba(255, 213, 74, 0.08));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 900px;
}

.hero-guide {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 64px;
  margin-bottom: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.42);
  backdrop-filter: blur(12px);
}

.hero-guide img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  object-fit: cover;
}

.hero-guide strong,
.hero-guide span {
  display: block;
}

.hero-guide strong {
  line-height: 1.15;
}

.hero-guide span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(38px, 5.7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.14);
  color: #fff;
  font-weight: 900;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  max-width: 100%;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button-primary {
  border-color: #08180d;
  background: var(--line);
  box-shadow: 5px 5px 0 rgba(8, 24, 13, 0.72);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button:hover {
  transform: translateY(-2px);
}

.micro-trust {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.band {
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.band-soft {
  background: var(--surface-soft);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-number {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
}

.section h2 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section > p {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.content-grid,
.decision-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.item,
.decision-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.decision-card {
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(17, 23, 19, 0.1);
}

.item h3,
.decision-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.25;
}

.item p,
.decision-card p {
  margin: 0;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(6, 199, 85, 0.18);
}

.step-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.timeline-list h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.24;
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
}

.script-block {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 16px;
  margin-top: 28px;
}

.script-block article {
  border-radius: 8px;
  padding: 22px;
}

.script-primary {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 rgba(255, 213, 74, 0.5);
}

.script-note {
  border: 1px solid var(--border);
  background: var(--surface);
}

.script-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 900;
}

.script-note span {
  color: var(--red);
}

.script-block p {
  margin: 0;
  font-size: 20px;
  line-height: 1.58;
}

.script-note p {
  color: var(--muted);
  font-size: 17px;
}

.split-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.split-detail article {
  padding: 24px;
  border-left: 6px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.split-detail h3,
.split-detail p {
  margin: 0;
}

.split-detail h3 {
  margin-bottom: 8px;
}

.split-detail p {
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.check::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--line);
}

.check strong {
  color: var(--ink);
}

.check span {
  color: var(--muted);
}

.notice {
  padding: 18px;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: #fff7cf;
  color: #3a2d0d;
}

.prequal-band {
  border-top: 0;
  background: linear-gradient(135deg, #102019, #17201b 46%, #223027);
  color: #fff;
}

.prequal-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.prequal-header {
  max-width: 860px;
}

.prequal-header h2 {
  color: #fff;
}

.prequal-header p:not(.eyebrow) {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.prequal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.prequal-form,
.prequal-output {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.08);
  backdrop-filter: blur(10px);
}

.prequal-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.prequal-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.prequal-group legend {
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 900;
}

.prequal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prequal-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prequal-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.prequal-option input:checked + span {
  border-color: var(--line);
  background: var(--line);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(255, 213, 74, 0.52);
}

.prequal-option input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.prequal-output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-color: rgba(6, 199, 85, 0.5);
  background: #fffdf4;
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(6, 199, 85, 0.24);
}

.prequal-output-label {
  color: var(--red);
  font-weight: 900;
}

.prequal-output p {
  margin: 14px 0 18px;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.35;
  font-weight: 900;
}

.prequal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prequal-actions .button {
  flex: 1 1 180px;
}

.button-copy {
  border-color: var(--border);
  background: #f1f5ef;
  box-shadow: none;
}

.section-kicker {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-bottom: 28px;
}

.section-kicker .eyebrow,
.section-kicker h2,
.section-kicker p {
  margin: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 5px 5px 0 rgba(17, 23, 19, 0.12);
}

.proof-card.is-featured {
  grid-column: span 4;
}

.proof-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 320px);
  background: var(--ink);
  object-fit: cover;
}

.proof-card.is-featured img {
  height: clamp(280px, 34vw, 460px);
}

.proof-card.is-portrait img {
  height: clamp(340px, 42vw, 540px);
  object-fit: contain;
}

.proof-card figcaption {
  flex: 1;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 17px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
}

.topic-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.topic-link-grid a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(17, 23, 19, 0.1);
}

.topic-link-grid a:hover {
  transform: translateY(-2px);
}

.topic-link-grid strong {
  font-size: 17px;
  line-height: 1.25;
}

.topic-link-grid span {
  color: var(--muted);
  font-size: 14px;
}

.final-band {
  background: var(--ink);
  color: #fff;
}

.final-band .eyebrow,
.final-band .section > p {
  color: var(--yellow);
}

.final-band h2 {
  color: #fff;
}

.site-footer {
  padding: 34px 0 104px;
  border-top: 1px solid var(--border);
  background: var(--paper);
  color: var(--muted);
}

.site-footer .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer a {
  color: var(--blue);
  font-weight: 900;
}

.footer-links {
  margin: 10px 0 0;
}

.utility-section {
  padding-top: 72px;
}

.assistant-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(372px, calc(100vw - 28px));
  font-family: inherit;
}

.assistant-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 58px;
  padding: 8px 12px 8px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--line);
  box-shadow: 5px 5px 0 rgba(17, 23, 19, 0.38);
  cursor: pointer;
}

.assistant-avatar {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.assistant-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.assistant-label {
  display: grid;
  text-align: left;
}

.assistant-label strong {
  font-size: 13px;
}

.assistant-label span {
  color: rgba(17, 23, 19, 0.72);
  font-size: 12px;
}

.assistant-window {
  display: none;
  width: min(372px, calc(100vw - 28px));
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.assistant-bubble.is-open .assistant-window,
.assistant-bubble.is-nudging .assistant-window {
  display: block;
}

.assistant-bubble.is-open .assistant-launcher,
.assistant-bubble.is-nudging .assistant-launcher {
  display: none;
}

.assistant-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.assistant-header strong {
  display: block;
  line-height: 1.2;
}

.assistant-header span {
  color: var(--ink-soft);
  font-size: 12px;
}

.assistant-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.assistant-body {
  padding: 14px;
}

.assistant-message {
  margin: 0 0 12px;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-replies button,
.quick-replies a {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.quick-replies a {
  display: inline-flex;
  align-items: center;
}

.quick-replies .line-reply {
  border-color: var(--line-dark);
  background: var(--line);
}

.quick-replies .email-reply {
  border-color: #9fa8a2;
  background: #f2f4f1;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 52px 0 58px;
    background:
      linear-gradient(90deg, rgba(17, 23, 19, 0.9), rgba(17, 23, 19, 0.58)),
      var(--hero-image) var(--hero-position, center) / cover no-repeat;
  }

  .content-grid,
  .decision-grid,
  .grid,
  .topic-link-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-block,
  .split-detail,
  .checklist,
  .prequal-layout {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .proof-card.is-featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 30px 0 34px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .hero-guide {
    width: 100%;
    min-height: 54px;
    margin-bottom: 14px;
  }

  .hero-guide img {
    width: 40px;
    height: 40px;
  }

  .hero .lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-signals {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-signals span {
    min-height: 32px;
    padding: 0 9px;
    font-size: 13px;
  }

  .hero-actions .button,
  .section-actions .button,
  .prequal-actions .button {
    width: 100%;
  }

  .prequal-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .prequal-form,
  .prequal-output {
    padding: 14px;
  }

  .prequal-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prequal-option span {
    width: 100%;
    padding: 0 8px;
    font-size: 14px;
  }

  .hero-actions .button-ghost,
  .micro-trust {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .hero + .band .section {
    padding-top: 88px;
  }

  .content-grid,
  .decision-grid,
  .grid,
  .topic-link-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .proof-card img,
  .proof-card.is-featured img {
    height: 238px;
  }

  .proof-card.is-portrait img {
    height: 360px;
  }

  .assistant-bubble {
    right: 10px;
    bottom: 10px;
    max-width: 54px;
  }

  .assistant-label {
    display: none;
  }

  .assistant-launcher {
    width: 52px;
    min-height: 52px;
    padding: 6px;
  }

  .assistant-launcher .assistant-avatar {
    width: 36px;
    height: 36px;
  }
}
