/* 許薰惠醫師個人站 — 預覽 */
:root {
  /* 精簡莫蘭迪：主藍 + 奶茶底 + 柔粉點綴 */
  --bg: #f6f2ec;
  --bg-soft: #efe8df;
  --surface: #fffcf8;
  --ink: #2c343a;
  --muted: #6a737a;
  --line: #e4ddd4;
  --teal: #6b8499;
  --teal-deep: #4f6678;
  --teal-soft: #e8eef2;
  --coral: #b89898;
  --coral-soft: #f3ebea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(31, 42, 46, 0.07);
  --shadow-sm: 0 2px 10px rgba(31, 42, 46, 0.05);
  --max: 1080px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { line-height: 1.35; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0 0 0.7em; }
h3 { font-size: 1.15rem; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.skip {
  position: absolute; left: -9999px; top: auto;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--surface); padding: 0.5rem 1rem; border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), #7f96a8);
  color: #fff; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.nav {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem;
  align-items: center; justify-content: flex-end;
}
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-deep); }
.nav-cta {
  background: var(--teal) !important; color: #fff !important;
  padding: 0.45rem 0.9rem !important; border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--teal-deep) !important; color: #fff !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.4rem 0.65rem; font: inherit; color: var(--ink);
  cursor: pointer;
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 0.75rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem; align-items: center;
}
.hero-photo {
  position: relative; justify-self: end; width: min(100%, 360px);
}
.hero-photo img {
  width: 100%; border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 3/4;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--teal-soft); border-radius: 28px; z-index: -1;
}
.hero h1 span { display: block; color: var(--teal); font-size: 0.55em; font-weight: 600; margin-top: 0.35em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 1.5rem; }
.tag {
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 0.95rem;
  border: 1.5px solid transparent; transition: 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Cards */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; color: inherit; display: block;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  background: var(--teal-soft); color: var(--teal-deep); font-size: 1.2rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .more { display: inline-block; margin-top: 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--teal); }

/* Panels */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.panel-teal { background: var(--teal); color: #fff; border: 0; }
.panel-teal a { color: #fff; }
.panel-teal .muted { color: rgba(255,255,255,0.82); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hours-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line);
}
.hours-table th {
  color: var(--ink);
  font-weight: 700;
  width: 35%;
}
.hours-table td {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.panel-teal .hours-table th,
.panel-teal .hours-table td {
  border-bottom-color: rgba(255,255,255,0.35);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
}
.panel-teal .hours-table th {
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Notes list */
.note-list { display: grid; gap: 1rem; }
.note-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
  text-decoration: none; color: inherit; display: block;
}
a.note-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); color: inherit; }
.note-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }

/* Page header */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.breadcrumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem;
}
.breadcrumb a { text-decoration: none; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.2rem; color: var(--muted); font-size: 0.95rem; }

/* Prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose .callout {
  background: var(--coral-soft); border-left: 4px solid var(--coral);
  padding: 1rem 1.15rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
}
.disclaimer {
  font-size: 0.88rem; color: var(--muted);
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem; padding: 2.5rem 0 2rem;
  background: var(--ink); color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-col h4 { color: #fff; margin: 0 0 0.7rem; font-size: 0.92rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.badge-preview {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--coral-soft); color: var(--coral);
  padding: 0.2rem 0.55rem; border-radius: 6px; letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .hero-grid, .two-col, .cards, .footer-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; width: min(100%, 300px); order: -1; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0.35rem;
    padding-bottom: 0.75rem;
  }
  .nav.is-open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-cta { text-align: center; }
}
