:root {
  --ink: #172522;
  --muted: #62706c;
  --line: #dfe6e1;
  --paper: #ffffff;
  --soft: #f6f8f4;
  --deep: #11453f;
  --deep-2: #1f6158;
  --rose: #b95f74;
  --gold: #b9843a;
  --mint: #6a9f8f;
  --shadow: 0 20px 60px rgba(17, 69, 63, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 230, 225, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  flex: 1;
}

.main-nav a {
  color: #31413d;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--deep);
}

.header-cta,
.btn,
.contact-pill,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
}

.header-cta {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--deep);
  font-size: 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, 82svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 34%, rgba(255, 255, 255, 0.18) 68%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(17, 69, 63, 0.04), rgba(17, 69, 63, 0.14));
}

.hero-content {
  width: min(650px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.route-copy h2,
.appointment-copy h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10em;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #354540;
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: var(--deep);
  box-shadow: 0 12px 28px rgba(17, 69, 63, 0.24);
}

.btn-primary:hover,
.header-cta:hover {
  background: #0d3732;
}

.btn-secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(17, 69, 63, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 42px 0 0;
}

.hero-metrics div {
  border-left: 3px solid var(--deep);
  padding-left: 14px;
}

.hero-metrics dt {
  font-weight: 800;
  font-size: 22px;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-band {
  background: var(--deep);
  color: #fff;
}

.notice-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-inner span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-size: 13px;
}

.notice-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  flex: 1;
}

.notice-inner a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.section-heading h2,
.route-copy h2,
.appointment-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p:not(.eyebrow),
.route-copy > p,
.appointment-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.service-card,
.case-card,
.doctor-card,
.space-card,
.appointment-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card {
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card > svg,
.service-card > i {
  width: 34px;
  height: 34px;
  color: var(--deep);
}

.service-card h3,
.case-card h3,
.doctor-card h3 {
  margin: 20px 0 10px;
  line-height: 1.25;
  font-size: 21px;
}

.service-card p,
.case-card p,
.doctor-card p {
  margin: 0;
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--deep);
  font-weight: 700;
}

.accent-rose > svg,
.accent-rose > i {
  color: var(--rose);
}

.accent-gold > svg,
.accent-gold > i {
  color: var(--gold);
}

.accent-mint > svg,
.accent-mint > i {
  color: var(--mint);
}

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

.case-card {
  padding: 26px;
  min-height: 310px;
}

.case-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--deep);
  background: rgba(17, 69, 63, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.case-label.rose {
  color: var(--rose);
  background: rgba(185, 95, 116, 0.1);
}

.case-label.gold {
  color: var(--gold);
  background: rgba(185, 132, 58, 0.12);
}

.case-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #455550;
}

.case-card li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}

.case-card li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

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

.doctor-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  min-height: 236px;
}

.doctor-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--deep);
  font-size: 28px;
  font-weight: 800;
}

.doctor-avatar.rose {
  background: var(--rose);
}

.doctor-avatar.gold {
  background: var(--gold);
}

.doctor-title {
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.doctor-card h3 {
  margin-top: 4px;
}

.space-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}

.space-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow);
}

.space-card.large {
  grid-row: span 2;
}

.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card:not(.large) img {
  object-position: left center;
}

.space-card.crop-right img {
  object-position: right center;
}

.space-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(23, 37, 34, 0.72);
  backdrop-filter: blur(12px);
}

.space-card figcaption span {
  font-weight: 800;
}

.space-card figcaption small {
  color: rgba(255, 255, 255, 0.78);
}

.route-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: center;
}

.route-copy > p {
  margin-top: 18px;
}

.route-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.route-list div {
  display: grid;
  grid-template-columns: 36px 88px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.route-list svg,
.route-list i {
  color: var(--deep);
}

.route-list span {
  color: var(--muted);
  font-size: 14px;
}

.route-list strong {
  font-size: 15px;
  line-height: 1.35;
}

.map-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 69, 63, 0.08), rgba(185, 95, 116, 0.08)),
    #f7faf7;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 69, 63, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 69, 63, 0.09) 1px, transparent 1px);
  background-size: 54px 54px;
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 69, 63, 0.14);
  content: "";
}

.map-grid::before {
  width: 520px;
  height: 86px;
  left: -60px;
  top: 138px;
  transform: rotate(-8deg);
}

.map-grid::after {
  width: 620px;
  height: 70px;
  right: -160px;
  bottom: 92px;
  transform: rotate(18deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  box-shadow: 0 18px 38px rgba(17, 69, 63, 0.28);
}

.map-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.map-card span {
  color: var(--muted);
  font-size: 14px;
}

.map-card strong {
  font-size: 24px;
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 38px;
  align-items: start;
  padding: 92px max(20px, calc((100% - 1180px) / 2));
  color: #fff;
  background: var(--deep);
}

.appointment-section .eyebrow,
.appointment-copy > p {
  color: rgba(255, 255, 255, 0.78);
}

.appointment-copy > p {
  margin-top: 18px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-pill {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.wechat-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  max-width: 620px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.wechat-card img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 61%;
  border: 8px solid #fff;
  border-radius: var(--radius);
  background: #fff;
}

.wechat-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.wechat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.25;
}

.wechat-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: #31413d;
  font-weight: 700;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(17, 69, 63, 0.12);
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: min(420px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(23, 37, 34, 0.94);
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1040px) {
  .site-header {
    gap: 14px;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 68svh;
    align-items: end;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.96) 56%, #fff 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 88px 0 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics,
  .section-heading,
  .case-grid,
  .doctor-grid,
  .route-section,
  .appointment-section,
  .space-gallery {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 16px;
  }

  .notice-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .section,
  .section-muted,
  .appointment-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .doctor-card {
    min-height: 0;
  }

  .space-gallery {
    grid-template-rows: none;
  }

  .space-card,
  .space-card.large {
    min-height: 280px;
  }

  .route-section,
  .appointment-section {
    gap: 28px;
  }

  .map-panel {
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  .brand strong {
    max-width: 160px;
    font-size: 15px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-line {
    flex-direction: column;
  }

  .btn,
  .contact-pill {
    width: 100%;
  }

  .wechat-card {
    grid-template-columns: 1fr;
  }

  .wechat-card img {
    width: min(100%, 220px);
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero-metrics div {
    border-left-width: 2px;
    padding-left: 9px;
  }

  .hero-metrics dt {
    font-size: 18px;
  }

  .hero-metrics dd {
    font-size: 12px;
  }

  .route-list div {
    grid-template-columns: 32px 1fr;
  }

  .route-list strong {
    grid-column: 2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
