﻿
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}



/* 主视觉区样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
        pointer-events: none;
    }

.hero-content {
    min-height: 80vh !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {

    .hero-content {
        min-height: 60vh !important;
    }

    .hero-content {
        padding: 0rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

}


/* 核心优势样式 */
.advantages-section {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: var(--white);
    border-radius: 15px;
    border: var(--border-color);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .advantage-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .advantage-item:hover::before {
        transform: scaleX(1);
    }

    .advantage-item:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-dark);
        border-color: var(--primary-color);
    }

.advantage-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.advantage-item:hover .icon-bg {
    transform: scale(1.1);
}

.advantage-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--white);
}

.advantage-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-content p {
    color: var(--text-light);
    margin-bottom: 1.6rem;
}

.advantage-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: var(--border-color);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}





/* 应用案例样式 */

.cases-section {
    background: var(--white);
}

.case-list {
    display: flex;
}

.case-item {
    flex: 1; /* 使每个case-item等宽 */
    position: relative;
    padding: 0;
    margin: 0 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.175);
    overflow: hidden;
    border-radius: 0.5rem;
    transition: box-shadow .5s ease-out;
}

    .case-item:hover {
        box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.5);
    }

    .case-item img.case-img {
        object-fit: cover;
        object-position: center;
        height: 100%;
        width: 100%;
        opacity: 0.9;
        transition: transform 1s ease-in-out;
    }

    .case-item:hover img.case-img {
        /*transform: matrix(1.1, 0, 0, 1.1, -9, 0);*/
    }

    .case-item .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3); /* 半透明黑色遮罩 */
    }

.case-caption {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 60%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2; /* 确保内容在遮罩之上 */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1s ease-in-out;
}

.case-item:hover .case-caption {
    top: 50%;
}

.case-caption .case-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border: 1px solid white;
    border-radius: 50%;
    transition: all 1s ease-in-out;
    fill: yellow;
}

    .case-caption .case-icon img {
        max-width: 100%;
    }

.case-caption h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-caption .case-desc {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}


@media (min-width: 768px) {
    .case-list {
        max-height: 600px;
        min-height: 400px;
    }
}


@media (max-width: 767px) {
    .case-list {
        flex-direction: column;
    }

        .case-list .case-item {
            max-height: 200px;
            position: relative;
            padding: 0;
            margin: 0.25rem 0;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.175);
            overflow: hidden;
            border-radius: 0.5rem;
        }

    .case-item .case-caption {
        position: absolute;
        top: 20%;
        left: 10%;
        width: 80%;
        transform: translate(0, 0);
        color: white;
        z-index: 2; /* 确保内容在遮罩之上 */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .case-item .case-caption .case-icon {
            margin-bottom: 1rem;
        }

        .case-item .case-caption h4 {
            margin-bottom: 0.75rem;
        }
}


/* 产品分类样式 */

.kind-section {
    background: var(--white);
}

.home-kind-item {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: var(--bs-gutter-x);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
    transition: box-shadow .5s ease-out;
}

    .home-kind-item img {
        max-width: 100%;
    }

    .home-kind-item .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .home-kind-item .kind-bg {
        opacity: 0.6;
        transition: opacity 1s ease-out;
    }

    .home-kind-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.375);
    }

        .home-kind-item:hover .kind-bg {
            opacity: 1;
        }


.home-kind-caption {
    position: absolute;
    color: black;
    top: 40%;
    bottom: 5%;
    left: 5%;
    width: 60%;
    z-index: 2; /* 确保内容在遮罩之上 */
}

.home-kind-item:hover h4 {
    font-weight: bold;
}

.home-kind-caption h4 {
    color: black;
}

.home-kind-caption .home-kind-desc {
    color: grey;
    position: absolute;
    height: 60%;
    bottom: 0; /* 底端对齐 */
    left: 0;
    right: 0; /* 使描述文本占满父容器宽度 */
}

/*手机尺寸*/
@media (max-width: 767px) {
    .home-kind-caption {
        top: 15%;
        width: 50%;
    }

        .home-kind-caption .home-kind-desc {
            position: absolute;
            height: 70%;
            font-size: 0.9rem;
        }
}

.home-kind-img {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40%;
    height: 40%;
}



/*热门产品*/

.products-section {
    background: var(--bg-light);
}

.products-left-wrap {
    position: relative;
    width: 100%;
    height: 100% !important;
    background-color: cadetblue;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow .5s ease-out;
}

    .products-left-wrap:hover {
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0,0.5);
    }

    .products-left-wrap .img-overlay {
        position: absolute;
        width: 100%;
        transition: transform 1s ease-in-out;
    }

    .products-left-wrap:hover .img-overlay {
        transform: matrix(1.1, 0, 0, 1.1, -9.856, 0);
    }

    .products-left-wrap .text-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.3); /* 半透明背景 */
        color: white;
        padding: 10px;
    }

        .products-left-wrap .text-overlay h3 {
            color: white;
        }

            .products-left-wrap .text-overlay h3:hover {
                text-decoration: underline;
            }


.product-card {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
    transition: box-shadow .5s ease-out;
}

    .product-card:hover {
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0,0.075);
    }

    .product-card .card-body {
        padding: 0.5rem 0.5rem;
    }

    .product-card img {
        transition: transform 1s ease-in-out;
    }

    .product-card:hover img {
        transform: matrix(1.1, 0, 0, 1.1, -9.856, 0);
    }

    .product-card .product-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 0.25rem;
    }

        .product-card .product-title a {
            font-size: 1em;
            color: black;
            margin: 0.25rem 0;
        }

            .product-card .product-title a:hover {
                font-weight: bold;
            }


.param-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.product-horizontal-card {
    background-color: var(--white);
    background-clip: border-box;
    border-radius: 0.375rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.175);
}



/* 技术实力与资讯样式 */
.tech-section {
}

.tech-content h3,
.news-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-highlights {
    margin: 2rem 0;
}

.tech-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

    .tech-item i {
        color: var(--primary-color);
        font-size: 1.5rem;
        margin-right: 1rem;
        width: 30px;
        text-align: center;
    }

.lab-image {
    margin-top: 2rem;
}

.news-list {
    margin-top: 2rem;
}

.news-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

    .news-item:hover {
        transform: translateX(5px);
        box-shadow: var(--shadow-lg);
    }

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.news-item p {
    color: var(--text-light);
    margin: 0;
}




/* 产品分类模块样式 */
.product-categories-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* 系列标题样式 */
.series-header {
    margin-bottom: 3rem;
    position: relative;
}

    .series-header::after {
        content: '';
        position: absolute;
        bottom: -15px;
        transform: translateX(5%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), #ff8c42);
        border-radius: 2px;
    }

.series-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.series-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.category-card {
    padding: 1rem;
    height: 100% !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }


.category-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.category-title {
    margin: 2rem 0;
}


    .category-title a {
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

        .category-title a:hover {
            color: var(--primary-color);
        }

.category-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
