/* 引入字体 */
/* DIN-Bold字体 */
@font-face {
    font-family: 'DIN-Bold';
    src: url('../fonts/DIN-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* 引入Alibaba PuHuiTi字体 */
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-75-SemiBold.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-75-SemiBold.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-75-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Alibaba PuHuiTi L';
    src: url('../fonts/AlibabaPuHuiTi-3-45-Light.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-45-Light.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-45-Light.otf') format('opentype');
    font-style: normal;
}

/* 引入Alibaba PuHuiTi M字体（中等粗细） */
@font-face {
    font-family: 'Alibaba PuHuiTi M';
    src: url('../fonts/AlibabaPuHuiTi-3-65-Medium.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-65-Medium.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-65-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* 引入Alibaba PuHuiTi R字体（常规） */
@font-face {
    font-family: 'Alibaba PuHuiTi R';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 渐出动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner样式 */
.banner-jianzhu {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/jianzhu1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin-top: -300px; /* 垂直居中偏上一点 */
}

.banner-title {
    font-family: 'Alibaba PuHuiTi M', 'Alibaba PuHuiTi', sans-serif;
    font-size: 25px;
    letter-spacing: 6px; /* 字间距大 */
    margin: 0 0 30px 0; /* 两行文字间距大 */
    line-height: 1.4;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.banner-subtitle {
    font-family: 'Alibaba PuHuiTi R', 'Alibaba PuHuiTi', sans-serif;
    font-size: 50px;
    letter-spacing: 6px; /* 字间距大 */
    margin: 0;
    line-height: 1.2;
    font-weight: normal;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-title {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .banner-subtitle {
        font-size: 40px;
        letter-spacing: 6px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .banner-subtitle {
        font-size: 32px;
        letter-spacing: 4px;
    }
}

/* 新section样式 */
.new-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-image: url('../images/jianzhu.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.section-container {
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.left-column {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6.25vw; /* 100px at 1600px */
    margin-left: 9.375vw; /* 150px at 1600px */
}

.main-image {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.right-column {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.right-top {
    margin-top: 1.5625vw; /* 30px at 1920px */
}

.small-image {
    width: auto;
    height: auto;
    max-width: 9.375vw; /* 150px at 1600px */
    float: left;
}

.right-middle {
    margin-top: 1.5625vw; /* 30px at 1920px */
}

.main-text {
    font-family: 'Alibaba PuHuiTi R', 'Alibaba PuHuiTi', sans-serif;
    font-size: 2.0833vw; /* 40px at 1920px */
    color: #050505;
    letter-spacing: 0.2083vw; /* 4px at 1920px */
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.right-bottom {
    margin-top: 2.6042vw; /* 50px at 1920px */
}

.description-text {
    font-family: 'Alibaba PuHuiTi L', 'Alibaba PuHuiTi', sans-serif;
    font-size: 0.9375vw; /* 18px at 1920px */
    color: #333333;
    letter-spacing: 0.1563vw; /* 3px at 1920px */
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* 响应式调整 - 仅处理极端小屏幕情况 */
@media (max-width: 992px) {
    .section-container {
        flex-direction: column;
        align-items: center;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        margin-bottom: 2.5vw;
    }
    
    .left-column {
        margin-left: 0;
        margin-top: 3vw;
    }
}

@media (max-width: 768px) {
    .new-section {
        min-height: 1000px;
    }
    
    .main-text {
        font-size: 3vw;
        line-height: 1.4;
    }
    
    .description-text {
        font-size: 1.8vw;
        line-height: 1.6;
    }
    
    .small-image {
        max-width: 15vw;
    }
}

@media (max-width: 480px) {
    .new-section {
        min-height: 900px;
    }
    
    .section-container {
        width: 95%;
    }
    
    .main-text {
        font-size: 4vw;
    }
    
    .description-text {
        font-size: 2.5vw;
    }
    
    .small-image {
        max-width: 20vw;
    }
}

/* 碳供暖系统section样式 */
.carbon-section {
    position: relative;
    width: 100%;
    min-height: 120vh;
    height: auto;
    background-image: url('../images/jianzhu3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 5vh 0;
    box-sizing: border-box;
}

.carbon-text-container {
    margin-top: 5vh;
    text-align: center;
}

.carbon-text1 {
    font-family: 'Alibaba PuHuiTi R', 'Alibaba PuHuiTi', sans-serif;
    font-size: 1.0417vw; /* 20px at 1920px */
    color: white;
    letter-spacing: 0.2604vw; /* 5px at 1920px */
    margin: 0 0 1vh 0;
    line-height: 1.8;
}

.carbon-text2 {
    font-family: 'Alibaba PuHuiTi R', 'Alibaba PuHuiTi', sans-serif;
    font-size: 1.7188vw; /* 33px at 1920px */
    color: white;
    letter-spacing: 0.2604vw; /* 5px at 1920px */
    margin: 0;
    line-height: 1.8;
}

.carbon-images-container {
    margin-top: 5vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 2vw;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 1.5vw;
}

/* 从右到左的渐入动画 */
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(5vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-item {
    flex: 1 1 calc(18% - 1.5vw);
    max-width: calc(18% - 1.5vw);
    min-width: calc(18% - 1.5vw);
    text-align: left;
    background-image: url('../images/jianzhu6.png');
    background-size: cover; /* 左右撑满 */
    background-position: top center; /* 确保头部完整显示 */
    background-repeat: no-repeat;
    aspect-ratio: 0.5417 / 1; /* 保持固定宽高比，确保在1920px下高度接近600px */
    position: relative;
    border-radius: 1.3021vw; /* 25px at 1920px */
    opacity: 0;
    transform: translateX(5vw);
    transition: opacity 1s ease-out, transform 1s ease-out;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 500px; /* 确保在小屏幕下有足够高度 */
}

/* 从右到左依次渐入的延迟效果 */
.image-item.animated:nth-child(5) { animation: fadeInFromRight 1s ease-out 0s forwards; } /* 最右边元素先显示 */
.image-item.animated:nth-child(4) { animation: fadeInFromRight 1s ease-out 0.2s forwards; }
.image-item.animated:nth-child(3) { animation: fadeInFromRight 1s ease-out 0.4s forwards; }
.image-item.animated:nth-child(2) { animation: fadeInFromRight 1s ease-out 0.6s forwards; }
.image-item.animated:nth-child(1) { animation: fadeInFromRight 1s ease-out 0.8s forwards; } /* 最左边元素最后显示 */

/* 鼠标悬停时添加蓝色渐变效果 */
.image-item {
    overflow: hidden; /* 确保子元素不会超出容器 */
}

.image-item:hover {
    border-radius: 1.3021vw; /* 25px at 1920px */
}

/* 使用伪元素实现渐变效果，确保与背景图片完全匹配 */
.image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 64, 255, 0.3), transparent);
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1; /* 确保在背景图片之上，文字之下 */
}

.image-item:hover::before {
    opacity: 1; /* 鼠标悬停时显示渐变 */
}

/* H1标题样式 */
.image-title {
    font-family: 'DINOT CondBold', sans-serif;
    font-size: 1.5625vw; /* 30px at 1920px */
    color: white;
    margin: 0;
    position: absolute;
    top: 13.33%; /* 80px at 600px height */
    left: 10%; /* 60px at 600px width */
    line-height: 1.2;
    z-index: 2;
}

/* H2副标题样式 */
.image-subtitle {
    font-family: 'Alibaba PuHuiTi M', 'Alibaba PuHuiTi', sans-serif;
    font-size: 2.0833vw; /* 40px at 1920px */
    color: white;
    margin: 0;
    letter-spacing: 0.2604vw; /* 5px at 1920px */
    position: absolute;
    top: 38.33%; /* 230px at 600px height */
    left: 8.33%; /* 50px at 600px width */
    z-index: 2;
}

/* 描述文字样式 */
.image-description {
    font-family: 'Alibaba PuHuiTi L', 'Alibaba PuHuiTi', sans-serif;
    font-size: 0.9375vw; /* 18px at 1920px */
    color: white;
    letter-spacing: 0.0781vw; /* 1.5px at 1920px */
    line-height: 1.5;
    position: absolute;
    top: 66.67%; /* 400px at 600px height */
    left: 8.33%; /* 50px at 600px width */
    right: 8.33%; /* 50px at 600px width */
    z-index: 2;
}

.image-description p {
    margin: 0.5208vw 0; /* 10px at 1920px */
}

.carbon-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
    object-fit: contain;
}

/* 响应式调整 - 仅处理极端小屏幕情况 */
@media (max-width: 768px) {
    .carbon-images-container {
        flex-wrap: wrap;
        gap: 3vw;
    }
    
    .image-item {
        flex: 1 1 calc(45% - 1.5vw);
        max-width: calc(45% - 1.5vw);
        min-width: calc(45% - 1.5vw);
    }
    
    /* 调整小屏幕上的字体大小 */
    .image-title {
        font-size: 4vw;
    }
    
    .image-subtitle {
        font-size: 5vw;
    }
    
    .image-description {
        font-size: 2.5vw;
    }
}

@media (max-width: 480px) {
    .carbon-images-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-item {
        flex: 1 1 80%;
        max-width: 80%;
        min-width: 80%;
        margin-bottom: 3vw;
    }
    
    /* 调整超小屏幕上的字体大小 */
    .image-title {
        font-size: 5vw;
    }
    
    .image-subtitle {
        font-size: 6vw;
    }
    
    .image-description {
        font-size: 3vw;
    }
}

/* 新增section样式 - 平急两用案例 */
.emergency-case-section {
    position: relative;
    width: 100%;
    height: 150vh;
    background-image: url('../images/jianzhu4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.case-container {
    width: calc(100% - 26.0417vw); /* 500px at 1920px */
    margin: 0 13.0208vw; /* 250px at 1920px */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.case-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.6042vw; /* 50px at 1920px */
    width: 100%;
    box-sizing: border-box;
}

.case-row:last-child {
    margin-bottom: 0;
}

.case-col {
    width: 48%;
    position: relative;
    top: 6.7708vw; /* 130px at 1920px */
    box-sizing: border-box;
}

.case-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    top: -2.6042vw; /* -50px at 1920px */
    left: 5.2083vw; /* 100px at 1920px */
    box-sizing: border-box;
}

/* 北京房山君澜度假酒店文字样式 */
.case-row:nth-child(2) .case-text-col {
    position: relative;
    top: -15.625vw; /* -300px at 1920px */
}

/* 北京浦洼进京检查站文字样式 */
.case-row:nth-child(3) .case-text-col {
    position: relative;
    top: -23.4375vw; /* -450px at 1920px */
}

/* 第一行第一列标题样式 */
.case-h1 {
    font-family: 'Alibaba PuHuiTi M', 'Alibaba PuHuiTi', sans-serif;
    font-size: 2.0833vw; /* 40px at 1920px */
    color: #111111;
    letter-spacing: 0.1563vw; /* 3px at 1920px */
    line-height: 1.2;
    margin: 0 0 0 5.2083vw; /* 100px at 1920px */
    font-weight: normal;
    margin-top: 7.8125vw; /* 150px at 1920px */
    opacity: 0;
    transform: translateY(2.6042vw); /* 50px at 1920px */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.case-h1.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* H2标签样式 */
.case-h2 {
    font-family: 'Alibaba PuHuiTi M', 'Alibaba PuHuiTi', sans-serif;
    font-size: 1.3021vw; /* 25px at 1920px */
    color: #333333;
    margin: 0;
    font-weight: 500;
    opacity: 0;
    transform: translateY(2.6042vw); /* 50px at 1920px */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-h2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 第一段H2样式（距离H1 100像素） */
.case-row:first-child .case-text-col .case-h2 {
    margin-top: 3.125vw; /* 60px at 1920px */
    margin-left: 5.2083vw; /* 100px at 1920px */
}

/* 动画效果定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片专用的增强动画效果 */
@keyframes fadeInUpImg {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* 段落文字样式 */
.case-p {
    font-family: 'Alibaba PuHuiTi L', 'Alibaba PuHuiTi', sans-serif;
    font-size: 0.9375vw; /* 18px at 1920px */
    color: #333333;
    letter-spacing: 0.1042vw; /* 2px at 1920px */
    line-height: 1.8;
    margin: 0.5208vw 0 0 0; /* 10px at 1920px */
    font-weight: 300;
    opacity: 0;
    transform: translateY(2.6042vw); /* 50px at 1920px */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 第一段段落样式（距离H2 50像素，且距离左边100像素） */
.case-row:first-child .case-text-col .case-p {
    margin-top: 1.0417vw; /* 20px at 1920px */
    margin-left: 5.2083vw; /* 100px at 1920px */
}

/* 图片样式 */
.case-img1 {
    display: block;
    margin: 0 auto;
    align-self: flex-end;
    max-width: 90%;
    height: auto;
    opacity: 0;
    transform: translateY(5.2083vw); /* 100px at 1920px */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.case-img1.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.case-img1:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.case-img2 {
    display: block;
    margin-top: -23.4375vw; /* -450px at 1920px */
    align-self: flex-start;
    max-width: 90%;
    height: auto;
    opacity: 0;
    transform: translateY(5.2083vw); /* 100px at 1920px */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.case-img2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.case-img2:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.case-img3 {
    display: block;
    margin-top: -33.8542vw; /* -650px at 1920px */
    margin-left: 5.2083vw; /* 100px at 1920px */
    max-width: 90%;
    height: auto;
    opacity: 0;
    transform: translateY(5.2083vw); /* 100px at 1920px */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.case-img3.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.case-img3:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 第二行文字样式 */
.case-row:nth-child(2) .case-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 2.6042vw; /* 50px at 1920px */
}

/* 第三行文字样式 */
.case-row:nth-child(3) .case-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 0.5208vw; /* 10px at 1920px */
}

/* 响应式调整 - 仅处理极端小屏幕情况 */
@media (max-width: 768px) {
    .emergency-case-section {
        height: auto;
        min-height: 100vh;
    }
    
    .case-container {
        width: calc(100% - 5.2083vw); /* 100px at 1920px */
        margin: 0 2.6042vw; /* 50px at 1920px */
        padding: 2.6042vw 0; /* 50px at 1920px */
    }
    
    .case-row {
        flex-direction: column;
        margin-bottom: 1.5625vw; /* 30px at 1920px */
    }
    
    .case-col {
        width: 100%;
        margin-bottom: 1.5625vw; /* 30px at 1920px */
        position: static;
    }
    
    .case-col:last-child {
        margin-bottom: 0;
    }
    
    .case-text-col {
        position: static;
        left: 0;
        padding: 0;
        text-align: center;
    }
    
    /* 重置所有行的文字位置 */
    .case-row:nth-child(2) .case-text-col,
    .case-row:nth-child(3) .case-text-col {
        position: static;
        padding-left: 0;
        text-align: center;
    }
    
    .case-h1, 
    .case-row:first-child .case-text-col .case-h2,
    .case-row:first-child .case-text-col .case-p {
        margin-left: 0;
        text-align: center;
    }
    
    .case-img1, .case-img2, .case-img3 {
        margin: 0 auto;
        max-width: 80%;
        position: static;
    }
    
    /* 调整小屏幕上的字体大小 */
    .case-h1 {
        font-size: 3.5vw;
    }
    
    .case-h2 {
        font-size: 2.5vw;
    }
    
    .case-p {
        font-size: 2vw;
    }
}