/* 中醫師 黃彥鈞 個人網站 — 全站樣式 */

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #2b2b28;
  --ink-soft: #6b6a63;
  --accent: #2f5d50;        /* 深松綠 */
  --accent-warm: #b0533a;   /* 硃砂 */
  --border: #e5e1d6;
  --max-width: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1a;
    --surface: #262622;
    --ink: #eae7de;
    --ink-soft: #a3a094;
    --accent: #7fb8a4;
    --accent-warm: #d98a71;
    --border: #3a3933;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  line-height: 1.85;
  font-size: 1.05rem;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1rem;
  text-align: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  margin: 0;
}
.site-title a { color: var(--ink); text-decoration: none; }

.site-subtitle {
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin: 0.3rem 0 0;
}

nav.site-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent-warm);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1, h2, h3 { line-height: 1.4; letter-spacing: 0.05em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; color: var(--accent); margin-top: 2.5rem; }

a { color: var(--accent); }

.cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.specialty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.specialty .col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.4rem;
}
.specialty h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  border-left: 4px solid var(--accent-warm);
  padding-left: 0.6rem;
}
.specialty ul {
  margin: 0;
  padding-left: 1.2rem;
}
.specialty li { margin: 0.3rem 0; }

/* 門診時間表 */
.schedule-wrap { overflow-x: auto; }
table.schedule {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: center;
}
table.schedule th, table.schedule td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.4rem;
}
table.schedule th { color: var(--accent); font-weight: 600; white-space: nowrap; }
table.schedule td.slot { color: var(--ink-soft); white-space: nowrap; }
table.schedule td.slot strong { color: var(--ink); display: block; }
.chip {
  display: inline-block;
  border-radius: 8px;
  padding: 0.15em 0.6em;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
}
.chip small { display: block; font-size: 0.72rem; opacity: 0.9; }
.chip.taichu { background: #5b7a9d; }
.chip.special { background: #cc8a3d; }
.chip.dongmen { background: #4c8a74; }
.legend { font-size: 0.85rem; color: var(--ink-soft); margin: 0.6rem 0 0; }
.legend .chip { margin-right: 0.4em; }
.clinic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (max-width: 600px) {
  .clinic-cards { grid-template-columns: 1fr; }
}
.clinic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.clinic-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--accent);
}
.clinic-card ul { list-style: none; margin: 0; padding: 0; }
.clinic-card li {
  display: flex;
  gap: 0.6rem;
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.clinic-card li .k { color: var(--ink-soft); flex-shrink: 0; }
.hero p { color: var(--ink-soft); }

a.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1.6em;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}
a.cta:hover { background: var(--accent-warm); }

.article-list { list-style: none; padding: 0; }
.article-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}
.article-list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.article-list .meta {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.article-list .excerpt {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  text-decoration: none;
  margin-right: 0.35em;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--accent-warm);
  border: 1px solid var(--accent-warm);
  border-radius: 999px;
  padding: 0.05em 0.55em;
  margin-left: 0.5em;
  vertical-align: middle;
}
/* 首頁標籤雲：標籤本身是主要內容，維持較大字級 */
.browse .tag { font-size: 0.8rem; }
/* 文章列表卡片內的標籤：蓋過 .article-list a 的標題字級與粗體 */
.article-list a.tag { font-size: 0.7rem; font-weight: 400; }

article.post .post-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

article.post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--ink-soft);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 2rem 1rem;
  letter-spacing: 0.1em;
}

.notice {
  background: var(--surface);
  border: 1px dashed var(--accent-warm);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}


.browse {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  line-height: 2.2;
}
a.tag:hover { background: var(--accent-warm); color: #fff; }

/* 文章底部預約 CTA */
.cta-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  margin-top: 2.5rem;
}
.cta-box p { margin: 0 0 0.8rem; color: var(--ink-soft); }

/* 延伸閱讀 */
.related ul { list-style: none; padding: 0; }
.related li {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.related li a { text-decoration: none; font-weight: 600; }
.related li .meta { color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.6em; }

/* 麵包屑 */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb span { color: var(--ink-soft); }

/* 頁尾 */
.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.site-footer .footer-nav a { color: var(--accent); text-decoration: none; }
.footer-contact, .footer-social { margin: 0.4rem 0; }
a.cta.line { background: #06c755; padding: 0.35em 1.1em; font-size: 0.9rem; margin-left: 0.6em; }
a.cta.line:hover { background: #05a648; }

/* 關於頁：形象照＋簡介 */
.bio {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1rem;
}
.bio .portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.bio h1 { margin-top: 0; }
@media (max-width: 600px) {
  .bio { grid-template-columns: 1fr; }
  .bio .portrait { max-width: 260px; margin: 0 auto; }
}

/* 站內搜尋 */
.search-box input {
  width: 100%;
  padding: 0.7em 1.1em;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

/* 主題頁導言 */
.tag-intro {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.8rem;
}
.tag-intro p { margin: 0 0 0.6rem; }
.tag-intro .intro-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
