/* ==========================================================================
   医检家 · 品牌官网样式
   ========================================================================== */

:root {
  --navy: #12395E;
  --navy-deep: #0F3355;
  --navy-soft: #1B5B84;
  --blue: #2E86C8;
  --green: #46B04B;
  --lime: #7FC24A;
  --ink: #13283C;
  --body: #33485A;
  --muted: #5A7085;
  --line: #E2EAF1;
  --bg-soft: #F4F8FB;
  --white: #fff;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(18, 57, 94, .06);
  --shadow-md: 0 24px 48px -28px rgba(18, 57, 94, .3);
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.35; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 26px; height: 26px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------ 按钮 ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.6px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1F6EA8 60%, var(--green) 165%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(46, 134, 200, .7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(46, 134, 200, .85); }

.btn-outline { background: #fff; color: var(--navy); border-color: #CFDFEC; box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue); color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }

.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 13.6px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 15.4px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ------------------------------ 品牌标识 ------------------------------ */

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #FBF8F1;
  border: 1px solid #E9E2D4;
  position: relative;
  flex: none;
}
.brand-mark img {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 70px;
  max-width: none;
}
.brand-md .brand-mark { width: 46px; height: 46px; }
.brand-md .brand-mark img { width: 70px; }
.brand-lg .brand-mark { width: 62px; height: 62px; border-radius: 17px; }
.brand-lg .brand-mark img { width: 94px; top: -2px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 3px;
}
.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  color: #9BB0C2;
  font-weight: 600;
  text-transform: uppercase;
}
.brand-lg .brand-text strong { font-size: 25px; }
.brand-lg .brand-text em { font-size: 11.5px; }

/* ------------------------------ 头部 ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 57, 94, .5); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 14.8px;
  font-weight: 600;
  color: #40566A;
  position: relative;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.is-active { color: var(--navy); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ------------------------------ 区块 ------------------------------ */

.sec { padding: 76px 0; }
.sec-soft { background: var(--bg-soft); }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-head.is-left { text-align: left; margin-left: 0; }
.sec-eyebrow {
  display: inline-block;
  font-size: 12.6px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--blue);
  background: rgba(46, 134, 200, .09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sec-title { margin: 0; font-size: clamp(23px, 2.7vw, 32px); font-weight: 800; letter-spacing: -.4px; }
.sec-sub { margin: 16px 0 0; font-size: 15.6px; color: var(--muted); line-height: 1.85; }

/* ------------------------------ 悬浮客服 ------------------------------ */

.kf-float { position: fixed; right: 22px; bottom: 26px; z-index: 80; }
.kf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 13px 15px 11px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--blue), #1B7F5E);
  color: #fff;
  font-size: 12.4px;
  font-weight: 650;
  box-shadow: 0 16px 34px -12px rgba(46, 134, 200, .75);
  transition: transform .2s, box-shadow .2s;
  animation: kfPulse 2.6s ease-in-out infinite;
}
.kf-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -12px rgba(46, 134, 200, .9); }
.kf-btn .ico { width: 22px; height: 22px; }
@keyframes kfPulse {
  0%, 100% { box-shadow: 0 16px 34px -12px rgba(46, 134, 200, .75); }
  50% { box-shadow: 0 16px 34px -12px rgba(46, 134, 200, .75), 0 0 0 9px rgba(70, 176, 75, .1); }
}

.kf-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.kf-modal-mask { position: absolute; inset: 0; background: rgba(11, 32, 53, .55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.kf-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 24px;
  box-shadow: 0 40px 80px -30px rgba(11, 32, 53, .6);
  animation: popIn .26s cubic-bezier(.2, .9, .3, 1.1);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.kf-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.kf-modal-close:hover { background: var(--bg-soft); color: var(--navy); }
.kf-modal-head { display: flex; align-items: center; gap: 13px; padding-right: 34px; }
.kf-modal-head .ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), #1B7F5E);
}
.kf-modal-head h3 { margin: 0; font-size: 18px; font-weight: 760; }
.kf-modal-head p { margin: 4px 0 0; font-size: 12.8px; color: var(--muted); }
.kf-modal-desc { margin: 16px 0 20px; font-size: 14px; color: var(--muted); line-height: 1.85; }

.kf-qr {
  border: 1px dashed #CFDFEC;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  background: #FBFDFF;
}
.kf-qr img { width: 190px; height: 190px; object-fit: contain; margin: 0 auto 12px; border-radius: 10px; background: #fff; }
.kf-qr p { margin: 0; font-size: 13.2px; color: var(--ink); font-weight: 650; }
.kf-qr-empty p { color: var(--muted); font-weight: 600; }
.kf-qr-empty span { display: block; margin-top: 6px; font-size: 12px; color: #9BB0C2; }

.kf-modal-card > .btn-block { margin-top: 16px; }
.kf-modal-alt { margin-top: 16px; text-align: center; }
.kf-modal-alt a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.8px; font-weight: 650; }
.kf-modal-alt .ico { width: 16px; height: 16px; }
.kf-modal-note { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.4px; color: #9BB0C2; line-height: 1.75; }

/* ------------------------------ 页脚 ------------------------------ */

.site-footer { background: #0C2438; color: rgba(255, 255, 255, .72); padding: 62px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .85fr .95fr 1.25fr; gap: 40px; padding-bottom: 46px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: rgba(255, 255, 255, .45); }
.site-footer .brand-mark { background: #FBF8F1; border-color: rgba(255, 255, 255, .12); }
.footer-slogan { margin: 22px 0 10px; font-size: 14.4px; color: #8FD7A0; font-weight: 650; letter-spacing: .5px; }
.footer-desc { margin: 0; font-size: 13.4px; line-height: 1.9; color: rgba(255, 255, 255, .55); }
.footer-col h4 { margin: 0 0 18px; font-size: 15px; color: #fff; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: 13.8px; }
.footer-col a:hover { color: #8FD7A0; }
.footer-contact li { display: flex; gap: 10px; font-size: 13.8px; line-height: 1.7; align-items: flex-start; }
.footer-contact .ico { width: 16px; height: 16px; color: #6FCB84; margin-top: 3px; }
.footer-contact span { color: rgba(255, 255, 255, .68); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 22px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.8px;
  color: rgba(255, 255, 255, .48);
}
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-meta a { color: rgba(255, 255, 255, .48); }
.police-link { display: inline-flex; align-items: center; gap: 5px; }
.police-link .ico { width: 14px; height: 14px; flex: none; }
.footer-disclaimer { color: rgba(255, 255, 255, .38); }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .header-inner { height: 68px; gap: 12px; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(18, 57, 94, .5);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    margin-left: 0;
    display: none;
  }
  .main-nav.is-open { display: flex; animation: fadeIn .18s; }
  .main-nav a { padding: 13px 16px; font-size: 15.4px; }
  .main-nav a.is-active::after { display: none; }
  .main-nav a.is-active { background: var(--bg-soft); }
  .nav-toggle { display: block; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 10px; border-radius: 11px; }
  .sec { padding: 56px 0; }
  .kf-float { right: 14px; bottom: 16px; }
  .kf-btn { padding: 11px 12px 9px; font-size: 11.4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .brand-text strong { font-size: 19px; letter-spacing: 2px; }
  .brand-md .brand-mark { width: 42px; height: 42px; }
  .brand-md .brand-mark img { width: 64px; }
  .sec-head { margin-bottom: 34px; }
}

@media print {
  .site-header, .kf-float, .kf-modal, .cta-band { display: none !important; }
}
