/*鼠标悬停显示下拉菜单的 CSS*/
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.dropdown-menu {
  transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
}
.navbar {
  background-color: #002b5e;
}
.navbar-brand {
  font-weight: bold;
}
.navbar-nav .nav-link {
  color: #fff !important;
}
/*鼠标悬停显示下拉菜单的 CSS end*/
/*背景图*/
.banner {
  width: 100%;
  height: 400px; /* 你可以根据图像比例调整高度 */
  background: url("../images/5555.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}

.banner-text {
  color: white;
  padding-left: 80px; /* 距离左侧 */
}

.banner-text h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: 2px;
}

.banner-text h1 {
  font-size: 48px;
  margin: 10px 0 0;
  font-weight: bold;
  line-height: 1.2;
}

/* 通用样式   先端技術事業 */
.tech-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tech-header {
  background: linear-gradient(to right, #8ca9db, #0f3f8f);
  color: white;
  padding: 10px 20px;
  display: inline-block;
  width: 100%; /* ⬅️ 强制变长 */
  transform: skew(-20deg);
  margin-bottom: 30px;
}

.tech-header h2 {
  margin: 0;
  transform: skew(20deg);
  font-size: 1.5em;
}
/* ⬅️ 手机端背景占满 */
@media screen and (max-width: 768px) {
  .tech-header {
    width: 100%; /* ⬅️ 手机端背景占满 */
  }

  .tech-header h2 {
    font-size: 1.2em; /* ⬅️ 字体稍微小一点 */
  }
}

.tech-content {
  display: flex;
  align-items: stretch; /* 🚨让左右高度一致 */
  gap: 30px;
}

.tech-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  position: relative; /* 为伪元素定位做准备 */
  overflow: hidden;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 添加伪元素用于环绕边框动画 */
.tech-image::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* 悬停时的动效 */
.tech-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.tech-image:hover::before {
  border-color: rgba(0, 123, 255, 0.6);
  transform: scale(1.05);
}

/* ✅ 防止在手机端图片变形 */
@media screen and (max-width: 768px) {
  .tech-content {
    flex-direction: column;
    align-items: center;
  }
}
.tech-text {
  flex: 2;
  min-width: 300px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.tech-text ul {
  padding-left: 1.2em;
}

.tech-text li {
  list-style-type: "● ";
  margin-bottom: 5px;
}

/*  footer */
footer {
  background-color: white;
  color: black;
  padding: 2rem 0;
}

footer a {
  color: black;
  text-decoration: none;
}

footer a:hover {
  color: blue;
}

footer h5 {
  color: rgb(64, 64, 195); /* 小标题变蓝 */
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

/* 内容块之间加一条美观的分隔线 */
footer .col-md-3 {
  border-right: 1px solid #ccc;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

footer .col-md-3:last-child {
  border-right: none;
}

/* 加一点呼吸感 */
footer ul {
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
}
/* 页脚*/
#footer {
  background-color: #2e5980; /* 深蓝背景 */
  color: white; /* 白色文字 */
  text-align: center; /* 文字居中 */
  padding: 15px 0; /* 上下内边距 */
  font-size: 14px;
  font-family: Arial, sans-serif;
}
