/* 首页专用样式 */

/* 关于我们 */
.about-section {
    padding: 6rem;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-left {
    flex: 1;
    max-width: 680px;
}

.about-title {
    font-size: 2.6rem;
    color: #2b2b2b;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-desc {
    color: #666666;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}


.about-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    text-decoration: none;
    background: linear-gradient(135deg, #d12b26, #f7532e);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(30, 80, 179, 0.08);
}

.about-right {
    display: flex;
    justify-content: center;
}

.about-image-wrap {
    position: relative;
    width: 520px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30, 80, 179, 0.08);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}



@media (max-width: 992px) {

    .about-left {
        max-width: 100%;
    }

    .about-stats {
        justify-content: center;
        gap: 2rem;
    }


}

@media (max-width: 480px) {
    .about-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-image-wrap {
        width: 100%;
    }
}

/* 六大类实施方向快速入口 */
.service-categories-section {
    padding: 6rem;
}

.service-categories-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-categories-section .section-header h2 {
    font-size: 2.5rem;
    color: #07112a;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.service-categories-section .section-header .muted {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;

}

.service-card {
    position: relative;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

/* 为每个服务卡片添加背景图片 */
.service-card:nth-child(1) {
    background-image: url('../images/home/s1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(2) {
    background-image: url('../images/home/s2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(3) {
    background-image: url('../images/tab2/1.建筑智能化工程.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(4) {
    background-image: url('../images/tab2/2.应急抢险工程.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(5) {
    background-image: url('../images/tab2/3.大型土石方工程.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(6) {
    background-image: url('../images/tab2/4.拆除修缮工程.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}






/* 确保卡片内容在遮罩之上 */
.service-card>* {
    position: relative;
    z-index: 2;
}



.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(209, 43, 38, 0.15);
    border-color: rgba(209, 43, 38, 0.1);
}



.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef0f0, #fff5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
}

.service-icon i {
    font-size: 2.5rem;
    color: #d12b26;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #d12b26, #f7532e);
    transform: scale(1.1) rotate(10deg);
}

.service-card:hover .service-icon i {
    color: #ffffff;
}

.service-title {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #ffffff;
}

.service-desc {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}



@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.2rem;
    }
}

/* 文化空间建设轮播 */
.cases-section {
    background: #050826;
    padding: 6rem 0;
}

.cases-top {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cases-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cases-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill.active,
.pill:hover {
    background: linear-gradient(135deg, #d12b26, #f7532e);
    border-color: #C91F37;
}

.cases-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cases-track {
    display: flex;
    gap: 1.2rem;
    overflow: hidden;
    padding: 1rem 12%;
    width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.case-card {
    flex: 0 0 68%;
    max-width: 920px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 80, 179, 0.08), rgba(0, 0, 0, 0.06));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
    position: relative;
    transition: box-shadow 0.35s ease;
    scroll-snap-align: center;
    min-width: 420px;
}

.case-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.case-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #ffffff;
    font-size: 0.95rem;
    background: linear-gradient(90deg, #d12c26ae, #f7532eac);
    padding: 8px 12px;
    border-radius: 8px;
}

.cases-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.case-card:hover {
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.65);
    z-index: 3;
}

.case-card:hover img,
.case-card.active img {
    transform: scale(1.06);
}

.cases-arrow.left {
    margin-left: 10px
}

.cases-arrow.right {
    margin-right: 10px
}




/* 案例库 */
.cases-library {
    padding: 6rem;
}

.cases-library .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cases-library .section-header h2 {
    font-size: 2.5rem;
    color: #07112a;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.cases-library .section-header .muted {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin: 0 auto;
}

.case-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 18px 50px rgba(9, 20, 40, 0.08);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
}

.case-media {
    position: relative;
    overflow: hidden;
}

.case-media img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.2, .9, .2, 1), filter 0.4s ease;
}

.case-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 12, 30, 0.6) 55%);
    color: #ffffff;
}

.case-meta {
    max-width: 75%;
}

.case-meta .case-tag {
    display: inline-block;
    background: rgba(209, 43, 38, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.case-meta h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.15px;
    line-height: 1.3;
}

.case-meta .short {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.case-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.3px;
    opacity: 0.0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(9, 20, 40, 0.14);
}

.case-item:hover .case-media img {
    transform: scale(1.07) translateZ(0);
}

.case-item:hover .case-cta {
    opacity: 1.0;
    transform: translateY(0);
}

.case-body {
    display: none;
}

/* 取消跨列设置，确保6个卡片均匀分布在一屏内 */
.cases-grid>.case-item:first-child {
    grid-column: span 2;
}

.cases-grid>.case-item:nth-child(2) {
    grid-column: span 1;
}

/* 最后一个卡片跨两列 */
.cases-grid>.case-item:nth-last-child(1) {
    grid-column: span 2;
}

.cases-grid>.case-item-cus {
    grid-column: span 1;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 案例轮播标签样式 */
.case-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #d12b26;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 建筑设计图优选展示 */
.architectural-designs-section {
    padding: 6rem;
}

.architectural-designs-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.architectural-designs-section .section-header h2 {
    font-size: 2.5rem;
    color: #07112a;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.architectural-designs-section .section-header .muted {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

.designs-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.design-large {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.design-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.design-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.design-large:hover img {
    transform: scale(1.1);
}

.design-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.design-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.design-overlay h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.design-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.design-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.design-link:hover {
    background: #d12b26;
    transform: scale(1.1);
}

.design-link i {
    font-size: 1.2rem;
}

.design-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.design-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 288px;
}

.design-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.design-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.design-item:hover img {
    transform: scale(1.1);
}

.design-item .design-overlay {
    padding: 1.5rem;
}

.design-item .design-link {
    width: 40px;
    height: 40px;
}

.design-item .design-link i {
    font-size: 1rem;
}

.view-more-designs {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* 咨询横幅 - 背景图版 */
.consultation-banner {
    position: relative;
    min-height: 375px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景图片 */
.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/banner1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4);
    transition: transform 0.5s ease;
}

.consultation-banner:hover .banner-bg-image {
    transform: scale(1.05);
}

/* 暗色遮罩 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(209, 43, 38, 0.3) 100%);
    z-index: 1;
}

/* 内容区域 */
.banner-content-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 主标题 */
.banner-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 描述文本 */
.banner-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}






/* ========== 首页移动端响应式优化 ========== */

/* 平板端 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {



    /* 关于我们部分 */


    .about-section {
        padding: 4rem 2rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-desc {
        font-size: 1rem;
    }

    /* 服务分类 */
    .service-categories-section {
        padding: 4rem 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    /* 案例展示 */
    .cases-section {
        padding: 3.5rem 0;
    }

    .cases-title {
        font-size: 2.2rem;
    }

    /* 城市更新 */
    .cases-library {
        padding: 4rem 2rem;
    }

    /* 建筑设计图 */
    .architectural-designs-section {
        padding: 4rem 2rem;
    }
}

/* 手机端 (≤ 768px) */
@media (max-width: 768px) {

    /* 关于我们部分 */
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .about-section {
        padding: 2.5rem 1.5rem;
    }

    .about-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .about-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .about-cta {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
    }

    .about-image-wrap {
        width: 100%;
        margin: 0 auto;
    }

    /* 服务分类 */
    .service-categories-section {
        padding: 2.5rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .service-categories-section .section-header h2 {
        font-size: 1.8rem;
    }

    .service-categories-section .section-header .muted {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.8rem 1.5rem;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .service-title {
        font-size: 1.05rem;
    }

    .service-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }





    .cases-library .case-media img {
        height: 280px;
    }

    .cases-library .case-overlay {
        padding: 1rem;
    }

    /* 案例轮播 */
    .cases-section {
        padding: 2.5rem 0;
    }

    .cases-top {
        margin-bottom: 2rem;
    }

    .cases-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .cases-filters {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0 1rem;
    }

    .pill {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .cases-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .case-caption {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .case-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* 城市更新 */
    .cases-library {
        padding: 2.5rem 1.5rem;
    }

    .cases-library .section-header h2 {
        font-size: 1.8rem;
    }

    .cases-library .section-header .muted {
        font-size: 0.9rem;
    }


    .cases-library .cases-grid {
        display: block;
        padding: 0;
    }

    .case-media {
        margin-bottom: 1rem;
    }

    .case-meta {
        max-width: 88%;
    }

    .case-meta .case-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-bottom: 8px;
    }

    .case-meta h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .case-meta .short {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .case-cta {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* 建筑设计图 */
    .architectural-designs-section {
        padding: 2.5rem 1.5rem;
    }

    .architectural-designs-section .section-header h2 {
        font-size: 1.8rem;
    }

    .architectural-designs-section .section-header .muted {
        font-size: 0.9rem;
    }

    .designs-showcase {
        display: flex;
        flex-direction: column;

        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .design-large img {
        height: 280px;
    }

    .design-grid {
        gap: 1rem;
    }



    .design-overlay h3 {
        font-size: 1.2rem;
    }

    .design-overlay h4 {
        font-size: 1rem;
    }

    .design-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .view-more-designs {
        flex-direction: column;
        gap: 1rem;
    }

    .view-more-designs .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }

    /* 咨询横幅 */
    .consultation-banner {
        min-height: 360px;
    }

    .banner-main-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .banner-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .btn-consultation {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}