:root {
  --bg: #f6fbfa;
  --ink: #09212d;
  --muted: #5f7078;
  --line: rgba(9, 33, 45, 0.12);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --teal: #00a7a0;
  --mint: #9de8db;
  --coral: #ff7a59;
  --gold: #c9a95a;
  --deep: #071d2b;
  --shadow: 0 24px 70px rgba(9, 33, 45, 0.16);
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.dark {
  --bg: #081319;
  --ink: #efffff;
  --muted: #a6bbc3;
  --line: rgba(239, 255, 255, 0.14);
  --panel: rgba(11, 31, 42, 0.78);
  --panel-solid: #0c202b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 4%, rgba(0, 167, 160, 0.14), transparent 26rem),
    linear-gradient(180deg, var(--bg), #eef7f3 58%, var(--bg));
  color: var(--ink);
  overflow-x: hidden;
}

body.dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 167, 160, 0.2), transparent 28rem),
    linear-gradient(180deg, #081319, #0b2024 56%, #081319);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 28px));
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-actions,
.hero-actions,
.contact-cards,
.cms-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #05212a;
  font-weight: 900;
}

.brand small,
.form-note,
.footer,
.section-head p,
.tech-copy p,
.contact-copy p,
.hero-copy {
  color: var(--muted);
}

.brand span:last-child {
  display: grid;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--teal);
}

.primary-btn,
.ghost-btn,
.glass-btn,
.danger-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.primary-btn {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--teal), #32d6bd);
  color: #021a21;
  box-shadow: 0 14px 28px rgba(0, 167, 160, 0.28);
  font-weight: 800;
}

.primary-btn.large {
  min-height: 52px;
  padding: 0 24px;
}

.ghost-btn,
.glass-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.ghost-btn,
.glass-btn {
  padding: 0 16px;
}

.danger-btn {
  padding: 0 16px;
  background: rgba(255, 122, 89, 0.14);
  color: var(--coral);
}

.icon-btn {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.primary-btn:hover,
.ghost-btn:hover,
.glass-btn:hover,
.danger-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 78px;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 42%, rgba(246, 251, 250, 0.1) 78%),
    linear-gradient(180deg, transparent 72%, var(--bg));
}

body.dark .hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 19, 25, 0.98) 0%, rgba(8, 19, 25, 0.72) 44%, rgba(8, 19, 25, 0.16) 80%),
    linear-gradient(180deg, transparent 72%, #081319);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.05) contrast(1.03);
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  right: 9%;
  top: 18%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 209, 199, 0.26);
  border-radius: 999px;
  box-shadow: 0 0 70px rgba(0, 209, 199, 0.18);
  animation: heroOrbit 9s linear infinite;
  opacity: 0.62;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  border-radius: inherit;
}

.hero-orbit::before {
  inset: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
}

.hero-orbit::after {
  width: 10px;
  height: 10px;
  top: 22px;
  left: 50%;
  background: var(--teal);
  box-shadow: 0 0 24px var(--teal);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots span.active {
  width: 48px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(0, 209, 199, 0.55);
}

.scan-line {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -20%;
  width: 22%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(157, 232, 219, 0.3), transparent);
  animation: scan 6s ease-in-out infinite;
  transform: skewX(-18deg);
}

@keyframes heroOrbit {
  to {
    rotate: 360deg;
  }
}

@keyframes scan {
  0%,
  35% {
    translate: 0 0;
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    translate: 650% 0;
    opacity: 0;
  }
}

.hero-content {
  max-width: 680px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.8;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.trust-strip div {
  padding: 18px;
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 28px;
}

.section,
.answer-band,
.tech-band,
.contact-section,
.footer,
.detail-hero,
.detail-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.answer-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  margin-top: -36px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.answer-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.section,
.tech-band,
.contact-section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
  min-width: 0;
}

.service-grid,
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.doctor-card,
.case-card,
.article-card,
.faq-item,
.process-step,
.booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(9, 33, 45, 0.08);
  backdrop-filter: blur(14px);
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 24px 112px 24px 24px;
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 167, 160, 0.35);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 24px rgba(0, 167, 160, 0.18);
}

.service-card.has-image::before {
  display: none;
}

.service-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(0, 167, 160, 0.42);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 167, 160, 0.18), 0 12px 28px rgba(9, 33, 45, 0.14);
}

.service-card p,
.doctor-card p,
.case-card p,
.article-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.tech-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px;
  align-items: start;
}

.process-step span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 167, 160, 0.14);
  color: var(--teal);
  font-weight: 900;
}

.doctor-card {
  padding: 22px;
}

.doctor-avatar {
  overflow: hidden;
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 167, 160, 0.22), rgba(255, 122, 89, 0.2));
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar {
  border-radius: 50%;
}

body.dark .doctor-avatar {
  color: #efffff;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
}

.sticky-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.case-list,
.article-list,
.faq-panel {
  display: grid;
  gap: 16px;
}

.case-card {
  padding: 24px;
}

.case-card strong {
  color: var(--teal);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.article-card,
.faq-item {
  padding: 20px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 900;
}

.article-card time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-weight: 800;
}

.faq-item p {
  display: none;
  margin: 14px 0 0;
}

.faq-item.open p {
  display: block;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 30px;
  align-items: start;
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-copy h2,
.contact-copy p {
  margin: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
  margin-top: 4px;
}

.contact-cards span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
}

.contact-cards span:nth-child(3) {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
}

.location-map {
  margin-top: 8px;
}

.store-grid {
  display: grid;
  gap: 14px;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.map-visual {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 167, 160, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 167, 160, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 52% 48%, rgba(0, 167, 160, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(0, 167, 160, 0.12), rgba(255, 122, 89, 0.08));
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.map-visual.has-store-image {
  background: var(--panel-solid);
}

.map-visual.has-store-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.map-visual::before,
.map-visual::after {
  position: absolute;
  inset: auto;
  content: "";
  background: rgba(9, 33, 45, 0.16);
}

.map-visual.has-store-image::before,
.map-visual.has-store-image::after {
  display: none;
}

.map-visual::before {
  top: 52%;
  left: -18%;
  width: 140%;
  height: 2px;
  transform: rotate(-14deg);
}

.map-visual::after {
  top: -10%;
  left: 58%;
  width: 2px;
  height: 130%;
  transform: rotate(22deg);
}

.map-pin {
  position: absolute;
  top: 47%;
  left: 52%;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 6px solid var(--teal);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 167, 160, 0.28);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-pin::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--deep);
  content: "";
}

.map-pulse {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(0, 167, 160, 0.36);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-info {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.map-info h3,
.map-info p {
  margin: 0;
}

.map-info p {
  color: var(--muted);
  line-height: 1.8;
}

.map-address {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 167, 160, 0.06);
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 900;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  align-self: start;
}

.booking-note {
  display: none;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

.booking-note.pending,
.booking-note.success,
.booking-note.duplicate,
.booking-note.error {
  display: block;
}

.booking-note.pending {
  border-color: rgba(0, 167, 160, 0.28);
  background: rgba(0, 167, 160, 0.08);
}

.booking-note.success {
  border-color: rgba(0, 167, 160, 0.42);
  background: linear-gradient(135deg, rgba(0, 167, 160, 0.16), rgba(57, 211, 191, 0.12));
  color: #006b67;
}

.booking-note.duplicate {
  border-color: rgba(214, 143, 44, 0.42);
  background: rgba(214, 143, 44, 0.12);
  color: #7b4b00;
}

.booking-note.error {
  border-color: rgba(190, 18, 60, 0.32);
  background: rgba(190, 18, 60, 0.08);
  color: #9f1239;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  color: var(--ink);
  outline: 0;
  padding: 12px 14px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 167, 160, 0.12);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

.cms-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  width: min(520px, 100%);
  height: 100vh;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: -20px 0 60px rgba(9, 33, 45, 0.18);
  transform: translateX(104%);
  transition: transform 0.28s ease;
}

.cms-panel.open {
  transform: none;
}

.cms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cms-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.cms-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.cms-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cms-tabs button.active {
  background: rgba(0, 167, 160, 0.14);
  color: var(--teal);
}

.cms-form {
  overflow: auto;
  padding-right: 4px;
}

.tab-page {
  display: none;
  gap: 14px;
}

.tab-page.active {
  display: grid;
}

.code-area {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.cms-actions {
  flex-wrap: wrap;
  padding-top: 18px;
}

.cms-output {
  max-height: 130px;
  margin: 14px 0 0;
  overflow: auto;
  color: var(--muted);
  white-space: pre-wrap;
}

.inner-page .topbar {
  background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
}

.detail-hero {
  padding: 150px 0 46px;
}

.detail-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
}

.detail-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  padding: 24px 0 90px;
}

.detail-body,
.detail-aside,
.lead-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(9, 33, 45, 0.08);
  backdrop-filter: blur(14px);
}

.detail-body {
  padding: 32px;
}

.detail-photo {
  width: 100%;
  max-height: 420px;
  margin-bottom: 24px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-body p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.rich-content {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.rich-content.compact {
  font-size: 15px;
  line-height: 1.7;
}

.rich-content h3,
.rich-content h4 {
  color: var(--ink);
}

.rich-content img {
  display: block;
  width: 100%;
  max-height: 460px;
  border-radius: 8px;
  object-fit: cover;
}

.rich-content figure {
  margin: 22px 0;
}

.rich-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-body .primary-btn,
.detail-body .glass-btn {
  margin-top: 24px;
  margin-right: 10px;
}

.detail-aside {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 24px;
}

.detail-aside div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-aside div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-aside p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-body {
  background: #edf6f4;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--panel-solid);
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-nav button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  padding: 0 14px;
}

.admin-nav button.active {
  background: rgba(0, 167, 160, 0.14);
  color: var(--teal);
  font-weight: 900;
}

.admin-main {
  padding: 34px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.theme-admin-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--ink);
  cursor: pointer;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.theme-admin-toggle::before {
  content: "◐";
  margin-right: 8px;
  color: var(--teal);
}

body.dark .theme-admin-toggle::before {
  content: "☀";
}

.admin-head h1 {
  margin-bottom: 12px;
  font-size: 42px;
}

.admin-head p {
  max-width: 760px;
  color: var(--muted);
}

.admin-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-panel {
  display: none;
  gap: 16px;
}

.admin-panel.active {
  display: grid;
}

.tall-area {
  min-height: 320px;
}

.lead-toolbar {
  display: flex;
  justify-content: flex-end;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  padding: 18px;
}

.lead-card p {
  color: var(--muted);
}

.admin-output {
  max-height: 240px;
  padding: 16px;
}

.login-body {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  margin-bottom: 6px;
}

.collection-editor {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.collection-sidebar,
.item-editor {
  display: grid;
  align-content: start;
  gap: 14px;
}

.collection-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.item-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.item-list button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.item-list button.active {
  background: rgba(0, 167, 160, 0.14);
  color: var(--teal);
  font-weight: 900;
}

.image-uploader {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 86%, transparent);
}

.map-picker-box,
.coordinate-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 167, 160, 0.05);
}

.map-picker-box {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.coordinate-preview {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.coordinate-preview span {
  color: var(--muted);
}

.home-section-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 167, 160, 0.04);
}

.section-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-row h3,
.section-row p {
  margin: 0;
}

.hero-upload-btn {
  position: relative;
  overflow: hidden;
}

.hero-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hero-slide-list {
  display: grid;
  gap: 14px;
}

.hero-slide-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.hero-slide-thumb {
  display: grid;
  min-height: 118px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 167, 160, 0.08);
  color: var(--teal);
  font-weight: 900;
}

.hero-slide-thumb img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.hero-slide-fields {
  display: grid;
  gap: 10px;
}

.hero-slide-actions {
  display: grid;
  gap: 8px;
}

.doctor-photo-preview {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 167, 160, 0.2), rgba(255, 122, 89, 0.16));
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

.doctor-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rich-label {
  margin-top: 4px;
}

.rich-editor-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 167, 160, 0.06);
}

.rich-toolbar button,
.rich-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--ink);
  cursor: pointer;
  padding: 0 10px;
  font-weight: 800;
}

.rich-upload input {
  display: none;
}

.rich-editor {
  min-height: 220px;
  padding: 14px;
  color: var(--ink);
  outline: 0;
  line-height: 1.8;
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 3px rgba(0, 167, 160, 0.14);
}

.rich-editor img {
  max-width: 100%;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 124px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 72%, transparent) 54%, var(--bg)),
      linear-gradient(90deg, rgba(246, 251, 250, 0.9), transparent);
  }

  body.dark .hero-media::after {
    background: linear-gradient(180deg, rgba(8, 19, 25, 0.92), rgba(8, 19, 25, 0.76) 56%, #081319);
  }

  .hero-slide img {
    object-position: 63% center;
  }

  .hero-orbit {
    right: -80px;
    top: 20%;
  }

  .answer-band,
  .map-card,
  .tech-band,
  .split,
  .content-grid,
  .contact-section,
  .detail-layout,
  .admin-layout,
  .collection-editor {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards span,
  .contact-cards span:nth-child(3) {
    width: 100%;
  }

  .map-visual {
    min-height: 180px;
  }

  .map-picker-box,
  .coordinate-preview {
    grid-template-columns: 1fr;
  }

  .section-row,
  .hero-slide-item {
    grid-template-columns: 1fr;
  }

  .section-row {
    display: grid;
  }

  .hero-slide-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 18px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-head {
    flex-direction: column;
  }

  .service-grid,
  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand small,
  .nav-actions .primary-btn {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .ghost-btn {
    min-height: 38px;
    padding: 0 10px;
  }

  .nav-actions .icon-btn {
    width: 38px;
    min-height: 38px;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-strip,
  .service-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }

  .service-icon {
    position: static;
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    max-width: calc(100vw - 36px);
    font-size: 38px;
    line-height: 1.06;
    word-break: break-all;
  }

  h2,
  .hero-copy,
  .answer-band p {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .answer-band,
  .booking-form,
  .cms-panel {
    padding: 20px;
  }

  .section,
  .answer-band,
  .tech-band,
  .contact-section,
  .footer,
  .detail-hero,
  .detail-layout {
    width: calc(100% - 28px);
  }

  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }
}
