:root {
  --yellow-bg: #fffbf0;
  --yellow-light: #fff8e1;
  --yellow: #f5e6b8;
  --yellow-mid: #edd896;
  --yellow-dark: #c9a84c;
  --white: #ffffff;
  --text: #444444;
  --text-muted: #888888;
  --border: #f0e8d0;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --header-h: 64px;
  --max-width: 960px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 52px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--yellow-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 首屏 ===== */
.hero {
  background: var(--yellow-bg);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  padding: calc(var(--header-h) + 56px) 24px 56px;
}

.hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-info {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hero-info li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-label {
  flex-shrink: 0;
  width: 64px;
  font-size: 0.82rem;
  color: var(--yellow-dark);
}

.hero-info a {
  color: var(--text);
  font-weight: 500;
}

.hero-info a:hover {
  color: var(--yellow-dark);
}

.hero-actions {
  margin-top: 32px;
  margin-bottom: 28px;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 40px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--yellow);
  border: 1px solid var(--yellow-mid);
  border-radius: 4px;
  transition: background 0.25s var(--ease);
}

.btn-consult:hover {
  background: var(--yellow-mid);
  color: var(--text);
}

.ad-approval {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--yellow-mid);
  border-radius: 4px;
  max-width: 100%;
}

.ad-approval-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ad-approval-no {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--yellow-dark);
  font-weight: 600;
}

/* ===== 固定底栏 ===== */
.compliance-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 20px;
  background: var(--yellow-light);
  border-top: 1px solid var(--border);
}

.compliance-ad {
  font-size: 0.8rem;
  color: var(--yellow-dark);
  font-weight: 500;
}

.compliance-consult {
  flex-shrink: 0;
  padding: 7px 20px;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--yellow);
  border: 1px solid var(--yellow-mid);
  border-radius: 4px;
  transition: background 0.25s var(--ease);
}

.compliance-consult:hover {
  background: var(--yellow-mid);
  color: var(--text);
}

/* ===== 区块 ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--yellow-bg);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

/* ===== 科室服务 ===== */
.dept-group {
  margin-bottom: 40px;
}

.dept-group:last-of-type {
  margin-bottom: 24px;
}

.dept-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.dept-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border: 1px solid var(--yellow-mid);
  border-radius: 2px;
}

.dept-badge-general {
  background: var(--white);
}

.dept-group-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 16px 20px;
  text-align: center;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.dept-card:hover {
  border-color: var(--yellow-mid);
  box-shadow: 0 4px 16px rgba(237, 216, 150, 0.25);
}

.dept-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.dept-icon svg {
  width: 100%;
  height: 100%;
}

.dept-card h3 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.dept-sub {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.scope-legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card-accent {
  background: var(--yellow-light);
  border-color: var(--yellow-mid);
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--yellow-dark);
}

.contact-phone:hover {
  color: var(--text);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--yellow-bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--yellow-dark);
}

.footer-sep {
  margin: 0 10px;
}

/* ===== 手机端 ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  body {
    padding-bottom: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
    border-bottom: 1px solid transparent;
  }

  .nav.open {
    max-height: 140px;
    border-bottom-color: var(--border);
  }

  .nav a {
    display: block;
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
  }

  .logo {
    font-size: 0.82rem;
    max-width: 62%;
    line-height: 1.35;
  }

  .hero-content {
    padding: calc(var(--header-h) + 40px) 16px 40px;
  }

  .hero-info li {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }

  .hero-label {
    width: auto;
  }

  .btn-consult {
    width: 100%;
    max-width: 260px;
  }

  .ad-approval {
    width: 100%;
    max-width: 340px;
  }

  .compliance-bar {
    gap: 10px;
    padding: 8px 12px;
  }

  .compliance-ad {
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }

  .dept-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dept-card {
    padding: 20px 12px 16px;
  }

  .dept-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 10px;
  }

  .dept-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-sep {
    display: block;
    margin: 4px 0;
    visibility: hidden;
    height: 0;
  }

  .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }
}
