/* ========== 全局基础 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "Microsoft YaHei Light", "Helvetica Neue", sans-serif;
  color: #fff;
  background-color: #0a0e1a;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== 容器宽度 ========== */
.mesh-product-section .container,
.solutions-section .container,
.news-section .container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 首页主视觉区域 ========== */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 100px;
  color: #fff;
  background-image: url('/template/eyou/pc/myimages/HomePage_images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin-left: 5%;
}

.hero-content .main-title h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 4px;
  line-height: 1.4;
  margin-bottom: 47px;
  text-align: left;
}

.hero-content .about-title {
  margin-bottom: 40px;
  max-width: 800px;
}

.hero-content .about-title p {
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: left;
}

.hero-content .about-button {
  margin-bottom: 165px;
  text-align: left;
}

.hero-content .about-button button {
  width: 140px;
  height: 40px;
  border: solid 1px rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  transition: all 0.3s ease;
  transform: scale(1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-content .about-button span {
  margin-left: 0;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-content .about-button button:hover {
  background-color: rgba(0, 191, 255, 0.15);
  transform: scale(1.05);
}

.hero-content .about-button button:hover span {
  transform: translateX(3px);
}

.hero-content .about-button button:active {
  transform: scale(0.95);
  background-color: rgba(0, 191, 255, 0.2);
}

/* ========== 自组网产品区域 ========== */
.mesh-product-section {
  position: relative;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  z-index: 1;
  background-image: url('/template/eyou/pc/myimages/HomePage_images/mesh-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  width: 100%;
}

.mesh-product-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 26, 0.85);
  z-index: -1;
}

/* ========== 标题样式 ========== */
.section-title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  position: relative;
  padding: 0 25px;
  margin: 0px;
  line-height: 1.2;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 底层放大文字（伪元素） */
.section-title::before {
  content: attr(data-text);
  /* 读取 data-text 属性值 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 55px;
  /* 比主文字略大 */
  color: rgba(255, 255, 255, 0.1);
  /* 降低透明度 */
  z-index: -1;
  /* 放在主文字下方 */
  letter-spacing: 2px;
  /* 和主文字一致 */
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  /* 可选：微调位置让立体感更强 */
  transform: translateY(-22px);
  /* 向左上偏移1px，增强厚度感 */
}

.section-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 6px;
  background-color: #008dd4;
  margin: 16px auto 66px;
  border-radius: 0;
}

/* ========== 产品系列标签区域 ========== */
.product-tabs-wrapper {
  width: 1700px;
  margin: 0 auto 60px;
  overflow: hidden;
}

.product-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 30px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.tab-item.active {
  opacity: 1;
}

.tab-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tab-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 26, 41, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tab-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tab-text {
  font-size: 16px;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
}

/* —— 悬停发光效果 —— */
.tab-item:hover {
  opacity: 1;
}

.tab-item:hover .tab-icon {
  background-color: rgba(0, 141, 212, 0.3);
  box-shadow: 0 0 12px rgba(0, 187, 255, 0.6);
}

.tab-item:hover .tab-text {
  color: #ffffff;
  font-weight: 600;
}

.tab-divider {
  width: 160px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.view-more-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}

.view-more-btn:hover {
  background-color: rgba(0, 141, 212, 0.2);
  border-color: #008dd4;
  color: #008dd4;
}

/* ========== 轮播图内容样式 ========== */
.carousel-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: rgba(20, 26, 41, 0.8);
  padding: 0;
  border-radius: 12px;
  transition: transform 0.3s ease;
  display: block;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-item .product-info {
  padding: 15px 0 0;
  text-align: left;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.product-divider {
  width: 100%;
  height: 1px;
  background-color: #4fc3f7;
  margin: 0 0 12px;
  opacity: 0.8;
}

.product-specs {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.spec-col {
  flex: 1;
  max-width: 160px;
}

.spec-col:first-child {
  text-align: left;
}

.spec-col:last-child {
  text-align: right;
}

.spec-col p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

/* ========== 解决方案区域 ========== */
.solutions-section {
  position: relative;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  z-index: 1;
  background-image: url('/template/eyou/pc/myimages/HomePage_images/solutions-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.solutions-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 26, 0.85);
  z-index: -1;
}

.solutions-grid {
  display: flex;
  width: calc(100% + 40px);
  /* 关键：抵消 container 的 padding */
  margin-left: -20px;
  margin-right: -20px;
}

.solution-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 760px;
}

/* 确保 <a> 和 <img> 撑满 */
.solution-card>a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.solution-card>a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay 样式 */
.solution-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
}

.solution-card .overlay h3 {
  font-size: 26px;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.solution-card .overlay .overlay-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: -2px;
  margin-bottom: 60px;
  letter-spacing: 1px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  max-width: 80%;
  line-height: 1.4;
}

.solution-card .view-solution-btn {
  padding: 10px 28px;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.solution-card .view-solution-btn:hover {
  background-color: rgba(0, 141, 212, 0.2);
  border-color: #008dd4;
  color: #008dd4;
}

.solution-card:hover .overlay {
  opacity: 1;
  visibility: visible;
}

/* 可选：图片悬停轻微变亮 */
.solution-card:hover img {
  filter: brightness(1.05) saturate(1.1);
}

/* ========== 新闻咨询区域 ========== */
.news-section {
  position: relative;
  padding: 100px 0 90px;
  color: #fff;
  text-align: center;
  z-index: 1;
  background-image: url('/template/eyou/pc/myimages/HomePage_images/news-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.88);
  z-index: -1;
}

/* 容器更宽 */
.news-section .container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 三栏铺满 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 60px auto 50px;
}

/* 卡片整体 */
.news-card {
  background-color: #0f1a2c;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* 链接铺满 */
.news-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* 图片比例更接近效果图 */
.news-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* 文字信息块 */
.news-card h3 {
  padding: 18px 22px 6px;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card .date {
  padding: 0 22px 18px;
  font-size: 13px;
  color: #7fa7c7;
  text-align: left;
  margin: 0;
}

/* 了解更多按钮（文字 + 圆圈箭头整体可点击） */
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 1px;
  text-decoration: none;
  cursor: pointer;
}

/* 左侧文字 */
.view-more-btn .btn-text {
  font-size: 14px;
  color: #00aaff;
  transition: color 0.3s ease;
  line-height: 1;
}

/* 右侧蓝色圆圈 */
.view-more-btn .btn-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #00aaff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* 白色箭头 */
.view-more-btn .btn-arrow {
  width: 12px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 4px 4px 0;
  transform: rotate(-45deg);
}

/* hover 效果 */
.view-more-btn:hover .btn-text {
  color: #3fc3ff;
}

.view-more-btn:hover .btn-circle {
  background-color: #3fc3ff;
  transform: translateX(6px);
}