/* 全局基础样式 */
* {
    /* margin: 0 auto; */
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
    transition: background-color 0.3s, color 0.3s;
}


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




/* 主题变量 */
:root {
    --light-bg: #f8f9fa;
    --light-text: #1a1a1a;
    --dark-bg: #1e1e1e;
    --dark-text: #f8f9fa;
    --glass-light: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(26, 26, 26, 0.7);
    --light-mobile-bg: rgba(230, 33, 41, 1);
    --dark-mobile-bg: rgba(230, 33, 41, 1);
    --card-dark-bg: rgb(43, 43, 43);
    --card-light-bg: rgb(255, 255, 255);
    --card-dark-border: rgba(230, 33, 41, .8);
    --card-light-border: rgba(230, 33, 41, .8);
    --Enterprise-text: rgba(230, 33, 41, 1);
    --icon-text-color: rgba(230, 33, 41, 1);
    --dark-tf-bg: #131313;
    --light-tf-bg: rgb(255, 255, 255);
}

.light {
    background-color: var(--light-bg);
    color: var(--light-text);
}

.dark {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* main {
    margin-bottom: 30px;
} */


.news-wrap {
    padding: 40px 0;
    /* 上下留白，与头部区分 */
}

.news-title {
    text-align: center;
    font-size: 42px;
}

.news-auxiliaryTitle {
    text-align: center;
    font-size: 24px;
    color: #666;
}

.news-link {
    text-align: center;
    margin-bottom: 30px;
}

.news-link a {
    color: #333;
    text-decoration: none;
    /* 移除下划线 */
    transition: color 0.3s;
    /* hover过渡 */
}

.news-link a:hover {
    color: var(--Enterprise-text);
    /*  hover变色 */
}

.news-link h3 {
    display: inline-block;
    margin: 0 5px 0 0;
    /* 调整与图标间距 */
    font-size: 20px;
}

.news-link i {
    font-size: 16px;
}

/* 新闻卡片样式 */
.dark .news-card {
    background-color: var(--card-dark-bg);
    border-radius: 10px;
    overflow: hidden;
    /* margin-bottom: 16px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.light .news-card {
    background-color: var(--card-light-bg);
    border-radius: 10px;
    overflow: hidden;
    /* margin-bottom: 16px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.top-card{
    padding-bottom: 16px;
}

.light .news-card:hover,
.dark .news-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}


.news-card-large .left-img {
    height: 400px;
    background-color: orange;
}

.news-card .right-content {
    padding: 20px;
}

.news-card .right-content .title {
    margin: 0;
}

.news-card .type {
    font-size: 14px;
    color: var(--Enterprise-text);
    margin-bottom: 10px;
}

.dark .news-card .title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: block;
    color: var(--dark-text);
}

.light .news-card .title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: block;
    color: var(--light-text);
}

.news-card .news-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    margin: 30px 0;
}

.news-card .date {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* 小新闻卡片样式 */
.news-card-small .top-img {
    height: 180px;
    background-color: blueviolet;
}

.layui-fluid {
    padding: 0;
}

/* 企业视频样式 */
.company-v {
    position: relative;
}

.company-v a {
    position: absolute;
    bottom: 80px;
    left: 50%;
    display: block;
    width: 170px;
    height: 40px;
    background-color: #C7000B;
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 40px;
    transform: translateX(-50%);
}

.product-selection>.layui-col-md12 {
    padding: 0;
}

/* 产品栏目样式 */
.products-wrap {
    padding: 40px 0;
}

.products-title {
    text-align: center;
    font-size: 42px;
}

.products-auxiliaryTitle {
    text-align: center;
    font-size: 24px;
    color: #666;
}

.products-link {
    text-align: center;
    margin-bottom: 30px;
}

.products-link a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.products-link a:hover {
    color: var(--Enterprise-text);
}

.products-link h3 {
    display: inline-block;
    margin: 0 5px 0 0;
    font-size: 20px;
}

.products-link i {
    font-size: 16px;
}


.dark .products-card {
    position: relative;
    background-color: rgb(73, 71, 69);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.light .products-card {
    position: relative;
    background-color: bisque;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.light .products-card:hover,
.dark .products-card:hover,
.light .products-card-c:hover,
.dark .products-card-c:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.products-card img,
.products-card-c img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-card .mask,
.products-card-c .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3));
    height: 100%;
    z-index: 10;
}

.products-card .mask-content,
.products-card-c .mask-content {
    position: absolute;
    bottom: 30px;
}

.dark .products-card .products-title,
.dark .products-card-c .products-title {
    display: inline;
    margin: 0;
    font-size: 36px;
    color: var(--dark-text);
}

.light .products-card .products-title,
.light .products-card-c .products-title {
    display: inline;
    margin: 0;
    font-size: 36px;
    color: var(--dark-text);
}

.dark .products-card .products-describe,
.dark .products-card-c .products-describe {
    font-size: 16px;
    color: var(--dark-text);
}

.light .products-card .products-describe,
.light .products-card-c .products-describe {
    font-size: 16px;
    color: var(--dark-text);
}

.dark .products-card-c {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 620px;
}

.light .products-card-c {
    background-color: rgb(134, 177, 240);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 620px;
}

/* .layui-col-md4 {
    padding: 0 8px;
} */

/* 底部样式 */
.dark footer {
    background-color: var(--dark-tf-bg);
    color: white;
    padding: 40px 0 0;
}

.light footer {
    background-color: var(--light-tf-bg);
    color: black;
    padding: 40px 0 0;
}

.crumb-nav {
    padding: 0 0 30px 0;
}

.crumb-nav a img {
    height: 16px;
}

/* #footerPc {
    margin-top: 40px;
} */

.dark .footer-col h5 {
    margin-bottom: 20px;
    font-size: 16px;
    color: white;
}

.light .footer-col h5 {
    margin-bottom: 20px;
    font-size: 16px;
    color: black;
}

.footer-col .nav-link {
    color: #5a5a5a;
    transition: color 0.3s;
}

.footer-col .nav-link:hover {
    color: var(--Enterprise-text);
}


footer .copyright {
    text-align: center;
    color: #5a5a5a;
    font-size: 12px;
    padding: 10px 0 20px;
}

.QR-code img {
    width: 80px;
}

#footerPc .nav-item a {
    display: block;
    height: 40px;
}

#footerPc .footer-col:nth-last-child(1) h5 {
    margin-left: 7px;
}

.WeChat-Code,
.Tiktok-Code {
    text-align: center;
}

.light hr {
    border-bottom: 1px solid #8b8b8b !important;
}

.dark hr {
    border-bottom: 1px solid #313131 !important;
}

.layui-collapse {
    margin: 30px 0;
    border-style: none;
    border-radius: 2px;
}

.dark .layui-colla-item {
    border: 0 !important;
    border-bottom: 1px solid rgb(51, 51, 51) !important;
}

.light .layui-colla-item {
    border: 0 !important;
    border-bottom: 1px solid #c2c2c2 !important;
}

.dark .layui-colla-title {
    padding: 0 60px;
    font-weight: bolder;
    color: white;
    background-color: var(--dark-tf-bg);
}

.light .layui-colla-title {
    padding: 0 60px;
    font-weight: bolder;
    color: rgb(0, 0, 0);
    background-color: var(--light-tf-bg);
}

.light .layui-colla-icon{
    color: var(--dark-tf-bg);
}



/* 视频样式 */
/* 视频背景容器样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 500px;
    /* 可根据需要调整高度 */
    overflow: hidden;
}

/* 视频样式 */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持视频比例并覆盖整个容器 */
    z-index: 1;
}

/* 视频上方的内容容器 */
.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.3);
    /* 半透明黑色遮罩，增强文字可读性 */
}

.video-content .layui-btn {
    width: 120px;
    border: 0;
    border-radius: 6px;
    color: var(--dark-text);
    background-color: var(--icon-text-color);
    opacity: .8;
}

.video-content .layui-btn:hover {
    opacity: 1;
}

.video-content .layui-h2 {
    font-size: 36px !important;
    opacity: .8;
}

.video-content .layui-text {
    opacity: .8;
}


/* 加载状态样式 */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* 页脚样式 */
.light .layui-breadcrumb a {
    color: var(--light-text) !important; 
}

.layui-breadcrumb a:hover {
    color: var(--Enterprise-text) !important; 
}



@media (max-width: 768px) {

    .crumb-nav {
        padding: 30px 0 0 15px;
    }

}

/* 响应式调整（关键） */
@media (max-width: 990px) {
    .dark footer {
        background-color: var(--dark-tf-bg);
        color: white;
        padding: 0;
    }

    .light footer {
        background-color: var(--light-tf-bg);
        color: black;
        padding: 0;
    }

    .crumb-nav {
        padding: 30px 0 0 15px;
    }

    .content-padding {
        padding: 20px 16px;
        /* 移动端更小边距 */
    }

    .news-title {
        font-size: 28px;
        /* 小屏标题缩小 */
    }

    .news-card-large .left-img {
        height: 200px;
        /* 小屏图片高度减小 */
    }

    .news-card .title {
        font-size: 16px;
    }


    /* 视频样式 */
    .video-container {
        height: 100%;
    }

    .dark .products-card .products-title,
    .dark .products-card-c .products-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark-text);
    }

    .light .products-card .products-title,
    .light .products-card-c .products-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark-text);
    }


    .dark .products-card .products-describe,
    .dark .products-card-c .products-describe {
        font-size: 1.2rem;
        color: var(--dark-text);
        margin-bottom: 20px;
    }

    .light .products-card .products-describe,
    .light .products-card-c .products-describe {
        font-size: 1.2rem;
        color: var(--dark-text);
        margin-bottom: 20px;
    }

    .dark .layui-colla-content {
        padding: 0;
        border-color: #333;
    }

    .light .layui-colla-content {
        padding: 0;
        border-color: #c2c2c2 !important;
    }

    .dark #footerPc .nav-item {
        display: block;
        height: 36px;
        line-height: 18px;
        padding: 10px 0 10px 60px;
        background-color: rgba(0, 0, 0, .3);
        cursor: pointer;
    }

    .light #footerPc .nav-item {
        display: block;
        height: 36px;
        line-height: 18px;
        padding: 10px 0 10px 60px;
        background-color: rgba(0, 0, 0, 0.03);
        cursor: pointer;
    }

    .dark #footerPc .nav-item:hover {
        background-color: rgba(31, 31, 31, 0.5);
    }

    .light #footerPc .nav-item:hover {
        background-color: rgba(31, 31, 31, 0.1);
    }

    .dark #footerPc .nav-item a {
        color: #999;
    }

    .light #footerPc .nav-item a {
        color: #636363;
    }

    #footerPc .QR-code h5 {
        margin: 0 0 10px 5px;
    }


}