﻿/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #333;
    font-family: "Microsoft YaHei", sans-serif;
}

/* --- 导航栏核心高级样式 --- */
.nav {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    height: 65px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    /* 布局与尺寸 */
    height: 45px;
    /* 【关键】设置一个内部内容的对齐方式，防止图片底部出现缝隙 */
    line-height: 45px;
    /* 视觉样式 */
    white-space: nowrap;
    z-index: 100;
    /* 【可选】如果需要背景图调试，保留这行，否则可以删除 */
    /* background: #1a237e; */
}

    /* 【新增】专门针对 logo 内部的图片进行样式控制 */
    .logo img {
        /* 【核心】最大高度限制为 50px，这样图片永远不会超出容器 */
        max-height: 45px;
        /* 【核心】高度不固定，由浏览器自动计算，保持原始宽高比 */
        height: auto;
        /* 【核心】最大宽度限制为容器宽度，防止超宽 */
        max-width: 100%;
        /* 【可选】垂直居中对齐，消除图片默认的底部空白 */
        vertical-align: middle;
        /* 【可选】如果希望图片有圆角或者边框 */
        /* border-radius: 4px; */
    }

.layui-nav {
    background: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
}

    .layui-nav .layui-nav-item {
        flex: 0 0 auto !important;
        margin: 0 5px;
        height: 65px;
        line-height: 65px;
    }

        .layui-nav .layui-nav-item a {
            display: block;
            padding: 0 15px !important;
            color: #333 !important;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s;
        }

            .layui-nav .layui-nav-item a:hover {
                color: #1a237e !important;
                background-color: rgba(26, 35, 126, 0.05) !important;
            }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
    }

    .layui-nav {
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

        .layui-nav .layui-nav-item {
            width: 100%;
            text-align: center;
            margin: 0;
        }
}

/* --- 页面样式 --- */
.banner {
    width: 100%;
    height: 500px;
    background: url(/theme/images/banner.png) center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

    .banner::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
    }

    .banner .text {
        position: relative;
        z-index: 10;
        max-width: 900px;
        padding: 0 20px;
    }

    .banner h1 {
        font-size: 38px;
        margin-bottom: 15px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .banner p {
        font-size: 18px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

.section {
    padding: 50px 0;
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.desc {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* 卡片 */
.card-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1 1 340px;
    max-width: 360px;
}

    .card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

    .card .text {
        padding: 22px;
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .card p {
        color: #666;
        font-size: 15px;
        line-height: 1.6;
    }

/* 服务 */
.service-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 30px 20px;
    background: #fafbfc;
    border-radius: 8px;
}

    .service-item h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .service-item p {
        color: #666;
        line-height: 1.6;
    }

/* 联系 */
.contact-info {
    text-align: center;
    padding: 20px;
}

    .contact-info .phone {
        font-size: 28px;
        font-weight: bold;
        color: #1a237e;
        margin: 20px 0;
    }

    .contact-info p {
        font-size: 16px;
        color: #333;
        margin-bottom: 10px;
    }

/* 【SEO优化】页脚样式 */
.footer {
    background: #f7f7f7;
    padding: 35px 0;
    text-align: center;
    color: #666;
    margin-top: 30px;
    font-size: 14px;
}
