@font-face {
    font-family: PlayfairDisplay;
    src: url(../fonts/PlayfairDisplay-Medium.ttf);
    font-weight: normal
}
@font-face {
    font-family: NotoSerif;
    src: url(../fonts/Noto-Serif.ttf);
    font-weight: normal
}
@font-face {
    font-family: segoesc;
    src: url(../fonts/segoesc.ttf);
    font-weight: normal
}
@font-face {
    font-family: 'Aurora Bold Condensed';
    src: url('../fonts/AuroraBT-BoldCondensed.woff2') format('woff2'), url('../fonts/AuroraBT-BoldCondensed.woff') format('woff'), url('../fonts/AuroraBT-BoldCondensed.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 响应式基础设置 */
html, body {
    overflow-x: hidden;
    /* 防止水平滚动 */
    width: 100%;
}
/* 轮播图样式 */
.slideshow-container {
    padding-top: 80px;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.slide-wrapper {
    display: flex;
    width: 100%;
    /* 修改为100%宽度，不留空白 */
    height: 100%;
    transition: transform 0.8s ease-in-out;
}
/* 添加指示器样式 */

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.indicator {
    width: clamp(8px, 1vw, 12px);
    /* 响应式指示器大小 */
    height: clamp(8px, 1vw, 12px);
    /* 响应式指示器大小 */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.indicator.active {
    background-color: white;
}
.slide {
    min-width: 100%;
    /* 每张图片占满整个容器宽度 */
    position: relative;
    height: 100%;
}
.text-slide {
    position: absolute;
    top: -100%;
    /* 从顶部开始 */
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: white;
    display: flex;
    flex-direction: column;
    /* 修改为垂直排列 */
    align-items: center;
    justify-content: center;
    transition: top 0.8s ease-in-out;
}
.text-slide h2 {
    font-family: 'Aurora Bold Condensed', Arial, sans-serif;
    font-size: 6.0rem;
    font-weight: 900;
    padding: 0 1rem;
    /* 添加内边距防止文字贴边 */
    text-align: center;
    /* 文字居中 */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* 添加底部间距 */
}
.text-slide p {
    width: 60%;
    display: inline-block;
    box-sizing: border-box;
    word-wrap: break-word;
    font-size: clamp(1.5rem, 5vw, 40px);
    /* 使用clamp函数设置响应式字体大小 */
    line-height: 50px;
    padding: 0 1rem;
    /* 修正内边距值 */
    text-align: center;
    /* 文字居中 */
}
.slide.active .text-slide {
    animation: textSlideIn 1s forwards 0.3s;
}
.slide.inactive .text-slide {
    animation: textSlideOut 1s forwards;
}
@keyframes textSlideIn {
    from {
        top: -100%;
    }
    /* 从顶部滑入 */
    to {
        top: -20%;
    }
}
@keyframes textSlideOut {
    from {
        top: 0;
    }
    to {
        top: 100%;
    }
    /* 向底部滑出 */
}
/* 第二套幻灯片的文字动画 */

@keyframes textSlideInBottom {
    from {
        bottom: -100%;
    }
    /* 从底部滑入 */
    to {
        bottom: 0;
    }
}
@keyframes textSlideOutBottom {
    from {
        bottom: 0;
    }
    to {
        bottom: -100%;
    }
    /* 向底部滑出 */
}
/* 第二套幻灯片样式 */

.slideshow-container-bottom {
    position: relative;
    width: 100%;
    height: auto;
    /* 第二套幻灯片高度 */
    overflow: hidden;
    margin-top: 30px;
    /* 与第一套幻灯片的间距 */
}
.text-slide-bottom {
    position: absolute;
    bottom: -100%;
    /* 初始位置在底部 */
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.8s ease-in-out;
}
.text-slide-bottom p {
    font-family: 'Aurora Bold Condensed', Arial, sans-serif;
    font-size: clamp(5.5rem, 5vw, 90px);
    /* 使用clamp函数设置响应式字体大小 */
    font-weight: 800;
    /* 字体加粗 */
    padding: 0 1rem;
    /* 添加内边距防止文字贴边 */
    text-align: center;
    /* 文字居中 */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.slide.active .text-slide-bottom {
    animation: textSlideInBottom 1s forwards 0.3s;
}
.slide.inactive .text-slide-bottom {
    animation: textSlideOutBottom 1s forwards;
}
.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.pause-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* 媒体查询 - 平板设备 */

@media (max-width: 768px) {
    .slideshow-container {
        height: 60vh;
    }
    .controls {
        bottom: 15px;
    }
    .indicators {
        bottom: 15px;
        gap: 6px;
    }
}
/* 媒体查询 - 移动设备 */

@media (max-width: 480px) {
    .slideshow-container {
        height: 50vh;
    }
    .controls {
        bottom: 10px;
    }
    .indicators {
        bottom: 10px;
        gap: 4px;
    }
    button.absolute {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}
/* JINWA PRODUCT 容器样式 */

.product-container {
    width: 100%;
    padding: 120px 0;
    text-align: center;
}
.product-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.jinwa {
    color: #1a4b88;
    font-weight: 800;
}
.product {
    color: #666666;
}
/* 双图片容器样式 */

.dual-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 auto;
}
.dual-image-item {
    width: 50%;
    height: 100%;
    display: block;
    font-size: 0;
    /* 消除可能的内联元素间隙 */
}
.dual-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 消除图片底部可能的间隙 */
}
.image-box {
    width: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* 添加半透明蒙版 */

.image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 160, 160, 0.3);
    /* 半透明蓝绿色蒙版 */
    z-index: 1;
    transition: opacity 0.3s ease;
}
/* 鼠标悬停时蒙版全透明 */

.image-box:hover::before {
    opacity: 0;
}
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
}
.image-box:hover img {
    transform: scale(1.05);
}
@media (max-width: 100%) {
    .image-box {
        width: calc(50% - 10px);
        min-width: 300px;
    }
}
@media (max-width: 768px) {
    .image-box {
        width: 100%;
    }
}
.advantage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.advantage-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.advantage-box {
    background-color: #f8f8f8;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.advantage-row:first-child .advantage-box {
    width: 500px;
}
.advantage-row:last-child .advantage-box {
    width: 320px;
}
.advantage-number {
    font-size: 48px;
    font-weight: 800;
    color: #d79b4f;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.advantage-text {
    font-size: 28px;
    font-weight: bold;
    color: #00A870;
    transition: color 0.3s ease;
}
.advantage-box:hover {
    background-color: #00A870;
    transform: translateY(-5px);
}
.advantage-box:hover .advantage-number {
    color: #fff;
}
.advantage-box:hover .advantage-text {
    color: #fff;
}
@media (max-width: 1100px) {
    .advantage-row:first-child .advantage-box {
        width: 450px;
    }
    .advantage-row:last-child .advantage-box {
        width: 290px;
    }
}
@media (max-width: 992px) {
    .advantage-row:first-child .advantage-box {
        width: 400px;
    }
    .advantage-row:last-child .advantage-box {
        width: 260px;
    }
}
@media (max-width: 768px) {
    .advantage-row {
        flex-direction: column;
        align-items: center;
    }
    .advantage-row:first-child .advantage-box, .advantage-row:last-child .advantage-box {
        width: 90%;
    }
}
/* 添加服务图片容器样式 */

.service-image-container {
    width: 100%;
    margin: 0px auto;
    text-align: center;
}
/* 服务双图片容器样式 */

.service-dual-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1440px;
    margin: 80px auto;
    padding: 0 15px;
}
.service-image {
    max-width: 100%;
    height: auto;
}
.service-item {
    position: relative;
    width: 690px;
    height: 355px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.service-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.service-item:hover .service-item-image {
    transform: scale(1.05);
}
/* 添加蒙版样式 */

.service-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 32, 83, 0.6);
    /* #002053 with 60% opacity */
    transition: opacity 0.3s ease;
}
.service-item:hover .service-item-overlay {
    opacity: 0;
    /* 鼠标悬停时蒙版变透明 */
}
.service-item-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Aurora Bold Condensed', Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* 响应式调整 */

@media (max-width: 1200px) {
    .service-dual-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .service-item {
        width: 100%;
        max-width: 690px;
    }
}
/* 产品案例网格样式 */

.product-grid-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.product-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 25px;
}
/* 根据图片尺寸设置不同宽度 */

.product-item:nth-child(1), .product-item:nth-child(6) {
    width: 400px;
    height: 330px;
}
.product-item:nth-child(2), .product-item:nth-child(5), .product-item:nth-child(7), .product-item:nth-child(10) {
    width: 580px;
    height: 330px;
}
.product-item:nth-child(3), .product-item:nth-child(8) {
    width: 420px;
    height: 330px;
}
.product-item:nth-child(4), .product-item:nth-child(9) {
    width: 830px;
    height: 330px;
}
.product-item img {
    width: 100%;
    height: 100%;
}
.product-item:hover img {
    transform: scale(1.05);
}
/* 透明蒙版，鼠标悬停时变不透明 */

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 32, 83, 0.3);
    /* 初始透明度30% */
    transition: opacity 0.3s ease;
    opacity: 1;
}
.product-item:hover .product-overlay {
    opacity: 0;
    /* 鼠标悬停时蒙版透明 */
}
.product-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* 响应式调整 */

@media (max-width: 1200px) {
    .product-item {
        width: calc(50% - 10px) !important;
    }
}
@media (max-width: 768px) {
    .product-item {
        width: 100% !important;
    }
}
/* 添加从右往左显现的动画 */

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* 确保AOS元素在初始化前不可见 */

[data-aos] {
    opacity: 0;
    transition: opacity 0.3s;
}
[data-aos].aos-animate {
    opacity: 1;
}
/* 轮播图链接样式 */

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.carousel-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 产品案例链接样式 */

.product-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: white;
}
.product-item a:hover .product-overlay {
    opacity: 0;
}
.product-item a:hover img {
    transform: scale(1.05);
}