* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

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

ul {
    list-style: none;
}

.container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

/* 头部导航 */
.header {
    background: #0057aa;
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav li a {
    display: block;
    padding: 18px 26px;
    color: #fff;
    font-size: 16px;
}

.nav li a:hover {
    background: #004488;
}

/* Banner（图片自适应） */
.banner {
    width: 100%;
    background: #e8f0f9;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 标题模块 */
.title-box {
    text-align: center;
    margin: 40px 0 24px;
    position: relative;
}

.title-box h2 {
    font-size: 28px;
    color: #0057aa;
    display: inline-block;
    padding: 0 20px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.title-box .line {
    width: 60%;
    height: 2px;
    background: #0057aa;
    position: absolute;
    left: 20%;
    top: 14px;
    z-index: 1;
}

/* 正文介绍 */
.intro {
    padding: 10px 0 40px;
    line-height: 2;
    font-size: 16px;
    color: #444;
}

.intro p {
    margin-bottom: 10px;
}

/* 优势条 */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 50px;
}

.adv-item {
    border: 1px solid #eee;
    background: #f7faff;
    text-align: center;
    padding: 26px 16px;
}

.adv-item h3 {
    color: #0057aa;
    margin-bottom: 10px;
    font-size: 17px;
}

.adv-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 产品列表 */
.product-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 50px;
}

.product-item {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    background: #fff;
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f7faff;
    border: 1px solid #eee;
    margin-bottom: 16px;
    padding: 10px;
}

.product-item h3 {
    color: #0057aa;
    margin: 8px 0 12px;
}

.product-item p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* 联系我们页面布局 */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.map-box {
    width: 100%;
    height: 420px;
    background: #eee;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
    line-height: 1.8;
    padding: 20px;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #222;
}

.contact-info p {
    font-size: 17px;
    margin: 14px 0;
    line-height: 1.8;
}

.contact-info .tel {
    font-size: 26px;
    color: #0057aa;
    font-weight: bold;
    margin-top: 30px;
}

/* 留言页面 */
.msg-box {
    width: 700px;
    max-width: 100%;
    margin: 0 auto 60px;
}

.msg-box input,
.msg-box textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 4px;
}

.msg-box textarea {
    height: 160px;
    resize: none;
}

.msg-box button {
    padding: 12px 36px;
    background: #0057aa;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.msg-box .tip {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #0057aa;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.footer-nav {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #fff;
    margin: 0 12px;
}

.copyright {
    padding-top: 10px;
    border-top: 1px solid #3377bb;
}

/* 响应式 */
@media (max-width: 900px) {
    .product-wrap,
    .advantages,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .nav li a {
        padding: 14px 16px;
    }
}
