/* ============================================
   牙智星 · 智慧口腔管理系统 门户站点
   蓝白配色视觉系统
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主蓝色系 */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-lighter: #60A5FA;
  --primary-bg: #EFF6FF;
  --primary-bg-2: #DBEAFE;
  --accent: #06B6D4;
  --accent-light: #22D3EE;

  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* 文字 */
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;

  /* 功能色 */
  --green: #10B981;
  --orange: #F59E0B;
  --red: #EF4444;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(29, 78, 216, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(29, 78, 216, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(29, 78, 216, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px rgba(29, 78, 216, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 渐变 */
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  --grad-hero: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 40%, #BFDBFE 100%);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .28s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.40); }

.btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary-bg); border-color: var(--primary); transform: translateY(-2px); }

.btn-ghost { color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-bg); }

.btn-white { background: var(--white); color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ---------- 顶部导航栏 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(37,99,235,.18));
  transition: height 0.25s ease;
}
@media (max-width: 768px) {
  .logo-img { height: 34px; }
}
@media (max-width: 480px) {
  .logo-img { height: 30px; }
}

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); background: var(--primary-bg); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端导航遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.show {
  display: block;
  opacity: 1;
}
/* 移动端导航内操作按钮（默认隐藏，768px 以下显示） */
.nav-mobile-actions {
  display: none;
}

/* ---------- Hero 横幅区（背景图轮播） ---------- */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0F4FC4;
  display: flex;
  align-items: center;
  margin-top: 72px;
}

/* 轮播图层 */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}

/* 蓝色渐变蒙层 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(11, 61, 154, 0.90) 0%,
    rgba(29, 78, 216, 0.64) 50%,
    rgba(29, 78, 216, 0.18) 100%);
}

/* 文字内容 */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 548px;
}
.hero-text {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #93C5FD; box-shadow: 0 0 0 4px rgba(147,197,253,.25); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.5 } }

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero-accent {
  background: linear-gradient(90deg, #60A5FA, #93C5FD, #BFDBFE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: rgba(219, 234, 254, 0.95);
  line-height: 1.8; margin-bottom: 32px; max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }

/* Hero 按钮 */
.btn-hero-primary {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  background: #EFF6FF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* 功能清单 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 28px;
  max-width: 520px;
}
.hero-feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255, 255, 255, 0.95);
}
.hero-check {
  width: 16px; height: 16px; flex-shrink: 0;
  color: #BFDBFE;
}

/* 左右切换箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(255, 255, 255, 0.20); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* 底部圆点指示器 */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.50);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.80); }
.hero-dot.active {
  width: 24px;
  background: #fff;
}

/* 播放/暂停按钮 */
.hero-play {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 3;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero-play:hover { background: rgba(255, 255, 255, 0.20); }
.hero-play-icon { width: 16px; height: 16px; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-50); }

.section-head { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 15px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800; color: var(--gray-900);
  line-height: 1.25; margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-title-sub {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0;
  margin-top: 6px;
}
.section-desc { font-size: 17px; color: var(--gray-500); line-height: 1.85; }

/* ---------- 核心功能卡片网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-bg-2);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--white);
}
.icon-1 { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.icon-2 { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.icon-3 { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.icon-4 { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.icon-5 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.icon-6 { background: linear-gradient(135deg, #14B8A6, #0D9488); }

.feature-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.feature-desc { font-size: 14.5px; color: var(--gray-500); line-height: 1.75; margin-bottom: 18px; }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px; font-size: 12px; font-weight: 500;
  background: var(--primary-bg); color: var(--primary-dark);
  border-radius: 100px;
}

/* ---------- 产品展示区 ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-text { order: 2; }

.showcase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.badge-blue { background: rgba(37,99,235,.10); color: var(--primary-dark); }
.badge-cyan { background: rgba(6,182,212,.10); color: #0891B2; }
.badge-indigo { background: rgba(99,102,241,.10); color: #4F46E5; }

.showcase-title { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1.35; margin-bottom: 16px; }
.showcase-desc { font-size: 15.5px; color: var(--gray-600); line-height: 1.85; margin-bottom: 22px; }
.showcase-list { display: flex; flex-direction: column; gap: 12px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--gray-700); }
.list-check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50%; background: var(--grad-primary);
  position: relative;
}
.list-check::after {
  content: ''; position: absolute; left: 6px; top: 3px;
  width: 5px; height: 9px; border: solid var(--white);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 模拟卡片通用 */
.mock-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  max-width: 480px;
}
.mock-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; font-weight: 600; font-size: 14px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* 预约挂号 mock */
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-slot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--gray-50); transition: all .25s ease;
  border: 1px solid transparent;
}
.mock-slot.active { background: var(--primary-bg); border-color: var(--primary-bg-2); }
.slot-time { font-weight: 700; font-size: 14px; color: var(--gray-800); min-width: 96px; }
.slot-doc { font-size: 13px; color: var(--gray-500); flex: 1; }
.slot-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.tag-green { background: rgba(16,185,129,.12); color: #059669; }
.tag-blue { background: rgba(37,99,235,.12); color: var(--primary-dark); }
.tag-orange { background: rgba(245,158,11,.12); color: #D97706; }

/* 患者档案 mock */
.mock-patient { padding: 24px; }
.mock-patient-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mock-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.mock-patient-name { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.mock-patient-sub { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.mock-patient-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gray-100); border-radius: 12px; overflow: hidden; margin-bottom: 22px;
}
.ps-item { background: var(--white); padding: 14px 10px; text-align: center; }
.ps-label { font-size: 11px; color: var(--gray-400); margin-bottom: 4px; }
.ps-value { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.mock-patient-timeline { display: flex; flex-direction: column; gap: 16px; position: relative; }
.tl-item { display: flex; gap: 12px; align-items: flex-start; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.tl-dot-done { background: var(--gray-300); box-shadow: 0 0 0 4px var(--gray-100); }
.tl-title { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.tl-date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* 库存 mock */
.inv-list { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.inv-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.inv-info { display: flex; align-items: center; gap: 10px; }
.inv-name { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.inv-code { font-size: 11px; color: var(--gray-400); }
.inv-bar { grid-column: 1; height: 7px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.inv-fill { height: 100%; border-radius: 100px; background: var(--grad-primary); transition: width 1s ease; }
.inv-fill-warn { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.inv-fill-danger { background: linear-gradient(90deg, #EF4444, #F87171); }
.inv-num { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 800; color: var(--gray-700); text-align: right; }
.inv-num.warn { color: var(--orange); }
.inv-num.danger { color: var(--red); }
.inv-warn, .inv-danger { }

/* ---------- 数据统计带 ---------- */
.stats-band {
  background: var(--grad-primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.06) 0, transparent 40%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band-stat { text-align: center; color: var(--white); }
.band-num { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; }
.band-label { font-size: 15px; opacity: .85; margin-top: 8px; }

/* ---------- 客户案例 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 36px 30px;
  transition: all .35s ease; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-bg-2); }
.case-emoji { font-size: 40px; margin-bottom: 16px; }
.case-name { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.case-type { font-size: 13px; color: var(--gray-400); margin-bottom: 16px; }
.case-quote { font-size: 14.5px; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; flex: 1; font-style: italic; }
.case-metrics { display: flex; gap: 8px; border-top: 1px solid var(--gray-100); padding-top: 20px; }
.cm { flex: 1; text-align: center; }
.cm-val { display: block; font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.cm-label { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ---------- 解决方案 ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; transition: all .35s ease;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-bg-2); background: var(--primary-bg); }
.sol-icon { font-size: 36px; margin-bottom: 16px; }
.sol-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.sol-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.75; }

/* ---------- 价格方案 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 40px 32px;
  display: flex; flex-direction: column; position: relative;
  transition: all .35s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary); color: var(--white);
  padding: 6px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.price-name { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 14px; }
.price-amount { font-size: 42px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.price-amount-contact { font-size: 32px; }
.price-cur { font-size: 20px; vertical-align: top; }
.price-unit { font-size: 15px; font-weight: 500; color: var(--gray-400); }
.price-orig { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray-600); }
.ck { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-bg); flex-shrink: 0; position: relative; }
.ck::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--primary-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- 品牌介绍区 ---------- */
.section-brand { background: var(--grad-soft); }
.brand-inner {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.brand-text { max-width: 820px; }
.brand-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--gray-900); margin: 14px 0 22px; line-height: 1.3; letter-spacing: -0.5px; }
.brand-desc { font-size: 16px; color: var(--gray-600); line-height: 1.9; margin-bottom: 18px; }
.brand-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.bv { display: flex; align-items: center; gap: 14px; }
.bv-icon { font-size: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.bv-text { display: flex; flex-direction: column; }
.bv-text strong { font-size: 15px; color: var(--gray-900); }
.bv-text span { font-size: 13px; color: var(--gray-400); }

/* ---------- CTA ---------- */
.cta-section { padding: 64px 0; background: var(--white); }
.cta-box {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.1) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.08) 0, transparent 40%);
}
.cta-title { position: relative; font-size: 30px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-desc { position: relative; font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img {
  width: 36px; height: 36px;
  display: block; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(96,165,250,.3));
  border-radius: 8px;
}
.footer-logo-text { font-size: 22px; font-weight: 800; color: var(--white); }
.footer-slogan { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.footer-copyright-mini { font-size: 13px; color: var(--gray-600); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--gray-400); transition: color .25s; }
.footer-col a:hover { color: var(--primary-lighter); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--gray-600); flex-wrap: wrap; gap: 8px;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--white); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s ease; z-index: 900;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--grad-primary); color: var(--white); border-color: transparent; transform: translateY(-2px); }

/* ---------- 悬浮客服面板 ---------- */
.float-contact {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 900;
}

.float-btn-main {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.5);
  color: var(--white);
  font-size: 20px;
  gap: 1px;
  position: relative;
  border: none;
}

.float-btn-main:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.6);
}

.float-btn-main .label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}

/* 展开面板 */
.float-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08);
  width: 300px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.float-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-panel-header {
  background: var(--grad-primary);
  padding: 18px 20px 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.float-panel-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.float-panel-close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.float-panel-close:hover {
  background: rgba(255, 255, 255, .3);
}

.float-panel-body {
  padding: 18px 20px 20px;
}

/* QQ 二维码 */
.float-qr-wrap {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.float-qr-wrap img {
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  display: inline-block;
}

.float-qr-wrap .qr-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 联系方式行 */
.float-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.float-contact-row:last-of-type {
  border-bottom: none;
}

.float-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.float-contact-info {
  flex: 1;
  min-width: 0;
}

.float-contact-info .name {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.float-contact-info .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.float-contact-action {
  flex-shrink: 0;
}

.float-contact-action .btn-sm {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-qq-chat {
  background: #12b7f5;
  color: #fff;
}

.btn-qq-chat:hover {
  background: #0fa3dd;
}

.btn-copy {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid var(--gray-200) !important;
}

.btn-copy:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-copy.copied {
  background: var(--green);
  color: var(--white);
  border-color: var(--green) !important;
}

/* 手机号行特殊样式 */
.float-contact-row.tel-row .value {
  color: var(--primary);
  font-size: 16px;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .float-contact { right: 16px; bottom: 80px; }
  .float-btn-main { width: 50px; height: 50px; font-size: 18px; }
  .float-panel { width: 280px; }
}

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   响应式适配 — 全面移动端优化
   断点：1024 / 768 / 480 / 375
   ============================================ */

/* ---- 平板 (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-text { max-width: 580px; }
  .hero-arrow { display: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- 手机 (≤768px) ---- */
@media (max-width: 768px) {
  /* 导航栏 */
  .nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 20px 24px;
    box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-200);
    gap: 2px; z-index: 1001;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.open .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
  }

  /* Hero 区 */
  .hero {
    min-height: 520px;
    margin-top: 72px;
  }
  .hero-inner { min-height: 440px; }
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
  .hero-actions .btn { font-size: 15px; padding: 12px 24px; }
  .hero-play { display: none; }
  .hero-dots { bottom: 20px; }
  /* 移动端蒙层改为从上到下渐变，保证文字可读 */
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(11, 61, 154, 0.88) 0%,
      rgba(29, 78, 216, 0.72) 50%,
      rgba(11, 61, 154, 0.85) 100%);
  }

  /* 通用 Section */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 30px; }
  .section-title-sub { font-size: 18px; }
  .section-eyebrow { font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
  .section-desc { font-size: 15px; }

  /* 核心功能卡片 */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }

  /* 产品展示区 */
  .showcase-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .showcase-row.reverse .showcase-text { order: 0; }
  .showcase-visual { display: flex; justify-content: center; }
  .showcase-title { font-size: clamp(20px, 5vw, 24px); }
  .mock-card { max-width: 100%; }
  .mock-patient-stats { grid-template-columns: repeat(2, 1fr); }

  /* 数据统计带 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .band-num { font-size: 30px; }

  /* 客户案例 */
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { padding: 28px 24px; }

  /* 解决方案 */
  .sol-grid { grid-template-columns: 1fr; }
  .sol-card { padding: 28px 24px; }

  /* 价格方案 */
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-popular { transform: scale(1); }
  .price-card { padding: 32px 24px; }

  /* 品牌介绍区 */
  .brand-values { grid-template-columns: 1fr; }
  .brand-title { font-size: 30px; }

  /* CTA */
  .cta-box { padding: 40px 24px; }
  .cta-title { font-size: 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  /* 页脚 */
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* 回到顶部 */
  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---- 小屏手机 (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero { min-height: 480px; margin-top: 72px; }
  .hero-inner { min-height: 400px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 18px; }
  .hero-features { grid-template-columns: 1fr; gap: 6px; }
  .hero-feature-item { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-dots { bottom: 14px; gap: 6px; }

  /* Section */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 26px; line-height: 1.3; }
  .section-title-sub { font-size: 16px; margin-top: 4px; }
  .section-eyebrow { font-size: 13px; letter-spacing: 1.5px; }
  .section-desc { font-size: 14px; }
  .brand-title { font-size: 26px; line-height: 1.3; }

  /* 卡片内边距进一步收紧 */
  .feature-card { padding: 24px 20px; }
  .case-card { padding: 24px 20px; }
  .sol-card { padding: 24px 20px; }
  .price-card { padding: 28px 20px; }

  /* Mock 卡片防溢出 */
  .mock-body { padding: 10px; }
  .mock-slot { padding: 10px 12px; gap: 6px; flex-wrap: wrap; }
  .slot-time { min-width: 0; font-size: 13px; }
  .slot-doc { font-size: 12px; }
  .mock-patient { padding: 16px; }
  .mock-patient-head { gap: 10px; margin-bottom: 16px; }
  .mock-avatar { width: 40px; height: 40px; font-size: 17px; }
  .mock-patient-name { font-size: 15px; }
  .mock-patient-stats { gap: 1px; }
  .ps-item { padding: 10px 6px; }
  .ps-value { font-size: 14px; }
  .ps-label { font-size: 10px; }
  .inv-list { padding: 12px 14px; gap: 12px; }
  .inv-name { font-size: 13px; }
  .inv-code { font-size: 10px; }

  /* 数据统计 */
  .band-num { font-size: 26px; }
  .band-label { font-size: 13px; }

  /* 案例 */
  .case-metrics { flex-wrap: wrap; gap: 6px; }
  .cm-val { font-size: 16px; }

  /* CTA */
  .cta-box { padding: 32px 20px; }
  .cta-title { font-size: 21px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { font-size: 12px; }

  /* 回到顶部 */
  .back-top { width: 40px; height: 40px; right: 12px; bottom: 12px; }
}

/* ---- 超小屏 (≤375px) — iPhone SE 等 ---- */
@media (max-width: 375px) {
  .container { padding: 0 14px; }

  .hero { min-height: 440px; }
  .hero-title { font-size: 23px; }
  .hero-desc { font-size: 13px; }
  .hero-feature-item { font-size: 12px; }

  .section { padding: 36px 0; }
  .section-title { font-size: 23px; }
  .section-title-sub { font-size: 15px; }
  .section-eyebrow { font-size: 12px; }

  .feature-card { padding: 20px 16px; }
  .feature-icon { width: 50px; height: 50px; }
  .feature-title { font-size: 18px; }
  .feature-desc { font-size: 13px; }

  .mock-slot { padding: 8px 10px; }
  .slot-time { font-size: 12px; }
  .mock-patient-stats { grid-template-columns: 1fr 1fr; }

  .band-num { font-size: 24px; }
  .band-label { font-size: 12px; }

  .cta-title { font-size: 19px; }
  .cta-desc { font-size: 14px; }

  .footer-logo-text { font-size: 20px; }
  .footer-logo-img { width: 32px; height: 32px; }
  .footer-h { font-size: 14px; }
  .footer-col a { font-size: 13px; }
}

/* ---- 安全区适配（刘海屏 / 底部横条） ---- */
@supports (padding: env(safe-area-inset-top)) {
  .header { padding-top: env(safe-area-inset-top); }
  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .back-top { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .nav.open { top: calc(72px + env(safe-area-inset-top)); }
  .nav-overlay { top: calc(72px + env(safe-area-inset-top)); }
}

/* ---- 横屏适配 ---- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 380px; margin-top: 72px; }
  .hero-inner { min-height: 300px; }
  .hero-features { display: none; }
  .hero-desc { margin-bottom: 20px; }
}
