/* 用芯照顧｜生理監察推介 — warm sage + cream (Ventria-aligned) · SPA panels */
:root {
  --sage: #006E63;
  --sage-soft: #338B82;
  --sage-deep: #00564e;
  --clay: #CF8F74;
  --clay-soft: #e8c4b4;
  --clay-deep: #b8735a;
  --ink: #010101;
  --text: #545454;
  --text-strong: #2a2a2a;
  --line: #e5e0db;
  --line-soft: #efeae5;
  --bg: #ffffff;
  --bg-warm: #f7f4f0;
  --bg-sage-tint: #f0f7f5;
  --bg-cream: #faf7f2;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(1, 1, 1, 0.08);
  --shadow-soft: 0 4px 18px rgba(1, 1, 1, 0.06);
  --nav-h: 68px;
  --wrap: 1080px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-deep); }
strong { color: var(--text-strong); font-weight: 600; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.55em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--sage); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary {
  background: var(--sage); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 110, 99, 0.22);
}
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--sage); border-color: var(--sage-soft);
}
.btn-secondary:hover { background: var(--bg-sage-tint); color: var(--sage-deep); }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,252,248,.94);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.brand-sub { font-size: 0.68rem; color: var(--sage-soft); }
.nav-links {
  display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  display: block; padding: 8px 10px;
  color: var(--text); font-weight: 500; font-size: 0.88rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--sage); background: var(--bg-sage-tint); }
.nav-links a.is-active {
  color: var(--sage-deep);
  background: var(--bg-sage-tint);
  font-weight: 600;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.55em;
  color: var(--sage); font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 0.4em; }
.section-head p { margin-bottom: 0; color: var(--text); font-size: 0.98rem; }

/* ——— SPA panels: only one visible ——— */
#main { position: relative; }
.panel {
  display: none;
  min-height: calc(100vh - var(--nav-h));
  background: var(--bg);
  padding: 48px 0 64px;
}
.panel.is-active {
  display: flex;
  flex-direction: column;
}
.panel[hidden] { display: none !important; }
.panel-inner {
  flex: 1 1 auto;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  padding-top: 12px;
  padding-bottom: 24px;
}
.panel-alt { background: var(--bg-warm); }
.panel-sage { background: var(--bg-sage-tint); }
.panel-cream { background: var(--bg-cream); }

.panel-hero {
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(51,139,130,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 40%, var(--bg) 100%);
  padding: 28px 0 0;
}
.panel-hero .panel-inner {
  padding-top: 8px;
  padding-bottom: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0,110,99,.08);
  color: var(--sage-deep); font-size: 0.82rem; font-weight: 600;
}
.panel-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  margin-bottom: 0.45em;
}
.hero-lead {
  font-size: 1.08rem; color: var(--text-strong); margin-bottom: 1.1em;
}
.hero-points {
  display: grid; gap: 8px; margin: 0 0 1.35em;
}
.hero-points li {
  position: relative;
  padding-left: 1.35em;
  color: var(--text);
}
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px 12px;
  width: min(100%, 420px);
  margin: 0;
}
.hero-visual-card img {
  margin-inline: auto;
  max-height: 420px;
  width: auto;
  object-fit: contain;
}
.hero-visual-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text);
}

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.55em; }
.card ul { display: grid; gap: 8px; }
.card li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.95rem;
}
.card li::before {
  content: "·";
  position: absolute; left: 0; top: 0;
  color: var(--sage); font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.step {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sage); color: #fff;
  font-size: 0.82rem; font-weight: 700;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.45em; }
.step p { margin: 0; font-size: 0.93rem; color: var(--text); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}
.shot {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0b1a18;
}
.shot.shot-dark img {
  object-fit: contain;
  background: #0b1a18;
  padding: 8px;
}
.shot figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--text-strong);
}
.shot figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 400;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 900px;
}
.pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pill-home { background: rgba(207,143,116,.18); color: var(--clay-deep); }
.pill-facility { background: rgba(0,110,99,.1); color: var(--sage-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.contact-grid-solo {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.contact-list {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.contact-list dt {
  font-size: 0.78rem;
  color: var(--sage-soft);
  font-weight: 600;
  margin-top: 14px;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 2px 0 0; color: var(--text-strong); }
.placeholder {
  color: #9a8f86;
  font-style: italic;
}

.footer-in-panel {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0 28px;
  background: #fff;
  margin-top: auto;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
}
.footer-brand img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.footer-brand strong { display: block; color: var(--ink); font-size: 0.92rem; }
.footer-brand span { display: block; color: var(--sage-soft); font-size: 0.75rem; }
.footer-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #8a837c;
  max-width: 520px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card.benefit { padding-top: 20px; }
.card.benefit-home { border-top: 3px solid var(--clay); }
.card.benefit-facility { border-top: 3px solid var(--sage); }
.card.benefit ul { display: grid; gap: 10px; margin-top: 4px; }
.card.benefit li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.93rem;
}
.card.benefit li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage-soft);
}
.card.benefit-home li::before { background: var(--clay); }

@media (max-width: 920px) {
  .hero-grid,
  .benefit-grid,
  .steps,
  .audience-grid,
  .contact-grid,
  .gallery,
  .gallery-3 {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .panel { padding: 32px 0 48px; }
  .panel-hero { padding-top: 16px; }
}

@media (max-width: 560px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
}

.demo-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: #0b1a18;
  color: #fff;
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.demo-dialog::backdrop {
  background: rgba(1, 1, 1, 0.62);
  backdrop-filter: blur(2px);
}
.demo-dialog-inner { display: grid; gap: 0; }
.demo-dialog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: #0f2421;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.demo-dialog-bar h2 {
  margin: 0; color: #fff; font-size: 1rem; font-weight: 600;
}
.demo-dialog-close {
  appearance: none; border: 0; background: transparent;
  color: #fff; font-size: 1.6rem; line-height: 1;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
}
.demo-dialog-close:hover { background: rgba(255,255,255,.1); }
.demo-dialog-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 540px);
}
