/* === 全局基础样式 === */
* {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
}
body {
  background-color: white;
  /* font-size: 30px; */


}

/* === Header 样式 === */
header {
  background-color: rgba(255, 255, 255, 1);
  height: 65px;
  width: 100%;
  position: fixed;
  top: 0;
  font-family: 'Segoe UI', sans-serif;
  /* font-weight: light; */
  /* font-size: 30px; */

  
  /* font-family: 'Roboto', sans-serif; */
  font-weight: 400;

  font-size: 23px;
  /* font-family: "Palatino Linotype", "Palatino", serif;  */

  
}
h1 {
  color: black;
  position: absolute;
  margin: 0;
  font-size: 20px;
  left: 50px;
  top: 0;
  line-height: 70px;
  display: flex; 
  align-items: center; 
  width: auto; 
  /* font-family: 'Roboto', sans-serif; */
  font-weight: 500;

  font-size: 22px;
}

h1::after {
  content: "AI for Creative Innovation Design Joint Lab"; /* 默认显示英文 */.
  font-family: 'Roboto', sans-serif;
}

h1:hover::after {
  content: attr(data-text); /* 悬停时替换成 data-text 里的中文 */
}


/* 添加 logo 样式 */
h1::before {
  content: "";
  background-image: url("images/logo.png");
  background-size: contain; /* 让 logo 适应 */
  background-repeat: no-repeat;
  width: 55px; /* 适当调整 logo 大小 */
  height: 55px;
  display: inline-block;
  position: relative; /* 改为 relative，避免被覆盖 */
  z-index: 100;
  margin-right: 10px; /* 让 logo 和文字之间有间距 */
}
header ul {
  position:absolute;
  right:2vw;
  top:0;
  line-height:70px;
  font-weight: 500;
  font-size:20px;
  
}
header li {
  display:inline;
  margin-right:1.5vw;    
}
header a {
  position: relative;
  color:#808080;
  text-decoration: none;
  display: inline-block; 
  Line-height: 40px;
  padding: 0 10px; 
  box-sizing: border-box; 
  
}
header a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -5px; 
  right: -5px; 
  bottom: 0;
  background-color: black;
  border-radius: 18px;
  opacity: 0;           
  transition: opacity 0.3s ease; 
  z-index: -1; 
            
  /* width: 100%;
  height: 100%; */
}
header a:hover::after {
  opacity: 1;
  padding: 4px 4px;
}
header a:hover {
  color: white;
}
.menu {
  display: none;
}

/* === Swiper滑动区域样式 === */


.slider-bg {
  background-color: #f2f2f2; /* 你想设置什么都行 */
}

.swiper-container {
  margin-top: 70px;
  width: 100%;
  height: auto;
  padding: 65px 0;
  overflow: visible; /* ✅ 允许内容超出显示，不被裁切 */
  background-color: white;
  overflow-x: hidden;
}

.swiper-slide {
  width: 300px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.slide-card {
  width: 80%;
  height: 650px; /* ✅ 固定合适高度 */
  position: relative;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform 0.3s ease;
}


.slide-card:hover {
  transform: scale(1.05);
}

.slide-card img {
  opacity: 0.85;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.slide-card:hover img {
  filter: saturate(100%) scale(1.05);
  opacity: 1;
}

.slide-card img {

  filter: saturate(30%); /* 饱和度变淡但仍保留颜色 */
  position: absolute;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* 文字区域，显示在卡片下方 */
.slide-info-below {
  margin-top: 25px;
  text-align: center;
  color: #333;
  width: 80%;
}

.slide-info-below h3 {
  font-size: 22px;
  margin: 4px 0;
}

.slide-info-below p {
  font-size: 14px;
  color: #777;
  margin: 0;
}


/* === 响应式设计 === */
@media screen and (max-width: 768px) {
  header ul {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px 0;
  }
  .menu {
    display: block;
    background-color: black;
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 20px;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 10px;
    z-index: 1000;
  }
  header ul li {
    display: block;
    margin: 5px 0;
  }
  header ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
  }
  h1 {
    font-size: 18px;
    text-align: left;
    width: auto;
    left: 100px;
    top: 25px;
    line-height: normal;
  }
  .swiper-slide {
    width: 180px;
  }
  .slide-card {
    height: 360px;
  }
  .slide-img {
    height: 240px;
  }
}
