@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #FFCC00;
  --yellow-dark: #E6B800;
  --yellow-light: #FFF8D6;
  --navy: #1a2744;
  --navy-light: #2c3e6b;
  --cream: #FAFAF5;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --text: #222222;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(26,39,68,0.08);
  --shadow-lg: 0 8px 48px rgba(26,39,68,0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(26,39,68,0.07);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-main {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.2;
}

.nav-logo .logo-sub {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--yellow);
  color: var(--navy);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
}

.nav-cta:hover {
  background: var(--navy-light) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--yellow);
  opacity: 0.06;
  border-radius: 50%;
}

.page-hero h1 {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

/* ── SECTIONS ── */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--yellow-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.35;
}

.section-desc {
  color: var(--gray);
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-text {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
}

/* ── GRID ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
  margin: 16px 0 32px;
}

/* ── TAG ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--yellow-light);
  color: var(--navy);
  margin: 3px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-main {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', '蘋方', 'Heiti TC', '黑體', sans-serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col h4 {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.social-link:hover {
  background: var(--yellow);
  color: var(--navy);
}

/* ── INFO BOX ── */
.info-box {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p {
  font-size: 14px;
  color: var(--navy);
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

th:first-child { text-align: left; border-radius: 0; }

td {
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

td:first-child { text-align: left; font-weight: 500; }

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--yellow-light); }

.has-clinic { color: var(--navy); font-weight: 600; }
.no-clinic { color: #ccc; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 3px solid var(--yellow); box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
