/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* 整体背景设为白色 */
}

/* 导航栏样式 */
header {
    background-color: #ffffff; /* 导航栏背景设为白色 */
    color: #d32f2f; /* 导航栏文字颜色设为红色 */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.logo-img {
    height: 40px; /* 可根据实际情况调整 Logo 高度 */
    width: auto;
    border-radius: 8px; /* 添加圆角 */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #d32f2f; /* 导航链接颜色设为红色 */
    text-decoration: none;
    transition: color 0.3s ease; /* 添加过渡效果 */
}

nav ul li a:hover {
    color: #ff5252; /* 鼠标悬停颜色变亮 */
}

/* 首页部分样式 */
.hero {
    margin-bottom: 40px;
    background-color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d32f2f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* 添加文字阴影 */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #d32f2f;
}

/* 轮播图容器样式 */
.carousel-container {
    /* 设置容器最大宽度，可根据实际情况调整 */
    max-width: 800px; 
    /* 水平居中 */
    margin: 0 auto; 
    /* 隐藏溢出部分 */
    overflow: hidden; 
}

/* 轮播图样式 */
.carousel {
    display: flex;
    /* 过渡动画，使轮播更流畅 */
    transition: transform 0.5s ease-in-out; 
}

/* 幻灯片样式 */
.slide {
    /* 让每个幻灯片宽度和容器一致 */
    min-width: 100%; 
}

/* 幻灯片内图片样式 */
.slide img {
    /* 让图片宽度和幻灯片一致 */
    width: 100%; 
    /* 保持图片比例，可能会裁剪部分图片 */
    object-fit: cover; 
    /* 保持图片比例，可能会在图片周围留下空白 */
    /* object-fit: contain;  */
}

.carousel-dots {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    gap: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #d32f2f;
}

/* 功能部分样式 */
.features {
    padding: 4rem 0;
    text-align: center;
    background-color: #ffffff; /* 功能部分背景设为白色 */
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d32f2f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* 添加文字阴影 */
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    background-color: #ffffff;
    padding: 2rem;
    border: 2px solid #d32f2f; /* 添加红色边框 */
    border-radius: 16px; /* 添加圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.feature-item:hover {
    transform: translateY(-5px); /* 鼠标悬停向上移动 */
}

/* 调整轮播图容器和功能介绍部分的间距 */
.hero {
    /* 减小间距，可根据实际情况调整数值 */
    margin-bottom: -30px; 
}

/* 增大功能介绍图片的尺寸 */
.feature-item img {
    width: 150px; /* 可根据实际情况调整 */
    height: 150px; /* 可根据实际情况调整 */
    object-fit: cover; /* 保持图片比例并填充容器 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

/* 鼠标悬停时图片放大 */
.feature-item img:hover {
    transform: scale(1.1); /* 放大 10% */
}

/* 调整功能项的布局 */
/* 功能部分容器样式，确保功能项并排展示 */
.feature-container {
    display: flex;
    justify-content: center; /* 让功能项在容器中水平居中 */
    align-items: stretch; /* 让功能项高度拉伸以匹配最高的项 */
    flex-wrap: nowrap; /* 防止功能项换行 */
    gap: 2rem; /* 设置功能项之间的间距 */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 功能项样式，确保在并排时合理分配空间 */
.feature-item {
    flex: 1; /* 让每个功能项平均分配容器空间 */
    background-color: #ffffff;
    padding: 2rem;
    border: 2px solid #d32f2f; /* 添加红色边框 */
    border-radius: 16px; /* 添加圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
    min-width: 0; /* 允许功能项缩小 */
}

.feature-item:hover {
    transform: translateY(-5px); /* 鼠标悬停向上移动 */
}

/* 调整功能项的样式 */
.feature-item {
    text-align: center;
    margin: 20px; /* 可根据实际情况调整 */
    max-width: 300px; /* 可根据实际情况调整 */
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d32f2f;
}

/* 页脚样式 */
footer {
    background-color: #ffffff; /* 页脚背景设为白色 */
    color: #d32f2f; /* 页脚文字颜色设为红色 */
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}