*{
    margin: 0;
    padding: 0;
}
/* 全局样式设置 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4; /* 整体页面背景色，采用淡灰色，营造简洁科技感 */
}

/* 头部样式 */
header {
    background-color: #003366; /* 深蓝色的头部背景，体现专业、科技感 */
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    margin-right: 20px;
}

.logo {
    height: 60px; /* 根据实际logo图片调整大小 */
}

/* 导航栏样式 */
nav {
    background-color: #005599; /* 稍浅一点的蓝色导航栏背景 */
    padding: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease; /* 添加过渡效果，鼠标悬停时颜色变化更平滑 */
}

nav ul li a:hover {
    color: #ccc; /* 鼠标悬停时链接颜色变浅灰色 */
}

/* 主体内容区域样式 */
main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
    background-color: white; /* 每个板块背景设为白色，对比突出内容 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加淡淡的阴影，增加立体感和层次感 */
    padding: 20px;
    border-radius: 5px; /* 板块边缘设置圆角，使视觉更柔和 */
}

h2 {
    color: #003366; /* 标题颜色与头部背景色呼应，保持统一风格 */
}

/* 首页介绍部分样式 */
.intro-section {
    display: flex;
    align-items: center;
}

.intro-image-container {
    flex: 1;
    margin-right: 20px;
}

.intro-image {
    width: 100%;
    border-radius: 5px;
}

.intro-text {
    flex: 1;
}

/* 关于我们部分样式 */
.about-section {
    /* display: flex; */
    /* align-items: center; */
}

.about-content {
    display: flex;
    align-items: center;
}

.about-image-container {
    flex: 1;
    margin-right: 20px;
}

.about-image {
    width: 100%;
    border-radius: 5px;
}

.about-text {
    flex: 1;
}

.yiyuan-section {
    /* display: flex; */
    /* align-items: center; */
}

.yiyuan-content {
    display: flex;
    align-items: center;
}

.yiyuan-image-container {
    flex: .2;
    margin-right: 20px;
}

.yiyuan-image {
    width: 100%;
    border-radius: 5px;
}

.yiyuan-text {
    flex: 1;
}

/* 产品服务部分样式 */
.services-section {
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行显示三个服务项目，可根据实际调整 */
    grid-gap: 20px;
}

.service-item {
    text-align: center;
    background-color: #f9f9f9; /* 服务项目背景色稍浅于白色，增加层次感 */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* 添加鼠标悬停时的缩放效果过渡 */
}

.service-item:hover {
    transform: scale(1.05); /* 鼠标悬停时服务项目稍微放大，增加交互感 */
}

.service-image {
    width: 80px; /* 根据实际图片调整大小 */
    height: 80px;
    margin-bottom: 10px;
    border-radius: 50%; /* 图片设置为圆形，更具科技感和现代感 */
}

/* 客户案例部分样式 */
.cases-section {
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行显示三个客户案例，可根据实际调整 */
    grid-gap: 20px;
}

.case-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: scale(1.05);
}

.case-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 联系我们部分样式 */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-map-container {
    width: 100%;
}

/* 底部样式 */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px;
}
footer a {
    color: white; /* 新增样式规则，将footer中的a标签颜色设为白色 */
}

@media screen and (max-width: 768px) {
    
    /* 头部样式 */
    header h1{
        display: none;
    }
    .intro-section{
        display: block;
    }
    .about-section .about-content{
        display: block;
    }
    .services-grid,.cases-grid{
        display: block;
    }
}