/* 公共样式 - 北京永兴感知仪器有限公司 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0066cc;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* 顶部信息栏 */
.top-bar {
  background: #f5f7fa;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
  color: #666;
  line-height: 36px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 20px;
}

.top-bar-left i {
  color: #0066cc;
  margin-right: 4px;
}

.top-bar-right a {
  margin-left: 15px;
  color: #666;
}

.top-bar-right a:hover {
  color: #0066cc;
}

/* 头部导航 - 通栏 */
.site-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* 第一行通栏：Logo + 搜索 + 登录 */
.header-top-bar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 30px;
  height: 72px;
}

.header-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.header-top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 280px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* 产品搜索框 */
.header-search {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-form {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f7fa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form:focus-within {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.12);
  background: #fff;
}

.search-form input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 14px;
  background: transparent;
  color: #333;
}

.search-form input::placeholder {
  color: #aaa;
}

.search-form button {
  flex-shrink: 0;
  width: 56px;
  height: 100%;
  border: none;
  background: #0066cc;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #0052a3;
}

/* 搜索联想下拉 */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1200;
}

.search-dropdown-panel {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: min(70vh, 520px);
  overflow: auto;
}

.search-dropdown-head {
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.search-dropdown-status {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.search-group + .search-group {
  border-top: 1px solid #f0f0f0;
}

.search-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  transition: background 0.2s;
}

.search-group-head:hover {
  background: #eef4fb;
}

.search-group-info {
  flex: 1;
  min-width: 0;
}

.search-group-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a3a5c;
  line-height: 1.4;
}

.search-group-meta {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.search-group-link {
  flex-shrink: 0;
  font-size: 12px;
  color: #0066cc;
  white-space: nowrap;
}

.search-group-list {
  padding: 4px 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.search-item:hover {
  background: #f5f9ff;
}

.search-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f4f8;
  border: 1px solid #eef2f7;
}

.search-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  display: block;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 登录按钮 */
.login-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid #0066cc;
  border-radius: 20px;
  color: #0066cc;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
}

.login-btn i {
  font-size: 18px;
}

.login-btn:hover {
  background: #0066cc;
  color: #fff;
}

/* 登录 / 注册弹层 */
.auth-modal {
  padding: 8px 28px 24px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: #666;
  position: relative;
  transition: color 0.3s;
}

.auth-tab:hover {
  color: #0066cc;
}

.auth-tab.active {
  color: #0066cc;
  font-weight: 600;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #0066cc;
  border-radius: 1px;
}

.auth-form .layui-form-item {
  margin-bottom: 18px;
}

.auth-submit-item {
  margin-bottom: 0 !important;
  margin-top: 8px;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-sms-item {
  display: flex;
  gap: 10px;
}

.auth-sms-item .layui-input {
  flex: 1;
}

.auth-sms-btn {
  flex-shrink: 0;
  width: 118px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.auth-link {
  color: #0066cc;
  font-size: 13px;
}

.auth-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.auth-tip {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.6;
}

.auth-agree-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.auth-agree-item .layui-form-checkbox {
  margin-top: 2px;
}

.auth-agree-text {
  font-size: 13px;
  color: #666;
  line-height: 2.6;
}

.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.user-menu-wrap .user-name-link {
  border-radius: 20px 0 0 20px;
  padding-right: 12px;
}

.user-menu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 40px;
  margin-left: -1px;
  padding: 0;
  border: 1px solid #0066cc;
  border-left: 1px solid #b8d4f0;
  border-radius: 0 20px 20px 0;
  background: #eef4fb;
  color: #0066cc;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.user-menu-toggle:hover,
.user-menu-wrap.is-open .user-menu-toggle {
  background: #0066cc;
  color: #fff;
}

.user-menu-toggle .layui-icon {
  font-size: 14px;
  transition: transform 0.2s;
}

.user-menu-wrap.is-open .user-menu-toggle .layui-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 1200;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  white-space: nowrap;
}

.user-dropdown a i {
  font-size: 16px;
  color: #666;
}

.user-dropdown a:hover {
  background: #f5f7fa;
  color: #0066cc;
}

.user-dropdown a:hover i {
  color: #0066cc;
}

.user-dropdown .logout-item {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 12px;
}

.user-menu-wrap.is-open .user-dropdown {
  display: block;
}

.login-btn.is-logged {
  background: #eef4fb;
  color: #0066cc;
}

.login-btn.is-logged:hover {
  background: #0066cc;
  color: #fff;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.3;
}

.logo-text p {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
}

.header-phone {
  text-align: right;
  margin-right: 30px;
}

.header-phone .label {
  font-size: 12px;
  color: #999;
}

.header-phone .number {
  font-size: 22px;
  font-weight: 700;
  color: #0066cc;
  letter-spacing: 1px;
}

/* 第二行通栏：导航菜单 */
.header-nav-bar {
  width: 100%;
  background: linear-gradient(135deg, #1a3a5c 0%, #004080 55%, #0066cc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.header-nav-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffa726, #ff7043, #ffa726);
}

.header-nav-bar .container {
  display: flex;
  justify-content: flex-start;
}

.main-nav {
  width: auto;
}

.main-nav .layui-nav {
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: flex-start;
}

.main-nav .layui-nav .layui-nav-item {
  line-height: 52px;
  position: relative;
}

.main-nav .layui-nav .layui-nav-item > a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  padding: 0 24px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav .layui-nav .layui-nav-item:first-child > a {
  padding-left: 0;
}

.main-nav .layui-nav .layui-nav-item > a i {
  margin-right: 5px;
  font-size: 16px;
  opacity: 0.85;
  vertical-align: -1px;
}

.main-nav .layui-nav .layui-nav-item > a:hover,
.main-nav .layui-nav .layui-this > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.main-nav .layui-nav .layui-this > a {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.main-nav .layui-nav .layui-nav-bar {
  background-color: #ffa726;
  height: 3px;
  bottom: 3px;
}

.main-nav .layui-nav .layui-nav-child {
  top: 52px;
  border: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  min-width: 170px;
  overflow: hidden;
}

.main-nav .layui-nav .layui-nav-child dd a {
  line-height: 44px;
  color: #444;
  padding: 0 24px;
  font-size: 14px;
  transition: all 0.25s;
}

.main-nav .layui-nav .layui-nav-child dd a:hover {
  background: linear-gradient(90deg, #f0f7ff, #fff);
  color: #0066cc;
  padding-left: 28px;
}

.main-nav .layui-nav .layui-nav-more {
  border-color: rgba(255, 255, 255, 0.7) transparent transparent;
}

.main-nav .layui-nav .layui-nav-mored,
.main-nav .layui-nav-itemed > a .layui-nav-more {
  border-color: transparent transparent rgba(255, 255, 255, 0.7);
}

/* 产品中心多级菜单 */
.nav-product-center.mega-open > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 993px) {
  .nav-product-center.mobile-open > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
  }
}

.product-mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-top: 3px solid #0066cc;
}

.product-mega-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.product-mega-panel.show {
  display: block;
}

.mega-menu-body {
  display: flex;
  min-height: 360px;
  align-items: stretch;
}

.mega-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col-l2 {
  width: 220px;
  flex-shrink: 0;
  background: #f5f7fa;
  border-right: 1px solid #e8ecf0;
  padding: 8px 0;
}

.mega-col-l3 {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid #e8ecf0;
  padding: 8px 0;
}

.mega-col-l4-wrap {
  position: relative;
  flex: 1;
  min-width: 420px;
  min-height: 360px;
}

.mega-col-l4 {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mega-col-l4.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-col-l4[hidden] {
  display: block !important;
}

.mega-l2-item,
.mega-l3-item {
  list-style: none;
}

.mega-l3-all {
  list-style: none;
  padding: 0 12px 8px;
  margin-bottom: 4px;
  border-bottom: 1px dashed #e8ecf0;
}

.mega-l3-all-link {
  display: block;
  padding: 8px 8px;
  font-size: 13px;
  color: #0066cc;
  font-weight: 600;
}

.mega-l3-all-link:hover {
  background: #f0f7ff;
  border-radius: 4px;
}

.mega-l2-inner,
.mega-l3-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px 0 12px;
}

.mega-l2-link,
.mega-l3-link {
  flex: 1;
  display: block;
  padding: 10px 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}

.mega-l2-go,
.mega-l3-go {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #999;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.mega-l2-go:hover,
.mega-l3-go:hover {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.08);
}

.mega-l2-item.active .mega-l2-inner {
  background: #fff;
  box-shadow: inset 3px 0 0 #0066cc;
}

.mega-l2-item.active .mega-l2-link,
.mega-l3-item.active .mega-l3-link {
  color: #0066cc;
  font-weight: 600;
}

.mega-l3-item.active .mega-l3-inner {
  background: #f0f7ff;
  border-radius: 4px;
}

.mega-l2-link:hover,
.mega-l3-link:hover {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.06);
}

.mega-l4-header {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid #0066cc;
}

.mega-l4-header a {
  color: #1a3a5c;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mega-l4-header a:hover {
  color: #0066cc;
}

.mega-l4-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  list-style: none;
}

.mega-l4-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 6px;
}

.mega-l4-sublist {
  list-style: none;
  margin-bottom: 12px;
}

.mega-l4-sublist li a,
.mega-l4-link {
  display: block;
  padding: 6px 0;
  color: #555;
  font-size: 13px;
  transition: color 0.15s;
}

.mega-l4-sublist li a:hover,
.mega-l4-link:hover {
  color: #0066cc;
}

.mega-l4-single {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
}

.mega-l4-single h4 {
  font-size: 18px;
  color: #1a3a5c;
}

.mega-empty {
  padding: 20px;
  color: #999;
  font-size: 13px;
  list-style: none;
}

/* 移动端产品树形菜单 */
.product-mega-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-mobile-l3,
.mega-mobile-l4,
.mega-mobile-l5 {
  margin: 0;
  padding: 0;
  background: #f8fafc;
}

.mega-mobile-item > .mega-mobile-list {
  display: none;
}

.mega-mobile-item.open > .mega-mobile-list {
  display: block;
}

.mega-mobile-row {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.mega-mobile-row a,
.mega-mobile-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  text-decoration: none;
}

.mega-mobile-toggle {
  flex-shrink: 0;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  border-left: 1px solid #eef2f7;
  background: #fafbfc;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-mobile-toggle:active {
  background: #eef2f7;
}

.mega-mobile-link {
  border-bottom: none;
  background: transparent;
}

.mega-mobile-l2 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link {
  font-weight: 600;
  font-size: 15px;
  color: #1a3a5c;
}

.product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link {
  font-weight: 600;
  font-size: 15px;
  color: #1a3a5c;
}

.mega-mobile-l3 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link,
.mega-mobile-l3 > .mega-mobile-item > .mega-mobile-link {
  font-size: 14px;
  color: #333;
  padding-left: 20px;
}

.mega-mobile-l4 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link,
.mega-mobile-l4 > .mega-mobile-item > .mega-mobile-link {
  font-size: 14px;
  color: #444;
  padding-left: 28px;
}

.mega-mobile-l5 > .mega-mobile-item > .mega-mobile-link {
  font-size: 13px;
  color: #555;
  padding-left: 36px;
}

.mega-mobile-l3 > .mega-mobile-item > .mega-mobile-row .mega-mobile-toggle,
.mega-mobile-l4 > .mega-mobile-item > .mega-mobile-row .mega-mobile-toggle,
.mega-mobile-l5 > .mega-mobile-item > .mega-mobile-row .mega-mobile-toggle {
  background: #f5f7fa;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

/* 页脚 */
.site-footer {
  background: #1a2a3a;
  color: #aab8c8;
  margin-top: 0;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-links-row {
  display: contents;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
  display: inline-block;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aab8c8;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-contact a {
  color: #aab8c8;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:active {
  color: #fff;
}

.footer-contact i {
  color: #0066cc;
  margin-top: 3px;
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.7;
}

.footer-copy + .footer-beian {
  margin-top: 6px;
}

.footer-bottom a {
  color: #aab8c8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* 面包屑 */
.page-banner {
  background: linear-gradient(120deg, #153450 0%, #1a3a5c 42%, #0066cc 100%);
  padding: 28px 0 32px;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 40%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.1) 0%, transparent 36%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  opacity: 1;
}

.page-banner::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: min(520px, 55vw);
  height: 180%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 68%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.page-banner .breadcrumb {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-banner .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-banner .breadcrumb span {
  margin: 0 10px;
  opacity: 0.65;
}

/* 通用区块标题 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 30px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 14px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: #0066cc;
  margin: 16px auto 0;
}

.section-block {
  padding: 80px 0;
}

.section-block.bg-gray {
  background: #f5f7fa;
}

/* 回到顶部 */
.back-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 44px;
  height: 44px;
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: #0052a3;
  transform: translateY(-3px);
}

/* 移动端分享（右侧浮条在窄屏隐藏，单独保留分享入口） */
.float-share-mobile {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 998;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #0066cc;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
  cursor: pointer;
}

.float-share-mobile .layui-icon {
  font-size: 20px;
}

.float-share-mobile:active {
  background: #0052a3;
}

/* 右侧悬浮工具栏 */
.float-toolbar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 997;
}

.float-toolbar ul {
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px 0 0 8px;
  overflow: visible;
}

.float-toolbar > ul > li:first-child > a {
  border-radius: 8px 0 0 0;
}

.float-toolbar > ul > li:last-child > a {
  border-radius: 0 0 0 8px;
}

.float-toolbar li {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.float-toolbar li:last-child {
  border-bottom: none;
}

.float-toolbar > ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  width: 56px;
  color: #666;
  font-size: 11px;
  transition: all 0.3s;
}

.float-toolbar > ul > li > a i {
  font-size: 22px;
  margin-bottom: 4px;
  color: #0066cc;
}

.float-toolbar > ul > li > a:hover {
  background: #0066cc;
  color: #fff;
}

.float-toolbar > ul > li > a:hover i {
  color: #fff;
}

.float-toolbar .tooltip-panel {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
}

.float-toolbar li:hover .tooltip-panel {
  opacity: 1;
  visibility: visible;
}

.float-toolbar .float-item.is-open > a {
  background: #0066cc;
  color: #fff;
}

.float-toolbar .float-item.is-open > a i {
  color: #fff;
}

.float-toolbar .float-panel {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 2;
}

.float-toolbar .float-item.is-open .float-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-panel-header {
  padding: 12px 16px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.float-phone-popup {
  padding: 8px 0;
}

.float-share-popup {
  padding: 16px;
}

.float-share-popup .float-share-grid {
  padding: 0;
}

.float-phone-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.float-phone-list li a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  width: auto;
  font-size: 13px;
  color: #333;
  transition: background 0.2s;
}

.float-phone-list li a:hover {
  background: #f5f9ff;
  color: #0066cc;
}

.float-phone-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.float-phone-num {
  font-size: 15px;
  font-weight: 600;
  color: #0066cc;
}

.float-panel-share {
  min-width: 200px;
}

.float-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px;
}

.float-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.float-share-btn:hover {
  background: #f5f5f5;
}

.float-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.float-share-icon .layui-icon {
  font-size: 18px;
  color: #fff;
}

.float-share-weibo {
  background: #e6162d;
}

.float-share-qq {
  background: #12b7f5;
}

.float-share-qzone {
  background: #ffc028;
  color: #333;
}

.float-share-copy {
  background: #666;
}

.float-share-name {
  font-size: 11px;
  color: #666;
}

.float-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 996;
}

.float-overlay.show {
  display: block;
}

.float-wechat-qr {
  padding: 24px;
  text-align: center;
}

.float-wechat-qr img {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
}

.float-wechat-qr p {
  margin: 12px 0 0;
  font-size: 14px;
  color: #666;
}

/* 响应式 */
@media (max-width: 992px) {
  .header-top {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 10px 0 12px;
    gap: 10px 12px;
  }

  .header-top-right {
    display: contents;
  }

  .logo {
    order: 1;
    flex: 0 1 auto;
  }

  .header-top-tools {
    order: 2;
    margin-left: auto;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .logo img {
    width: 220px;
    height: auto;
  }

  .search-form {
    height: 36px;
  }

  .search-form input {
    padding: 0 12px;
    font-size: 13px;
  }

  .search-form button {
    width: 44px;
    font-size: 16px;
  }

  .login-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .login-btn span {
    display: none;
  }

  .login-btn {
    padding: 0 10px;
    width: 36px;
    justify-content: center;
  }

  .user-menu-wrap .user-name-link {
    padding: 0 10px;
    border-radius: 20px 0 0 20px;
  }

  .user-menu-wrap .user-name-link span {
    display: none;
  }

  .user-menu-toggle {
    width: 32px;
    height: 36px;
  }

  .user-dropdown {
    right: 0;
    min-width: 150px;
  }

  .logo-text h1 {
    font-size: 16px;
  }

  .logo-text p {
    display: none;
  }

  .header-phone {
    display: none;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .header-nav-bar {
    display: none;
    position: fixed;
    top: var(--mobile-nav-top, 120px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 998;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .header-nav-bar::after {
    display: none;
  }

  .header-nav-bar.open {
    display: block;
  }

  .header-nav-bar .container {
    display: block;
  }

  .main-nav .layui-nav {
    display: block;
  }

  .main-nav .layui-nav .layui-nav-item > a {
    color: #333;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav .layui-nav .layui-nav-item > a:hover,
  .main-nav .layui-nav .layui-this > a {
    color: #0066cc;
    background: #f8fafc;
  }

  .main-nav .layui-nav .layui-nav-more {
    border-color: #999 transparent transparent;
  }

  .product-mega-panel {
    display: none !important;
  }

  /* 产品子菜单与 layui 主导航样式隔离 */
  .nav-product-center .product-mega-mobile a.mega-mobile-link {
    float: none;
    line-height: 1.45 !important;
    border-bottom: none !important;
    color: #333 !important;
  }

  .product-mega-mobile .mega-mobile-l3 .mega-mobile-link,
  .product-mega-mobile .mega-mobile-l4 .mega-mobile-link,
  .product-mega-mobile .mega-mobile-l5 .mega-mobile-link {
    color: #333 !important;
  }

  .main-nav .layui-nav .layui-nav-bar {
    display: none !important;
  }

  .header-nav-bar::after {
    display: none;
  }

  .nav-product-center {
    position: relative;
  }

  .nav-product-center > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-product-center.mobile-open > a {
    color: #0066cc !important;
    background: #f0f7ff !important;
    border-left: 3px solid #0066cc;
    font-weight: 600;
  }

  .nav-product-center.mobile-open > a .layui-nav-more {
    transform: rotate(180deg);
    margin-top: -3px;
  }

  .product-mega-mobile {
    display: none;
    overflow: visible;
    background: #fff;
    padding: 0;
    border-top: 1px solid #eef2f7;
    line-height: normal;
  }

  .product-mega-mobile .mega-mobile-item {
    line-height: normal;
    float: none;
  }

  .nav-product-center.mobile-open > .product-mega-mobile {
    display: block;
  }

  .nav-product-center .layui-nav-more {
    display: inline-block;
    position: static;
    margin-left: 8px;
    border-width: 5px;
  }

  /* L2 一级分类：仅顶层列表 */
  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid #eef2f7;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item:last-child {
    border-bottom: none;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item > .mega-mobile-row {
    border-bottom: none;
    min-height: 46px;
    background: #fff;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item.open > .mega-mobile-row {
    background: #f0f7ff;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link {
    font-weight: 600;
    font-size: 15px;
    color: #1a3a5c !important;
    padding: 12px 16px;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item.open > .mega-mobile-row .mega-mobile-link {
    color: #0066cc !important;
  }

  .product-mega-mobile > .mega-mobile-l2 > .mega-mobile-item > .mega-mobile-list {
    border-top: none;
  }

  /* 内层列表：缩进 + 左边线，不用独立边框盒子 */
  .mega-mobile-l3,
  .mega-mobile-l4,
  .mega-mobile-l5 {
    background: #fafbfc;
    margin: 0;
    padding: 4px 0 10px;
    border-top: 1px solid #eef2f7;
    border-left: 3px solid #d6e8ff;
    margin-left: 16px;
  }

  .mega-mobile-row {
    border-bottom: none;
    min-height: 40px;
    background: transparent;
  }

  .mega-mobile-row a,
  .mega-mobile-link {
    padding: 10px 12px 10px 0;
    font-size: 14px;
    color: #444;
    border-bottom: none !important;
  }

  .mega-mobile-l3 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link,
  .mega-mobile-l3 > .mega-mobile-item > .mega-mobile-link {
    padding-left: 12px;
    font-weight: 500;
    color: #333 !important;
  }

  .mega-mobile-l4 > .mega-mobile-item > .mega-mobile-row .mega-mobile-link,
  .mega-mobile-l4 > .mega-mobile-item > .mega-mobile-link {
    padding-left: 12px;
    font-size: 13px;
    color: #444 !important;
  }

  .mega-mobile-l5 > .mega-mobile-item > .mega-mobile-link {
    padding: 9px 12px;
    font-size: 13px;
    color: #555 !important;
  }

  /* 叶子节点：加大行高，便于点击 */
  .product-mega-mobile .mega-mobile-item:not(.has-child) > .mega-mobile-link {
    padding-top: 13px;
    padding-bottom: 13px;
    padding-right: 16px;
    min-height: 44px;
    line-height: 1.5;
  }

  .mega-mobile-l3 > .mega-mobile-item,
  .mega-mobile-l4 > .mega-mobile-item,
  .mega-mobile-l5 > .mega-mobile-item {
    border-bottom: 1px solid #f0f3f7;
  }

  .mega-mobile-l3 > .mega-mobile-item:last-child,
  .mega-mobile-l4 > .mega-mobile-item:last-child,
  .mega-mobile-l5 > .mega-mobile-item:last-child {
    border-bottom: none;
  }

  .mega-mobile-item:not(.has-child) > .mega-mobile-link:active {
    background: #eef5ff;
    color: #0066cc;
  }

  .mega-mobile-item.has-child.open > .mega-mobile-row {
    background: rgba(0, 102, 204, 0.04);
  }

  .mega-mobile-item.has-child.open > .mega-mobile-row .mega-mobile-link {
    color: #0066cc !important;
  }

  /* 展开箭头：内联，去掉右侧方框 */
  .mega-mobile-toggle {
    width: 36px;
    min-height: 36px;
    margin-right: 6px;
    background: transparent;
    border: none;
    border-left: none;
    color: #aaa;
    flex-shrink: 0;
  }

  .mega-mobile-item.open > .mega-mobile-row .mega-mobile-toggle {
    color: #0066cc;
  }

  .mega-mobile-toggle:active {
    background: rgba(0, 102, 204, 0.08);
    border-radius: 4px;
  }

  .mega-mobile-toggle .layui-icon {
    font-size: 14px;
  }

  .main-nav .layui-nav .layui-nav-item {
    line-height: 50px;
    display: block;
    float: none;
  }

  .main-nav .layui-nav .layui-nav-item > a {
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav .layui-nav .layui-nav-item:first-child > a {
    padding-left: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-links-row {
    display: contents;
  }

  .section-block {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .top-bar {
    display: none;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .footer-main {
    padding: 36px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .footer-brand p {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 0;
  }

  .footer-title {
    display: block;
    width: 100%;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    display: block;
    padding: 2px 0;
  }

  .footer-contact li {
    margin-bottom: 10px;
  }

  .footer-bottom {
    padding: 16px 0 20px;
    font-size: 11px;
  }

  .footer-copy + .footer-beian {
    margin-top: 8px;
  }

  .float-toolbar {
    display: none;
  }

  .float-share-mobile {
    display: inline-flex;
  }

  .back-top {
    right: 16px;
    bottom: 76px;
  }

  .page-banner {
    padding: 24px 0 28px;
  }

  .page-banner h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .page-banner .breadcrumb {
    font-size: 13px;
  }
}
