/* ============================================================
   BMC 主站样式（占位视觉：医疗蓝绿风）
   截图到后只需修改 :root 里的品牌变量即可整体换色
   ============================================================ */
:root {
  --brand: #1F5548;        /* 深墨绿（取自公众号参考图） */
  --brand-2: #2E6B58;      /* 辅助墨绿 */
  --brand-dark: #163E35;   /* 更深墨绿，标题/页脚 */
  --ink: #1f2d3d;          /* 正文深色 */
  --ink-soft: #4a5a6a;
  --bg: #ffffff;
  --bg-alt: #F1F7F1;       /* 浅绿灰交替区块 */
  --line: #E3EEE3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(63,174,73,.12);
  --maxw: 1080px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f5f6f7 url("assets/img/bg.jpg") no-repeat center top / cover;
  font-size: 17px;          /* 偏大字号，贴合中老年用户 */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
}
.brand-mark img { width: 40px; height: 40px; display: block; object-fit: contain; }
.brand-text { font-size: 17px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-menu { display: flex; gap: 26px; }
.nav-menu a { color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.nav-menu a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 52px;
  background: rgba(255,255,255,.32);
}
.hero-logo { display: inline-block; margin-bottom: 14px; }
.hero-logo img { width: 72px; height: 72px; display: block; margin: 0 auto; object-fit: contain; }
.hero-en { letter-spacing: 2px; color: var(--brand); font-size: 15px; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }
.hero-eyebrow { letter-spacing: 3px; color: var(--brand); font-size: 14px; margin: 0 0 12px; font-weight: 700; }
.hero-title { font-size: clamp(28px, 6vw, 46px); margin: 0 0 10px; font-weight: 800; color: var(--brand-dark); }
.hero-sub2 { color: var(--ink-soft); font-size: 17px; margin: 0 0 22px; }
.hero-sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-soft); margin: 0 auto 32px; max-width: 760px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; cursor: pointer; transition: .2s; border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 18px; }

/* ---------- 区块通用 ---------- */
.section { padding: 64px 0; }
.section-alt { background: rgba(255,255,255,.6); }
.section-title {
  font-size: clamp(24px, 4vw, 32px); text-align: center; margin: 0 0 14px;
  color: var(--brand-dark); position: relative; padding-bottom: 14px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px; background: var(--brand-2);
}
.block-title { font-size: 21px; color: var(--brand-dark); margin: 22px 0 12px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 860px; margin: 0 auto 8px; }
.note { font-size: 13px; color: #97a3ad; margin-top: 22px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; margin-top: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.card h4 { margin: 0 0 8px; font-size: 19px; color: var(--brand-dark); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 证书查询卡 ---------- */
.cert-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.cert-card-text h3 { margin: 0 0 8px; color: var(--brand-dark); font-size: 22px; }
.cert-card-text p { margin: 0; color: var(--ink-soft); max-width: 560px; }

/* ---------- 新闻列表 ---------- */
.news-list { display: grid; gap: 16px; margin-top: 26px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.news-item a { display: block; padding: 22px 24px; color: inherit; }
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date {
  display: inline-block; font-size: 13px; color: #fff; background: var(--brand-2);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.news-item h4 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.news-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 培训 ---------- */
.card-train h4 { color: var(--brand); }
.train-cta { text-align: center; margin-top: 34px; }
.train-cta p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- 关于 / 联系 / 二维码 ---------- */
.join-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: var(--radius); padding: 26px 30px; margin-top: 24px;
  box-shadow: var(--shadow);
}
.join-banner h3 { margin: 0 0 6px; font-size: 22px; }
.join-banner p { margin: 0; opacity: .95; max-width: 640px; font-size: 16px; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin: 18px auto 0; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.contact-list li span:first-child { display: inline-block; width: 44px; text-align: right; color: var(--brand); font-weight: 700; }
.placeholder { color: #b0bac2; }
.about-qr { text-align: center; }
.qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto 12px;
  border: 2px dashed var(--brand-2); border-radius: 16px;
  display: grid; place-content: center; gap: 6px; color: var(--brand);
  background: var(--bg-alt);
}
.qr-placeholder small { color: var(--ink-soft); font-size: 13px; }
.qr-tip { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.qr-img { width: 420px; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 0 auto 10px; display: block; box-shadow: var(--shadow); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); color: #cfeeef; padding: 30px 0; text-align: center; }
.site-footer p { margin: 4px 0; font-size: 14px; }
.footer-domain { letter-spacing: 1px; opacity: .8; }
.footer-beian { margin-top: 8px; }
.footer-beian a { color: #cfeeef; text-decoration: none; border-bottom: 1px solid rgba(207,238,239,.45); padding-bottom: 1px; }
.footer-beian a:hover { opacity: .75; }

/* ---------- 新闻详情页 ---------- */
.news-detail {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow); margin-top: 22px;
}
.news-detail h3 { color: var(--brand-dark); font-size: 24px; margin: 10px 0 16px; line-height: 1.4; }
.news-detail p { color: var(--ink-soft); margin: 0 0 14px; }
.news-detail .news-date { color: #fff; }
.news-detail h4 { color: var(--brand-dark); font-size: 19px; margin: 22px 0 10px; font-weight: 700; }
.news-fig {
  width: 100%; height: auto; display: block;
  border-radius: 10px; margin: 16px 0 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.news-src {
  font-size: 14px; color: var(--ink-soft);
  background: var(--bg-alt); border-radius: 8px;
  padding: 10px 14px; display: inline-block; margin-top: 4px;
}
.news-src a { font-weight: 700; border-bottom: 1px solid currentColor; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.back-home { text-align: center; margin-top: 42px; }
.btn-ghost.btn-dark { color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost.btn-dark:hover { background: var(--brand); color: #fff; }

/* ---------- 响应式：移动优先 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 320px; }
  .nav-menu a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
