/* 薇依医疗官网 - Pad优先自适应样式 */
:root {
  --brand-blue: #1f4e79;
  --brand-gold: #c9a86c;
  --text-dark: #222;
  --text-muted: #555;
  --panel-bg: rgba(255,255,255,0.92);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text-dark);
  background: #111;
}

.site-body {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-home { background-image: url('../images/index_bg.png'); }
.page-about,
.page-doctors,
.page-procedures,
.page-pricing,
.page-safety,
.page-contact,
.page-faq { background-image: url('../images/2_bg.png'); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo img { max-height: 42px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.site-nav a.active,
.site-nav a:hover {
  background: rgba(201,168,108,0.35);
  color: #fff;
}

.site-main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 16px 78px;
  display: flex;
  align-items: stretch;
}

.hero-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-visual {
  text-align: center;
  padding: 20px 0 10px;
}
.hero-title-img {
  max-width: min(80vw, 680px);
  width: 100%;
  height: auto;
}

.content-panel {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow-y: auto;
  flex: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 6px; color: #999; }
.breadcrumb [aria-current="page"] { color: var(--text-dark); }

.content-panel h1 {
  color: var(--brand-blue);
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 16px;
  line-height: 1.3;
}
.content-panel h2 {
  color: var(--brand-blue);
  font-size: clamp(18px, 2.5vw, 24px);
  margin: 24px 0 12px;
}
.content-panel h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.page-content p,
.page-content li,
.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
}
.page-content ul { padding-left: 20px; }

.doctor-card,
.location-card,
.faq-item {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  margin-top: 16px;
}
.doctor-card img {
  max-width: 120px;
  border-radius: 8px;
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.faq-nav a {
  background: var(--brand-blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
}

.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.75);
  color: #bbb;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 12px 7px;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.site-footer .footer-line { opacity: 0.92; }
.update-date { color: #888; font-size: 12px; }

/* Pad / 小屏适配 */
@media (max-width: 1024px) {
  .site-main { padding-top: 72px; }
  .content-panel { padding: 20px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    padding: 12px 16px 16px;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 15px; padding: 10px 12px; }
  .site-footer { position: static; margin-top: auto; }
  .site-main { padding-bottom: 20px; flex-direction: column; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero-visual { padding: 0; }
  .hero-title-img { max-width: 50vw; }
  .content-panel { max-height: calc(100dvh - 100px); overflow-y: auto; }
}
