:root {
  color-scheme: light;
  --bg: #f5f8f6;
  --panel: #fff;
  --ink: #17211b;
  --muted: #5d6962;
  --line: #d8e1db;
  --line-strong: #9eaaa2;
  --charcoal: #17211b;
  --brand: #235342;
  --brand-strong: #0d3026;
  --brand-soft: #e8f0ea;
  --accent: #235342;
  --accent-soft: #e8f0ea;
  --warning: #a16207;
  --warning-soft: #fff7df;
  --display-font: "Iowan Old Style", Baskerville, "Times New Roman", "Noto Serif TC", "Songti TC", serif;
  --body-font: "PingFang TC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(35, 83, 66, .35);
  outline-offset: 2px;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--panel);
}

.hero {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brand-strong);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 48, 38, 0) 24%, rgba(13, 48, 38, .9) 68%, var(--brand-strong) 88%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 86px 17px 26px;
}

body[data-current-route="home"] .hero {
  min-height: 440px;
}

body[data-current-route="home"] .hero-content {
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d7e3dc;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--body-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.ui-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  color: var(--brand);
}

.title-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.title-with-icon .ui-icon {
  margin-top: .12em;
}

body[data-current-route="home"] .hero h1 {
  max-width: 11ch;
  font-size: 34px;
}

.hero-copy {
  max-width: 30rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  background: rgba(247, 249, 252, .96);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}

.nav-chip,
.lang-chip {
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 8px 4px 5px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-chip.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.lang-chip {
  min-width: 52px;
  border-right: 0;
  border-left: 1px solid var(--line);
  border-bottom-color: var(--brand);
  background: #fff;
  color: var(--ink);
}

.app {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px 17px 56px;
  scroll-margin-top: 57px;
}

.section {
  display: grid;
  gap: 20px;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.action-card,
.info-card,
.result-card,
.form-card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.action-card {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 96px;
  padding: 17px 46px 17px 16px;
  background: var(--panel);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.action-card::after,
.faq-topic-card::after {
  content: "→";
  align-self: center;
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
}

.action-card strong {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.action-card span {
  color: var(--muted);
  font-size: 14px;
}

.faq-topic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 8px;
  width: 100%;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 14px;
  background: var(--panel);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-topic-card span {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  font-size: 18px;
  line-height: 1.35;
}

.faq-topic-card .topic-icon {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.faq-topic-card strong {
  grid-column: 2;
  grid-row: 1;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-topic-card small {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.faq-topic-card::after {
  grid-column: 3;
  grid-row: 1 / 3;
}

.action-card.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.action-card.primary::after {
  color: var(--accent);
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.info-card,
.form-card,
.result-card {
  padding: 20px;
}

.info-card {
  background: var(--bg);
}

.result-card {
  border-top: 3px solid var(--brand);
}

.form-card {
  border-top: 3px solid var(--brand);
  background: var(--bg);
}

.info-card p,
.result-card p {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.back-button,
.secondary-button,
.primary-button {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button {
  background: #fff;
  color: var(--ink);
}

.back-button {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--brand);
  padding: 8px 0 5px;
  background: transparent;
  color: var(--brand-strong);
}

.primary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.action-card:active,
.faq-topic-card:active,
.primary-button:active {
  border-color: var(--brand);
  background: var(--brand-strong);
  color: #fff;
}

.action-card:active strong,
.action-card:active span,
.faq-topic-card:active strong,
.faq-topic-card:active small,
.faq-topic-card:active::after {
  color: #fff;
}

.action-card:active .ui-icon,
.faq-topic-card:active .ui-icon,
.primary-button .ui-icon {
  color: #fff;
}

.button-row {
  display: grid;
  gap: 10px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--brand);
  border-radius: 0;
  padding: 5px 9px;
  background: transparent;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.image-slot {
  position: relative;
  display: grid;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.image-slot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-slot figcaption {
  display: grid;
  gap: 4px;
  padding: 15px 16px 17px;
  background: var(--brand-soft);
  color: var(--ink);
}

.image-slot strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.image-slot span {
  font-size: 14px;
}

.image-slot.is-missing {
  grid-template-rows: minmax(180px, 1fr) auto;
}

.image-slot.is-missing::before {
  content: "UNIVET";
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 400;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-disclosure > summary {
  padding-inline: 16px 48px;
  background: var(--brand-soft);
  color: var(--ink);
}

.product-disclosure > .product-gallery {
  padding: 16px;
  color: inherit;
}

.product-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card-media {
  display: grid;
  aspect-ratio: 3 / 2;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card figcaption {
  display: grid;
  gap: 5px;
  padding: 14px 15px 16px;
  background: var(--brand-soft);
}

.product-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.product-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-card-media.is-missing::before {
  content: "UNIVET";
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 24px;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0;
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--muted);
}

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

details {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.grid > details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  list-style: none;
  min-height: 54px;
  padding: 17px 44px 17px 0;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

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

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 24px;
  font-weight: 400;
}

details[open] > summary::after {
  content: "−";
}

details > div {
  padding: 2px 0 20px;
  color: var(--muted);
  line-height: 1.78;
}

.faq-table {
  width: 100%;
  margin: 2px 0 14px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.faq-table th,
.faq-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.faq-table thead th {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
}

.faq-table tbody th {
  font-weight: 600;
}

.faq-table td {
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
}

.faq-table--2 {
  table-layout: fixed;
}

.faq-table--2 th,
.faq-table--2 td {
  overflow-wrap: break-word;
  white-space: normal;
}

.faq-table--2 th:first-child {
  width: 38%;
}

.faq-table--3 {
  table-layout: fixed;
  font-size: 13px;
}

.faq-table--3 th,
.faq-table--3 td {
  padding: 10px 7px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.faq-table--3 th:first-child {
  width: 27%;
}

.faq-note {
  margin: 0;
}

.product-disclosure {
  border: 1px solid var(--line);
}

.product-disclosure > summary::after {
  right: 16px;
  color: var(--brand);
}

.faq-category {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

fieldset {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 8px;
}

.radio-card {
  display: flex;
  gap: 10px;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.radio-card input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--brand);
}

.radio-card.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-notice {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.notice {
  border: 1px solid var(--brand);
  border-radius: 0;
  padding: 16px;
  background: var(--accent-soft);
  color: var(--brand-strong);
}

.warn {
  border-color: #f0d48b;
  background: var(--warning-soft);
  color: var(--warning);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

@media (hover: hover) {
  .action-card:hover,
  .faq-topic-card:hover,
  .secondary-button:hover {
    border-color: var(--brand);
    background: var(--bg);
  }

  .primary-button:hover {
    background: var(--charcoal);
  }
}

@media (min-width: 680px) {
  .hero-media {
    object-position: 50% 20%;
  }

  .hero {
    min-height: 280px;
  }

  body[data-current-route="home"] .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 110px 34px 36px;
  }

  body[data-current-route="home"] .hero h1 {
    max-width: 760px;
    font-size: 46px;
  }

  .app {
    width: min(100%, 960px);
    padding: 44px 34px 72px;
  }

  .grid.two,
  .choice-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-card {
    min-height: 112px;
    padding: 20px 50px 20px 20px;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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