/* ============================================================
   MÉRIDIEN — 医美诊所
   干净明亮 · 大量留白 · 衬线 + 无衬线搭配
   ============================================================ */
:root {
  --bg: #fdfcfa;
  --bg-2: #f6f2ec;
  --bg-3: #efe9e1;
  --ink: #1e1b18;
  --ink-2: #5c554d;
  --ink-3: #938b81;
  --line: rgba(30, 27, 24, .1);
  --line-2: rgba(30, 27, 24, .18);
  --accent: #a88b6c;
  --accent-dark: #8a6f52;

  --serif: "Playfair Display", "Didot", "Times New Roman", "Songti SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.shell { width: min(var(--max), 100% - 56px); margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 30px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; transition: all .28s var(--ease);
}
.btn-sm { height: 40px; padding: 0 22px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 38px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- 头部 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(253, 252, 250, .9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 84px; display: flex; align-items: center; gap: 46px; }

.brand { display: flex; align-items: center; }
.brand-name {
  font-family: var(--serif); font-size: 20px; letter-spacing: .24em;
  color: var(--ink); white-space: nowrap;
}

.nav { display: flex; gap: 36px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--ink-2); letter-spacing: .02em;
  transition: color .2s ease; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 13px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  transition: all .25s ease;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-cur { color: var(--ink); }
.lang-sep { opacity: .3; font-size: 11px; }
.lang-alt { opacity: .5; }
.lang-btn:hover .lang-alt { opacity: 1; }

.burger { display: none; width: 38px; height: 34px; background: none; border: 0; padding: 8px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin-bottom: 7px; transition: .3s; }
.burger span:last-child { margin-bottom: 0; }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(253, 252, 250, .98); border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
}
.mobile-nav.open { max-height: 340px; }
.mobile-nav a { padding: 17px 28px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; }
.hero-copy { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }

.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.1; }
.accent { color: var(--accent-dark); font-style: italic; }
.hero-sub {
  margin-top: 28px; max-width: 460px;
  font-size: 15.5px; line-height: 1.95; color: var(--ink-2);
}
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* 视觉 */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hv-card {
  border-radius: 260px 260px 28px 28px;
  display: grid; place-items: center; overflow: hidden;
}
.hv-back {
  position: absolute; width: 290px; height: 400px;
  background: var(--bg-3); transform: rotate(-6deg) translate(-24px, 10px);
}
.hv-front {
  position: relative; width: 300px; height: 410px;
  background: linear-gradient(165deg, #faf6f0, #ece3d7);
  box-shadow: 0 40px 80px -50px rgba(80, 60, 40, .5);
}
.hv-front svg { width: 78%; height: auto; }
.hv-badge {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2); letter-spacing: .02em;
  box-shadow: 0 12px 30px -18px rgba(80, 60, 40, .4);
}
.hv-dot { width: 6px; height: 6px; border-radius: 50%; background: #5fa86b; flex: none; }

/* 合作机构 */
.hero-logos {
  margin-top: 90px; padding-top: 34px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.hero-logos > span {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.logo-row { display: flex; gap: 44px; flex-wrap: wrap; }
.logo-row span {
  font-family: var(--serif); font-size: 15px; letter-spacing: .16em; color: var(--line-2);
  transition: color .3s ease;
}
.logo-row span:hover { color: var(--ink-2); }

/* ---------- 区块 ---------- */
.section { padding: 110px 0; }
.light { background: var(--bg-2); }

.sec-head { max-width: 620px; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 44px); }
.sec-sub { margin-top: 20px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* 项目卡 */
.tr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tr-card {
  position: relative; padding: 40px 36px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  transition: box-shadow .35s ease, transform .35s var(--ease), border-color .35s ease;
}
.tr-card:hover {
  transform: translateY(-4px); border-color: transparent;
  box-shadow: 0 28px 60px -40px rgba(80, 60, 40, .5);
}
.tr-num {
  font-family: var(--serif); font-size: 13px; letter-spacing: .14em;
  color: var(--accent); display: block; margin-bottom: 20px;
}
.tr-card h3 { font-size: 25px; margin-bottom: 14px; }
.tr-card p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.tr-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tr-tags span {
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}

/* 医师 */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.doc { text-align: left; }
.doc-photo {
  aspect-ratio: 3 / 3.4; overflow: hidden; border-radius: 999px 999px 6px 6px;
  margin-bottom: 24px; background: var(--bg-2);
}
.doc-photo svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.doc:hover .doc-photo svg { transform: scale(1.05); }
.doc h3 { font-size: 22px; margin-bottom: 7px; }
.doc-role {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.doc-desc { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }

/* 流程 */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-2);
}
.step {
  padding: 36px 28px 0 0; border-right: 1px solid var(--line);
  transition: background .3s ease;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step-n {
  font-family: var(--serif); font-size: 13px; color: var(--accent);
  letter-spacing: .14em; display: block; margin-bottom: 22px;
}
.step h3 { font-size: 19px; margin-bottom: 12px; }
.step p { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

/* CTA */
.cta-sec { padding: 100px 0 120px; }
.cta-box {
  text-align: center; padding: 74px 40px;
  background: var(--bg-3); border-radius: 32px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 68%);
  top: -240px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-box h2 { position: relative; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.35; }
.cta-box p { position: relative; margin-top: 20px; font-size: 14.5px; color: var(--ink-2); }
.cta-box .btn { position: relative; margin-top: 34px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 52px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-desc { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.footer-right { text-align: right; font-size: 12.5px; color: var(--ink-3); line-height: 2; }

/* 动效 */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
[data-i18n] { transition: opacity .2s ease; }
body.lang-switching [data-i18n] { opacity: .3; transition: opacity .15s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-nav { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; min-height: 360px; }
  .hv-back { width: 240px; height: 330px; }
  .hv-front { width: 260px; height: 350px; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step { padding-right: 20px; }
  .step:nth-child(2) { border-right: 0; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { height: 70px; }
  .header-right .btn { display: none; }
  .hero { padding: 118px 0 64px; }
  .hero-visual { min-height: 300px; }
  .hv-back { width: 200px; height: 280px; }
  .hv-front { width: 220px; height: 300px; }
  .hv-badge { font-size: 10.5px; padding: 9px 14px; white-space: normal; text-align: center; }
  .section { padding: 72px 0; }
  .tr-grid, .doc-grid, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-right: 0; }
  .tr-card { padding: 30px 24px; }
  .cta-box { padding: 48px 22px; border-radius: 22px; }
  .hero-logos { gap: 24px; margin-top: 56px; }
  .logo-row { gap: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
