/* ===== SHARED STYLES — 樹林現代診所 ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-deep: #1a5c7a;
  --green-mid: #2080a0;
  --green-light: #3aab88;
  --green-pale: #ddf0f5;
  --gold: #3aab88;
  --gold-light: #e0f4f7;
  --white: #f5fbfc;
  --gray-light: #eaf4f7;
  --gray-text: #4a5c64;
  --text-dark: #162028;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', sans-serif;
  --brand-grad: linear-gradient(135deg, #58c176 0%, #2e9970 45%, #2878c0 100%);
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--text-dark); line-height: 1.7; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,74,58,0.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--green-deep); letter-spacing: 0.05em; text-decoration: none;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-logo img { height: 36px; width: 36px; object-fit: contain; border-radius: 6px; }
.nav-logo span { color: #2878c0; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 1rem; color: var(--gray-text); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
  background: var(--green-deep); color: #fff; border: none;
  padding: 0.5rem 1.25rem; font-size: 0.85rem;
  font-family: var(--sans); cursor: pointer; letter-spacing: 0.05em;
  transition: background 0.2s; text-decoration: none; display: inline-block; white-space: nowrap;
}
.nav-cta:hover { background: var(--green-mid); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--green-deep); transition: all 0.3s; border-radius: 1px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SECTION HELPERS ===== */
section { padding: 5rem 10vw; scroll-margin-top: 68px; }
.section-tag { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold); border-left: 2px solid var(--gold); padding-left: 0.75rem; margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--green-deep); line-height: 1.3; margin-bottom: 1rem; }
.section-desc { font-size: 0.95rem; color: var(--gray-text); max-width: 520px; font-weight: 300; line-height: 1.9; }
.section-header { margin-bottom: 2.5rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 0.9rem 2.25rem; border: none; font-family: var(--sans);
  font-size: 1.05rem; font-weight: 300; letter-spacing: 0.06em;
  cursor: pointer; transition: opacity 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  background: transparent; color: rgba(255,255,255,0.8);
  padding: 0.9rem 2.25rem; border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; color: var(--green-mid); text-decoration: none; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--green-deep); }

/* ===== TAG ===== */
.tag { font-size: 0.7rem; background: var(--green-pale); color: var(--green-deep); padding: 0.2rem 0.6rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--brand-grad);
  padding: calc(68px + 3.5rem) 10vw 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.06); pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
  border-left: 2px solid rgba(255,255,255,0.5); padding-left: 0.75rem;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 0.75rem;
}
.page-hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.85);
  max-width: 500px; font-weight: 300; line-height: 1.9;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--gray-text); margin-bottom: 2.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--green-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark); padding: 3rem 10vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 28px; width: 28px; object-fit: contain; border-radius: 5px; opacity: 0.85; }
.footer-logo span { color: #58c176; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(250,250,248,0.98);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(26,74,58,0.12);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.75rem 5vw; font-size: 1rem; border-bottom: 1px solid rgba(26,74,58,0.06); }
  .nav-hamburger { display: flex; }
  .page-hero { padding-left: 6vw; padding-right: 6vw; }
  section { padding: 4rem 6vw; }
  footer { flex-direction: column; }
}
