/* =========================================================
   V1.3.2 UI 修正
   1. 售后中心自定义下拉菜单，替代浏览器白色原生下拉
   2. 产品中心 / 业务介绍 / 关于我们 / 联系方式顶部栏目区统一为 page-hero 风格
   ========================================================= */

/* 售后中心：彻底隐藏浏览器原生下拉，改用自定义深色菜单 */
.xm-select {
  position: relative;
  width: 100%;
  margin-top: 8px;
  z-index: 10;
}

.xm-select.open {
  z-index: 50;
}

.xm-select-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #eaf3ff;
  background:
    linear-gradient(135deg, rgba(46,232,255,.06), rgba(255,255,255,.035)),
    rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.xm-select-btn:hover,
.xm-select.open .xm-select-btn {
  border-color: rgba(46,232,255,.45);
  box-shadow: 0 0 0 3px rgba(46,232,255,.08);
}

.xm-select-btn span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xm-select-btn i {
  font-style: normal;
  color: #2ee8ff;
  font-size: 18px;
  transition: transform .2s ease;
}

.xm-select.open .xm-select-btn i {
  transform: rotate(180deg);
}

.xm-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(46,232,255,.08), rgba(255,255,255,.04)),
    #101a27;
  border: 1px solid rgba(46,232,255,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.48);
}

.xm-select.open .xm-select-menu {
  display: block;
}

.xm-select-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(236,243,255,.86);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.xm-select-menu button:hover {
  color: #2ee8ff;
  background: rgba(46,232,255,.12);
}

/* 原生 select 备用修正 */
.after-sales-form select option,
.after-sales-form option {
  color: #eaf3ff !important;
  background: #101a27 !important;
}

/* 产品中心、业务介绍、关于我们、联系方式等旧顶部区域统一 */
.products-hero,
.product-list-hero,
.page-header,
.page-title,
.page-banner,
.inner-hero,
.category-hero,
.contact-hero,
.about-hero,
.business-hero {
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 72px 0 48px !important;
  background:
    radial-gradient(circle at 78% 8%, rgba(46,232,255,.16), transparent 30%),
    radial-gradient(circle at 18% 26%, rgba(255,90,0,.065), transparent 28%),
    linear-gradient(180deg, #07101f 0%, #050812 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.products-hero::before,
.product-list-hero::before,
.page-header::before,
.page-title::before,
.page-banner::before,
.inner-hero::before,
.category-hero::before,
.contact-hero::before,
.about-hero::before,
.business-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) !important;
  background-size: 46px 46px !important;
  opacity: .6 !important;
  mask-image: linear-gradient(to bottom, #000, transparent 88%) !important;
}

.products-hero .container,
.product-list-hero .container,
.page-header .container,
.page-title .container,
.page-banner .container,
.inner-hero .container,
.category-hero .container,
.contact-hero .container,
.about-hero .container,
.business-hero .container {
  position: relative !important;
  z-index: 2 !important;
}

.products-hero h1,
.product-list-hero h1,
.page-header h1,
.page-title h1,
.page-banner h1,
.inner-hero h1,
.category-hero h1,
.contact-hero h1,
.about-hero h1,
.business-hero h1 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 48px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}

.products-hero p,
.product-list-hero p,
.page-header p,
.page-title p,
.page-banner p,
.inner-hero p,
.category-hero p,
.contact-hero p,
.about-hero p,
.business-hero p {
  max-width: 860px !important;
  margin: 0 !important;
  color: rgba(215,229,248,.84) !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}

/* 针对 products.php 当前顶部如果是普通 section，也尽量纠正为 page-hero 视觉 */
body .section:first-of-type > .container > .section-title:first-child {
  margin-top: 0;
}

/* 防止顶部标题区域与正文贴太近 */
.products-hero + .section,
.product-list-hero + .section,
.page-header + .section,
.page-title + .section,
.page-banner + .section,
.inner-hero + .section,
.category-hero + .section,
.contact-hero + .section,
.about-hero + .section,
.business-hero + .section {
  padding-top: 54px;
}

/* 移动端 */
@media(max-width: 900px) {
  .products-hero,
  .product-list-hero,
  .page-header,
  .page-title,
  .page-banner,
  .inner-hero,
  .category-hero,
  .contact-hero,
  .about-hero,
  .business-hero {
    padding: 50px 0 34px !important;
  }

  .products-hero h1,
  .product-list-hero h1,
  .page-header h1,
  .page-title h1,
  .page-banner h1,
  .inner-hero h1,
  .category-hero h1,
  .contact-hero h1,
  .about-hero h1,
  .business-hero h1 {
    font-size: 36px !important;
  }

  .products-hero p,
  .product-list-hero p,
  .page-header p,
  .page-title p,
  .page-banner p,
  .inner-hero p,
  .category-hero p,
  .contact-hero p,
  .about-hero p,
  .business-hero p {
    font-size: 15px !important;
  }
}
