body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.8;
}
header {
    background: url('./img/nuist.jpg') no-repeat center center/cover; /* 使用 nuist.jpg 作为背景 */
    color: #fff;
    padding: 100px 0; /* 保持默认 padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 500px; /* 恢复为之前的页面高度 */
    background-size: cover; /* 确保图片完全覆盖 */
    background-position: center; /* 确保图片居中显示 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 将内容垂直居中 */
    align-items: center; /* 将内容水平居中 */
}
header h1 {
    font-size: 4.5rem; /* 加大字号 */
    margin: 0;
    animation: fade极客时间In 2s ease-in-out;
    color: #333; /* 深灰色 */
    margin-bottom: 20px; /* 恢复与下方文字的间距 */
}
header p {
    font-size: 2rem; /* 加大字号 */
    margin: 0;
    animation: fadeIn 2.5s ease-in-out;
    color: #333; /* 深灰色 */
}
nav {
    background: linear-gradient(135deg, #009DFF, #0066CC); /* 蓝色渐变 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* 确保导航栏占满整个宽度 */
}
nav img {
    height: 40px; /* Logo 图片高度 */
    margin-right: 20px; /* Logo 与导航链接的间距 */
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 允许导航项换行 */
    max-width: 1200px; /* 限制导航栏的最大宽度 */
    width: 100%; /* 确保导航栏占满整个宽度 */
}
nav ul li {
    margin: 0 20px; /* 增加导航项之间的间距 */
}
nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* 防止导航项文字换行 */
}
nav a:hover {
    color: #FFF8AA;
}
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}
section {
    margin-bottom: 80px;
}
h2 {
    font-size: 2.5rem;
    color: #000; /* 黑色 */
    margin-bottom: 20px;
    position: relative;
}
h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #009DFF; /* 蓝色 */
    position: absolute;
    bottom: -10px;
    left: 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.service-card h3 {
    font-size: 1.5rem;
    color: #8B00F6;
    margin-bottom: 15px;
}
.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
footer {
    background: linear-gradient(135deg, #009DFF, #FFF8AA);
    color: #333;
    text-align: center;
    padding: 20px 0;
    margin-top: 80px;
}
.swiper {
    width: 100%;
    height: 400px;
    margin-bottom: 80px;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #8B00F6, #6e45e2);
    color: #fff;
    font-size: 2rem;
    border-radius: 10px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8B00F6, #009DFF);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.btn:hover {
    background: linear-gradient(135deg, #009DFF, #8B00F6);
}
form {
    margin-top: 20px;
}
form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    background: linear-gradient(135deg, #8B00F6, #009DFF);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
form button:hover {
    background: linear-gradient(135deg, #009DFF, #8B00F6);
}
.news-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.news-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}
.news-list li a {
    color: #009DFF;
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-list li a:hover {
    color: #0066CC;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* 移除链接下划线 */
    color: inherit; /* 继承父元素颜色 */
    display: block; /* 使整个卡片可点击 */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 15px 0;
    color: #333;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
} 



.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.intro-content img {
    width: 100%;
    border-radius: 10px;
}

.more-btn {
    background: #194ddb;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}