/* 全局基础样式 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #10243b;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* 安全区与文本缩放 */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 媒体元素默认自适应容器 */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 页首（仅 Logo） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding-top: var(--safe-top);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  display: flex;
  align-items: center;
  z-index: 20;
  background: transparent;
  box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, transform .3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-image {
  height: 40px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

/* 滚动后变为白底 */
.site-header--solid {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.06);
}
.site-header--solid .logo-text { color: #0b2a4a; }

/* 横幅背景与内容 */
.hero {
  position: relative;
  height: 26.14583vw;
  display: grid;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.25));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-inner {
  width: min(1100px, 86%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 800;
  letter-spacing: 2px;
}
.hero-key {
  display: inline-block;
  margin: 0 .08em;
  padding: 0 .05em; /* 紧贴文字 */
  font-size: 1.6em; /* 比周围文字更大 */
  line-height: 1.1;
  color: #0fb188; /* 绿色文字填充 */
  font-weight: 900;
  /* 首选描边方案（Chrome/Edge/Safari） */
  -webkit-text-stroke: 3px #ffffff; /* 细一点，让绿色主体更大 */
}

.hero-divider {
  width: 90px;
  height: 2px;
  margin: 24px auto 20px;
  background: linear-gradient(90deg, rgba(255,255,255,.15), #28d9a6, rgba(255,255,255,.15));
}

/* 横幅要点列表 */
.hero-list {
  margin: 18px auto 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: center;
}
.hero-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 20px);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-bullet {
  width: 12px; height: 12px; border-radius: 2px; background: #e8fff7;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* 横幅服务胶囊按钮 */
.hero-ctas {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
}
.hero-pill {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(15, 177, 136, .95);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.85);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 18px);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.hero-desc {
  margin: 0 auto;
  max-width: 1040px;
  line-height: 2.0;
  font-size: 16px;
  color: #d6fff2;
  text-wrap: pretty;
}

/* 响应式优化 */
@media (max-width: 992px) {
  .site-header { height: 64px; }
  .logo-image { height: 34px; }
  .hero {
    height: 34vw;
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .site-header { height: 56px; }
  .logo-image { height: 28px; }
  .hero {
    height: auto; /* 自适应内容高度 */
    min-height: 260px; /* 提升首屏可读性 */
    padding-top: 72px; /* 防止被固定头部遮挡 */
    padding-bottom: 16px;
    align-items: start; /* 内容靠上排列，避免挤压 */
  }
  .hero-title { font-size: clamp(24px, 7.2vw, 36px); letter-spacing: .5px; line-height: 1.25; margin-top: 6px; text-wrap: balance; }
  .hero-key { font-size: 1.12em; -webkit-text-stroke: 1.5px #ffffff; }
  .hero-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 手机上分两行展示（共6项，3列×2行） */
    gap: 10px 12px;
    justify-items: center;
  }
  .hero-item {
    justify-content: center;
    text-align: center;
    font-size: 13px;
  }
  .hero-bullet { width: 10px; height: 10px; }
  .hero-desc { font-size: 14px; }
}

@media (max-width: 380px) {
  .hero { min-height: 200px; }
  .hero-title { letter-spacing: 1px; }
}

/* 第二部分：服务与方案 */
.section-two {
  background: #ffffff;
  padding: 64px 0 84px;
}
.section-two .container {
  display: grid;
  justify-items: center; /* 水平居中内容 */
}
.section-head { text-align: center; margin-bottom: 24px; }
.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0b2a4a;
}
.section-subtitle {
  margin: 8px 0 0;
  color: #53657c;
  font-size: 14px;
}
.cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
.card:hover,
.card.is-tilting {
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.16);
  border-color: #d7e3f0;
}
.card-body p { margin: 0 0 10px; color: #334866; line-height: 1.9; }
.card-body p:last-child { margin-bottom: 0; }

/* 降低运动偏好与触摸设备：禁用倾斜，仅保留阴影过渡 */
@media (prefers-reduced-motion: reduce) {
  .section-two .card {
    transition: box-shadow .18s ease, border-color .2s ease !important;
    transform: none !important;
  }
}
@media (hover: none), (pointer: coarse) {
  .section-two .card {
    transform: none !important;
  }
}
.card-title {
  margin: -20px -20px 12px;
  padding: 12px 16px;
  background: #0b63b4;
  color: #ffffff;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.card-list { margin: 0; padding-left: 18px; color: #334866; line-height: 1.8; }
.card-list li { margin: 4px 0; }

@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* 第三部分：行业解决方案 - 走马灯 */
.solutions { background: #f7f9fc; padding: 64px 0 84px; }
.equipments { background: #ffffff; padding: 64px 0 84px; }

/* 解决方案 段落样式 */
.solutions-lead {
  margin: 8px 0 24px;
  color: #53657c;
  font-size: 14px;
  line-height: 1.9;
}
.solutions-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.solution-card {
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
}
.solution-thumb {
  height: 200px;
  background: linear-gradient(180deg, #f3f7fd, #e8eef9);
}
.solution-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.solution-caption {
  padding: 12px 14px 16px;
  color: #334866;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 992px) {
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-thumb { height: 180px; }
  .solution-caption { font-size: 14px; }
}

/* 第五部分：典型应用案例 */
.cases { background: #ffffff; padding: 64px 0 84px; }
.case-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  padding: 20px 0 8px;
  margin: 0 0 28px;
  position: relative;
}
.case-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: repeating-linear-gradient(90deg, #e9edf5 0px, #e9edf5 1px, transparent 1px, transparent 14px);
  z-index: 0;
}
.case-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #576b86;
  cursor: pointer;
  position: relative;
  z-index: 1; /* 让步骤圆覆盖在虚线之上 */
}
.case-dot { position: relative; width: 64px; height: 64px; }
.case-dot .case-num,
.case-dot .case-num:before,
.case-dot .case-num:after { box-sizing: border-box; }
.case-dot .case-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8a9097;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  z-index: 1;
  transition: background-color .25s ease;
}
.case-dot-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2f7; /* 外圈 */
  z-index: 0;
  transition: background-color .25s ease;
}
/* 外圈大圆：绑定在小圆上，始终与其同心居中 */
.case-step.is-active .case-num { background: #135fb4; }
.case-step.is-active .case-dot-big { background: #cfe0f6; }
.case-step-title { font-size: 14px; }

.case-panels { margin-top: 16px; }
.case-panel { display: none; }
.case-panel.is-active { display: block; }
.case-panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #eef2f7;
}
.case-panel-title { margin: 0 0 8px; font-size: 28px; color: #0b2a4a; letter-spacing: .5px; }
.case-panel-text p { margin: 0 0 10px; color: #3a4a62; line-height: 1.9; }
.case-panel-text p + p { margin-top: 8px; }
.case-panel-text p + p { opacity: .9; }
.case-panel-text .bullet { display: inline-block; margin: 0 8px; color: #7292c7; }
.case-media {
  height: clamp(220px, 28vw, 360px);
  background: transparent; /* 去除背景色 */
  border-radius: 10px;
  overflow: hidden; /* 裁剪溢出，让圆角生效 */
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.12); /* 轻微投影，非 inset */
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 充满容器，保持比例 */
  display: block;
}

@media (max-width: 992px) {
  .case-panel-grid { grid-template-columns: 1fr; }
}
.sol-carousel {
  position: relative;
  width: 100%;
  overflow: hidden; /* 防止箭头在中小屏产生横向溢出滚动条 */
}
.sol-viewport {
  overflow: hidden;
}
.sol-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}
.sol-item {
  width: clamp(240px, 24vw, 280px);
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
  overflow: hidden;
}
.sol-thumb {
  height: 160px;
  background: transparent; /* 取消占位背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 按比例展示设备图片，不裁切 */
}
.sol-name { padding: 14px 16px 18px; color: #334866; font-weight: 600; }

@media (max-width: 600px) {
  .sol-thumb { height: 140px; }
}

.sol-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d7e3f0;
  background: #fff;
  color: #0b2a4a;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(2, 8, 23, 0.08);
}
.sol-prev { left: 20px; }
.sol-next { right: 20px; }

@media (max-width: 600px) {
  .sol-arrow { width: 44px; height: 44px; }
  .sol-prev { left: 4px; }
  .sol-next { right: 4px; }
}

/* 典型应用案例：为步骤导航添加移动端栅格断点 */
@media (max-width: 992px) {
  .case-steps { grid-template-columns: repeat(3, 1fr); }
  .case-steps::before { display: none; }
}
@media (max-width: 600px) {
  .case-steps { grid-template-columns: repeat(2, 1fr); }
  .case-step-title { font-size: 13px; }
  .case-dot { width: 56px; height: 56px; }
  .case-dot .case-num { width: 40px; height: 40px; font-size: 15px; }
  .case-dot-big { width: 56px; height: 56px; }
  .case-panel-grid { gap: 16px; }
  .case-media { height: clamp(180px, 36vw, 260px); }
}

/* 第四部分顶部分类链接 */
.equip-cats {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.equip-cats a { color: #2f5aa3; text-decoration: none; font-size: 14px; }
.equip-cats a:hover { text-decoration: underline; }

/* 第六部分：FAQ */
.faq { background: #f7f9fc; padding: 64px 0 84px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-card {
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
}
.faq-card--full {
  grid-column: 1 / -1;
}
.faq-q { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.faq-q-title { margin: 0; font-size: 16px; color: #0b2a4a; }
.faq-a { display: flex; align-items: flex-start; gap: 10px; color: #334866; }
.faq-icon {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  width: 28px; height: 28px; border-radius: 6px;
  /* 固定尺寸，避免在 flex 容器内被压缩 */
  flex: 0 0 28px;
  min-width: 28px;
  min-height: 28px;
  font-size: 14px; color: #fff;
}
.faq-icon-q { background: #2e74c5; }
.faq-icon-a { background: #2ecc71; }
/* 让答的文本占据剩余空间，图标不被挤压 */
.faq-a p { flex: 1 1 auto; }

.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-col { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.contact-title { margin: 0; font-size: 15px; color: #0b2a4a; width: 72px; min-width: 72px; white-space: nowrap; }
.contact-col p { margin: 0; line-height: 1.7; color: #334866; }
.contact-link { color: #0b63b4; text-decoration: none; font-weight: 700; }
.contact-link:hover { text-decoration: underline; }

@media (max-width: 992px) {
  .faq-grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
}

/* 第七部分：业务6大优势 */
.advantages { background: #ffffff; padding: 64px 0 84px; }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.adv-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
}
.adv-icon {
  width: 72px; height: 72px; border-radius: 16px;
}
.adv-text { margin: 0; color: #334866; line-height: 1.7; }

@media (max-width: 992px) {
  .adv-grid { grid-template-columns: 1fr; }
}

/* 小屏：整体标题字号与区块内边距收紧 */
@media (max-width: 600px) {
  .section-two, .equipments, .cases, .faq, .advantages { padding: 44px 0 60px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 13px; }
  .card { padding: 16px; }
  .card-title { font-size: 15px; }
  .faq-card { padding: 16px; }
  .adv-card { grid-template-columns: 56px 1fr; gap: 12px; padding: 16px; }
  .adv-icon { width: 56px; height: 56px; border-radius: 12px; }
  .adv-text { font-size: 14px; line-height: 1.7; }
  .footer-logo { height: 32px; }
  .footer-brand-text { font-size: 16px; }
}

/* 页尾 */
.site-footer { color: #d7e7ff; background: #0e4572; }
/* 紧凑版页尾 */
.site-footer--compact { padding: 16px 0; }
.site-footer--compact { padding-bottom: calc(16px + var(--safe-bottom)); }
.footer-compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-logo { height: 40px; width: auto; }
.footer-brand-text { font-weight: 800; font-size: 18px; color: #ffffff; }
.footer-contact { font-size: 12px; line-height: 1.6; color: #d7e7ff; }
.contact-line { margin: 0; }

/* 备案信息分割线与区域 */
.footer-legal { border-top: 1px solid rgba(255,255,255,.25); margin-top: 10px; }
.legal-inner { padding: 8px 0; font-size: 12px; color: #cfe0ff; opacity: .85; }

@media (max-width: 600px) {
  .footer-compact { flex-direction: column; align-items: flex-start; }
}

/* 悬浮“联系我们”按钮与弹出层 */
.contact-fab {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 12px));
  bottom: calc(88px + var(--safe-bottom));
  z-index: 50;
}
.float-contact {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 1px solid #d7e3f0;
  background: #0b63b4;
  color: #ffffff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.18);
}
.float-contact-text { font-weight: 800; line-height: 1.1; text-align: center; letter-spacing: 2px; }
.float-contact:hover { background: #0a58a6; }
.float-contact:active { transform: translateY(1px); }

.contact-popover {
  position: absolute;
  right: 76px;
  bottom: 4px;
  min-width: 220px;
  max-width: 260px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.18);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.contact-popover.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.contact-popover-inner { padding: 14px 16px; color: #0b2a4a; font-size: 14px; }
.contact-popover-inner { user-select: text; }
.contact-popover-inner a { color: #0b63b4; text-decoration: none; font-weight: 700; }
.contact-popover-inner a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .float-contact { width: 56px; height: 56px; border-radius: 10px; }
  .contact-popover { right: 68px; min-width: 200px; }
}
