:root {
  --ink: #26201c;
  --muted: #766d66;
  --soft: #f7f1ea;
  --paper: #fffaf5;
  --line: rgba(62, 47, 38, 0.14);
  --gold: #b48a55;
  --gold-dark: #8c6232;
  --rose: #d8a79b;
  --emerald: #174239;
  --emerald-soft: #e5eee9;
  --shadow: 0 22px 60px rgba(38, 32, 28, 0.13);
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 52px;
  color: var(--ink);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    height 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 68px;
  background: rgba(255, 250, 245, 0.92);
  box-shadow: 0 12px 36px rgba(38, 32, 28, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(180, 138, 85, 0.42);
  border-radius: 50%;
  color: var(--paper);
  background: var(--emerald);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--gold-dark);
  font-size: 11px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: rgba(38, 32, 28, 0.76);
  font-size: 15px;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 245, 0.78);
  color: var(--ink);
}

.menu-button span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-header.is-open .menu-button span:first-child {
  transform: translateY(3px) rotate(42deg);
}

.site-header.is-open .menu-button span:last-child {
  transform: translateY(-3px) rotate(-42deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 58px) 52px 96px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-medical-aesthetics.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.94) 0%, rgba(255, 250, 245, 0.84) 31%, rgba(255, 250, 245, 0.22) 67%, rgba(255, 250, 245, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.54) 0%, rgba(255, 250, 245, 0) 46%, rgba(255, 250, 245, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-size: 74px;
  line-height: 1.04;
  font-weight: 600;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--emerald);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 22px 0 0;
  color: rgba(38, 32, 28, 0.77);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-width: 138px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--emerald);
  box-shadow: 0 14px 32px rgba(23, 66, 57, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #10352f;
}

.button-ghost {
  color: var(--ink);
  border-color: rgba(38, 32, 28, 0.22);
  background: rgba(255, 250, 245, 0.58);
}

.button-wide {
  width: 100%;
  margin-top: 12px;
}

.hero-strip {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 74px;
  border: 1px solid rgba(255, 250, 245, 0.54);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-strip span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 14px 12px;
  color: rgba(38, 32, 28, 0.82);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-left: 1px solid var(--line);
}

.hero-strip span:first-child {
  border-left: 0;
}

.section-pad {
  padding: 104px 52px;
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 54px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-copy h2,
.section-heading h2,
.aesthetic h2,
.contact h2 {
  margin: 0;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-size: 42px;
  line-height: 1.22;
  font-weight: 600;
}

.intro-text {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 17px;
}

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

.focus {
  background: var(--soft);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.focus-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(38, 32, 28, 0.09);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(38, 32, 28, 0.06);
}

.service-index {
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.service-card h3,
.timeline h3 {
  margin: 0;
  color: var(--emerald);
  font-size: 21px;
  line-height: 1.35;
}

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

.aesthetic {
  background:
    linear-gradient(90deg, rgba(23, 66, 57, 0.96), rgba(23, 66, 57, 0.9)),
    var(--emerald);
  color: var(--paper);
}

.aesthetic-panel {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.aesthetic .section-kicker {
  color: #e0bd8f;
}

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

.principles div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 250, 245, 0.22);
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  font-size: 20px;
  line-height: 1.35;
}

.principles span {
  margin-top: 8px;
  color: rgba(255, 250, 245, 0.74);
}

.timeline {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline article {
  min-height: 230px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.timeline article:first-child {
  border-left: 0;
}

.timeline span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.contact {
  max-width: none;
  margin: 0;
  padding-left: max(52px, calc((100vw - 1180px) / 2 + 52px));
  padding-right: max(52px, calc((100vw - 1180px) / 2 + 52px));
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.96), rgba(255, 250, 245, 0.74)),
    var(--emerald-soft);
}

.contact-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.contact-panel {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(38, 32, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.82);
  box-shadow: var(--shadow);
}

.contact-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  color: var(--gold-dark);
  font-weight: 700;
}

.contact-line strong {
  color: var(--ink);
  font-size: 18px;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 34px 52px;
  color: rgba(255, 250, 245, 0.76);
  background: #201a17;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    padding: 0 28px;
  }

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

  .hero-strip {
    left: 28px;
    right: 28px;
  }

  .focus-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article:nth-child(3) {
    border-left: 0;
  }

  .section-pad,
  .contact {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    height: var(--header-h);
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 245, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(38, 32, 28, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 90svh;
    padding: calc(var(--header-h) + 42px) 18px 132px;
  }

  .hero-media {
    background-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 250, 245, 0.96) 0%, rgba(255, 250, 245, 0.9) 46%, rgba(255, 250, 245, 0.4) 100%),
      linear-gradient(180deg, rgba(255, 250, 245, 0.42), rgba(255, 250, 245, 0.78));
  }

  .eyebrow,
  .section-kicker {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 23px;
  }

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

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .button {
    min-width: 128px;
    min-height: 44px;
    padding: 10px 18px;
  }

  .hero-strip {
    left: 18px;
    right: 18px;
    bottom: 16px;
    grid-template-columns: repeat(2, 1fr);
    min-height: 96px;
  }

  .hero-strip span {
    min-height: 48px;
    font-size: 14px;
  }

  .hero-strip span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-strip span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-pad,
  .contact {
    padding: 72px 18px;
  }

  .intro,
  .aesthetic-panel,
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-copy h2,
  .section-heading h2,
  .aesthetic h2,
  .contact h2 {
    font-size: 31px;
    line-height: 1.28;
  }

  .focus-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
    padding: 24px;
  }

  .timeline {
    border-top: 0;
  }

  .timeline article,
  .timeline article:nth-child(3) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .timeline span {
    margin-bottom: 18px;
  }

  .contact-panel {
    padding: 22px;
  }

  .contact-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    padding: 28px 18px;
  }
}
