:root {
  --ink: #202b27;
  --muted: #65736d;
  --line: #deded5;
  --paper: #fbfaf5;
  --surface: #f1f3ec;
  --surface-deep: #e6ebe2;
  --sage: #738671;
  --sage-dark: #33483f;
  --gold: #b79a63;
  --gold-soft: #e7dcc6;
  --clay: #b9795f;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(32, 43, 39, .13);
  --shadow-soft: 0 14px 44px rgba(32, 43, 39, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 42%, #f4f5ef 100%);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 72, 63, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 72, 63, .03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 72%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 58px);
  background: rgba(251, 250, 245, .88);
  border-bottom: 1px solid rgba(222, 222, 213, .88);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

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

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

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 10px 22px rgba(51, 72, 63, .08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, #30443c, #496157);
}

.button.secondary {
  color: var(--sage-dark);
  background: rgba(255, 255, 255, .54);
  border-color: rgba(51, 72, 63, .34);
  box-shadow: none;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(51, 72, 63, .14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(58px, 8vw, 108px) clamp(20px, 6vw, 88px) clamp(76px, 8vw, 118px);
  background:
    linear-gradient(115deg, rgba(255, 253, 248, .96) 0%, rgba(248, 247, 240, .9) 54%, rgba(231, 235, 226, .92) 100%);
  border-bottom: 1px solid rgba(222, 222, 213, .8);
}

.hero-copy {
  max-width: 850px;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 5.7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(183, 154, 99, .34);
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(231, 220, 198, .34));
}

.hero-media::after {
  content: "Liao TCM";
  position: absolute;
  right: 26px;
  bottom: 20px;
  color: rgba(51, 72, 63, .5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .16em;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 4px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  width: min(1040px, calc(100% - 40px));
  margin: -26px auto 0;
  padding: 15px 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(222, 222, 213, .9);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(32, 43, 39, .06);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 650;
}

.trust-strip span {
  position: relative;
}

.trust-strip span + span::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.section {
  padding: clamp(70px, 8vw, 118px) clamp(20px, 6vw, 88px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.intro-section {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: clamp(84px, 9vw, 130px);
  text-align: center;
}

.section h2,
.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.section-image,
.portrait-card {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.section-heading {
  margin-bottom: 28px;
}

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

.service-card {
  position: relative;
  min-height: 306px;
  padding: 28px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(222, 222, 213, .95);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--gold);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(183, 154, 99, .48);
}

.service-card span,
.detail-number {
  color: var(--gold);
  font-weight: 800;
}

.service-card h3,
.featured-article h3,
.article-body h2,
.article-body h3 {
  margin: 12px 0;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-preview,
.credentials {
  background: linear-gradient(180deg, var(--surface) 0%, #eef1e9 100%);
  border-top: 1px solid rgba(222, 222, 213, .84);
  border-bottom: 1px solid rgba(222, 222, 213, .84);
}

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

.featured-article {
  display: block;
  min-height: 260px;
  padding: clamp(28px, 4vw, 42px);
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(222, 222, 213, .95);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.featured-article:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 154, 99, .5);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--sage-dark);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  color: var(--sage-dark);
  font-weight: 800;
  white-space: nowrap;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0 auto clamp(70px, 8vw, 118px);
  width: min(1120px, calc(100% - 40px));
  padding: clamp(32px, 5vw, 54px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(51, 72, 63, .98), rgba(66, 87, 78, .96)),
    linear-gradient(90deg, rgba(183, 154, 99, .28), transparent);
  border: 1px solid rgba(231, 220, 198, .24);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.cta-band .eyebrow,
.cta-band p {
  color: rgba(255, 255, 255, .78);
}

.cta-band .button.primary {
  color: var(--sage-dark);
  background: var(--white);
}

.page-hero {
  padding: clamp(56px, 8vw, 118px) clamp(20px, 6vw, 88px) clamp(42px, 6vw, 78px);
  background: linear-gradient(135deg, #fffdf8, var(--surface));
  border-bottom: 1px solid rgba(222, 222, 213, .84);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

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

.service-detail {
  display: grid;
  grid-template-columns: 80px minmax(0, 850px);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-number {
  font-size: 28px;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) 20px;
}

.article-hub {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 860px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.article-menu {
  position: sticky;
  top: 104px;
  padding: 24px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.article-menu h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.article-menu nav {
  display: grid;
  gap: 8px;
}

.article-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.article-menu a:hover,
.article-menu a.active {
  color: var(--sage-dark);
  border-color: rgba(183, 154, 99, .38);
  background: rgba(231, 220, 198, .28);
}

.article-body-in-hub {
  margin: 0;
  padding: 0;
}

.article-body h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
}

.article-note {
  margin-top: 34px;
  padding: 18px 20px;
  color: var(--sage-dark);
  background: rgba(231, 220, 198, .34);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

.article-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 42px;
}

.article-image-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.topic-grid,
.appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.topic-grid div,
.info-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mentions-section {
  background: linear-gradient(180deg, #fbfaf5 0%, #f2f4ee 100%);
}

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

.mention-card {
  min-height: 210px;
  padding: 22px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(222, 222, 213, .95);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mention-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 154, 99, .5);
  box-shadow: var(--shadow);
}

.mention-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mention-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.mention-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.info-list {
  margin: 0;
}

.info-list div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

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

.info-list dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.schedule-table th {
  background: var(--surface);
}

.schedule-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.weekly-schedule {
  min-width: 820px;
  margin-top: 0;
}

.weekly-schedule th,
.weekly-schedule td {
  text-align: center;
  vertical-align: middle;
}

.weekly-schedule tbody th {
  min-width: 140px;
  color: var(--ink);
  font-weight: 700;
  background: #fbfaf5;
}

.weekly-schedule strong {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
}

.clinic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  color: var(--sage-dark);
  font-weight: 800;
  border-radius: 999px;
  background: rgba(183, 154, 99, .22);
}

.weekly-schedule .closed {
  color: var(--white);
  font-weight: 800;
  background: var(--clay);
  writing-mode: vertical-rl;
  letter-spacing: .18em;
}

.schedule-note {
  margin-top: 14px;
  color: var(--sage-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, .78);
  background: #26332e;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.social-follow p {
  flex-basis: 100%;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.social-follow a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  color: var(--sage-dark);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(51, 72, 63, .28);
  border-radius: 4px;
  font-weight: 700;
}

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

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .site-nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .split,
  .article-hub,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .article-menu {
    position: static;
  }

  .article-menu nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .article-menu a {
    flex: 0 0 auto;
    max-width: 230px;
    scroll-snap-align: start;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 520px;
  }

  .service-grid,
  .check-list,
  .topic-grid,
  .mention-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 15px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 17px;
  }

  .service-grid,
  .check-list,
  .topic-grid,
  .mention-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    justify-content: flex-start;
    margin-top: -18px;
    border-radius: 6px;
  }

  .trust-strip span + span::before {
    display: none;
  }

  .article-image-grid {
    grid-template-columns: 1fr;
  }

  .article-hub {
    padding-top: 46px;
  }

  .article-menu {
    padding: 18px;
  }

  .featured-article,
  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
