/* 依据 reference-styles 中的实测结果调整；品牌色与中文字体保持本地定义。 */
:root {
  --reference-gutter: 14px;
  --reference-radius: 20px;
  --reference-panel-space: 80px;
  --paper: #fff;
  --deep: #514357;
}
html { scroll-padding-top: 160px; }
body { padding-top: 145px; font-size: 17px; line-height: 1.5; }
.header {
  position: fixed;
  inset: 14px 14px auto;
  margin: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  z-index: 30;
}
.topbar {
  position: relative;
  min-height: 78px;
  padding: 5px 25px;
  border: 2px solid #e3e3e3;
  border-radius: 100px;
  z-index: 2;
}
.top-actions { gap: 28px; }
.top-actions .small {
  font-size: 16px;
  line-height: 24px;
  padding: 8px 30px;
  min-height: 44px;
  border: 2px solid #8d7d93;
  border-radius: 50px;
}
#menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 54px;
  height: 50px;
  padding: 4px;
}
#menu-toggle span { display: block; height: 2px; width: 42px; background: var(--ink); transition: transform .2s; }
#menu-toggle span:nth-child(2) { width: 26px; }
.menu-open #menu-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-open #menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open #menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
#nav {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding: 45px 25px 5px;
  background: var(--deep);
  border-radius: 12px 12px 50px 50px;
}
#nav a { font-family: var(--serif); font-size: 17.5px; font-weight: 600; line-height: 26px; padding: 0 36px; min-height: 32px; }
#nav a+a:before { width: 35px; left: -17.5px; top: 13px; background: #ede6ef; }
.menu-open #nav { margin-top: 10px; margin-left: auto; max-width: 500px; padding: 30px; display: grid; grid-template-columns: 1fr; border-radius: 20px; box-shadow: 0 16px 30px #352d3820; }
.menu-open #nav a { padding: 14px 20px; border-bottom: 1px solid #ffffff25; }
.menu-open #nav a:before { display: none; }
.hero { padding-top: 75px; padding-bottom: 80px; }
.hero-caption, .intro p:last-child { font-size: 17px; line-height: 1.6; }
.intro { padding-top: 110px; padding-bottom: 60px; }
.section { padding-top: 100px; padding-bottom: 100px; }
.projects { max-width: none; padding: 80px var(--reference-gutter) 0; }
.projects>.section-heading { padding: 0 6%; margin-bottom: 60px; }
.project-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-height: 640px;
  margin: 0 0 120px;
  border-radius: var(--reference-radius);
  background: #eee9ed;
  isolation: isolate;
}
.project-visual {
  position: absolute;
  inset: 0 50% 0 0;
  min-height: 0;
  padding: 55px;
  justify-content: center;
  background: linear-gradient(110deg, #e3d8e6, #f1ecef);
}
.panel-breast .project-visual { background: linear-gradient(110deg, #e8dce2, #f1ecef); }
.panel-body .project-visual { background: linear-gradient(110deg, #e2deda, #f1ecef); }
.panel-intimate .project-visual { background: linear-gradient(110deg, #e6dbe6, #f1ecef); }
.panel-hair .project-visual { background: linear-gradient(110deg, #e0e5df, #f1ecef); }
.panel-dental .project-visual { background: linear-gradient(110deg, #dfe4e9, #f1ecef); }
.visual-word { font-size: clamp(60px, 8vw, 130px); color: #8d7b91; letter-spacing: -4px; opacity: .45; }
.visual-number { left: 30px; bottom: 30px; }
.image-placeholder-note { position: absolute; left: 30px; bottom: 55px; color: #716374; font-size: 12px; letter-spacing: 1px; }
.project-copy-wrap { grid-column: 2; padding: var(--reference-panel-space); align-self: center; }
.project-copy {
  width: 100%;
  padding: var(--reference-panel-space);
  border-radius: var(--reference-radius);
  background: rgba(63, 49, 70, .88);
  text-align: center;
}
.project-copy .eyebrow { color: #e0d2e6; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 20px; }
.project-copy h2,.project-copy h1 { font-size: clamp(28px, 2.648vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: 0; margin: 20px 0; }
.project-copy h3 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 20px 0 25px; color: #e8e1da; }
.project-copy>p:not(.eyebrow) { font-size: clamp(16px, 1.212vw, 18px); line-height: 1.5; color: #fff; max-width: none; margin: 0 0 30px; }
.project-buttons { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.project-copy .button { min-height: 44px; padding: 8px 30px; margin: 0; border: 2px solid #9b939f; border-radius: 50px; background: #fff; color: #65506f; font-size: 16px; font-weight: 500; line-height: 24px; max-width: 100%; gap: 12px; }
.project-copy .button:hover { background: #eee6f0; }
.project-copy .button span { display: none; }
.project-detail-hero { padding: 45px var(--reference-gutter) 0; }
.project-detail-hero .project-panel { margin-bottom: 0; }
.doctor-card p { font-size: 15px; line-height: 1.6; }
.doctor-card .text-link { font-size: 14px; }
.gallery-feature {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 1000px;
  background: #fff;
  color: var(--ink);
  isolation: isolate;
}
.gallery-editorial { width: 489px; margin-left: max(35px, 9.236vw); padding: 55px 0; position: relative; z-index: 2; }
.gallery-feature .eyebrow { color: var(--purple); margin: 0 0 20px; }
.gallery-feature p.gallery-display { font: 138px/1.04 Georgia, 'Times New Roman', serif; letter-spacing: -7px; color: #8e8096; margin: 0 0 55px; }
.gallery-feature h2 { font-size: 30px; margin-bottom: 16px; }
.gallery-feature .gallery-editorial>p:not(.eyebrow):not(.gallery-display) { color: var(--muted); font-size: 17px; margin: 0 0 25px; }
.gallery-feature .button { width: 272px; min-height: 59px; padding: 16.5px 20px; border: 2px solid var(--deep); border-radius: 0; font-size: 18px; line-height: 22px; color: var(--ink); background: #fff; gap: 24px; }
.gallery-feature .button:hover { color: white; background: var(--deep); }
.gallery-media { position: absolute; inset: 0 0 0 42.3%; background: #eee8ef; overflow: hidden; }
.gallery-media img { height: 100%; width: 100%; object-fit: contain; }
.gallery-media span { position: absolute; bottom: 22px; left: 20px; padding: 5px 10px; background: #ffffffed; font-size: 12px; color: var(--ink); }
.page-heading { padding-top: 85px; padding-bottom: 85px; background: #f4f0f5; }
.page-heading>p:last-child:not(.eyebrow),.clinic p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
.filters label { font-size: 16px; }
.filters select { border-color: #98879e; font-size: 16px; min-height: 50px; }
.case-image { background: #f4f1f5; }
.case-card h3 { font-size: 20px; }
.source-note { font-size: 14px; }
@media (min-width: 1920px) {
  .gallery-editorial { margin-left: calc(42.3vw - 290px); }
  .gallery-feature p.gallery-display { font-size: 150px; }
}
@media (max-width: 1199px) {
  .project-copy-wrap,.project-copy { padding: 35px; }
  .project-panel { min-height: 540px; }
  #nav a { padding: 0 24px; font-size: 16px; }
  #nav a+a:before { width: 25px; left: -12.5px; }
  .gallery-feature { flex-direction: column-reverse; min-height: 0; }
  .gallery-media { position: relative; inset: auto; width: 100%; height: 650px; }
  .gallery-media img { width: 100%; height: 100%; object-fit: contain; }
  .gallery-media span { top: 20px; bottom: auto; }
  .gallery-editorial { width: 100%; margin: -80px 0 0; padding: 0 35px 65px; text-align: center; }
  .gallery-feature p.gallery-display { font-size: 110px; line-height: 1; margin-bottom: 45px; text-shadow: 0 2px 3px #fff; }
  .gallery-feature .gallery-editorial>p.eyebrow { margin-bottom: 18px; background: #fff; display: inline-block; padding: 6px 12px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 100px; }
  body { padding-top: 92px; font-size: 16px; }
  .header { inset: 10px 10px auto; }
  .topbar { padding: 10px 12px; min-height: 70px; }
  .brand { font-size: 20px; letter-spacing: 2px; }
  .brand small { font-size: 7px; letter-spacing: .7px; }
  .top-actions { gap: 4px; }
  .top-actions .small { padding: 8px 12px; font-size: 13px; line-height: 22px; }
  .top-actions .small span { display: none; }
  #menu-toggle { width: 44px; height: 44px; gap: 6px; }
  #menu-toggle span { width: 27px; }
  #menu-toggle span:nth-child(2) { width: 18px; }
  .menu-open #menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open #menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  #nav { display: none; }
  .menu-open #nav { padding: 15px; max-width: none; margin-top: 8px; max-height: calc(100dvh - 100px); overflow: auto; }
  .menu-open #nav a { font-size: 17px; }
  .hero { padding-top: 35px; padding-bottom: 50px; }
  .hero-caption { font-size: 16px; }
  .section { padding-top: 65px; padding-bottom: 65px; }
  .intro p:last-child { font-size: 16px; }
  .projects { padding: 50px 14px 0; }
  .projects>.section-heading { padding: 0 6px; margin-bottom: 30px; }
  .project-panel { display: block; min-height: 0; margin-bottom: 65px; }
  .project-visual { position: relative; inset: auto; min-height: 260px; padding: 30px; }
  .visual-word { font-size: 76px; }
  .visual-number { font-size: 10px; left: 20px; bottom: 15px; }
  .image-placeholder-note { left: 20px; bottom: 37px; }
  .project-copy-wrap { padding: 35px; }
  .project-copy { padding: 35px; }
  .project-copy h2,.project-copy h1 { font-size: 28px; margin: 20px 0; }
  .project-copy h3 { font-size: 16px; margin-bottom: 20px; }
  .project-copy>p:not(.eyebrow) { font-size: 16px; line-height: 1.5; }
  .project-copy .button { font-size: 15px; padding: 8px 15px; }
  .project-copy .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .project-detail-hero { padding-top: 20px; }
  .gallery-media { height: 490px; }
  .gallery-editorial { padding: 0 25px 65px; margin-top: -60px; }
  .gallery-feature p.gallery-display { font-size: 80px; letter-spacing: -4px; margin-bottom: 30px; }
  .gallery-feature h2 { font-size: 28px; }
  .gallery-feature .gallery-editorial>p:not(.eyebrow):not(.gallery-display) { font-size: 16px; }
  .gallery-feature .button { max-width: 100%; }
  .doctor-card p { font-size: 14px; }
  .doctor-card .text-link { font-size: 13px; }
  .page-heading { padding: 50px 6%; }
  .page-heading>p:last-child:not(.eyebrow),.clinic p:not(.eyebrow) { font-size: 16px; }
  .filters { gap: 20px 16px; }
  .filters select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #menu-toggle span { transition: none; } }
