:root {
  --ink: #252820;
  --muted: #676b5e;
  --olive: #63670a;
  --olive-deep: #4a4f09;
  --sage: #848c77;
  --warm: #f7f4ec;
  --cream: #fbfaf5;
  --line: #ddd8c8;
  --wood: #d9c6a3;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(65, 62, 45, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(221, 216, 200, 0.8);
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: auto;
  min-height: 54px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand strong {
  color: var(--olive-deep);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--olive-deep);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--olive-deep);
}

.button.secondary {
  color: var(--olive-deep);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
}

.section,
.section-band {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.section-band {
  background: var(--warm);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 54px);
  align-items: start;
  min-height: calc(100vh - 78px);
  padding-top: clamp(56px, 7vw, 86px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -26vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(132, 140, 119, 0.22);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-watermark {
  position: absolute;
  top: clamp(-36px, -4vw, -18px);
  left: 50%;
  z-index: -1;
  width: min(620px, 88vw);
  opacity: 0.18;
  transform: translateX(-50%);
  pointer-events: none;
}

.brand-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(221, 216, 200, 0.88);
  border-radius: 999px;
  color: var(--olive-deep);
  background: rgba(255, 255, 255, 0.58);
}

.brand-line img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-line span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label {
  display: inline-grid;
  gap: 2px;
  margin: 0 0 14px;
  color: var(--olive-deep);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1.35;
}

.section-label span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--olive-deep);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  color: var(--olive-deep);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-actions {
  justify-content: center;
}

.article-hero-image {
  max-width: 920px;
  margin: 40px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.trust-points div {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.trust-points dt {
  color: var(--olive);
  font-size: 13px;
  font-weight: 800;
}

.trust-points dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-links a {
  display: grid;
  gap: 4px;
  min-height: 94px;
  align-content: center;
  padding: 18px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links span {
  color: var(--olive-deep);
  font-size: 18px;
  font-weight: 900;
}

.quick-links strong {
  color: var(--sage);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(221, 216, 200, 0.95);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef1f6 0%, #f7f4ec 100%);
  box-shadow: var(--shadow);
}

.hero-media figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf0f6;
  box-shadow: none;
}

.hero-media figure + figure {
  border-left: 1px solid rgba(221, 216, 200, 0.9);
}

.hero-media figure:nth-child(2) {
  transform: none;
}

.hero-media img {
  width: 100%;
  height: clamp(520px, 58vw, 760px);
  object-fit: cover;
  object-position: center 16%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro-text {
  color: var(--muted);
  font-size: 18px;
}

.clinic-photo {
  width: 100%;
  min-height: 360px;
  max-height: 560px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.clinic-showcase {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 18px;
}

.clinic-showcase article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(65, 62, 45, 0.08);
}

.clinic-showcase img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.clinic-showcase article:first-child img {
  height: 360px;
}

.clinic-showcase div {
  padding: 22px;
}

.clinic-showcase h3 {
  margin-bottom: 8px;
}

.clinic-showcase p {
  margin: 0;
  color: var(--muted);
}

.service-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: -12px auto 34px;
}

.service-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--olive-deep);
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

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

.service-card.featured {
  grid-column: span 1;
}

.service-card,
.article-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.82);
}

.service-card.featured {
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-kicker,
.doctor-role,
.article-grid p {
  display: block;
  margin-bottom: 12px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--olive-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.process-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article,
.news-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.82);
}

.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  background: var(--olive-deep);
}

.process-grid p,
.news-grid p {
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  list-style: none;
}

.news-list li {
  position: relative;
  padding-left: 16px;
}

.news-list li::before {
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

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

.news-grid time {
  display: block;
  margin-bottom: 10px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 900;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.doctor-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(65, 62, 45, 0.08);
}

.doctor-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  background: #f4f1e9;
}

.doctor-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.doctor-content p:last-child {
  color: var(--muted);
}

.schedule-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.schedule-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: center;
}

.schedule-table th,
.schedule-table td {
  min-width: 96px;
  height: 94px;
  border: 1px solid var(--line);
  padding: 12px;
  font-weight: 800;
}

.schedule-table thead th {
  height: 62px;
  color: var(--white);
  background: #6b604c;
}

.schedule-table thead th:first-child {
  color: var(--ink);
  background: var(--white);
}

.schedule-table tbody th {
  width: 180px;
  color: var(--ink);
  background: #eef0e6;
}

.schedule-table tbody th span {
  display: block;
  color: var(--olive);
  font-size: 15px;
}

.schedule-table td {
  color: #1e315d;
  font-size: 18px;
  background: var(--white);
}

.schedule-table td:empty::after {
  color: var(--sage);
  content: " ";
}

.schedule-table .closed {
  color: var(--ink);
  font-size: 30px;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

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

.article-grid article {
  min-height: 180px;
}

.article-grid h3 {
  margin-bottom: 0;
}

.article-link {
  display: grid;
  gap: 10px;
  height: 100%;
}

.article-link span {
  margin-top: auto;
  color: var(--olive-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-body {
  max-width: 880px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.article-body h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--olive-deep);
  font-size: 22px;
}

.article-body ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink);
}

.article-body a {
  color: var(--olive-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-callout {
  margin: 36px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(65, 62, 45, 0.1);
}

.article-callout h3 {
  margin-top: 0;
}

.article-callout .button {
  margin-top: 8px;
  color: var(--white);
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(420px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: stretch;
}

.contact-lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

address {
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
}

address a,
.social-links a {
  color: var(--olive-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--olive-deep);
  font-weight: 800;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-copy {
  justify-self: end;
  text-align: right;
}

.footer-copy p {
  margin: 0;
}

.footer-copy small {
  display: block;
  margin-top: 4px;
  color: var(--sage);
  font-size: 12px;
}

.mobile-line {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--olive-deep);
  }

  .site-header.is-open {
    grid-template-columns: 1fr auto;
  }

  .site-header.is-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 6px;
    padding-top: 10px;
  }

  .hero,
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .service-grid,
  .process-grid,
  .news-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }

  .brand {
    min-height: 48px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    gap: 0;
  }

  .hero-media img {
    height: 420px;
  }

  .article-hero-image img {
    aspect-ratio: 4 / 3;
  }

  .trust-points,
  .quick-links,
  .clinic-showcase,
  .service-grid,
  .process-grid,
  .news-grid,
  .doctor-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card img {
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  .mobile-line {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 30;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    background: var(--olive-deep);
    box-shadow: 0 12px 34px rgba(45, 48, 22, 0.22);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .section,
  .section-band {
    padding-inline: 16px;
  }

  .hero-media img {
    height: 330px;
  }

  .button {
    width: 100%;
  }

  .clinic-photo,
  iframe {
    min-height: 300px;
  }
}
