:root {
  --ink: #2b3a4e;
  --ink-soft: #5a6b7f;
  --sky: #4a7fb5;
  --sky-light: #a8c8e4;
  --cloud: #edf4fa;
  --sun: #e9a23b;
  --clay: #7a4f37;
  --clay-deep: #5b3a26;
  --cream: #fdf5e8;
  --green: #43a047;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

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

:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

h1, h2, h3 { font-family: "Noto Serif TC", serif; font-weight: 700; }

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--cloud);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

header .brand img { height: 42px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-zh { font-family: "Noto Serif TC", serif; font-size: 21px; font-weight: 700; letter-spacing: 2px; }

.brand-en { font-size: 10px; letter-spacing: 3.5px; color: var(--ink-soft); }

nav { margin-left: auto; display: flex; }

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

nav a:hover { color: var(--sky); }

nav a.active { color: var(--sky); border-bottom-color: var(--sun); }

/* Hero banner */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  padding: 84px 16px 88px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(43, 58, 78, 0.28), rgba(43, 58, 78, 0.45));
}

.hero > * { position: relative; }

.hero .welcome {
  font-size: 12px;
  letter-spacing: 5px;
  margin-bottom: 14px;
  color: #f3d9ab;
}

.hero h1 {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 14px;
  text-indent: 14px;
  text-shadow: 0 1px 6px rgba(20, 30, 45, 0.45);
}

/* Signature: hairline with a sun dot — light over the horizon */
.light-line {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  margin: 22px auto 0;
  position: relative;
}

.light-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

/* Section headings share the light line, in ink */
.sec-head {
  font-size: 30px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 14px;
}

.sec-line {
  width: 88px;
  height: 1px;
  background: var(--sky-light);
  margin: 0 auto 34px;
  position: relative;
}

.sec-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

/* Content */
main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 56px 16px 72px;
  text-align: center;
}

main img { max-width: 100%; height: auto; }

main section { margin-bottom: 64px; }

main section:last-child { margin-bottom: 0; }

.notice { font-size: 16px; color: var(--ink-soft); margin-top: 14px; }

.intro p {
  font-family: "Noto Serif TC", serif;
  font-size: 21px;
  color: var(--ink-soft);
  line-height: 2.1;
}

@media (max-width: 640px) {
  .intro p { font-size: 17px; }
  .intro br { display: none; }
}

.notice a { font-weight: 500; }

/* News panel */
.news-panel {
  background: var(--cloud);
  border-radius: 20px;
  padding: 40px 24px 30px;
}

/* 最新消息 banner (CSS recreation of the original graphic) */
.news-title { position: relative; display: inline-block; margin: 10px 24px 16px 0; }

.news-title .back {
  position: absolute;
  inset: -16px -22px 16px 22px;
  background: #fff;
  border: 2px solid #3a3a4a;
}

.news-title .front {
  position: relative;
  display: block;
  background: #cadcff;
  border: 2px solid #3a3a4a;
  padding: 14px 60px;
  font-family: "Noto Serif TC", serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 14px;
  text-indent: 14px;
  color: #2f3a5f;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .news-title .front { font-size: 25px; padding: 10px 34px; letter-spacing: 8px; text-indent: 8px; }
  .news-title .back { inset: -12px -16px 12px 16px; }
}

.news-title .front::before, .news-title .front::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a4a;
  box-shadow: 14px 0 0 #3a3a4a;
}

.news-title .front::before { top: 10px; left: 12px; }

.news-title .front::after { bottom: 10px; right: 26px; }

.news-list { list-style: none; font-size: 22px; font-weight: 500; line-height: 2.2; margin-top: 12px; min-height: 48px; }

.news-list .news-empty { font-size: 17px; font-weight: 400; color: var(--ink-soft); }

/* 診療項目 card */
.services-card {
  background: #fff;
  border: 1px solid var(--sky-light);
  border-radius: 14px;
  padding: 28px 36px;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(43, 58, 78, 0.06);
}

.services-card h2 { font-size: 32px; letter-spacing: 3px; margin-bottom: 16px; }

.services-card ul {
  list-style: none;
  border-left: 3px dashed var(--sky-light);
  padding-left: 26px;
  font-size: 21px;
  line-height: 2.15;
}

/* Feature check list */
.check-list {
  list-style: none;
  text-align: left;
  font-size: 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.check-list li { display: flex; align-items: center; gap: 14px; }

.check-list li::before {
  content: '✓';
  flex: none;
  width: 34px;
  height: 34px;
  border: 3px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo frames — photographs only, never illustrations */
.framed, .photo-grid img, .doctor-figure img {
  background: #fff;
  border: 1px solid var(--cloud);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 5px rgba(43, 58, 78, 0.06);
}

/* Schedule table */
.schedule {
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  font-size: 18px;
}

.schedule th, .schedule td {
  border: 1px solid #92a6ba;
  padding: 14px 6px;
  text-align: center;
}

.schedule thead th { background: var(--sky-light); }

.schedule td { color: var(--ink); }

.schedule td:first-child, .schedule th:first-child { width: 24%; }

.schedule-note {
  margin-top: 30px;
  font-size: 23px;
  font-weight: 500;
  color: #c00000;
}

.schedule-note u { text-underline-offset: 4px; }

.schedule-sub {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .schedule { font-size: 14px; }
  .schedule th, .schedule td { padding: 10px 2px; }
  .schedule-note { font-size: 18px; }
}

/* Info sections (brown/cream style from the original graphics) */
.info-card {
  background: var(--cream);
  border: 1.5px solid var(--clay);
  border-radius: 20px;
  padding: 28px 24px;
  color: var(--clay-deep);
}

.info-split {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: left;
}

.info-split > * { flex: 1 1 340px; min-width: 300px; max-width: 620px; }

.place-name { font-family: "Noto Serif TC", serif; font-size: 34px; color: var(--ink); font-weight: 600; letter-spacing: 2px; }

.place-name-en { font-family: Georgia, serif; color: var(--ink-soft); margin-top: 4px; }

.dashed-rule { border: none; border-top: 2px dashed var(--sky-light); margin: 16px 0 20px; }

.detail-list { list-style: none; font-size: 18px; line-height: 1.9; color: var(--ink); }

.detail-list .label { font-weight: 600; margin-right: 8px; white-space: nowrap; color: var(--sky); }

.detail-list a { color: inherit; }

.map-embed { width: 100%; height: 300px; border: 0; border-radius: 12px; }

/* Fee table */
.fees {
  border-collapse: separate;
  border-spacing: 8px;
  width: 100%;
  font-size: 17px;
}

.fees th {
  background: #6b4630;
  color: #fff;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 6px;
}

.fees td {
  background: #fffaf2;
  border: 1px solid #6b4630;
  border-radius: 6px;
  padding: 10px 6px;
  font-weight: 600;
}

.fees .corner { background: none; border: none; }

/* Copay tables */
.copay-tables { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

.copay-tables table { border-collapse: collapse; font-size: 16px; }

.copay-tables th { color: #1f4e79; padding: 6px 18px; }

.copay-tables td {
  background: #fffaf2;
  border: 1px solid #6b4630;
  padding: 8px 18px;
  font-weight: 600;
}

.copay-note { font-weight: 700; margin-bottom: 16px; }

.notes-list { list-style: none; font-size: 19px; line-height: 2.2; text-align: left; }

.card-head { font-family: "Noto Serif TC", serif; font-size: 26px; color: var(--clay-deep); margin-bottom: 12px; }

/* Analyzer card (environment page) */
.analyzer-card {
  position: relative;
  border: 1.5px solid var(--clay);
  border-radius: 24px;
  padding: 40px 32px 32px;
  text-align: left;
  color: var(--ink);
}

.analyzer-card .badge {
  position: absolute;
  top: -18px;
  left: 28px;
  background: #fff;
  border: 1.5px solid var(--clay);
  border-radius: 8px;
  padding: 4px 16px;
  font-size: 15px;
  color: var(--clay-deep);
}

.analyzer-card h2 { text-align: center; font-size: 30px; letter-spacing: 3px; margin-bottom: 26px; }

.analyzer-card h3 { font-size: 23px; margin: 18px 0 8px; color: var(--sky); }

.analyzer-card p { font-size: 17px; line-height: 1.9; color: var(--ink); }

.analyzer-card img { max-width: 420px; }

/* Environment photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 28px;
}

.photo-grid img { width: 100%; height: auto; }

.two-col {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.two-col > * { flex: 0 1 auto; min-width: 280px; }

.doctor-figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 478px;
}

.doctor-figure figcaption { font-size: 16px; color: var(--ink-soft); }

/* Doctor bio */
.bio { text-align: left; font-size: 19px; color: var(--ink); }

.bio .role { font-size: 16px; letter-spacing: 3px; color: var(--sun); font-weight: 600; }

.bio h2 { font-size: 34px; letter-spacing: 2px; margin: 2px 0 22px; }

.bio dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }

.bio dt { color: var(--sky); font-weight: 600; }

.bio dd { margin: 0; }

.bio dd ul { list-style: none; }

.bio dd ul li { margin-bottom: 10px; }

@media (max-width: 640px) {
  .fees { font-size: 13px; border-spacing: 4px; }
  .sec-head { font-size: 25px; }
  .place-name { font-size: 28px; }
  .hero h1 { font-size: 34px; letter-spacing: 10px; text-indent: 10px; }
  .brand-en { display: none; }
}

/* Footer */
footer {
  background: var(--ink);
  color: #dbe6f0;
  border-top: 3px solid var(--sun);
  padding: 44px 24px 20px;
  font-size: 15px;
  line-height: 2;
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
}

.footer-name { font-family: "Noto Serif TC", serif; font-size: 26px; font-weight: 600; letter-spacing: 3px; color: #fff; }

.footer-en { font-size: 11px; letter-spacing: 3px; color: #93a8bc; }

.footer-info, .footer-hours { list-style: none; }

.footer-head { font-size: 13px; letter-spacing: 2px; color: var(--sun); margin-bottom: 4px; }

footer a { color: #dbe6f0; }

.footer-copy {
  max-width: 1150px;
  margin: 32px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(219, 230, 240, 0.18);
  font-size: 12.5px;
  color: #93a8bc;
  text-align: left;
}
