/* 全局重置 + 移动端基础适配 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}
html {
  scroll-behavior: smooth;
}
ul { list-style: none; }
a { text-decoration: none; color: #333; }
body { color: #333; line-height: 1.6; background: #f9f9f9; }

/* 容器 */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 顶部导航 */
.header {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 99;
  position: relative;
}
.nav-main li a.active-nav {
  color: #0099ff !important;
  position: relative;
}
.nav-main li a.active-nav::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #0099ff;
  border-radius: 1px;
}
.nav-main li a:hover {
  color: #0099ff;
}
.header::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-image: url('../image1/xingkong.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: -2;
}
.header::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: -1;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-top {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.logo-bottom {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-main li a {
  font-size: 15px;
  color: #fff;
  transition: 0.3s;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-shop a {
  background: #0099ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  color: #fff;
}
.lang-switch {
  font-size: 14px;
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 15px;
  cursor: pointer;
}

/* ========================== */
/* ========================== */
/* 右侧悬浮图标 —— 经典稳定版（原版正常样式）
========================== */
/* ========================== */
/* 右侧悬浮图标 —— 原版正常稳定版 */
/* ========================== */
.float-contact {
  position: fixed;
  right: 20px;
  top: 57%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.float-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.float-item {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.8;
  cursor: pointer;
  flex-shrink: 0;
}
.float-item:hover {
  transform: scale(1.1);
  opacity: 1;
}
.float-item i {
  font-size: 24px;
  color: #fff;
}
.float-item.weixin { background: #07c160; }
.float-item.whatsapp { background: #25c360; }
.float-item.email { background: #44cfbc; }
.float-item.msg { background: #2185d0; }
.float-item.phone { background: #d4436c; }

/* 弹出层 —— 原版正常样式 */
.float-popup {
  position: absolute;
  right: 100%;
  margin-right: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.15);
  padding: 2px 4px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99999;
}
.float-wrap:hover .float-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 留言弹窗 */
.msg-popup {
  pointer-events: none;
}
.msg-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* 关闭按钮 */
.msg-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size:18px;
  cursor:pointer;
  color:#999;
}

.float-popup.small {
  min-width: 90px;
  white-space: nowrap;
}
.float-popup.big {
  min-width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.float-popup img {
  width: 100px;
  height: 100px;
}
.msg-box {
  text-align: left;
  padding-top: 16px;
}
.msg-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.msg-box textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.msg-box button {
  background: #2185d0;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}
/* 留言关闭按钮样式（仅样式，跟随悬浮逻辑） */
.msg-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

/* ========================== */
/* 轮播
========================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000;
}
.slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 40px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  user-select: none;
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-arrow:hover { background: rgba(0,0,0,0.7); }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.dot.active {
  background: #fff;
}

/* ========================== */
/* 内容布局
========================== */
.section {padding: 80px 0; background: #fff;}
.title {text-align: center; margin-bottom: 60px;}
.title h2 {font-size: 32px; color:#222; margin-bottom: 10px;}
.title p {color:#666;}
.row {display: flex; flex-wrap: wrap; gap: 30px; justify-content: center;}
.col-4 {
  width: calc(33.333% - 20px);
  max-width: 350px;
  background: #fff;
  box-shadow: 0 0 10px #eee;
  padding: 20px;
  border-radius: 6px;
}
.pro-card img {width:100%; height:200px; object-fit:cover; border-radius:4px; margin-bottom:15px;}
.pro-card h3 {font-size:18px; margin-bottom:10px;}
.pro-card p {color:#666; font-size:14px;}

/* ========================== */
/* 页脚
========================== */
.footer {
  background: #222;
  color: #aaa;
  padding: 70px 0 30px;
  margin-top: 50px;
}
.footer-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.footer-col {
  flex: 1;
  min-width: 145px;
  max-width: 165px;
}
.footer-col h4,
.footer-col li:first-child {
  color: #fff;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.footer-col p,
.footer-col li {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.footer-col a {
  color: #aaa !important;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: #0099ff !important;
}
.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #777;
}

/* ========================== */
/* 移动端适配
========================== */
@media (max-width: 768px) {
  .nav-main { display: none; }
  .slider-container { height: 320px; }
  .slider-arrow {
      width: 40px;
      height: 40px;
      font-size: 26px;
      line-height: 40px;
  }
  .float-contact {
      right: 10px;
      top: 57%;
  }
  .float-item {
      width: 36px;
      height: 36px;
  }
  .col-4 {
      width: 100%;
  }
  .section { padding: 40px 0; }
}

/* ========================== */
/* 视频弹窗
========================== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.video-modal.show {
  display: flex;
}
.video-box {
  position: relative;
  width: 90%;
  max-width: 380px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video-box video {
  width: 100%;
  height: auto;
  display: block;
}
.close-video {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
}
.card-media:hover .play-icon {
  opacity: 1;
}