* {
    padding:0;
    margin:0;
}
body {
    background-color: #000000;
}
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 {
    /* text-decoration: underline; */
    color: white;         
}
.news {
    background-color: white;
    color:white;
    height:100vh;
    background-image: url("images/2.png");
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
} 
.news h2 {
    font-size:60px;
    margin-top:60px;
} 
.news p {
    color:#FEF7E6;
    font-size:18px;
    margin:25px 0;
}
.news a {
    color:white;
    text-decoration: none;
    border: 1px solid black;
    padding:4px 20px;
    border-radius: 20px;
    background-color: black;
    transition: border-width 0.5s ease;
    position: absolute; 
    bottom: 30px;       
    left: 50%;          
    transform: translateX(-50%); 
}
.news a:hover {
    /* background-color: #333;  */
    opacity: 1;  
    padding: 10px 20px;      
}
input::placeholder {
    color:#DDDDDD;
}
input:focus {
    outline: none; /* 移除焦點效果 */
    border-color:#E0E9A3; /* 焦點時的邊框顏色 */
} */
footer {
    background-color:#000000;
    color:#B7B7B7;
    height:60px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.menu {
    display:none;
}
/* 响应式设计 */
@media screen and (max-width: 768px) {
    /* 隐藏默认菜单 */
    header ul {
        display: none;
        position: absolute;
        top: 90px; /* 让菜单紧贴 menu 按钮 */
        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;
        /* transition: background 0.3s; */
    }

    h1 {
        font-size: 18px;  /* 调整字体大小，使其在小屏幕上更紧凑 */
        text-align: left; /* 让 h1 居中 */
        width: auto;  /* 让 h1 占满屏幕宽度 */
        left: 100px;
        /* transform: translateX(-50%); 居中对齐 */
        top: 25px;  /* 调整位置，使其更靠近顶部 */
        line-height: normal;  /* 让行高变得更适合小屏幕 */
    }
}