/* ===============================
   百度地图优化（稳定版）
   =============================== */

/* About 页面地图容器 */
.about-map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
}

/* 百度地图 iframe */
.about-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 导航按钮 */
.nav-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1e6fff, #2fa4ff);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  user-select: none;
}

/* 地图选择弹层 */
.map-select {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 9999;
  overflow: hidden;
}

/* 地图选项 */
.map-item {
  padding: 14px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.map-item:last-child {
  border-bottom: none;
}

.map-item:hover {
  background: #f5f7fa;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .about-map-wrapper {
    height: 320px;
  }

  .nav-btn {
    font-size: 13px;
    padding: 7px 14px;
  }
}

/* ===============================
   Navbar LOGO
   =============================== */
.navbar-brand {
  display: block;
  width: 220px;
  height: 56px;
  background-image: url("/img/yuxinglogo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  font-size: 0;
  padding: 0;
}
/* 移动端 Navbar Logo 自适应 */
@media (max-width: 768px) {

  .navbar-brand {
    width: 150px;      /* ⭐手机端宽度，防止太长 */
    height: 34px;      /* ⭐关键：控制 navbar 高度 */
    background-position: left center;
    background-size: contain;
  }

}

/* ===============================
   首页打字机 Slogan
   =============================== */
.home-slogan {
  text-align: center;
}

.home-slogan .line-1 {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
}

.home-slogan .line-2 {
  font-size: 30px;
  color: #f6c343;
  margin-top: 8px;
}

.home-slogan .line-3 {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
  margin-top: 6px;
}
/* 首页打字机 Slogan（移动端优化）*/
@media (max-width: 768px) {

  .home-slogan {
    padding: 0 16px;          /* ⭐防止左右贴边 */
  }

  .home-slogan .line-1 {
    font-size: 25px;          /* 原来 56px → 手机太大 */
    line-height: 1.3;
  }

  .home-slogan .line-2 {
    font-size: 15px;          /* 原来 30px */
    margin-top: 6px;
  }

  .home-slogan .line-3 {
    font-size: 10px;          /* 原来 20px */
    margin-top: 4px;
    letter-spacing: 0.5px;
  }

}


/* ===============================
   About 页面头像完整显示
   =============================== */
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 关键：完整显示 */
  background-color: #fff; /* 可选，防止透明 PNG 边缘不好看 */
}

/* ===============================
   产品系列卡片容器
   =============================== */
.product-series {
  margin-top: 40px;
}

/* 单个产品卡片 */
.product-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  text-decoration: none !important;
  color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

/* hover 效果 */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* 图标 */
.product-icon {
  font-size: 56px;
  color: #0d6efd; /* 主色，可换成企业色 */
  margin-bottom: 20px;
}

/* 标题 */
.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 描述 */
.product-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===============================
   具体产品系列统一介绍样式
   =============================== */
.series-intro {
  max-width: 960px;
  margin: 80px auto 60px;
  text-align: center;
  padding: 0 20px;
}

/* 标题：工业官网感 */
.series-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

/* 标题下强调线 */
.series-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  background-color: currentColor;
  opacity: 0.85;
}

/* 描述文字 */
.series-desc {
  font-size: 18px;
  line-height: 1.9;
  color: #555;
  max-width: 820px;
  margin: 0 auto;
}
/* ===== THX —— 高速 · 精密（科技蓝） ===== */
.series-thx .series-title {
  color: #1f6ed4;
}

.series-thx .series-desc strong {
  color: #1f6ed4;
}
/* ===== XT —— 稳定 · 通用（深灰工业色） ===== */
.series-xt .series-title {
  color: #2f2f2f;
}

.series-xt .series-desc {
  color: #444;
}
/* ===== YX —— 重载 · 大型（力量深蓝） ===== */
.series-yx .series-title {
  color: #0b3a66;
}

.series-yx .series-desc strong {
  color: #0b3a66;
}

/* ===============================
   产品详情页 选项卡按钮
   =============================== */

/* tabs */
.product-tabs {
  text-align: center;
  margin: 30px 0;
}

.tab-btn {
  margin: 0 6px;
  padding: 10px 22px;
  border: 2px solid #1e88e5;
  background: #fff;
  color: #1e88e5;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background: #1e88e5;
  color: #fff;
}

/* content */
.tab-content {
  display: none;
  position: relative;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.tab-content.active {
  display: block;
}

/* 参数按钮 */
.param-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: #d32f2f;
  font-weight: bold;
  cursor: pointer;
}

.param-btn::before {
  content: "📊 ";
}

/* 图片并排 */
.img-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.img-row img {
  width: 50%;
  cursor: zoom-in;
  border-radius: 6px;
}

/* 产品详情页移动端优化 */
@media (max-width: 768px) {

  /* Tab 容器改成可滚动横向排列 */
  .product-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 滑动更顺畅 */
    margin: 20px 0;
    padding-bottom: 5px;
  }

  /* Tab 按钮更小更紧凑 */
  .tab-btn {
    flex: 0 0 auto;   /* 横向不压缩 */
    margin: 0 6px;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 4px;
  }

  .tab-btn.active {
    font-size: 14px;
  }

  /* Tab 内容宽度自适应，图片占满屏幕 */
  .tab-content {
    max-width: 100%;
    margin: 0 auto 30px;
  }

  /* 图片竖向排列，撑满屏幕宽度 */
  .img-row {
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .img-row img {
    width: 100%;
  }

  /* 参数按钮放到图片下方，防止挡住图片 */
  .param-btn {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
  }

  /* 弹出层图片适应屏幕 */
  .img-popup img {
    max-width: 95%;
    max-height: 80%;
  }

  /* 弹出层关闭按钮缩小 */
  .img-popup .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

}

/* ===============================
   图片弹层（终极稳定 + 视觉友好）
   =============================== */

.img-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
}

.img-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片载体 */
.popup-inner {
  position: relative;
  display: inline-block;
}

/* 图片本体 */
.popup-inner img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border-radius: 6px;
}

/* 关闭按钮：图片中部右侧 */
.popup-inner .close {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;

  background: rgba(0,0,0,.15);
  color: rgba(255,255,255,.6);
  opacity: .3;
  transition: all .2s ease;
}

/* Hover 高亮 */
.popup-inner:hover .close {
  opacity: 1;
  background: rgba(0,0,0,.55);
  color: #fff;
}

/* 禁止背景滚动 */
body.no-scroll {
  overflow: hidden;
}

/* 移动端优化 */
@media (max-width: 768px) {

  .popup-inner img {
    max-width: 95vw;
    max-height: 85vh;
  }

  .popup-inner .close {
    right: 8px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 20px;
  }
}

/* ===============================
   页面 Banner 三图轮播
   =============================== */
.page-banner-slider {
  position: relative;
  width: 100%;
  height: 55vh;              /* 对应 banner_img_height: 60 */
  min-height: 320px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .8s ease;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* 小圆点 */
.banner-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

.banner-dots .dot.active {
  background: #fff;
}

/* ===============================
   Banner 移动端显示优化（宽图友好）
   =============================== */
@media (max-width: 768px) {

  .page-banner-slider {
    height: 32vh;
    min-height: 200px;
  }

  .banner-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
  }

}

/* ===============================
   Banner 左右箭头
   =============================== */
.page-banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.banner-slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}

/* 左右箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: background 0.3s;
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.banner-arrow.prev {
  left: 20px;
}

.banner-arrow.next {
  right: 20px;
}

/* 移动端稍微缩小 */
@media (max-width: 768px) {
  .banner-arrow {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
  }
}


/* ===============================
   其他页面美化（以后继续加）
   =============================== */