/* ============================================
   南博医疗科技 · 官网共享样式
   严格基于 nabotix-mobile-prototype 设计系统
   品牌蓝 #0A4DA2 / DNA青绿 #00F0B8
   零外部图片依赖（纯CSS渐变+emoji）
   ============================================ */

:root {
  --blue-primary: #0A4DA2;
  --blue-dark: #003B73;
  --blue-darker: #00268B;
  --blue-light: #E8F1FC;
  --blue-gradient: linear-gradient(135deg, #003B73 0%, #0A4DA2 100%);
  --teal-accent: #00F0B8;
  --gray-900: #161616;
  --gray-700: #525252;
  --gray-500: #8d8d8d;
  --gray-300: #e0e0e0;
  --gray-100: #F5F7FA;
  --white: #ffffff;
  --text-primary: #161616;
  --text-secondary: #525252;
  --text-muted: #8d8d8d;
  --bg-primary: #ffffff;
  --bg-secondary: #F5F7FA;
  --border: #e0e0e0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --navbar-height: 64px;
  --max-content: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 28px rgba(10,77,162,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--gray { background: var(--bg-secondary); }

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 600px; }

.accent-bar { width: 40px; height: 3px; background: var(--teal-accent); border-radius: 2px; margin-bottom: 1rem; }
.accent-bar--centered { margin: 0 auto 1rem; }
.text-link { color: var(--blue-primary); font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.text-link:hover { gap: 8px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 0.95rem; font-weight: 500; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--transition); min-height: 48px; font-family: inherit; }
.btn-primary { background: var(--blue-primary); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-hover); }
.btn-nav-cta { background: transparent; color: var(--teal-accent); border: 1.5px solid var(--teal-accent); font-weight: 600; }
.btn-nav-cta:hover { background: var(--teal-accent); color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue-primary); border: 1.5px solid var(--blue-primary); }

/* Hero 专属按钮 */
.btn-hero-primary { background: #fff; color: var(--blue-primary); font-weight: 600; border: none; border-radius: var(--radius); min-height: 48px; font-size: 0.95rem; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--transition); box-shadow: 0 4px 16px rgba(0,0,0,0.12); min-width: 180px; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-hero-outline { background: transparent; color: #fff; font-weight: 500; border: 1.5px solid rgba(255,255,255,0.55); border-radius: var(--radius); min-height: 48px; font-size: 0.95rem; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--transition); min-width: 180px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.tag { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.8rem; border-radius: 100px; background: var(--blue-light); color: var(--blue-primary); margin: 0.125rem; }

/* 导航栏 */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--navbar-height); background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.navbar__logo { display: flex; align-items: center; cursor: pointer; }
.navbar__logo img { height: 28px; width: auto; }
.navbar__nav { display: flex; align-items: center; gap: 2rem; }
.navbar__nav a { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); transition: color 0.2s; position: relative; }
.navbar__nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--blue-primary); transition: width 0.3s; }
.navbar__nav a:hover { color: var(--blue-primary); }
.navbar__nav a:hover::after { width: 100%; }
.navbar__nav a.active { color: var(--blue-primary); font-weight: 500; }
.navbar__nav a.active::after { width: 100%; }

/* 页脚 */
.footer { background: var(--blue-dark); color: rgba(255,255,255,0.8); padding: 56px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer__brand img { height: 28px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__brand-text { font-size: 0.85rem; line-height: 1.6; max-width: 320px; }
.footer__col h4 { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.footer__col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); padding: 0.25rem 0; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 0.5rem; }

/* 滚动渐入 */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 40px 0; }
  .navbar { padding: 0 20px; }
  .navbar__nav { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
