/* ============================================================
   宝迈（青岛）医疗科技有限公司 · 优宝迈 官网
   共享样式 · 蓝+青绿专业医疗风（参考 Covetrus 真实摄影+模块化设计）
   ============================================================ */

:root {
  --blue-900: #062e45;
  --blue-800: #0a3d5c;
  --blue-700: #0e4d6f;
  --primary: #0d5c8a;
  --primary-600: #0d5c8a;
  --primary-700: #094769;
  --accent: #0aa8a3;
  --accent-soft: #e5f6f5;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #eaf3f4;
  --text: #1a2532;
  --muted: #556774;
  --line: #d8e5ea;
  --shadow: 0 10px 30px rgba(6, 46, 69, 0.08);
  --shadow-lg: 0 18px 50px rgba(6, 46, 69, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- 语言切换显示规则 ---------- */
.lang-en .zh { display: none !important; }
.lang-zh .en { display: none !important; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo { height: 44px; width: auto; max-width: 230px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: var(--accent-soft); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.lang-toggle button.active { background: var(--primary); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #089390; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: rgba(255,255,255,.16); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent-soft); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: .25s; }

/* ============================================================
   Hero（轮播背景）
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.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 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,46,69,.88) 0%, rgba(6,46,69,.55) 45%, rgba(6,46,69,.12) 100%),
    linear-gradient(0deg, rgba(6,46,69,.65) 0%, rgba(6,46,69,0) 55%);
}
/* 轮播圆点指示器 */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: .25s;
}
.hero-dots .dot.active {
  background: #fff;
  border-color: #fff;
  width: 30px;
  border-radius: 6px;
}
.hero-inner { position: relative; z-index: 2; padding: 100px 0 110px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1px; margin-bottom: 20px;
}
.hero .eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; font-weight: 800; letter-spacing: .5px; max-width: 720px; }
.hero p.lead { margin: 22px 0 34px; font-size: clamp(16px, 1.7vw, 20px); color: rgba(255,255,255,.88); max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 50px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stats .stat .lbl { font-size: 13px; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   通用区块
   ============================================================ */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-head .tag::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--blue-900); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.bg-surface { background: var(--surface); }
.bg-soft { background: var(--surface-2); }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ============================================================
   价值主张（Covetrus 风格：医疗十字 + 两行大标题 + 描述）
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.value-card { display: flex; flex-direction: column; gap: 20px; }
.value-icon { width: 44px; height: 44px; color: var(--accent); flex-shrink: 0; }
.value-icon svg { width: 100%; height: 100%; display: block; }
.value-card h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.18; margin: 0; color: var(--text); }
.value-card h3 .line2 { display: block; color: var(--blue-900); }
.value-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* 特性列表 */
.feature-list { display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .dot { color: var(--accent); font-weight: 800; margin-top: 2px; }

/* 图文分栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-media .caption {
  position: absolute; bottom: -18px; left: 24px; right: 24px;
  background: var(--surface); padding: 16px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.split-media .caption strong { display: block; color: var(--blue-900); font-size: 15px; }
.split-media .caption span { color: var(--muted); font-size: 13px; }
.split-body .tag { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.split-body h2 { font-size: clamp(24px, 3vw, 34px); color: var(--blue-900); font-weight: 800; margin: 12px 0 18px; }
.split-body p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }

/* 平台能力卡 */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.platform-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: .2s;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.platform-card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.platform-card h4 { color: var(--blue-900); font-size: 17px; margin-bottom: 6px; }
.platform-card p { color: var(--muted); font-size: 14px; }

/* 产品分类 */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.cat-tabs button {
  border: 1px solid var(--line); background: var(--surface);
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--text); font-size: 14px; transition: .2s;
}
.cat-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 180px; background: linear-gradient(135deg, var(--surface-2), var(--accent-soft));
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 40px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px 22px 24px; }
.product-body .cat { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.product-body h3 { font-size: 17px; color: var(--blue-900); margin: 8px 0 8px; }
.product-body p { font-size: 14px; color: var(--muted); }

/* 时间线/步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step .n { position: absolute; top: -16px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step h4 { margin: 10px 0 6px; color: var(--blue-900); }
.step p { font-size: 14px; color: var(--muted); }

/* 数据条 */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.metric { background: var(--surface); border-radius: var(--radius); padding: 32px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.metric .num { font-size: 38px; font-weight: 800; color: var(--primary); }
.metric .lbl { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 客户证言 */
.testimonial { background: var(--surface); border-left: 4px solid var(--accent); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial q { font-size: 17px; color: var(--text); font-style: italic; line-height: 1.7; display: block; }
.testimonial .author { margin-top: 20px; }
.testimonial .author strong { display: block; color: var(--blue-900); font-size: 15px; }
.testimonial .author span { color: var(--muted); font-size: 14px; }

/* CTA 区块 */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900), var(--primary));
  color: #fff; border-radius: 24px; padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); }
.cta-band p { color: rgba(255,255,255,.85); margin: 14px 0 28px; font-size: 17px; }

/* 面包屑 / 内页头图 */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--primary));
  color: #fff; padding: 64px 0 68px;
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 680px; font-size: 17px; }

/* 新闻列表 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-4px); }
.news-thumb { height: 170px; background: linear-gradient(135deg, var(--blue-700), var(--accent)); display:flex; align-items:flex-end; padding:16px; color:#fff; font-weight:700; }
.news-thumb img { width:100%; height:100%; object-fit:cover; }
.news-body { padding: 20px 22px 24px; }
.news-body .date { font-size: 12px; color: var(--muted); }
.news-body h3 { font-size: 17px; color: var(--blue-900); margin: 8px 0 8px; }
.news-body p { font-size: 14px; color: var(--muted); }

/* 联系表单 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-info .k { color: var(--primary); font-weight: 700; min-width: 76px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--blue-700); }
form input, form textarea, form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; background: var(--surface); color: var(--text);
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 页脚 */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.8); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,.72); font-size: 14px; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps, .metrics { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
@media (max-width: 720px) {
  .brand .logo { height: 36px; max-width: 190px; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav-right .btn-header { display: none; }
  .grid-2, .grid-3, .grid-4, .product-grid, .news-grid, .steps, .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat .num { font-size: 28px; }
  section { padding: 56px 0; }
  .split-media .caption { position: static; margin-top: 16px; }
  .cta-band { padding: 44px 24px; }
}
