/* =========================================================
   蘇炯睿醫師 Daniel Su, MD — Design System
   Palette: warm paper + ink + cello-varnish accent
   ========================================================= */

:root {
  /* Surfaces — 沿用原本部落格的暖杏色系（#F6D4BF）
     --paper 是整體底色，--paper-2 是交錯出現的深一階色帶 */
  --paper:      #FDF5EE;
  --paper-2:    #F6D4BF;   /* 原部落格底色 */
  --paper-3:    #EFC5AB;
  --white:      #FFFCF8;

  /* Ink */
  --ink:        #1F1813;
  --ink-2:      #3F342B;
  --muted:      #6A5B4E;
  --muted-2:    #7E6A52;

  /* Accents */
  --accent:     #8A3E2B;   /* cello varnish */
  --accent-2:   #A85333;
  --accent-wash:#FBE8DC;
  --deep:       #3B2C22;   /* warm dark brown */
  --gold:       #9D7040;

  /* Lines */
  --line:       #E7D2C0;
  --line-soft:  #F1E1D4;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
          "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --wrap: 1120px;
  --prose: 46rem;
  --nav-h: 68px;
  --r: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* 全站字級的總開關：改這個數字，整個網站的文字會一起放大或縮小。
   112.5% = 18px 為基準（100% = 16px）。
   想再大一點，改成 118.75%（19px）；想再小一點，改成 106.25%（17px）。 */
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 長網址、email 等不能斷字的字串不會把版面撐爆 */
  overflow-wrap: break-word;
}
/* email 與長連結允許在任何位置斷行，避免撐寬窄螢幕版面 */
.clinic-line dd, .foot li a, .callout a, .acard { overflow-wrap: anywhere; }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.45; letter-spacing: .005em; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
::selection { background: var(--accent-wash); color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 800px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper2 { background: var(--paper-2); }
.section--deep { background: var(--deep); color: #F1E7DB; }
.section--deep a { color: #F2CDB4; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header / Nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 245, 238, .90);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: .06em; }
.brand__en {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 8px;
  font-size: .78rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav__en {
  margin-left: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.nav a.nav__en::after { display: none; }
.nav a.nav__en:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; margin-right: -10px; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  margin: 5px 0; transition: transform .3s ease, opacity .3s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 26px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav a.nav__en { margin: 16px 0 0; text-align: center; border-bottom: 1px solid var(--line); }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after, .eyebrow--center::before { content: ""; width: 44px; flex: none; height: 1px; background: var(--line); }

.h-display {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 4.4vw, 2.95rem);
  line-height: 1.34; font-weight: 600; letter-spacing: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.4; margin-bottom: 1rem;
}
.h-sub {
  font-size: 1.12rem; font-weight: 600; margin: 2.4rem 0 .8rem;
  padding-left: 13px; border-left: 2.5px solid var(--accent);
}
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.95; }

/* 中文句子依語意分句換行：每個 <span> 是一個句讀單位，
   螢幕夠寬時整句放同一行，變窄時才在逗號處斷行，
   不會出現「候。」這種被擠到下一行的孤字。 */
.lines > span { display: inline-block; }
.lines { text-wrap: pretty; }
.small { font-size: .93rem; color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  font-size: .93rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #FFF8F4; }
.btn--primary:hover { background: #73321F; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #FFF; }
.btn--light:hover { background: #FFF; color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

/* ---------- Waveform motif ---------- */
.wave { display: block; width: 100%; height: auto; color: var(--line); }
.wave--accent { color: var(--accent); opacity: .35; }
.divider { margin: 0 auto; max-width: 260px; padding: 40px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60rem 34rem at 78% -12%, rgba(138,62,43,.07), transparent 62%),
    radial-gradient(48rem 30rem at 8% 108%, rgba(34,51,59,.06), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.28fr .82fr; gap: 60px; align-items: center; }
.hero__title { margin-bottom: 22px; }
.hero__title .en {
  display: block; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; font-family: var(--sans); margin-top: 18px;
}
.hero__creds {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px;
  padding: 0; list-style: none;
}
.hero__creds li {
  margin: 0;
  font-size: .78rem; letter-spacing: .04em; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; background: var(--white);
}
.hero__quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem; font-style: italic; line-height: 1.85;
  color: var(--ink-2);
}
.hero__quote footer { margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.hero__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 30px 26px;
  box-shadow: 0 1px 2px rgba(26,24,21,.03), 0 14px 40px -22px rgba(26,24,21,.22);
}
.hero__card h2 {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.clinic-line { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .97rem; }
.clinic-line:last-of-type { border-bottom: 0; }
.clinic-line dt { flex: 0 0 4.6em; color: var(--muted); margin: 0; font-size: .86rem; }
.clinic-line dd { margin: 0; flex: 1; }

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

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--paper); padding: 32px 24px; text-align: center; }
.stat__n {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 10px;
}
.stat__l { font-size: .84rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px 30px;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
a.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -26px rgba(138,62,43,.5);
}
.card__num {
  font-family: var(--serif); font-size: .82rem; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 16px; display: block;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; line-height: 1.5; }
.card p { font-size: 1rem; color: var(--ink-2); line-height: 1.88; margin-bottom: 1em; }
.card__more {
  margin-top: auto; padding-top: 12px;
  font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--accent);
}
.card__more::after { content: " →"; transition: margin .22s ease; display: inline-block; }
a.card:hover .card__more::after { margin-left: 5px; }
@media (max-width: 940px) { .card-grid { grid-template-columns: 1fr; } .card-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Feature list (publications etc.) ---------- */
.feat { border-top: 1px solid var(--line); }
.feat__item { display: grid; grid-template-columns: 3.4rem 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feat__n { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-2); line-height: 1.2; }
.feat__b h3 { font-size: 1.06rem; margin-bottom: 10px; line-height: 1.7; }
.feat__b p { font-size: 1rem; color: var(--ink-2); margin-bottom: .7em; }
.journal {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; letter-spacing: .05em;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(138,62,43,.3); padding-bottom: 1px;
}
.journal:hover { border-bottom-color: var(--accent); }
@media (max-width: 620px) { .feat__item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Prose ---------- */
.prose { max-width: var(--prose); }
.prose h2 { font-family: var(--serif); font-size: 1.55rem; margin: 2.8rem 0 1rem; }
.prose h3 { font-size: 1.12rem; margin: 2.2rem 0 .7rem; padding-left: 13px; border-left: 2.5px solid var(--accent); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 20px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 2px; top: .82em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55;
}
.prose a:not(.btn):not(.journal) { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(138,62,43,.32); }
.prose a:not(.btn):not(.journal):hover { border-bottom-color: var(--accent); }

/* ---------- Symptom panels ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 28px 22px;
}
.panel h3 {
  font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
}
.panel h3 .ico { color: var(--accent); flex: none; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li {
  position: relative; padding-left: 19px; margin-bottom: .5em;
  font-size: .98rem; color: var(--ink-2); line-height: 1.8;
}
.panel li::before {
  content: ""; position: absolute; left: 1px; top: .78em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .5;
}
@media (max-width: 820px) { .panel-grid { grid-template-columns: 1fr; } }

/* ---------- Region / topic blocks ---------- */
.region { border-top: 1px solid var(--line); padding: 34px 0; }
.region:last-child { border-bottom: 1px solid var(--line); }
.region__head { display: grid; grid-template-columns: 2.6rem 1fr; gap: 20px; align-items: start; }
.region__n { font-family: var(--serif); color: var(--accent-2); font-size: 1.25rem; line-height: 1.6; }
.region h3 { font-size: 1.18rem; margin-bottom: 10px; }
.region p { font-size: 1.01rem; color: var(--ink-2); }
.talks {
  margin-top: 16px; padding: 18px 22px;
  background: var(--paper-2); border-radius: var(--r);
  border-left: 2px solid var(--line);
}
.talks__t {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.talks ul { list-style: none; padding: 0; margin: 0; }
.talks li { font-size: .95rem; color: var(--ink-2); margin-bottom: .45em; padding-left: 16px; position: relative; line-height: 1.75; }
.talks li::before { content: "—"; position: absolute; left: 0; color: var(--muted-2); }
@media (max-width: 620px) { .region__head { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-size: 1.01rem; font-weight: 600; color: var(--ink);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .28s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 26px; color: var(--ink-2); font-size: .96rem; line-height: 1.95; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CV ---------- */
.cv { border-top: 1px solid var(--line); }
.cv__row { display: grid; grid-template-columns: 12rem 1fr; gap: 34px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.cv__k { font-family: var(--serif); font-size: 1.14rem; color: var(--ink); }
.cv__k .en { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.cv__v ul { list-style: none; padding: 0; margin: 0; }
.cv__v li { position: relative; padding-left: 18px; margin-bottom: .5em; font-size: 1rem; color: var(--ink-2); line-height: 1.85; }
.cv__v li::before { content: ""; position: absolute; left: 0; top: .82em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .5; }
.cv__v .grp { margin-bottom: 1.4em; }
.cv__v .grp:last-child { margin-bottom: 0; }
.cv__v .grp-t { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; font-weight: 600; }
@media (max-width: 820px) { .cv__row { grid-template-columns: 1fr; gap: 14px; } }

/* Two-column dense list */
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 700px) { .cols-2 { columns: 1; } }

/* ---------- Photography ---------- */
.fig { margin: 0; }
.fig img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r);
  background: var(--paper-3);
}
.fig figcaption {
  margin-top: 12px;
  font-size: .87rem; line-height: 1.75; color: var(--muted);
}
.fig figcaption b { color: var(--ink-2); font-weight: 600; }

/* fixed-ratio crops so mixed portrait/landscape photos line up */
.fig--crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.fig--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.fig--tall img { aspect-ratio: 3 / 4; object-fit: cover; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .photo-grid, .photo-grid--2 { grid-template-columns: 1fr; gap: 28px; }
}

/* image + text side by side */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.split--wide-img { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) {
  .split, .split--wide-img { grid-template-columns: 1fr; gap: 32px; }
}

/* a photo that spans the full band, used as a section opener */
.band-photo { margin-bottom: 48px; }
.band-photo img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; border-radius: var(--r); }
@media (max-width: 700px) { .band-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Numbered step list (masterclass framework) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 16px 0 16px 58px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem; line-height: 1.75;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .95rem;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid rgba(138,62,43,.18);
}
.steps .en {
  display: block; margin-top: 2px;
  font-size: .84rem; letter-spacing: .04em; color: var(--muted-2);
}

/* ---------- Programme lists ---------- */
.program { list-style: none; padding: 0; margin: 0; }
.program li { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
.program li:last-child { border-bottom: 0; }
.program .zh { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* ---------- Article feed ---------- */
.article-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-feed--2 { grid-template-columns: repeat(2, 1fr); }
.article-feed--list { grid-template-columns: 1fr; gap: 0; }

.acard {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.acard:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -26px rgba(138,62,43,.45);
}
.acard__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 13px;
  font-size: .74rem; letter-spacing: .1em; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.acard__tag {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; letter-spacing: .06em; color: var(--muted);
}
.acard__tag--ext { color: var(--accent); border-color: rgba(138,62,43,.28); background: var(--accent-wash); }
.acard h3 {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.65;
  margin-bottom: 10px; color: var(--ink);
}
.acard p { font-size: .95rem; color: var(--muted); line-height: 1.82; margin-bottom: 1em; }
.acard__more {
  margin-top: auto; padding-top: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; color: var(--accent);
}
.acard__more::after { content: " →"; display: inline-block; transition: margin .22s ease; }
.acard:hover .acard__more::after { margin-left: 5px; }

/* list variant — used on the hub page */
.article-feed--list .acard {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 26px 0; background: transparent;
}
.article-feed--list .acard:hover { transform: none; box-shadow: none; border-bottom-color: var(--accent); }
.article-feed--list .acard h3 { font-size: 1.2rem; }

.feed-empty {
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 34px 30px; text-align: center; color: var(--muted); font-size: .99rem;
  background: var(--white);
}

/* category filter */
.filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter button {
  font: inherit; font-size: .9rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  border-radius: 999px; padding: 8px 18px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.filter button:hover { border-color: var(--accent); color: var(--accent); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFF8F4; }

@media (max-width: 940px) { .article-feed, .article-feed--2 { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */
.callout {
  background: var(--accent-wash);
  border: 1px solid rgba(138,62,43,.16);
  border-radius: var(--r);
  padding: 26px 30px;
}
.callout h3 { font-size: 1.02rem; margin-bottom: 10px; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.callout--slate { background: var(--paper-2); border-color: var(--line); }
.callout--slate h3 { color: var(--deep); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(50px, 7vw, 84px) 0 clamp(34px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 2.85rem); line-height: 1.36; margin-bottom: 18px; }
.page-head .en { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.page-head .lede { max-width: 52rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--deep); color: #E3D6C8; padding: 68px 0 34px; margin-top: 0; }
.site-foot a { color: #EFE3D5; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.foot__brand .n { font-family: var(--serif); font-size: 1.3rem; color: #FFF; letter-spacing: .06em; }
.foot__brand .en { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #B09A83; margin-top: 8px; }
.foot__brand p { font-size: .9rem; color: #C3B3A2; margin-top: 18px; line-height: 1.85; max-width: 30rem; }
.foot h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #BFAB95; margin-bottom: 16px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .6em; font-size: .97rem; }
.foot-bottom {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: #B3A18D;
}
.visit-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  opacity: .85;
}

@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 34px; } }

/* 手機上把連結的可點擊範圍加大，手指比較好按 */
@media (max-width: 760px) {
  .foot li { margin-bottom: 0; }
  .foot li a { display: inline-block; padding: 10px 0; }
  .clinic-line a { display: inline-block; padding: 7px 0; }
  .foot-bottom { gap: 8px; }
  .btn { padding: 15px 26px; }
  .filter button { padding: 11px 18px; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 44px; } .mb-l { margin-bottom: 44px; }
.mb-m { margin-bottom: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.16,.8,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 很窄的手機（iPhone SE 等，約 375px 以下）：
   縮小左右留白並收起品牌英文，避免標頭把整頁撐寬。 */
@media (max-width: 380px) {
  .wrap { padding: 0 20px; }
  .brand__en { display: none; }
  .brand__name { font-size: 1.1rem; }
  .nav-toggle { padding: 10px 6px; margin-right: -6px; }
  /* 極窄螢幕：眉標改成一般文字排列，讓長英文可以正常換行 */
  .eyebrow { display: block; font-size: .68rem; letter-spacing: .13em; line-height: 1.7; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .page-head .en, .hero__title .en { letter-spacing: .16em; }
  .hero__card { padding: 24px 20px 22px; }
  .clinic-line dt { flex-basis: 4em; }
  .section { padding: 62px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 26px 18px; }
}

/* ---------- Print ---------- */
@media print {
  .site-head, .site-foot, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 18px 0; }
}
