/*  轮播图 */
.slideshow {
    object-fit: cover;
}

/* 产品中心 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}
.product-info {
    padding: 20px 20px 10px;
    text-align: center;
}
.product-info .btn {
    color: var(--color);
}
.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.product-card .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.product-card .btn-sm i {
    transition: transform 0.3s ease;
}
.product-card:hover .btn-sm i {
    transform: translateX(5px);
}
.more-products {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.more-content {
    text-align: center;
}
.more-content i {
    font-size: 40px;
    color: var(--color);
    margin-bottom: 15px;
}
.more-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

/* 新闻资讯 */
.news-box .news-left {
    position: relative;
    float: left;
    width: 48.5%;
    overflow: hidden;
}
.news-box .news-left .topimg {
    width: 100%;
    height: 340px;
}
.news-box .news-left .topimg a {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
.news-box .news-left .line1 h3 {
    padding: 15px 0 10px 0;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-bottom: 2px solid var(--color2);
}
.news-box .news-left .line1 .txt {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 14px;
    color: #666;
    text-align: justify;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}
.news-box .news-left .line1 .morediv {
    margin-top: 10px;
    font-size: 14px;
    width: 100%;
}
.news-box .news-left .line1 .morediv span {
    float: left;
    color: #999;
    line-height: 30px;
}
.news-box .news-left .line1 .morediv a {
    float: right;
    display: block;
    padding: 6px 20px;
    background-color: #666;
    color: #fff;
}
.news-box .news-left .line1 .morediv a:hover {
    background-color: var(--color2);
}
.news-box .news-right {
    float: right;
    width: 48.5%;
    height: 100%;
    background-color: #eee;
    position: relative;
    height: 500px;
}
.news-box .news-right .nlist {
    padding: 20px 30px;
    overflow: hidden;
}
.news-box .news-right .nlist li {
    width: 100%;
    line-height: 1.8;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}
.news-box .news-right .nlist li a {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    height: 100%;
}
.news-box .news-right .nlist li a span {
    text-align: right;
}
.news-box .news-right .more {
    position: absolute;
    height: 30px;
    line-height: 30px;
    width: 120px;
    bottom: 30px;
    right: 30px;
}
.news-box .news-right .more a {
    display: block;
    border: 1px solid #ddd;
    text-align: center;
    color: #333;
}
.news-box .news-right .more a:hover {
    border: 1px solid var(--color2);
    color: var(--color2);
}

/* 关于大凡 */
.about {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}
.about .flex-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
}
.about .text-content p {
    margin-top: 10px;
    line-height: 1.8;
    color: var(--fontcolor);
}
.about .section-text {
    color: #9ca3af;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.625;
}
.about .image-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.about .feature-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 数字跳动 */
.stats {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.stats .stats-lists {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.stat-num {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
}
.stat-num h3 {
    margin-right: 6px;
    height: 50px;
    color: #2563eb;
    font-size: 45px;
    font-family: "gilroy-bold-4";
}
.stat-num span {
    font-weight: 100;
    font-family: "Microsoft YaHei", 微软雅黑;
}
.stat-item p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* 联系我们 */
.contact {
    padding-bottom: 6rem;
    background-color: #FFFFFF;
}
.contact .flex-container {
    display: flex;
    gap: 3rem;
}
.contact .w-1-2 {
    width: 50%;
}
.contact .contact-card {
    background-color: #f9fafb;
    padding: 2.5rem;
    border-radius: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.contact .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}
.contact .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 40px;
}
.contact .icon-box {
    width: 3rem;
    height: 3rem;
    background-color: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #6366f1;
}
.contact .info-label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.contact .info-text {
    color: #4b5563;
}
.contact .form-container {
    width: 100%;
}
.contact .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}
.contact label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
.contact input,
.contact textarea,
.contact select {
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}
.contact input:focus,
.contact textarea:focus,
.contact select:focus {
    outline: none;
    border-color: var(--color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
.contact button {
    width: 100%;
    background-color: var(--color);
    color: #FFFFFF;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
    border: none;
}


@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card {
        border-radius: 0;
    }
    .product-title {
        font-size: 16px;
    }
    .news-box .news-left {
        width: 100%;
        margin-bottom: 30px;
    }
    .news-box .news-right {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .product-card .btn-sm {
        padding: 5px 10px;
    }
    .news-box .news-right {
        height: initial;
    }
    .news-box .news-right .more {
        position: initial;
        margin-top: 10px;
        width: 100%;
        background-color: #666;
    }
    .news-box .news-right .more a {
        color: #fff;
        border: none;
    }
    .about .flex-container {
        grid-template-columns: 1fr;
    }
    .contact {
        padding-bottom: 3rem;
    }
    .contact .flex-container {
        flex-direction: column;
    }
    .contact .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .contact .w-1-2 {
        width: 100%;
    }
}
@media (max-width: 575px) {
    .product-info {
        padding: 15px;
    }
    .product-desc {
        font-size: 13px;
    }
    .more-content i {
        font-size: 32px;
    }
    .more-content h3 {
        font-size: 16px;
    }
}