:root {
  --bg: #f6ede7;
  --bg-soft: #fffaf6;
  --ink: #201919;
  --muted: #6f6260;
  --rose: #c97d84;
  --rose-deep: #964a54;
  --rose-soft: #f2d3d8;
  --line: rgba(32, 25, 25, 0.12);
  --shadow: 0 24px 70px rgba(61, 35, 38, 0.14);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff8f4;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(50, 28, 29, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 248, 244, 0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.22s ease, transform 0.22s ease;
}

.language-toggle:hover {
  background: rgba(255, 248, 244, 0.22);
  transform: translateY(-1px);
}

.site-header.is-scrolled .language-toggle,
.site-header.is-open .language-toggle {
  background: rgba(150, 74, 84, 0.08);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.page { padding-top: 0; }
.panel {
  position: relative;
  padding: 106px clamp(18px, 4vw, 56px) 60px;
  overflow: hidden;
  scroll-margin-top: 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #b98c55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff8f4;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img { object-fit: cover; object-position: center top; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 18, 19, 0.8) 0%, rgba(28, 18, 19, 0.38) 55%, rgba(28, 18, 19, 0.08) 100%),
    linear-gradient(0deg, rgba(28, 18, 19, 0.2), transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__media img {
  animation: heroFloat 18s ease-in-out infinite alternate;
}

.hero h1,
.section-head h2,
.consult__text h2,
.vision__text h2,
.footer-location h2 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: 1.02; }
.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.9;
  color: rgba(255, 248, 244, 0.84);
}

.section-head {
  max-width: 900px;
  margin-bottom: 30px;
}

.section-head h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.08; }

.services {
  background: linear-gradient(180deg, #fffaf7, #f8ece8);
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  background: #e8d8d4;
  box-shadow: var(--shadow);
}

.service-card img {
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 12, 12, 0.02), rgba(16, 12, 12, 0.58));
}

.service-card__copy {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  color: #fff8f4;
}

.service-card__copy h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.service-card__copy p {
  margin: 0;
  max-width: 22ch;
  line-height: 1.65;
  color: rgba(255, 248, 244, 0.86);
}

.service-card:hover img {
  transform: scale(0.94);
  filter: saturate(1.02) contrast(1.01);
}

.consult {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  background: #fff8f6;
  min-height: auto;
}

.consult__text,
.contact-form {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.consult__text {
  padding: clamp(28px, 4vw, 54px);
}

.consult__text h2 {
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.04;
}

.consult__text p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.85;
}

.contact-lines {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.contact-lines span,
.contact-form span,
.footer-links h3 {
  display: block;
  color: var(--rose-deep);
  font-weight: 700;
}

.contact-lines a {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 38px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(32, 25, 25, 0.12);
  background: #fffdfb;
  border-radius: 0;
  outline: none;
}

.contact-form textarea { resize: vertical; min-height: 150px; }

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-error {
  color: #964a54;
}

.form-status.is-success {
  color: #6f8a5f;
}

.btn,
.link-button,
.mobile-cta,
.footer-services button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
}

.btn--primary {
  color: #fff8f4;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  box-shadow: 0 18px 30px rgba(157, 77, 87, 0.24);
}

.link-button {
  margin-top: 18px;
  padding: 0;
  color: var(--rose-deep);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.enhance {
  background: linear-gradient(180deg, #ffecee, #f8dfe3);
}

.vision__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 0;
  min-height: 72svh;
  background: #f6cfd5;
  box-shadow: var(--shadow);
}

.vision__text,
.vision__media {
  min-height: 100%;
}

.vision__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}

.vision__text h2 {
  max-width: 11ch;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.05;
}

.vision__text p {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.8;
}

.vision__media {
  position: relative;
  overflow: hidden;
}

.vision__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(0.88);
}

.about {
  background: #fffaf7;
}

.about-doctors {
  display: grid;
  gap: 22px;
}

.doctor-carousel {
  position: relative;
  overflow: hidden;
  min-height: var(--carousel-height, auto);
  overflow-anchor: none;
}

.doctor-carousel__viewport {
  display: flex;
  gap: 18px;
  min-height: inherit;
  will-change: transform;
}

.doctor-carousel__viewport.is-ready-prev {
  transform: translateX(calc((100% - 36px) / -3 - 18px));
}

.doctor-carousel__viewport.is-sliding-next {
  transform: translateX(calc((100% - 36px) / -3 - 18px));
  transition: transform 0.82s cubic-bezier(0.64, 0, 0.22, 1);
}

.doctor-carousel__viewport.is-sliding-prev {
  transform: translateX(0);
  transition: transform 0.82s cubic-bezier(0.64, 0, 0.22, 1);
}

.doctor-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.doctor-carousel__nav::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.72));
  opacity: 0.72;
}

.doctor-carousel__nav--prev {
  left: 4px;
}

.doctor-carousel__nav--prev::before {
  border-right: 32px solid rgba(32, 25, 25, 0.72);
}

.doctor-carousel__nav--next {
  right: 4px;
}

.doctor-carousel__nav--next::before {
  border-left: 32px solid rgba(32, 25, 25, 0.72);
}

.doctor-carousel__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.doctor-carousel__nav:hover::before {
  opacity: 0.92;
}

.doctor-card {
  flex: 0 0 calc((100% - 36px) / 3);
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: #e8d8d4;
  box-shadow: var(--shadow);
}

.doctor-card img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center center;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.doctor-card__copy {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  color: #201919;
}

.doctor-card__copy span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: inherit;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.doctor-card__copy h3,
.case-card figcaption {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.doctor-card__copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: inherit;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.doctor-card:hover img {
  transform: scale(0.94);
  filter: saturate(1.02) contrast(1.01);
}

.about-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.equipment {
  background: #fffaf7;
}

.equipment-grid {
  display: grid;
  gap: 22px;
}

.equipment-card {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.equipment-card img {
  height: 100%;
  object-position: center center;
}

.equipment-card__copy {
  inset: auto 18px 18px;
}

.equipment-card__copy h3 {
  font-size: 24px;
}

.follow {
  background: linear-gradient(180deg, #fffaf7, #f8ece8);
}

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

.follow-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.follow-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.follow-card div {
  padding: 18px;
  flex: 1;
}

.follow-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.follow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-panel {
  min-height: auto;
  padding-bottom: 48px;
  background: #f6e7df;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
  gap: 18px;
}

.footer-location,
.footer-links {
  background: transparent;
  box-shadow: none;
}

.footer-location {
  padding: clamp(24px, 4vw, 44px);
}

.footer-location h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.04;
}

.footer-location p {
  margin: 10px 0 20px;
  font-size: 19px;
  color: var(--muted);
}

.footer-location img {
  aspect-ratio: 900 / 520;
  object-fit: cover;
  border: 1px solid rgba(32, 25, 25, 0.08);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
}

.footer-links h3 {
  margin: 0 0 14px;
  font-size: 26px;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 20px;
  line-height: 2.5;
  color: var(--muted);
}

.footer-services button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 20px;
  line-height: 2.5;
}

.footer-links a:hover,
.contact-lines a:hover,
.footer-services button:hover {
  color: var(--rose-deep);
}

.footer-grid {
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.icp-link {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  color: rgba(32, 25, 25, 0.56);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.icp-link a {
  transition: color 0.22s ease;
}

.icp-link a:hover {
  color: var(--rose-deep);
}

.footer-location img {
  width: 80%;
  margin-top: 6px;
}

@keyframes heroFloat {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-12px); }
}

.mobile-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  display: none;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff8f4;
  background: var(--rose-deep);
  box-shadow: 0 16px 32px rgba(157, 77, 87, 0.24);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 16px;
    background: rgba(255, 250, 246, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 6px;
    border-bottom: 1px solid rgba(32, 25, 25, 0.08);
  }

  .language-toggle {
    width: fit-content;
    margin: 0 0 8px 6px;
  }

  .menu-toggle { display: block; }
  .service-grid,
  .consult,
  .vision__card,
  .about-cases,
  .equipment-grid,
  .follow-grid,
  .footer-grid,
  .footer-links { grid-template-columns: 1fr; }

  .vision__text h2 { max-width: 14ch; }
  .vision__media img { transform: none; min-height: 260px; }
  .doctor-card { flex-basis: 100%; }
  .doctor-carousel__viewport.is-ready-prev {
    transform: translateX(calc(-100% - 18px));
  }
  .doctor-carousel__viewport.is-sliding-next {
    transform: translateX(calc(-100% - 18px));
  }
  .doctor-carousel__nav { width: 52px; height: 52px; }
  .doctor-carousel__nav::before {
    border-top-width: 21px;
    border-bottom-width: 21px;
  }
  .doctor-carousel__nav--prev::before { border-right-width: 26px; }
  .doctor-carousel__nav--next::before { border-left-width: 26px; }
  .doctor-carousel__nav--prev { left: 8px; }
  .doctor-carousel__nav--next { right: 8px; }
  .footer-location img { width: 100%; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 16px; }
  .brand small { display: none; }
  .panel { padding: 94px 16px 52px; }
  .hero { min-height: 92svh; }
  .hero h1 { font-size: clamp(44px, 15vw, 78px); }
  .service-card,
  .doctor-card,
  .case-card img,
  .footer-location img { min-height: 220px; }
  .vision__card { min-height: auto; }
  .vision__text { padding: 26px 22px; }
  .vision__text h2 { font-size: clamp(34px, 10vw, 54px); }
  .mobile-cta { display: inline-flex; }
}
