/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header 样式 - 默认透明 */
header {
    background-color: rgba(255, 255, 255, 0); /* 初始时透明 */
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease; /* 平滑过渡效果 */
    border-radius: 20px; /* 圆角 */
    box-shadow: none; /* 初始无阴影 */
}
/* Header 样式 - 滚动之后 */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.3); /* 毛玻璃效果背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari 支持 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

/* 导航栏链接样式 */

/* LOGO 样式 */
nav {
    display: flex;
    justify-content: space-between; /* 使 LOGO 和菜单项左右分布 */
    align-items: center; /* 垂直居中对齐 */
}

.logo img {
    width: 150px; /* 根据需要调整 LOGO 的大小 */
    height: auto;
    margin-left: 20px; /* 给 LOGO 左侧留一些间距 */
}


nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white; /* 默认白色文字 */
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease; /* 平滑过渡效果 */
    text-decoration: none; /* 去掉下划线 */
}

nav ul li a:hover {
    color: #d9d9d9;
}


/* 滚动后灰色文字 */
header.scrolled nav ul li a {
    color: #000000;  /* 滚动后灰色文字 */
}

/* 鼠标悬停时加深灰色 */
header.scrolled nav ul li a:hover {
    color: #364449;  /* 鼠标悬停时加深灰色 */
}


/* 首页大图区域 */
#home {
    position: relative;
    background-image: url('../picture/background/homepage_bgc.webp'); /* 替换为你的背景图片路径 */
    background-size: cover; /* 图片自动调整大小以覆盖整个区域 */
    background-position: center; /* 图片居中 */
    background-attachment: fixed; /* 背景图片固定，滚动时不跟随页面内容移动 */
    color: white;
    padding: 210px 0; /* 增加上下内边距，使高度是原来的两倍 */
    text-align: center;
}

#home .hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* 确保文本位于背景图之上 */
}

#home h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#home p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

#home button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 5px;
}

#home button:hover {
    background-color: #0056b3;
}

/* 雪花的样式 */
.snowflake {
    position: absolute;
    top: -10px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 9999;
    animation: snow 10s linear infinite;
}

@keyframes snow {
    0% {
        transform: translateX(0) translateY(-100px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(calc(100vw - 100px)) translateY(100vh);
        opacity: 0;
    }
}

.snowflake:nth-child(1) {
    width: 8px;
    height: 8px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    width: 12px;
    height: 12px;
    animation-duration: 15s;
    animation-delay: 2s;
}

.snowflake:nth-child(3) {
    width: 6px;
    height: 6px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.snowflake:nth-child(4) {
    width: 10px;
    height: 10px;
    animation-duration: 14s;
    animation-delay: 3s;
}

.snowflake:nth-child(5) {
    width: 7px;
    height: 7px;
    animation-duration: 11s;
    animation-delay: 1s;
}

/* 功能区块 */
#features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #f4f4f4;
    height: 400px;
    max-width: 1600px; /* 设置最大宽度，防止过宽 */
    margin: 0 auto; /* 居中，左右留空 */
    gap: 50px; /* 设置新闻项之间的间距 */
    

    
    
}

.feature {
    width: 23%;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
    
}

/* 鼠标悬停时加上阴影 */
.feature:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 鼠标悬停时增加阴影 */
    transition: box-shadow 0.5s ease; /* 平滑过渡 */
}

.feature h3 {
    color: #003366;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
    color: #555;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px;
}

/* 图片样式：上半部分的图片 */
.feature img {
    width: 100%; /* 图片宽度填充容器 */
    height: 160px; /* 设置固定高度 */
    object-fit: cover; /* 保持图片的长宽比并裁剪超出部分 */
    border: none; /* 去除图片边框 */
    border-radius: 8px 8px 0 0; /* 圆角处理，保持图片上角的圆滑 */
}

/* feature部分超链接 */
.feature a {
    display: block;
    text-decoration: none; /* 去除默认的下划线 */
    color: inherit; /* 确保文本颜色继承父元素的样式 */
}










/* 新闻区 */
/* 新闻区样式 */
#news {
    padding: 40px 20px;
    background-color: #f4f4f4;
    width: 100%; /* 确保容器宽度适应父容器 */
    max-width: 1600px; /* 设置最大宽度，防止过宽 */
    margin: 0 auto; /* 居中，左右留空 */
    box-sizing: border-box;
}

#news h2 {
    font-size: 2.5em;
    color: #003366;
    text-align: center;
    margin-bottom: 30px;
}

/* 每一行的样式 */
.news-items {
    display: grid;
    gap: 20px; /* 设置新闻项之间的间距 */
    margin-bottom: 20px;
}

/* 第一行：两个新闻，2:1 占比 */
.news-items:first-of-type {
    grid-template-columns: 2fr 1fr; /* 第一行设置 2:1 占比 */
}

/* 第二行：三个新闻，1:1:1 占比 */
.news-items:nth-of-type(2) {
    grid-template-columns: 1fr 1fr 1fr; /* 第二行设置 1:1:1 占比 */
}

/* 第三行：两个新闻，1:2 占比 */
.news-items:nth-of-type(3) {
    grid-template-columns: 1fr 2fr; /* 第三行设置 1:2 占比 */
}

/* 每个新闻项的样式 */
.news-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 鼠标悬停时放大新闻项 */
.news-item:hover {
    transform: scale(1.05);
}
/* 新闻部分超链接 */
.news-item a {
    display: block;
    text-decoration: none; /* 去除默认的下划线 */
    color: inherit; /* 确保文本颜色继承父元素的样式 */
}


/* 每个新闻项的图片 */
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid #ddd;
}

/* 每个新闻项的内容 */
.news-item .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* 新闻项标题 */
.news-item .content h3 {
    font-size: 1.4em;
    color: #003366;
    margin-bottom: 10px;
}

/* 新闻项摘要 */
.news-item .content p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

/* 发布时间 */
.news-item .content span {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
}



/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 10px;
        height: auto; /* Adjust header height for mobile */
    }

    .logo img {
        width: 120px; /* Adjust logo size */
        height: auto;
    }

    #home {
        padding: 150px 20px;
        text-align: left;
    }

    #home h1 {
        font-size: 2em; /* Smaller heading */
    }

    #home p {
        font-size: 1.2em;
    }

    #home button {
        padding: 8px 16px;
        font-size: 1em;
    }

    /* Features Section */
    #features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 90%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .feature img {
        width: 100%;
        height: auto;
    }

    /* News Section */
    #news .news-items {
        grid-template-columns: 1fr;
    }

    .news-item img {
        width: 100%;
        height: auto;
    }

    footer {
        padding: 40px 20px;
    }

    footer img {
        height: 80px;
    }
}


/* Footer 样式 */
/* 确保页面占满整个屏幕并让页脚固定在底部 */
Footer {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
   margin-top: 150px;
  }
  
  
  .Newsletter {
    background-color: #003C8F; /* 深蓝色背景 */
    color: white;
    text-align: center;
    padding: 40px 20px;
  }
  
  .Newsletter h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .Newsletter__form {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .Newsletter__form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 200px;
  }
  
  .Newsletter__form button {
    padding: 10px 20px;
    background-color: #0066CC;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .Newsletter__form button:hover {
    background-color: #005bb5;
  }
  
  .Footer__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
    flex-grow: 1;
	  margin-left: 22%;
	  margin-right: 10%;
		  
  }
  
  .Newsletter__form ul li {

    list-style-type: none;

  }
  
  
  .Footer__sections {
    flex: 1 1 20%;
    padding: 30px;
  }
  
  .Footer__sections h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .Footer__sections ul {
    list-style-type: none;
    padding: 0;
  }
  
  .Footer__sections ul li {
    margin-bottom: 8px;
  }
  
  .Footer__sections ul li a {
    color: #333;
    text-decoration: none;
  }
  
  .Footer__sections ul li a:hover {
    text-decoration: underline;
  }
  
  .Footer__socialLinks {
    flex: 1 1 20%;
    padding: 30px;
  }
  
  .Footer__socialLinks h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .Footer__socialLinks a {
    display: block;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
  }
  
  .Footer__socialLinks a:hover {
    text-decoration: underline;
  }
  
  .Footer__copyright {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin-top: 20px;
  }
  .Footer__copyright span {
    margin-right: 10px;
  }
  
  .Footer__copyright a {
    color: #333;
    text-decoration: none;
  }
  
  .Footer__copyright a:hover {
    text-decoration: underline;
  }
  
/* Footer 内容 */
/* footer p { */
    /* font-size: 1em; */
/* } */

/* footer { */
    /* background-color: #003366; */
    /* color: white; */
    /* text-align: center; */
    /* padding: 20px; */
    /* position: absolute;  设置绝对定位 */
    /* bottom: 0;  使footer总是在页面底部 */
    /* width: 100%;  使footer宽度占满 */
/* } */
/* <如果你需要确保 footer 始终位于页面底部（即使内容较少时），可以使用 position: absolute; 来将其固定在页面底部> */








/* Footer 内容 */
/* footer p { */
    /* font-size: 1em; */
/* } */

/* footer { */
    /* background-color: #003366; */
    /* color: white; */
    /* text-align: center; */
    /* padding: 20px; */
    /* position: absolute;  设置绝对定位 */
    /* bottom: 0;  使footer总是在页面底部 */
    /* width: 100%;  使footer宽度占满 */
/* } */
/* <如果你需要确保 footer 始终位于页面底部（即使内容较少时），可以使用 position: absolute; 来将其固定在页面底部> */