:root {
  --red: #8f2d27;
  --red-dark: #641b18;
  --paper: #f7f0e1;
  --paper-deep: #eee3cf;
  --panel: #fffaf0;
  --ink: #29231e;
  --muted: #675c4f;
  --gold: #b28a47;
  --gold-text: #76551f;
  --gold-light: #d9bd80;
  --line: #d8c8aa;
  --white: #fffaf0;
  --focus: #155d8d;
  --hero-shade: rgba(38, 18, 13, .62);
  --header-bg: rgba(255, 250, 240, .97);
  --shadow: 0 22px 55px -32px rgba(64, 39, 21, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--focus);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  text-decoration: none;
  flex: none;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand strong {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 19px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
}
.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  gap: 2px;
}
.nav-list li { flex: none; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--red); }
.nav-list a[aria-current="page"] { font-weight: 700; }
.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.menu-btn {
  display: none;
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.hero {
  min-height: 680px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 8px solid var(--red);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero-shade { position: absolute; inset: 0; background: var(--hero-shade); }
.hero-frame {
  position: absolute;
  inset: 28px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 110px;
  height: 8px;
  transform: translateX(-50%);
  border-left: 1px solid var(--gold-light);
  border-right: 1px solid var(--gold-light);
}
.hero-frame::before { top: -4px; border-top: 1px solid var(--gold-light); }
.hero-frame::after { bottom: -4px; border-bottom: 1px solid var(--gold-light); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 64px));
  padding: 90px 0;
  color: var(--white);
}
.hero-kicker { font-size: 14px; letter-spacing: 8px; margin-bottom: 24px; }
.hero h1 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(58px, 7.5vw, 104px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 12px;
  text-shadow: 0 3px 20px var(--hero-shade);
}
.hero h1 span {
  display: block;
  font-size: .48em;
  letter-spacing: 18px;
  margin-top: 20px;
}
.hero-motto {
  margin: 28px auto 32px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 18px;
  letter-spacing: 5px;
}
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  text-decoration: none;
  border: 1px solid var(--gold-light);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: var(--hero-shade); color: var(--white); }
.btn-outline:hover { background: var(--red-dark); }

.section { padding: 88px 0; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 10px;
}
.section-head h2, .intro-copy h2 {
  text-wrap: balance;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 3px;
}
.section-head p { margin-top: 12px; color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-grid.home-news-grid { grid-template-columns: minmax(0, 1fr); }
.service {
  min-height: 190px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: background .2s ease, transform .2s ease;
}
.service:hover { background: var(--paper-deep); transform: translateY(-3px); }
.service-no {
  font-family: "SimSun", serif;
  color: var(--gold-text);
  font-size: 14px;
  letter-spacing: 2px;
}
.service h3 {
  text-wrap: balance;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 25px;
  margin: 14px 0 8px;
  letter-spacing: 2px;
}
.service p { color: var(--muted); font-size: 14px; }
.service-arrow {
  position: absolute;
  right: 26px;
  bottom: 24px;
  color: var(--red);
  font-size: 22px;
}

.intro { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.intro::before {
  content: "儒";
  position: absolute;
  right: -30px;
  top: -160px;
  font-family: "SimSun", serif;
  font-size: 430px;
  line-height: 1;
  color: var(--red-dark);
  opacity: .45;
}
.intro-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.intro-seal {
  width: 210px;
  height: 210px;
  margin: auto;
  border: 1px solid var(--gold-light);
  outline: 1px solid var(--gold-light);
  outline-offset: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "SimSun", serif;
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: 8px;
}
.intro-seal small {
  display: block;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 4px;
  margin-top: 12px;
}
.intro-copy .eyebrow { color: var(--gold-light); }
.intro-copy h2 { font-size: 40px; }
.intro-copy p {
  margin-top: 22px;
  color: var(--paper-deep);
  font-size: 16px;
  line-height: 2;
}
.intro-values {
  display: flex;
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--gold);
  font-family: "SimSun", serif;
  letter-spacing: 3px;
}

.visit { padding-bottom: 96px; }
.visit-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.visit-main { padding: 42px; }
.visit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; }
.visit-item { border-top: 2px solid var(--gold); padding-top: 15px; }
.visit-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.visit-item strong { font-size: 18px; font-weight: 600; }
.visit-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--red);
}
.visit-item.address { grid-column: 1 / -1; }
.visit-item.address strong { font-size: 16px; line-height: 1.8; }
.qr {
  background: var(--paper-deep);
  border-left: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.qr img {
  width: 164px;
  height: auto;
  background: var(--panel);
  padding: 8px;
  border: 1px solid var(--line);
}
.qr p { font-size: 13px; margin: 12px 0; }
.qr a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--red);
  font-weight: 700;
  text-underline-offset: 4px;
}

.footer { background: var(--red-dark); color: var(--paper-deep); padding: 34px 0; }
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}
.footer strong {
  font-family: "SimSun", serif;
  color: var(--white);
  letter-spacing: 2px;
}
.footer p { font-size: 14px; margin-top: 7px; }
.footer-right { text-align: right; font-size: 14px; }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-links p { margin-top: 0; }

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .nav-list a { padding: 0 6px; font-size: 13px; }
  .header-phone { display: none; }
  .hero { min-height: 620px; }
  .intro-grid { gap: 46px; }
  .visit-card { grid-template-columns: 1fr 240px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-list a {
    min-height: 48px;
    justify-content: center;
    border: 1px solid var(--line);
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-seal { width: 160px; height: 160px; font-size: 42px; }
  .visit-card { grid-template-columns: 1fr; }
  .qr { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
}

@media (max-width: 560px) {
  .header-inner, .wrap, .footer-inner { width: min(100% - 28px, 1180px); }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .hero { min-height: 600px; }
  .hero-frame { inset: 14px; }
  .hero-content { width: calc(100% - 42px); padding: 70px 0; }
  .hero-kicker { font-size: 12px; letter-spacing: 4px; }
  .hero h1 { font-size: 53px; letter-spacing: 6px; }
  .hero h1 span { font-size: 28px; letter-spacing: 10px; margin-top: 18px; }
  .hero-motto { font-size: 14px; letter-spacing: 2px; }
  .cta-row { flex-direction: column; align-items: stretch; width: min(290px, 100%); margin: auto; }
  .btn { min-height: 52px; }
  .section { padding: 62px 0; }
  .section-head h2, .intro-copy h2 { font-size: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 160px; padding: 24px; }
  .intro-values { gap: 14px; font-size: 13px; flex-wrap: wrap; }
  .visit-main { padding: 26px 20px; }
  .visit-list { grid-template-columns: 1fr; }
  .visit-item.address { grid-column: auto; }
  .qr { padding: 24px; }
  .footer { padding: 28px 0; }
  .footer-links { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .service:hover { transform: none; }
}

/* ---------- 院区实拍照片 ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo {
  margin: 0;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.photo figcaption {
  padding: 12px 4px 2px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}
.photo figcaption::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: 5px;
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; gap: 12px; }
  .photo figcaption { font-size: 14px; }
}
.photo-grid.single { grid-template-columns: minmax(0, 640px); }

/* ============================================
   医院特色（首页首屏下置顶强化版）
   ============================================ */
.specialty {
  background: var(--paper-deep);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 66px;
}
.specialty .section-head { max-width: 860px; }
.specialty .section-head h2 { font-size: 44px; letter-spacing: 6px; }
.specialty .section-head p { font-size: 16px; }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.specialty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.specialty-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(64, 39, 21, .55); }
.specialty-card .tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 14px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 4px;
}
.specialty-card h3 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 30px;
  letter-spacing: 3px;
  margin: 18px 0 10px;
  color: var(--ink);
}
.specialty-card p { color: var(--muted); font-size: 15px; }
.specialty-card .go {
  margin-top: 18px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}
.specialty-note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .specialty .section-head h2 { font-size: 32px; letter-spacing: 3px; }
  .specialty-grid { grid-template-columns: 1fr; }
}
