/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 80px; /* 新增：为固定头部留出空间 */
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* 修改：改为fixed以确保始终固定在顶部 */
    top: 0;
    left: 0; /* 新增：确保头部从左侧开始 */
    right: 0; /* 新增：确保头部延伸到右侧 */
    z-index: 1000; /* 修改：提高z-index避免被其他元素覆盖 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #2563EB;
}

.contact-btn a {
    background-color: #2563EB;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.contact-btn a:hover {
    background-color: #0052a3;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 150px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    width: 70%;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 14px;
}
.copyright *{
    color: #aaa;
}


/* 轮播图样式 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    /* background-color: #0066cc; */
}

.bannerNr {
    width: 48%;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #000;
}
.bannerNr h1{
    font-size: 36px;
    font-weight: bold;
    line-height: 36px;
    letter-spacing: 0px;
}
.bannerNr p{
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #374151;
    margin: 22px 0;
    /* 最大两行，超出部分省略号 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bannerBtn{
    padding: 12px 32px;
    background: #2563EB;
    transition: background-color 0.3s;
    border-radius: 4px;
    color: #fff;
}
.bannerBtn:hover{
    background-color: #0052a3;
}
/* 主体框 */
.zhutikuang{
    padding: 80px 0;
}
/* 标题 */
.biaoti{
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 36px;
    color: #000;
    margin-bottom: 20px;
}
.fubiaoti{
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #4B5563;
    margin-bottom: 20px;
    text-align: center;
}
/* 居中样式 */
.juzhong{
    width: 85%;
    margin: auto;
}



/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 900px;
    }
}

@media (max-width: 992px) {
    .container {
        width: 700px;
    }
    .solution-cards, .case-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
    }
    .about-img, .about-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    .contact-btn {
        margin-top: 15px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .solution-cards, .case-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .case-item {
        flex-direction: column;
    }
    .case-img, .case-content {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-links {
        width: 100%;
        margin-top: 20px;
    }
}