﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei",sans-serif;
}

:root {
    --primary:#1677ff;
    --primary-dark:#0e66dd;
    --light:#e8f3ff;
    --dark:#1a1a1a;
    --gray:#555;
    --gray-light:#888;
    --white:#fff;
    --red:#f54336;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

/*导航统一*/
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,.95);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    z-index: 9999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo i {
        font-size: 30px;
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 42px;
}

    .nav-menu a {
        font-size: 16px;
        font-weight: 500;
        padding: 8px 0;
        position: relative;
        transition: .3s;
        color: var(--dark);
    }

        .nav-menu a:hover, .nav-menu a.active {
            color: var(--primary);
        }

            .nav-menu a.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background: var(--primary);
                border-radius: 3px;
            }

.mobile-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/*页面顶部通栏banner*/
.page-banner {
    margin-top: 78px;
    width: 100%;
    height: 320px;
    background: linear-gradient(rgba(12,78,170,0.75),rgba(12,78,170,0.75)),url('/img/bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

    .page-banner h1 {
        font-size: 42px;
        margin-bottom: 12px;
    }

    .page-banner p {
        font-size: 18px;
        opacity: 0.92;
    }

/*面包屑导航*/
.crumbs {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: var(--gray);
    background: #fff;
}

    .crumbs a {
        color: var(--primary);
    }

/* 通用标题 */
.sec-head {
    text-align: center;
    margin-bottom: 85px;
}

    .sec-head h2 {
        font-size: 38px;
        color: var(--dark);
        margin-bottom: 16px;
        position: relative;
        padding-bottom: 18px;
    }

        .sec-head h2::after {
            content: "";
            width: 80px;
            height: 4.5px;
            background: var(--primary);
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            border-radius: 4px;
        }

    .sec-head p {
        max-width: 720px;
        margin: 0 auto;
        color: var(--gray);
        font-size: 17px;
        line-height: 1.8;
    }

/* 企业简介 */
.about-intro {
    padding: 110px 0;
    background: #fff;
}

.intro-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    align-items: center;
}

.intro-img, .intro-text {
    flex: 1;
    min-width: 360px;
}

    .intro-img img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(22,119,255,0.12);
    }

    .intro-text h3 {
        font-size: 34px;
        margin-bottom: 26px;
        color: var(--dark);
        position: relative;
        padding-bottom: 16px;
    }

        .intro-text h3::after {
            content: "";
            width: 65px;
            height: 3.5px;
            background: var(--primary);
            position: absolute;
            left: 0;
            bottom: 0;
            border-radius: 3px;
        }

    .intro-text p {
        margin-bottom: 20px;
        color: var(--gray);
        font-size: 16.5px;
        line-height: 1.85;
        text-indent: 2em;
    }

/* 企业数据 */
.about-data {
    padding: 75px 0;
    background: linear-gradient(135deg,#1677ff,#0d5fd8);
    color: #fff;
}

.data-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 40px;
    text-align: center;
}

.data-item {
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

    .data-item:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-6px);
    }

    .data-item h3 {
        font-size: 52px;
        margin-bottom: 12px;
        font-weight: bold;
    }

    .data-item p {
        font-size: 18px;
        opacity: 0.95;
    }

/* 工厂实力 */
.factory {
    padding: 110px 0;
    background: #fff;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 36px;
}

.factory-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 25px #edf2fb;
    transition: .3s;
    background: #fff;
}

    .factory-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px #d7e4f7;
    }

    .factory-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    .factory-card .txt {
        padding: 28px;
    }

    .factory-card h4 {
        font-size: 21px;
        margin-bottom: 12px;
        color: var(--dark);
    }

    .factory-card p {
        font-size: 15.5px;
        color: var(--gray);
        line-height: 1.75;
    }

/*========= 资质荣誉 Tab【一排5张 + 窄外框 + 竖版证书】 =========*/
.cert {
    padding: 110px 0;
    background: #f7f9fc;
}

.tab-box {
    width: 100%;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

    .tab-nav span {
        padding: 12px 30px;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 3px 12px #e1eaf8;
        transition: 0.3s;
    }

        .tab-nav span.active {
            background: var(--primary);
            color: #fff;
        }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }
/* 电脑端固定一排 5 个 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
/* 卡片极窄外框 */
.cert-item {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px #e8eff9;
    transition: 0.3s;
    overflow: hidden;
}

    .cert-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px #dde8f8;
    }
    /* 竖版证书 尺寸完美协调 */
    .cert-item img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        border-radius: 6px;
        margin-bottom: 6px;
        background: #f8f9fa;
    }

    .cert-item h4 {
        font-size: 13px;
        color: var(--dark);
        font-weight: 500;
    }

/*========= 一站式贴牌 横向布局 =========*/
.history {
    padding: 110px 0;
    background: #f7f9fc;
}

.history-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
    max-width: 100%;
}

.history-item {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px #e1eaf8;
    text-align: center;
    transition: 0.3s;
}

    .history-item:hover {
        transform: translateY(-6px);
    }

.history-year {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 12px;
}

.history-txt {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* 企业文化 */
.culture {
    padding: 110px 0;
    background: linear-gradient(135deg,#187bff,#0c59d1);
    color: #fff;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
    gap: 40px;
    text-align: center;
}

.cul-item {
    background: rgba(255,255,255,0.13);
    padding: 45px 30px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

    .cul-item:hover {
        background: rgba(255,255,255,0.22);
        transform: translateY(-6px);
    }

    .cul-item h3 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .cul-item p {
        opacity: 1;
        line-height: 1.85;
        font-size: 16px;
        color: #fff !important;
    }

/* 页脚 */
.footer {
    background: #121212;
    color: #b8b8b8;
    padding: 75px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    margin-bottom: 45px;
}

.footer-col {
    flex: 1;
    min-width: 240px;
}

    .footer-col h3 {
        color: #fff;
        font-size: 21px;
        margin-bottom: 26px;
        padding-bottom: 14px;
        border-bottom: 1px solid #333;
    }

    .footer-col ul {
        list-style: none;
    }

    .footer-col li {
        margin-bottom: 14px;
        font-size: 15.5px;
    }

    .footer-col a:hover {
        color: var(--primary);
    }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #808080;
}

/* 移动端适配 */
@media(max-width:768px) {
    .nav-menu {
        display: none;
    }

    .mobile-btn {
        display: block;
    }

    .page-banner {
        height: 260px;
    }

        .page-banner h1 {
            font-size: 32px;
        }

    .intro-wrap {
        flex-direction: column;
        gap: 40px;
    }

    .sec-head {
        margin-bottom: 55px;
    }

    .about-intro, .history, .factory, .cert, .culture {
        padding: 70px 0;
    }

    .tab-nav span {
        padding: 10px 18px;
        font-size: 14px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
/*页脚全局样式*/
.footer {
    background: #121212;
    color: #c2c2c2;
    padding: 70px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

    .footer-col h3 {
        color: #ffffff;
        font-size: 19px;
        margin-bottom: 26px;
        padding-bottom: 12px;
        position: relative;
    }

        .footer-col h3::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 42px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }

    .footer-col ul {
        list-style: none;
    }

    .footer-col li {
        margin-bottom: 14px;
        font-size: 15px;
        transition: all 0.25s;
        color: #aaaaaa;
    }

        .footer-col li a {
            color: #aaa;
        }

        .footer-col li:hover {
            padding-left: 5px;
            color: var(--primary);
        }

        .footer-col li a:hover {
            color: var(--primary);
        }

.footer-bottom {
    text-align: center;
}

    .footer-bottom p {
        font-size: 15px;
        color: #808080;
    }
