/* ===============================
   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;
}

/* ===============================
   首页打字机 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;
}

/* ===============================
   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;
}

/* 弹出层 */
.img-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 9999;
}
.img-popup img {
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  display: block;
}
.img-popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

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