:root {
  --blue: #2f7cf6;
  --blue-dark: #1d5fd4;
  --text: #333333;
  --muted: #666666;
  --line: #e6e6e6;
  --bg: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
}

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

html,
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #f3f4f6;
  line-height: 1.6;
  -webkit-user-select: text;
  user-select: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 正文默认可复制；装饰控件保持不可选 */
img,
svg,
video,
.caret,
.menu-toggle,
.tag-hot,
.tag-new,
.consult-chat,
.hotline-ico {
  -webkit-user-select: none;
  user-select: none;
}

/* 左侧固定「欢迎咨询」——放 common，避免详情页未引 page css 时掉样式 */
.consult-float {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 80;
  width: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 8px 8px 0;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  text-decoration: none;
}

.consult-float .consult-chat {
  writing-mode: horizontal-tb;
  width: 22px;
  height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4zm3 4v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4zm3 4v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 760px) {
  .consult-float {
    display: none;
  }
}

button,
.cat-item,
.home-trust-cat,
.plan-nav-item,
.plan-sub-item {
  -webkit-user-select: text;
  user-select: text;
}

a,
a * {
  -webkit-user-select: text;
  user-select: text;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
em,
figcaption,
li,
td,
th,
label,
.crumb,
.footer-col a {
  -webkit-user-select: text;
  user-select: text;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  width: min(1400px, calc(100% - 40px));
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #3a3a3a;
  padding: 28px 0;
}

.nav-link.active {
  color: var(--blue);
}

.caret {
  width: 8px;
  height: 8px;
  border: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  border-top: 0;
  border-left: 0;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 360px;
  width: max-content;
  max-width: min(420px, calc(100vw - 24px));
  /* padding-top bridges the gap so hover/click don't drop */
  padding: 14px 0 10px;
  margin-top: -2px;
  background: var(--white);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 40, 80, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 120;
  box-sizing: border-box;
  overflow: hidden;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -2px -2px 4px rgba(20, 40, 80, 0.04);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 22px;
  font-size: 14px;
  color: #444;
  border-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.dropdown a:hover {
  color: var(--blue);
  background: #f7faff;
}

/* 产品中心 / 成功案例：四列下拉；水平位移由 JS --mega-shift 防视口裁切 */
.dropdown.dropdown-products,
.dropdown.dropdown-cases {
  left: auto;
  right: 0;
  min-width: 0;
  width: min(920px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
  padding: 22px 22px 20px;
  --mega-shift: 0px;
  transform: translateX(var(--mega-shift)) translateY(10px);
  box-sizing: border-box;
  overflow-x: clip;
  overflow-y: visible;
}

.dropdown.dropdown-products::before,
.dropdown.dropdown-cases::before {
  left: auto;
  right: calc(28px + var(--mega-shift));
  transform: rotate(45deg);
}

.nav-item:hover .dropdown.dropdown-products,
.nav-item:focus-within .dropdown.dropdown-products,
.nav-item:hover .dropdown.dropdown-cases,
.nav-item:focus-within .dropdown.dropdown-cases {
  transform: translateX(var(--mega-shift)) translateY(0);
}

.dropdown-products .mega-col,
.dropdown-cases .mega-col {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dropdown-products .mega-col > *,
.dropdown-cases .mega-col > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 二级标题：限制在列宽内，最多两行，超出省略 */
.dropdown-products .mega-heading,
.dropdown-cases .mega-heading {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0 0 8px;
  padding: 0 0 8px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  border-bottom: 1px solid #eef0f3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.dropdown-products .mega-heading:hover,
.dropdown-cases .mega-heading:hover {
  color: var(--blue);
  background: transparent;
}

.dropdown-products a:not(.mega-heading),
.dropdown-cases a:not(.mega-heading) {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 0;
  font-size: 13px;
  color: #555;
  white-space: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.dropdown-products a:not(.mega-heading):hover,
.dropdown-cases a:not(.mega-heading):hover {
  background: transparent;
  color: var(--blue);
}

.tag-hot,
.tag-new {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.4px;
  color: #fff;
}

.tag-hot {
  background: #f08a5a;
}

.tag-new {
  background: #5b9cf5;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #333;
  margin: 6px 6px;
}

.crumb-bar {
  background: #f4f5f7;
  border-bottom: 1px solid #ececec;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 13px;
  color: #888;
}

.crumb a:hover {
  color: var(--blue);
}

.crumb em {
  font-style: normal;
  color: var(--blue);
}

.footer-cta {
  background: #f7f7f7;
  text-align: center;
  padding: 42px 20px 38px;
}

.footer-cta h2,
.footer-cta-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.footer-cta p {
  margin-top: 10px;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

.site-footer {
  background: #2b303b;
  color: #c8cdd5;
  padding: 36px 0 42px;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 0.75fr) minmax(0, 1.15fr);
  gap: 28px 20px;
  max-width: 100%;
}

.footer-col {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-col h3,
.footer-col-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #b7bcc6;
  line-height: 2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact .hotline {
  font-size: 13px;
  color: #c8cdd5;
  line-height: 1.5;
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}

.footer-contact .hotline b {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hotline-ico {
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  background: #c8cdd5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.25 1.02l-2.2 2.21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.qr-list {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.qr-list figure {
  text-align: center;
}

.qr-list img {
  width: 72px;
  height: 72px;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-list img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.qr-list figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #c8cdd5;
}

/* 页脚二维码点击放大 */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 16, 28, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.qr-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qr-lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 360px);
  padding: 28px 28px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.22s ease;
}

.qr-lightbox.is-open .qr-lightbox-dialog {
  transform: scale(1);
}

.qr-lightbox-dialog img {
  width: min(72vw, 260px);
  height: min(72vw, 260px);
  object-fit: contain;
  background: #fff;
}

.qr-lightbox-caption {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.qr-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-lightbox-close:hover {
  color: #111;
  background: #f0f2f5;
}

body.qr-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10100;
    /* 独立层，避免被下方 video 硬件合成层盖住 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  body {
    padding-top: 62px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 10110;
  }

  .nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 62px;
    bottom: 0;
    z-index: 10090;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 0;
    box-shadow: none;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* 打开菜单时隐藏首页视频，避免 iOS/部分安卓 video 层盖住菜单 */
  body.nav-open .home-hero video,
  body.nav-open .home-slide video {
    visibility: hidden !important;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 20px;
    justify-content: space-between;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item.has-drop > .nav-link .caret {
    transition: transform 0.18s ease;
  }

  .nav-item.has-drop.open > .nav-link .caret {
    transform: rotate(225deg) translateY(-2px);
  }

  .dropdown,
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown,
  .dropdown.dropdown-products,
  .dropdown.dropdown-cases,
  .nav-item:hover .dropdown.dropdown-products,
  .nav-item:focus-within .dropdown.dropdown-products,
  .nav-item:hover .dropdown.dropdown-cases,
  .nav-item:focus-within .dropdown.dropdown-cases {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: #f5f7fa;
    padding: 4px 0 10px;
    margin: 0;
    min-width: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .dropdown::before,
  .dropdown.dropdown-products::before,
  .dropdown.dropdown-cases::before {
    display: none;
  }

  .nav-item.open > .dropdown {
    display: block;
  }

  .dropdown a,
  .dropdown.dropdown-products a,
  .dropdown.dropdown-cases a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 10px 16px 10px 32px;
    line-height: 1.45;
  }

  .dropdown.dropdown-products,
  .dropdown.dropdown-cases {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 4px 12px 12px;
  }

  .nav-item.open > .dropdown.dropdown-products,
  .nav-item.open > .dropdown.dropdown-cases {
    display: grid;
  }

  .dropdown-products .mega-col,
  .dropdown-cases .mega-col {
    padding: 6px 0 10px;
    border-bottom: 1px solid #e8edf3;
  }

  .dropdown-products .mega-col:last-child,
  .dropdown-cases .mega-col:last-child {
    border-bottom: 0;
  }

  .dropdown-products .mega-heading,
  .dropdown-cases .mega-heading {
    padding: 8px 8px 8px 20px;
    margin-bottom: 2px;
  }

  .dropdown-products a:not(.mega-heading),
  .dropdown-cases a:not(.mega-heading) {
    padding: 8px 8px 8px 32px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 62px;
    width: calc(100% - 24px);
  }

  .logo img {
    height: 40px;
  }

  .footer-cta {
    padding: 28px 16px 24px;
  }

  .footer-cta h2,
  .footer-cta-title {
    font-size: 18px;
    letter-spacing: 0;
  }

  .footer-cta p {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .qr-list {
    flex-wrap: wrap;
  }
}

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

@media (min-width: 761px) and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 文字悬停提示气泡 */
.ui-tip {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  max-width: min(420px, calc(100vw - 24px));
  padding: 8px 14px;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 0.12s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ui-tip.is-on {
  opacity: 1;
  visibility: visible;
}

.ui-tip.is-wrap {
  white-space: normal;
}

.ui-tip.is-below {
  transform: translate(-50%, 10px);
}

.ui-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #3a3a3a;
}

.ui-tip.is-below::after {
  bottom: auto;
  top: -6px;
  border-top: 0;
  border-bottom: 6px solid #3a3a3a;
}

@media (max-width: 760px) {
  .ui-tip {
    display: none;
  }
}

/* 多屏页：悬浮回到顶部 */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid #d8dde6;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 20px no-repeat;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, border-color 0.15s ease;
}

.back-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  border-color: #163a7a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163a7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  .back-top {
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

/* 富文本 / 旧数据 <pre class="detail-text">：前台自动换行，避免横向撑破 */
.detail-text,
.case-detail-body,
.nd-content,
.page-body,
.wins-detail-body,
.bid-detail-body {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.detail-text,
pre.detail-text,
.case-detail-body pre,
.nd-content pre,
.page-body pre,
.wins-detail-body pre,
.bid-detail-body pre {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
  font-family: inherit;
}
