@charset "utf-8";
/* ==========================================================================
   layout.css —— 页头 / 页脚 / Banner / 区块骨架
   ========================================================================== */

.hd-in, .ft-row, .cta-in, .banner-in {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* =======================  页头  ======================= */
/* 吸顶跟随：滚轮下滑时页头自动固定在顶部（sticky 比 fixed 更省事——
   不脱离文档流，无需给 body 补 padding，也不影响锚点定位）。
   移动端 .nav 的 absolute 是相对 .hd 定位的，sticky 也是定位上下文，两者兼容。 */
.hd {
  height: var(--hd-h);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--trans);
}
/* 滚过首屏后加 .is-stuck：出阴影 + 微缩 logo。
   注意：这里刻意不改 .hd 的高度——sticky 元素始终占文档流空间，
   改高度会让下方内容在吸顶瞬间整体跳动。只做「不改布局」的视觉变化。 */
.hd.is-stuck {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .09);
}
.hd.is-stuck .hd-logo img { height: var(--hd-logo-stuck); }
.hd-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hd-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hd-logo img { height: 64px; width: auto; display: block; transition: height var(--trans); }

/* 导航：右对齐，项间距 76px，无内边距（设计稿实测）
   选中态 = 深色文字 + 文字等宽的绿色横条（横条在文字下层，文字浮于其上） */
.nav { display: flex; align-items: center; gap: 76px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--hd-h);
  padding: 0;
  font-size: 21px;
  font-weight: 700;          /* 设计稿实测：导航为粗体 */
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
/* 绿色横条：压在导航文字「下层」（文字浮在横条之上，设计稿实测重叠区文字仍可见）
   设计实测：页头高 92，横条 y51..58，即 bottom:33px、高 8px、宽度与文字等宽 */
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 33px;
  height: 8px;
  background: transparent;
  z-index: -1;               /* 关键：置于文字下方 */
  transition: background var(--trans);
}
.nav a.on::after { background: var(--green); }
/* 悬停只显示横条，文字不变色（按客户要求） */
.nav a:hover::after { background: var(--green); }

.nav-toggle {
  display: none;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  font-size: 30px; color: var(--ink);
}

/* =======================  Banner（首页） ======================= */
/* 底图已抹除排版文字，文字全部由 HTML 呈现（可后台编辑 / 利于 SEO） */
.banner {
  position: relative;
  height: var(--banner-h);
  background: #2062B6 url("../img/banner-home.jpg") no-repeat center / cover;
  overflow: hidden;
}
.banner-in {
  position: relative;
  height: 100%;
}
.banner-copy {
  position: absolute;
  left: 0;
  top: 0;
  width: 811px;            /* 设计稿实测：文字块 157..967（相对容器左缘） */
  text-align: center;
}
.banner-tag {
  display: inline-block;
  height: 67px;
  line-height: 67px;
  padding: 0 34px;
  margin: 186px 0 33px;
  font-size: 28px;
  color: #fff;
  background: var(--pink);
  border-radius: 100px;
}
.banner-title {
  font-size: 96px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;      /* 设计稿为单行 */
  margin-bottom: 27px;
}
.banner-sub {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  margin-bottom: 91px;
}
.banner-desc {
  font-size: 22px;
  line-height: 32px;
  color: rgba(255, 255, 255, .9);
  white-space: pre-line;      /* 站点设置里用换行分段 */
}
.banner-note {
  position: absolute;
  left: 0; bottom: 30px;
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: #999999;   /* 设计稿实测：备注为灰色 */
}
.banner-note span { margin-right: 26px; }

/* =======================  Hero（内页头图） ======================= */
.hero {
  height: var(--hero-h);
  background-color: #0A586F;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* =======================  区块 ======================= */
.sec { padding: 100px 0; position: relative; }

.sec-head { position: relative; text-align: center; margin-bottom: 70px; }
.sec-head .wm {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 102px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #F3F3F3;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec-head h2 { position: relative; z-index: 1; }
.sec-head.on-dark .wm { color: rgba(255, 255, 255, .08); }
.sec-head.on-dark h2 { color: #fff; }

.sec-blue {
  /* 背景：PSD 内嵌手术室原图，按设计稿透明度混入品牌蓝（assets/img/bg-blue-section.jpg） */
  background: var(--blue) url("../img/bg-blue-section.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* =======================  页脚  ======================= */
.ft {
  background: var(--bg-foot);
  font-size: var(--fs);
  color: var(--text-2);
}
.ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  flex-wrap: wrap;
}
.ft-row + .ft-row { border-top: 1px solid rgba(255, 255, 255, .85); min-height: 79px; }
.ft-info { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; }
.ft-info i { font-style: normal; color: #C9C9C9; }
.ft-social { display: flex; align-items: center; gap: 34px; }   /* 设计实测两图标间距 34 */
.ft-social a { display: flex; align-items: center; color: #333; }   /* 设计实测图标色 #333 */
.ft-social a:hover { color: var(--green); }
.ft-social .ico { width: 34px; height: 34px; }   /* SVG 留白约 15%，34px 渲染出设计实测的 27-30px */
.ft-wechat { position: relative; }
.ft-qr {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 180px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s;
  pointer-events: none;
  z-index: 10;
}
.ft-qr::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 6px rgba(0,0,0,.08);
}
.ft-qr img { display: block; width: 152px; height: 152px; margin: 0 auto 8px; border-radius: 4px; }
.ft-qr p { font-size: 14px; line-height: 1.4; color: #333; white-space: nowrap; }
.ft-wechat:hover .ft-qr { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.ft-copy { color: var(--gray); font-size: var(--fs-sm); }
.ft-copy a { color: inherit; text-decoration: none; margin-left: 14px; }
.ft-copy a:hover { color: var(--green); text-decoration: underline; }
.ft-by { color: var(--gray); font-size: var(--fs-sm); }
.ft-by a { color: inherit; text-decoration: none; }
.ft-by a:hover { color: var(--green); text-decoration: underline; }
.ft-police { width: 18px; height: 20px; vertical-align: -4px; margin-right: 5px; display: inline-block; }
.ft-copy a:hover .ft-police { filter: brightness(1.1); }

/* =======================  响应式  ======================= */
/* 设计稿为 1920 画布，窄屏按比例整体缩放，保证观感一致 */
@media (max-width: 1700px) {
  :root {
    --container: 1400px;
    --fs: 19px; --fs-sm: 17px; --fs-h2: 46px; --fs-h3: 26px; --fs-card: 19px;
    --banner-h: 720px; --hero-h: 486px;
  }
  .banner-copy { width: 700px; }
  .banner-tag { height: 58px; line-height: 58px; padding: 0 28px; margin: 158px 0 28px; font-size: 24px; }
  .banner-title { font-size: 82px; margin-bottom: 23px; }
  .banner-sub { font-size: 31px; margin-bottom: 78px; }
  .banner-desc { font-size: 19px; line-height: 28px; }
  .banner-note { bottom: 26px; }
  .sec-head .wm { font-size: 96px; }
}
@media (max-width: 1400px) {
  :root {
    --container: 1180px;
    --fs: 17px; --fs-sm: 15px; --fs-h2: 40px; --fs-h3: 23px; --fs-card: 17px;
    --banner-h: 620px; --hero-h: 420px; --hd-h: 80px; --hd-logo-stuck: 40px;
  }
  .hd-logo img { height: 54px; }
  .nav { gap: 58px; }
  .nav a { font-size: 18px; }
  .banner-copy { width: 600px; }
  .banner-tag { height: 50px; line-height: 50px; padding: 0 24px; margin: 132px 0 24px; font-size: 21px; }
  .banner-title { font-size: 70px; margin-bottom: 20px; }
  .banner-sub { font-size: 27px; margin-bottom: 66px; }
  .banner-desc { font-size: 17px; line-height: 25px; }
  .sec-head .wm { font-size: 81px; }
  .sec { padding: 80px 0; }
}
@media (max-width: 1180px) {
  :root { --banner-h: 540px; --hero-h: 340px; --hd-h: 72px; --hd-logo-stuck: 36px; }
  .nav { gap: 42px; }
  .nav a { font-size: 16px; }
  .sec-head .wm { font-size: 69px; }
}
@media (max-width: 900px) {
  :root { --hd-h: 64px; --hd-logo-stuck: 42px; }
  .hd-logo img { height: 42px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: var(--hd-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 560px; }
  .nav { gap: 0; }
  .nav a { height: auto; padding: 14px 20px; border-bottom: 1px solid var(--line-2); font-size: 17px; }
  .nav a::after { display: none; }
  .nav a.on { color: var(--green); }

  :root { --banner-h: auto; }
  .banner { height: auto; padding: 0 0 40px; }
  .banner-copy { position: static; width: auto; }
  .banner-tag { height: auto; line-height: 1.6; padding: 8px 20px; margin: 32px 0 18px; font-size: 15px; }
  .banner-title { font-size: 38px; margin-bottom: 14px; }
  .banner-sub { font-size: 18px; margin-bottom: 18px; }
  .banner-desc { font-size: 14px; line-height: 1.7; }
  .banner-note { position: static; width: auto; margin: 24px 0 0; font-size: 12px; }
  .banner-note span { display: block; margin: 0 0 2px; }
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head .wm { font-size: 48px; }
  .ft-row { min-height: 0; padding: 16px 0; font-size: 14px; }
  .ft-row + .ft-row { min-height: 0; }
  .ft-copy, .ft-by { font-size: 13px; }
}
