/* ============================================
   天津坤如玛丽妇产医院 - 公共样式表
   主题色：玫红渐变 #C41E5C → #E63383
   风格：高端温馨、白色卡片配阴影
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  --primary: #C41E5C;
  --primary-light: #E63383;
  --primary-dark: #8B1538;
  --gradient-primary: linear-gradient(135deg, #C41E5C 0%, #E63383 100%);
  --gradient-hero: linear-gradient(135deg, #6A0E2E 0%, #C41E5C 45%, #E63383 100%);
  --secondary: #00A870;
  --accent: #FF9F43;
  --danger: #e34d59;
  --bg-page: #fdf6f9;
  --bg-white: #ffffff;
  --text-primary: #2D1020;
  --text-secondary: #6B4555;
  --text-light: #A88B99;
  --border-color: #f0e0e6;
  --shadow-sm: 0 2px 8px rgba(196, 30, 92, 0.06);
  --shadow-md: 0 4px 20px rgba(196, 30, 92, 0.08);
  --shadow-lg: 0 8px 40px rgba(196, 30, 92, 0.12);
  --shadow-card: 0 2px 16px rgba(196, 30, 92, 0.07);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* ===== 通用容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 30, 92, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 92, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== 板块标题 ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 14px;
  color: var(--primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  padding: 0 20px;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
}

.section-header .eyebrow::before { left: -20px; }
.section-header .eyebrow::after { right: -20px; }

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 顶部栏 ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  height: 40px;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right a {
  transition: color 0.2s;
}

.top-bar-right a:hover {
  color: #fff;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== 导航栏 ===== */
.navbar {
  background: #fff;
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.navbar-brand .brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.navbar-brand .brand-text p {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--primary);
  background: rgba(196, 30, 92, 0.06);
}

.nav-menu > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions .btn {
  padding: 9px 22px;
  font-size: 14px;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: var(--text-primary);
}

/* ===== 页脚 ===== */
.footer {
  background: #3D0817;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .logo-row .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand .logo-row h3 {
  font-size: 17px;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact .icon {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: #d4b0bf;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li > a {
    width: 100%;
    padding: 14px 18px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions .btn {
    display: none;
  }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 28px; }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}