:root {
  --ink: #1f2328;
  --muted: #656d76;
  --line: #d8dee4;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --teal: #2f73c8;
  --teal-dark: #1f5faa;
  --gold: #2f73c8;
  --coral: #2f73c8;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(31, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 222, 228, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #3f454d;
  font-size: 15px;
}

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

.nav-cta {
  padding: 9px 16px !important;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px) 42px;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.82) 0%, rgba(10, 14, 20, 0.56) 45%, rgba(10, 14, 20, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 14, 20, 0.58) 0%, rgba(10, 14, 20, 0) 34%);
}

.hero-content {
  max-width: 760px;
  color: var(--white);
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.social-row,
.contact-actions,
.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost.dark {
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 48px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.trust-strip div {
  padding: 18px 18px 0 0;
}

.trust-strip dt {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.trust-strip dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

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

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.two-col,
.doctor-layout,
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.case-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.case-feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 84, 120, 0.28);
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.11);
}

.case-feature-card img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #f6f8fa;
}

.case-feature-copy {
  padding: 24px;
}

.case-feature-copy h3 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.case-feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

.case-badge {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: var(--mist);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro p:last-child {
  color: #3f454d;
  font-size: 19px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
}

.service-card.wide {
  grid-column: span 2;
}

.service-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-link:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 115, 200, 0.42);
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.13);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card div {
  padding: 22px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card p,
.doctor p,
.case-copy p,
.contact p {
  color: var(--muted);
}

.doctor-photo {
  width: min(430px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 18px 0 0;
  margin: 20px 0 0;
  color: #3f454d;
  border-top: 1px solid var(--line);
  list-style: none;
}

.credential-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.55;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

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

.before-after figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.before-after img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.before-after figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(31, 35, 40, 0.82);
  border-radius: 8px;
  font-weight: 800;
}

.note {
  padding-left: 16px;
  border-left: 4px solid var(--coral);
}

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

.video-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
}

.video-card-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1f2328;
}

.video-card-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card span {
  display: block;
  padding: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  color: var(--white);
  background: linear-gradient(135deg, #1f2328, #2d333b 54%, var(--teal-dark));
  border-radius: 8px;
}

.contact-panel .eyebrow,
.contact-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #f6f8fa;
  background: #1f2328;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--mist);
}

.article-hero-image {
  overflow: hidden;
  max-width: 560px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

.article-hero-image-full {
  background: #f6f8fa;
}

.article-hero-image-full img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6f8fa;
}

.article-hero-copy {
  max-width: 680px;
}

.article-hero-copy h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 78px);
}

.article-hero-copy p:last-child {
  color: var(--muted);
  font-size: 20px;
}

.article-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  color: #2d333b;
  font-size: 19px;
}

.article-body p {
  margin-bottom: 26px;
}

.article-body h2 {
  margin: 42px 0 16px;
  font-size: clamp(26px, 3vw, 38px);
}

.article-list {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  margin: 0 0 28px;
  color: var(--muted);
}

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

.comparison-table-wrap {
  overflow-x: auto;
  margin: 26px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  width: 50%;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 900;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 42px;
}

.case-story-grid figure {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
}

.case-story-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.case-story-grid figcaption {
  padding: 12px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.feature-image,
.article-gallery figure {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.07);
}

.feature-image {
  margin-bottom: 42px;
}

.feature-image img,
.article-gallery img {
  width: 100%;
  object-fit: cover;
}

.feature-image img {
  aspect-ratio: 5 / 2;
}

.feature-image.clinical-feature img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6f8fa;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 42px;
}

.article-gallery figure:nth-child(3) {
  grid-column: span 2;
}

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

.clinical-gallery img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6f8fa;
}

.clinical-gallery figure:nth-child(5),
.clinical-gallery figure:nth-child(6) {
  grid-column: span 2;
}

.article-gallery figcaption {
  padding: 12px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 42px 0 28px;
}

.hashtag-cloud a,
.article-contact a {
  color: var(--teal-dark);
  font-weight: 800;
}

.hashtag-cloud a {
  padding: 7px 11px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}

.article-contact {
  padding: 24px;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-contact p:last-child {
  margin-bottom: 0;
}

.shorts-embed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-top: 34px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shorts-embed h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.shorts-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1f2328;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shorts-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.wide-video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f2328;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wide-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-strip {
  grid-template-columns: 1fr;
}

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

.multi-shorts.two-shorts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .doctor-layout,
  .case-layout,
  .case-feature-card,
  .contact-panel,
  .article-hero,
  .shorts-embed {
    grid-template-columns: 1fr;
  }

  .shorts-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding-top: 48px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(10, 14, 20, 0.88) 0%, rgba(10, 14, 20, 0.58) 72%, rgba(10, 14, 20, 0.28) 100%);
  }

  .trust-strip,
  .video-grid,
  .before-after,
  .case-story-grid,
  .article-gallery,
  .multi-shorts,
  .case-feature-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .article-gallery figure:nth-child(3) {
    grid-column: auto;
  }

  .button {
    width: 100%;
  }

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

  .article-hero {
    padding-top: 30px;
  }

  .article-body {
    font-size: 17px;
  }
}
