/* 柏奥家官网 — 蓝白医疗风设计系统 */
:root {
  --primary: #0066e6;
  --primary-dark: #0a2a6b;
  --primary-mid: #1a4fa8;
  --primary-soft: #e8f1ff;
  --primary-softer: #f4f8ff;
  --accent: #00a0d2;
  --text: #1a2332;
  --text-muted: #5a6b7d;
  --border: #dce6f2;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(10, 42, 107, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 42, 107, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--primary-dark); }
p { margin: 0; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--primary-softer); }
.section-blue {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 55%, var(--primary) 100%);
  color: var(--white);
}
.section-blue h2, .section-blue h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.section-desc { color: var(--text-muted); max-width: 620px; font-size: 16px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Core services — stable 3-column cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.svc-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--primary-soft);
}
.svc-card-img img {
  width: 100%;
  height: 220px !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.svc-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-card-body h3 {
  font-size: 18px;
  color: var(--primary-dark);
}
.svc-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.svc-card-body a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.svc-card-body a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card-img,
  .svc-card-img img { height: 200px !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 102, 230, 0.28);
}
.btn-primary:hover { background: var(--primary-mid); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }
.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost-white {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(10, 42, 107, 0.08);
  border-bottom-color: var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-text strong {
  font-size: 20px;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}
.logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: none;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}
.header-phone small { font-size: 11px; color: var(--text-muted); }
.header-phone strong { font-size: 16px; color: var(--primary); }
@media (min-width: 1100px) {
  .header-phone { display: flex; }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.25s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #041a4a 0%, #0a2a6b 40%, #0066e6 100%);
  color: var(--white);
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,160,210,0.35), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.08), transparent 35%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
}
.hero-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
  display: block;
  font-size: 24px;
  color: var(--white);
}
.hero-stat span { font-size: 12px; color: rgba(255,255,255,0.7); }
.hero-visual {
  position: relative;
}
.hero-visual-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.18);
  background: var(--white);
}
.hero-visual-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  color: var(--primary-dark);
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.hero-float strong { display: block; font-size: 15px; margin-bottom: 4px; }
.hero-float span { font-size: 12px; color: var(--text-muted); }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.feature-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-list { margin-top: 24px; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066e6' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Trust / stats strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.trust-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.trust-item strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 4px;
}
.trust-item span { font-size: 13px; color: var(--text-muted); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
}
.timeline-item strong { display: block; color: var(--primary); margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); font-size: 14px; }

/* Team */
.team-card { text-align: center; padding: 28px 22px; }
.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary-soft);
  background: var(--primary-soft);
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 13px; color: var(--text-muted); text-align: left; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--text-muted); font-size: 14px; }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--primary-softer);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,102,230,0.12);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f8ef;
  color: #1b7a45;
  font-size: 14px;
}
.form-success.show { display: block; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--white); }

/* Store gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.gallery-main, .gallery-side img, .gallery-side > div {
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.gallery-side { display: grid; gap: 16px; }
.gallery-side img { width: 100%; height: 172px; object-fit: cover; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* News */
.news-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: #061530;
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.72);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Floating contact */
.float-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0,102,230,0.35);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  border: none;
  cursor: pointer;
}
.float-btn.secondary { background: var(--primary-dark); }
.float-btn:hover { transform: translateY(-2px); }

/* Compliance note */
.compliance-note {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-softer);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse .feature-media,
  .grid-2,
  .grid-3,
  .grid-4,
  .trust-strip,
  .steps,
  .gallery,
  .footer-grid,
  .form-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
  .gallery-main img { min-height: 240px; }
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    left: 20px; right: 20px;
    top: calc(var(--header-h) + 8px);
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 12px 14px; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-stats, .trust-strip { grid-template-columns: 1fr; }
  .hero-float { left: 12px; right: 12px; max-width: none; bottom: -12px; }
  .cta-band { padding: 28px 22px; }
  .form-card { padding: 22px; }
}
