/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --primary:      #5cb0c2;
  --primary-dark: #44818e;
  --primary-light:#8dc7d3;
  --text-dark:    #303030;
  --text-mid:     #484848;
  --text-muted:   #8e8e8e;
  --bg:           #f9f9f9;
  --white:        #ffffff;
  --border:       #d0d0d0;
  --max-w:        960px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.75;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

/* ── Header ── */
#header {
  text-align: center;
  padding: 40px 20px 16px;
  background: var(--white);
}
#site-title {
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
}
#site-title a { color: inherit; }
#site-title a:hover { color: var(--primary); }

/* ── Navigation ── */
#navigation {
  background: var(--white);
  padding: 0 20px 24px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
#navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
#navigation li a {
  display: block;
  padding: 7px 13px;
  color: var(--text-mid);
  transition: background 0.15s;
  border-radius: 1px;
}
#navigation li a:hover,
#navigation li.active a {
  background: #f6f6f6;
  color: var(--text-dark);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 48px 20px;
  text-align: center;
  margin-bottom: 0;
}
.page-hero h1 {
  font-family: 'Alice', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 1px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-top: 8px;
}

/* ── Content wrapper ── */
#content-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* ── Content card ── */
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 48px;
  margin-bottom: 32px;
}
.content-card h2 {
  font-family: 'Alice', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-mid);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
}
.content-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mid);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content-card p { margin-bottom: 12px; color: var(--text-muted); }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul, .content-card ol {
  padding-left: 1.5em;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.content-card li { margin-bottom: 4px; }

/* ── Section label ── */
.section-label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: #edf7f9;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ── Treatment grid ── */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.treatment-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 2px;
  padding: 24px 24px 20px;
}
.treatment-item h3 {
  font-family: 'Alice', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-mid);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.treatment-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Schedule table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
.schedule-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
}
.schedule-table td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text-mid);
}
.schedule-table tr:nth-child(even) td { background: #fafafa; }
.schedule-table td:first-child {
  font-weight: 600;
  color: var(--text-mid);
  background: #f6f6f6;
  text-align: left;
  white-space: nowrap;
}

/* ── Member card ── */
.member-section { margin-bottom: 36px; }
.member-section:last-child { margin-bottom: 0; }
.member-type-title {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--primary-dark);
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 2px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px;
}
.member-card h3 {
  font-family: 'Alice', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: none;
  letter-spacing: 0;
}
.member-card .meta-label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin: 12px 0 4px;
}
.member-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.member-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 2px 0 2px 14px;
  position: relative;
  line-height: 1.6;
}
.member-card ul li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--primary);
}

/* ── Course grid ── */
.course-group { margin-bottom: 32px; }
.course-group h3 {
  font-family: 'Alice', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.course-group .desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-style: italic;
}
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.course-tag {
  background: #edf7f9;
  color: var(--primary-dark);
  border: 1px solid #c5e5ec;
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Info boxes ── */
.info-box {
  background: #edf7f9;
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}
.info-box strong { color: var(--primary-dark); }

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.contact-item {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
}
.contact-item .label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 6px;
}
.contact-item .value {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 600;
}
.contact-item a { color: var(--text-mid); }
.contact-item a:hover { color: var(--primary); }

/* ── Pain management items ── */
.pain-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.pain-item:first-child { padding-top: 0; }
.pain-item:last-child { border-bottom: none; padding-bottom: 0; }
.pain-item h3 {
  font-family: 'Alice', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.pain-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.pain-item .indication {
  font-size: 11px;
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

/* ── AI 客服浮動按鈕 ── */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}
.chat-bubble a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(68,129,142,0.4);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.chat-bubble a:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68,129,142,0.5);
}
.chat-bubble svg {
  width: 17px; height: 17px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Footer ── */
#footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  font-size: 14px;
}
#footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
  margin-bottom: 2px;
}
.footer-brand p { font-size: 12px; color: var(--text-muted); }
.footer-contact { flex: 1; min-width: 200px; color: var(--text-muted); }
.footer-contact p { margin-bottom: 3px; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--primary); }
.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 12px;
  text-align: center;
  color: #bbb;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #site-title { font-size: 20px; }
  .content-card { padding: 24px 20px; }
  .member-grid { grid-template-columns: 1fr; }
  .treatment-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  #navigation li a { padding: 6px 9px; font-size: 11.5px; }
  .chat-bubble { bottom: 18px; right: 14px; }
  .chat-bubble a { padding: 11px 16px; font-size: 13px; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 7px 6px; }
}
@media (max-width: 480px) {
  .schedule-table-wrap { overflow-x: auto; }
}
