﻿/* 网站首页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.c1 {
    max-width: 1492px;
}

.cont3 {
    max-width: 1170px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1430px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 46px;
    margin-right: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: normal;
    color: #333;
}

.logo-divider {
    width: 2px;
    height: 48px;
    background-color: #7E7E7E;
    margin: 0 15px;
}

.logo-subtext {
    font-size: 12px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu {
    display: flex;
}

.nav-item {
    width: 122px;
    text-align: center;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

/* 首页选中样式 */
.nav-item.home {
    color: #1890ff;
}

.nav-item:hover {
    color: #1890ff;
}

.nav-item.active {
    color: #1890ff;
}

/* 移动端导航选中样式 */
.mobile-nav-item.active {
    color: #1890ff;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-item {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: left;
    transition: background-color 0.3s;
}

.mobile-nav-item.home {
    color: #006ed3;
    font-weight: bold;
}

.mobile-nav-item:hover {
    background-color: #f5f5f5;
    color: #006ed3;
}

/* 轮播图 */
.banner {
    margin-top: 80px;
    position: relative;
    height: 615px;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: brightness(0.8);*/
    transform: scale(1.1);
    transition: transform 0.8s ease-in-out;
}

.swiper-slide-active img {
    transform: scale(1);
    animation: zoomIn 0.8s ease-in-out;
}
@keyframes zoomIn {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.swiper-slide-active .banner-content {
    opacity: 1;
    animation: textReveal 1s ease-out 0.3s both;
}

.banner-title {
    font-size: 60px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    font-weight: 600;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.swiper-slide-active .banner-title {
    transform: translateY(0);
    opacity: 1;
    animation: titleSlideUp 0.8s ease-out 0.5s both;
}

.banner-desc {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: normal;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.swiper-slide-active .banner-desc {
    transform: translateY(0);
    opacity: 1;
    animation: descSlideUp 0.8s ease-out 0.7s both;
}

/* 文字动画关键帧 */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes titleSlideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes descSlideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.swiper-pagination-bullet {
    background-color: white;
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #006ed3;
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* 关于我们 */
.about {
    padding: 52px 0;
    text-align: center;
}

.video-section .container .manufacture-image img {
    width: 100%;
    height: 639px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about {
        background: #F2F2F2;
    }

    .video-section .container .manufacture-image img {
        height: 182px;
    }
}

.section-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
    font-weight: normal;
    text-align: center;
}

.section-desc {
    font-size: 16px;
    color: #666;
    max-width: 1200px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: center;
}

.desc2, .desc3, .desc4 {
    margin-top: -10px;
    margin-bottom: 52px;
}

.desc3 {
    width: 882px;
    font-size: 18px;
    line-height: 26px;
}

.manufacture-image {
    width: 1276px;
    margin: 0 auto;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .manufacture-image {
        width: auto;
    }
}

.btn {
    display: inline-block;
    padding: 10px 60px;
    background: rgb(10, 107, 185);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .btn {
        padding: 4px 32px;
        font-size: 13px;
    }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 产品服务 */
.services {
    padding: 74px 0;
    background-color: #f4f4f4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.service-image {
    width: 475px;
    height: 314px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.service-item:hover .service-image img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .service-image {
        width: 286px;
        height: 176px;
        margin: 0 auto;
    }

    .desc2 {
        margin-bottom: -18px !important;
    }

    .desc3 {
        font-size: 16px !important;
        margin-bottom: -26px !important;
        width: auto !important;
    }

    .desc4 {
        width: 200px;
        font-size: 14px !important;
        line-height: 30px;
    }
}

.service-content {
    padding: 2px;
}

.service-title {
    font-size: 18px;
    margin: 0 0 10px -2px;
    color: rgb(51, 51, 51);
    text-align: left;
    font-weight: bold;
}

.service-desc {
    font-size: 14px;
    color: rgb(102, 102, 102);
    line-height: 26px;
    text-align: left;
    font-weight: normal;
    margin: -10px -2px 0 -3px;
}

/* 视频部分 */
.video-section {
    padding: 80px 0;
    text-align: center;
}

.video-container {
    margin: 40px 0;
}

.video-container video {
    width: 100%;
    max-width: 1239px;
    height: 700px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 荣誉中心 */
.news {
    padding: 66px 0 50px 0;
    background-color: #f4f4f4;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin-top: 40px;
}

.news-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
}

/* 图片容器样式 */
.news-image {
    width: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片覆盖层 */
.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 101, 109, 0.59);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 鼠标悬停在图片上时显示覆盖层 */
.news-image:hover .news-image-overlay {
    opacity: 1;
}

.news-content {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: #0b5394;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.news-day {
    font-size: 26px;
}

.news-month {
    font-size: 12px;
}

.news-title {
    font-family: 微软雅黑;
    font-size: 19px;
    margin-bottom: 10px;
    color: #000;
    font-weight: normal;
    font-style: normal;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}


.news-desc {
    font-size: 14px;
    color: #7e7e7e;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5em;
}

.news-desc,
.news-desc * {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    background-color: transparent !important;
}

.news-desc p {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.news-link {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-left: 6px;
    width: fit-content;
}

.news-link-text {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-right: 26px;
}

.news-link-arrow {
    font-size: 20px;
    color: #0b5394;
}

/* 生产设备 */
.equipment {
    padding: 50px 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 40px;
}

.equipment-item {
    width: 282px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

.equipment-item img {
    width: 100%;
    height: 206px;
    object-fit: cover;
}

/* 生产设备小屏轮播样式 */
.equipment-swiper-container {
    display: none;
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
}

.equipment-swiper-slide {
    text-align: center;
}

.equipment-swiper-slide img {
    width: 100%;
    height: 206px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 底部导航 */
.footer {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding: 0 30px;
    position: relative;
}

/* 添加分隔线 */
.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: #ddd;
}

/* 第一个区域 - 联系方式 */
.footer-section:first-child {
    text-align: left;
}

.footer-title {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
    font-weight: normal;
}

.footer-section:first-child .footer-title {
    font-size: 28px;
    margin-bottom: 4px;
}

.footer-contact {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.footer-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 第二个区域 - 快捷导航 */
.footer-section:nth-child(2) {
    text-align: center;
}

.footer-section:nth-child(2) .footer-title {
    text-align: left; /* 标题居左 */
    margin-left: 20px; /* 与导航项对齐 */
}

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

.footer-nav-item {
    margin: 0 30px 15px;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.footer-nav-item:hover {
    color: #0a6bb9;
}

/* 第三个区域 - 二维码 */
.footer-section:last-child {
    text-align: center;
}

.footer-qr img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-qr-text {
    font-size: 14px;
    color: #333;
}

/* 新增动画样式 */
/* 滚动动画类 */
.animate-on-scroll {
    /*opacity: 0;*/
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 从下方飞入动画 - 修改为初始状态隐藏 */
.scroll-fly-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

/* 激活状态 */
.scroll-fly-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 从左往右飞入动画 */
.fly-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: flyLeft 0.8s ease forwards;
}

@keyframes flyLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .services {
        padding: 30px 0;
        background: white;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 40px;
    }

    /* 在小屏下移除分隔线 */
    .footer-section:not(:last-child)::after {
        display: none;
    }

    /* 在小屏下居中显示所有内容 */
    .footer-section:first-child {
        text-align: center;
    }

    .footer-section:nth-child(2) .footer-title {
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .header-container {
        flex-direction: row;
        height: 80px;
        padding: 0 15px!important;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-divider, .logo-subtext {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    .banner {
        margin-top: 80px;
        height: 242px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-desc {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: row;
    }

    .news-image {
        width: 33.33%;
        height: 113px;
        flex-shrink: 0;
    }

    .news-content {
        width: 66.67%;
        padding: 15px;
        justify-content: flex-start;
    }

    .news-title {
        text-align: left;
        font-size: 16px;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* 重置为单行显示 */
        display: block;
        -webkit-line-clamp: unset;
        min-height: auto;
    }

    .news-desc {
        text-align: left;
        font-size: 14px;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        min-height: 2.8em; /* 保持两行高度 */
    }

    .news-link {
        padding-top: 0;
    }

    .news-link-text {
        font-size: 10px;
    }

    .news-link-arrow {
        font-size: 12px;
    }

    .news-date {
        display: none;
    }

    .news-day {
        font-size: 20px;
    }

    .news-month {
        font-size: 10px;
    }

    /* 生产设备小屏样式 */
    .equipment-grid {
        display: none;
    }

    .equipment-swiper-container {
        display: block;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-nav-item {
        margin: 0 15px 15px;
    }

    .service-title {
        text-align: center;
        margin-top: 6px;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .service-desc {
        padding: 0 14px;
        font-size: 15px;
        text-align: center;
    }

    .service-content {
        margin-bottom: 12px;
    }

    .video-section {
        padding: 80px 0 50px 0;
    }

    .news {
        padding: 50px 0;
    }

    .video-container video {
        height: auto;
    }

    /* 调整小屏下的底部字体大小 */
    .footer-section:first-child .footer-title {
        font-size: 28px;
    }

    .footer-contact {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 54px;
    }

    .cont2 {
        padding: 0 40px;
    }

    .banner {
        height: 180px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 20px;
        height: 20px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .title2 {
        font-size: 20px !important;
        margin-bottom: 18px;
    }

    .section-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .footer {
        padding: 20px 0;
    }
}
