:root {
  --teal: #69bbc2;
  --teal-soft: #e7f5f6;
  --lavender: #737e87;
  --purple: #8387bf;
  --ink: #132836;
  --muted: #6f7d86;
  --line: #d1d6dc;
  --surface: #f8fafc;
  --white: #ffffff;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 92px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.brand img {
  display: block;
  width: 154px;
  height: auto;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link span {
  color: var(--teal);
}

.intro {
  min-height: 430px;
  padding: 72px max(32px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94), rgba(231, 245, 246, 0.72)),
    var(--teal-soft);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.intro-copy > p:last-child {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.intro-product {
  position: relative;
  width: min(34vw, 390px);
  min-height: 360px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-glow {
  position: absolute;
  inset: 9% 0 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.98) 0 20%, transparent 46%),
    linear-gradient(145deg, rgba(105, 187, 194, 0.36), rgba(131, 135, 191, 0.16));
  filter: blur(2px);
  box-shadow: 0 28px 72px rgba(105, 187, 194, 0.2);
}

.intro-product img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 360px;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(19, 40, 54, 0.17));
}

.product-labels {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.product-labels span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(19, 40, 54, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.finder {
  max-width: 1184px;
  margin: 0 auto;
  padding: 88px 32px 112px;
}

.finder-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.finder h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
}

.result-summary {
  margin: 0 0 4px;
  color: var(--muted);
  white-space: nowrap;
}

.result-summary strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.filters {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.search-field {
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(105, 187, 194, 0.14);
}

.search-field svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--lavender);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search-field input::placeholder {
  color: #9ba6af;
}

.region-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.region-tabs::-webkit-scrollbar {
  display: none;
}

.region-tabs button,
.empty-state button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: 160ms ease;
}

.region-tabs button:hover,
.region-tabs button:focus-visible,
.region-tabs button.is-active {
  border-color: var(--purple);
  color: var(--white);
  background: var(--purple);
  outline: 0;
}

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

.select-row label span {
  display: block;
  margin: 0 0 8px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.select-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

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

.clinic-card {
  min-height: 188px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(19, 40, 54, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.clinic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 187, 194, 0.7);
  box-shadow: 0 18px 42px rgba(19, 40, 54, 0.08);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(105, 187, 194, 0.15);
}

.clinic-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.clinic-name {
  margin: 20px 0 18px;
  font-size: 1.18rem;
  line-height: 1.5;
}

.model-tags {
  display: flex;
  gap: 8px;
}

.card-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
}

.card-link {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: #3d9299;
}

.map-link {
  color: #397f85;
}

.model-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #456c70;
  background: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.model-tag.t6 {
  color: #5f648f;
  background: #eff0fb;
}

.empty-state {
  margin-top: 28px;
  padding: 64px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  background: var(--surface);
}

.empty-state h3 {
  margin: 0;
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  margin-top: 8px;
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

footer {
  padding: 56px max(32px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  color: var(--white);
  background: var(--ink);
}

.footer-brand img {
  width: 136px;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
}

.footer-brand p {
  margin: 16px 0 0;
}

.footer-note {
  max-width: 560px;
  color: #d1d6dc;
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: right;
}

.footer-note p {
  margin: 4px 0;
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr 0.52fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 78px;
    padding: 0 20px;
  }

  .brand img {
    width: 126px;
  }

  .back-link {
    font-size: 0.82rem;
  }

  .intro {
    min-height: auto;
    padding: 56px 24px 60px;
    display: block;
  }

  .intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .intro-copy > p:last-child {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .intro-product {
    width: 100%;
    min-height: 250px;
    margin-top: 30px;
  }

  .product-glow {
    inset: 4% 10% 2%;
  }

  .intro-product img {
    height: 248px;
    max-width: 72%;
  }

  .product-labels {
    right: 8%;
    bottom: 12px;
  }

  .finder {
    padding: 64px 20px 80px;
  }

  .finder-heading {
    display: block;
  }

  .result-summary {
    margin-top: 16px;
  }

  .filters {
    padding: 16px;
    border-radius: 18px;
  }

  .select-row,
  .clinic-grid {
    grid-template-columns: 1fr;
  }

  .clinic-card {
    min-height: 166px;
    padding: 22px;
  }

  footer {
    padding: 48px 24px;
    display: block;
  }

  .footer-note {
    margin-top: 36px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
