:root {
  --ink: #173047;
  --muted: #51697a;
  --teal: #167783;
  --teal-dark: #0f5f69;
  --teal-soft: #e5f4f3;
  --blue-soft: #eef6f8;
  --lavender: #eeeaf8;
  --lavender-ink: #665d82;
  --paper: #f7f9fa;
  --surface: #ffffff;
  --line: #d8e4e8;
  --focus: #0a6c78;
  --danger: #a33d48;
  --shadow: 0 24px 60px rgba(27, 66, 79, .12);
  --radius-card: 16px;
  --radius-field: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
h1,
h2,
h3,
.form-section legend {
  font-family: "Noto Serif TC", "PMingLiU", "新細明體", serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.nav-shell { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; white-space: nowrap; }
.nav-links a { text-decoration: none; color: #2f485b; font-size: .94rem; font-weight: 650; }
.nav-links a:hover { color: var(--teal); }
.nav-links .nav-cta { padding: 9px 17px; color: #fff; background: var(--teal); border-radius: 999px; }
.menu-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; }

.hero { overflow: hidden; background: linear-gradient(135deg, #f3f7f8 0%, #e8f3f4 58%, #f0edf8 100%); }
.hero-grid { min-height: 470px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: stretch; }
.hero-copy { align-self: center; padding: 64px 56px 64px 0; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-page .eyebrow { font-size: 1.17rem; }
.diagnostic-page .eyebrow { font-size: 1.17rem; }
.hero h1 { max-width: 10ch; margin: 0; font-size: clamp(2.45rem, 4.6vw, 4.4rem); line-height: 1.12; letter-spacing: -.04em; }
.hero .lead { max-width: 28rem; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-media { min-height: 470px; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(233,243,244,.92), transparent 34%); pointer-events: none; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; color: #345568; font-weight: 700; font-size: .92rem; }

.section { padding: 72px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.025em; }
.section-lead { max-width: 62ch; margin: 0 0 28px; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: minmax(250px, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.contact-aside { position: sticky; top: 28px; }
.contact-aside h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; }
.contact-aside > p { margin: 0 0 28px; color: var(--muted); }
.contact-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-steps b { display: grid; place-items: center; width: 30px; height: 30px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 50%; }
.contact-steps strong, .contact-steps span { display: block; }
.contact-steps span { margin-top: 2px; color: var(--muted); font-size: .92rem; }
.support-image { margin-top: 28px; overflow: hidden; border-radius: var(--radius-card); }
.support-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.form-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 46px); }
.form-note { margin: 0 0 28px; padding: 13px 16px; color: #35586a; background: var(--blue-soft); border-radius: 10px; }
.form-section + .form-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section h2, .form-section legend { margin: 0 0 18px; padding: 0; color: var(--ink); font-size: 1.28rem; font-weight: 800; }
fieldset.form-section { border: 0; padding-inline: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { display: block; margin-bottom: 7px; color: #263f52; font-weight: 750; }
.optional { color: var(--muted); font-size: .87rem; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #9eb3bd; border-radius: var(--radius-field); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #718793; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(10,108,120,.35); outline-offset: 3px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: #29485a; background: #f8fafb; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:has(input:checked) { color: var(--teal-dark); background: var(--teal-soft); border-color: #75b6bb; }
.option input { width: 20px; height: 20px; accent-color: var(--teal); flex: 0 0 auto; }
.privacy { margin-top: 30px; padding: 0 18px; background: #f6f8f9; border: 1px solid var(--line); border-radius: 12px; }
.privacy summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 800; }
.privacy summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; }
.privacy[open] summary::after { content: "-"; }
.privacy-body { padding: 0 0 18px; color: #455e70; font-size: .9rem; }
.privacy-body ol { margin: 8px 0; padding-left: 1.35rem; }
.privacy-body li { margin: 7px 0; }
.consent { min-height: 48px; display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; font-weight: 700; }
.consent input { width: 21px; height: 21px; margin-top: 4px; accent-color: var(--teal); flex: 0 0 auto; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border: 1px solid var(--teal); border-radius: 999px; color: #fff; background: var(--teal); font-weight: 800; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--teal-dark); }
.button:active { transform: translateY(1px); }
.button.secondary { color: var(--teal-dark); background: #fff; }
.button:disabled { color: #617782; background: #dce5e8; border-color: #dce5e8; cursor: not-allowed; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.form-status { min-height: 1.7em; margin: 0; color: var(--teal-dark); font-weight: 700; }

.progress-rail { position: sticky; top: 0; z-index: 15; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.progress-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.progress-copy { color: #355668; }
.progress-copy strong { color: var(--teal-dark); font-size: 1.12rem; }
.diagnostic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.diagnostic-intro { padding-bottom: 22px; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.category { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.category:nth-child(2), .category:nth-child(5) { transform: translateY(22px); }
.category summary, .category-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: linear-gradient(90deg, var(--teal-soft), #f4f8f9); font-size: 1.12rem; font-weight: 850; list-style: none; }
.category summary { cursor: pointer; }
.category summary::-webkit-details-marker { display: none; }
.category summary::after { content: "+"; color: var(--teal); font-size: 1.35rem; }
.category[open] summary::after { content: "-"; }
.category small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.situation-list { margin: 0; padding: 14px; list-style: none; }
.situation-list li + li { margin-top: 7px; }
.situation { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 10px; cursor: pointer; }
.situation:hover { background: #f4f8f9; }
.situation:has(input:checked) { color: var(--teal-dark); background: var(--teal-soft); font-weight: 750; }
.situation input { width: 21px; height: 21px; accent-color: var(--teal); flex: 0 0 auto; }
.result-section {
  scroll-margin-top: 82px;
  border-top: 1px solid #b7d6d6;
  border-bottom: 1px solid #c6dcdf;
  background: linear-gradient(135deg, #e5f2f1 0%, #edf6f5 50%, #e4eff2 100%);
}
.result-section .section-title { color: #173f4a; }
.result-section .section-lead { color: #4f6e74; }
.result-empty { padding: 30px; color: #4f6e74; text-align: center; background: rgba(255,255,255,.74); border: 1px dashed #77aeb1; border-radius: var(--radius-card); }
.result-summary { display: none; }
.result-summary.visible { display: block; }
.result-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card { padding: 21px; background: rgba(255,255,255,.94); border: 1px solid #c8dfe0; border-left: 5px solid #2f8790; border-radius: 0 var(--radius-card) var(--radius-card) 0; box-shadow: 0 14px 36px rgba(29,87,94,.1); }
.result-card h3 { margin: 0 0 7px; color: #173f4a; font-size: 1.08rem; }
.result-card p { margin: 0 0 10px; color: #4f6e74; font-size: .92rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 4px 10px; color: #185f66; background: #dcefee; border: 1px solid #b9d9d7; border-radius: 999px; font-size: .86rem; font-weight: 750; }
.followup { margin-top: 28px; padding: clamp(24px, 4vw, 38px); background: #dff0ed; border: 1px solid #aed0cd; border-radius: var(--radius-card); box-shadow: 0 14px 36px rgba(29,87,94,.08); }
.followup h2 { margin: 0 0 6px; }
.followup > p { margin: 0 0 24px; color: #45676b; }
.disclaimer { margin: 24px 0 0; color: #4f6e74; font-size: .9rem; }

.site-footer { margin-top: 20px; padding: 48px 0; color: #d9e8ec; background: #183648; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer p { color: #bfd2d8; }
.footer-links { display: grid; gap: 8px; margin-top: 12px; }
.footer-links a { color: #d9e8ec; text-decoration: none; }

.direction-b { --teal-soft: #eaeff3; --blue-soft: #f0eef8; }
.direction-b .hero { background: #f8f8fb; border-bottom: 1px solid var(--line); }
.direction-b .hero-grid { min-height: 405px; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); }
.direction-b .hero-copy { padding-block: 52px; }
.direction-b .hero-media { min-height: 405px; margin: 34px 0; overflow: hidden; border-radius: var(--radius-card); }
.direction-b .hero-media::after { background: linear-gradient(135deg, rgba(238,234,248,.55), transparent 55%); }
.direction-b .form-shell { box-shadow: none; }
.direction-b.contact-page .contact-layout { display: block; max-width: 850px; margin-inline: auto; }
.direction-b.contact-page .contact-aside { position: static; display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; margin-bottom: 30px; padding: 26px; background: var(--lavender); border-radius: var(--radius-card); }
.direction-b.contact-page .contact-aside > div > p { color: var(--lavender-ink); }
.direction-b.contact-page .support-image { margin: 0; }
.direction-b.contact-page .support-image img { aspect-ratio: 16 / 10; }
.direction-b.diagnostic-page .category-grid { display: block; max-width: 920px; margin-inline: auto; }
.direction-b.diagnostic-page .category { margin-bottom: 13px; }
.direction-b.diagnostic-page .category:nth-child(2), .direction-b.diagnostic-page .category:nth-child(5) { transform: none; }
.direction-b.diagnostic-page .category summary { background: linear-gradient(90deg, #f0eef8, #f8fafb); }

@media (max-width: 980px) {
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .85rem; }
  .contact-layout { gap: 34px; }
}

@media (max-width: 800px) {
  .wrap, .nav-shell { width: min(100% - 28px, 1180px); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 72px; left: 14px; right: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; padding: 6px 10px; font-size: 1rem; }
  .hero-grid, .direction-b .hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy, .direction-b .hero-copy { padding: 46px 0 34px; }
  .hero-media, .direction-b .hero-media { min-height: 260px; margin: 0; border-radius: 0; }
  .hero h1 { max-width: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(234,244,244,.7), transparent 38%); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; order: 2; }
  .form-shell { order: 1; }
  .category-grid { grid-template-columns: 1fr; }
  .category:nth-child(2), .category:nth-child(5) { transform: none; }
  .result-list { grid-template-columns: 1fr; }
  .direction-b.contact-page .contact-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero h1 { font-size: 2.45rem; }
  .form-shell { padding: 22px 18px; }
  .form-grid, .option-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .progress-inner { align-items: stretch; flex-direction: column; padding-block: 10px; }
  .progress-inner .button { width: 100%; }
  .diagnostic-actions { align-items: stretch; flex-direction: column; }
  .diagnostic-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}



/* draft.v3: Hero 圖片向左重疊並以同色漸層銜接，消除雙欄中央直向接縫 */
.image-refresh-v3 .hero-copy { position: relative; z-index: 2; }
.image-refresh-v3 .hero-media {
  margin-left: -96px;
  width: calc(100% + 96px);
}
.image-refresh-v3 .hero-media img { object-position: center 58%; }
.image-refresh-v3 .hero-media::after {
  left: 0;
  background: linear-gradient(
    90deg,
    #e8f3f4 0%,
    rgba(232, 243, 244, .96) 18%,
    rgba(232, 243, 244, .72) 38%,
    rgba(232, 243, 244, .28) 58%,
    transparent 76%
  );
}
.image-refresh-v3 .support-image img { object-position: center; }
.image-order-v4 .contact-aside > .support-image:first-child { margin: 0 0 28px; }
.diagnostic-consult-layout .contact-layout { grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr); }
.diagnostic-consult-layout .category-grid { grid-template-columns: 1fr; gap: 14px; }
.diagnostic-consult-layout .category:nth-child(2),
.diagnostic-consult-layout .category:nth-child(5) { transform: none; }
.diagnostic-consult-layout .category summary { background: linear-gradient(90deg, var(--teal-soft), #f7fafb); }
.diagnostic-consult-layout .diagnostic-aside-note { margin-top: 20px; padding: 16px; color: #35586a; background: var(--blue-soft); border-radius: 12px; }
@media (max-width: 800px) {
  .image-refresh-v3 .hero-media {
    margin-left: 0;
    width: auto;
  }
  .image-refresh-v3 .hero-media::after {
    background: linear-gradient(180deg, #e8f3f4 0%, rgba(232, 243, 244, .68) 18%, transparent 42%);
  }
  .diagnostic-consult-layout .contact-layout {
    grid-template-columns: 1fr;
  }
  .diagnostic-consult-layout .contact-aside,
  .diagnostic-consult-layout .form-shell {
    min-width: 0;
  }
  .diagnostic-consult-layout .contact-aside { order: 1; }
  .diagnostic-consult-layout .form-shell { order: 2; }
}

/* draft.v5: 寬幅圖片覆蓋整個 Hero，文案疊於生成圖片預留的左側空間 */
.hero-fullbleed-v5 .hero {
  position: relative;
  isolation: isolate;
  background: #eef4f4;
}
.hero-fullbleed-v5 .hero-grid {
  min-height: 540px;
  display: block;
}
.hero-fullbleed-v5 .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 600px);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 42px 72px 0;
}
.hero-fullbleed-v5 .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 0;
  margin: 0;
}
.hero-fullbleed-v5 .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-fullbleed-v5 .hero-media::after {
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 249, 250, .86) 0%,
    rgba(247, 249, 250, .66) 30%,
    rgba(247, 249, 250, .20) 50%,
    transparent 68%
  );
}

@media (max-width: 800px) {
  .hero-fullbleed-v5 .hero-grid,
  .hero-fullbleed-v5 .hero-copy {
    min-height: 620px;
  }
  .hero-fullbleed-v5 .hero-copy {
    width: 100%;
    justify-content: flex-start;
    padding: 46px 0 300px;
  }
  .hero-fullbleed-v5 .hero-media {
    min-height: 100%;
    width: 100%;
  }
  .hero-fullbleed-v5 .hero-media img {
    object-position: 68% center;
  }
  .hero-fullbleed-v5 .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(247, 249, 250, .98) 0%,
      rgba(247, 249, 250, .92) 42%,
      rgba(247, 249, 250, .42) 62%,
      transparent 78%
    );
  }
}

/* draft.v6: 拉高 Hero 尺度，恢復主視覺的沉浸感與空間張力 */
.hero-impact-v6 .hero-grid,
.hero-impact-v6 .hero-copy {
  min-height: clamp(640px, 72vh, 780px);
}

@media (max-width: 800px) {
  .hero-impact-v6 .hero-grid,
  .hero-impact-v6 .hero-copy {
    min-height: 700px;
  }
  .hero-impact-v6 .hero-copy {
    padding-bottom: 360px;
  }
}
