.home {
    position: relative
}

.home .section1 {
    position: relative
}

.home .section1 h1 {
    position: absolute;
    left: 0;
    width: 100%;
    top: 3.22917vw;
    text-align: center;
    font-weight: 400;
    z-index: 10;
}

.home .section1 h1 .t1 {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0.5vw;
}

.home .section1 h1 .t2 {
    letter-spacing: 0.25vw;
}

.home .section1 .wrap {
    display: flex;
    justify-content: space-between
}

.home .section1 .wrap .l {
    width: calc(100% - 54.6vw);
    position: relative
}

.home .section1 .wrap .l .list {
    width: 31.61458vw;
    position: absolute;
    left: 13.75vw;
    top: 16.66667vw;
    max-height: calc(100% - 17vw);
    overflow: auto;
}

.home .section1 .wrap .l .list .item {
    cursor: pointer
}

.home .section1 .wrap .l .list .item .d1 {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.40625vw 0;
    border-bottom: 2px solid rgba(39, 39, 39, 0.6)
}

.home .section1 .wrap .l .list .item .d1 p {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-weight: 700;
    line-height: 1.5;
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .section1 .wrap .l .list .item .d1 .icon img {
    width: 1.04167vw;
    display: block;
    transition: all 600ms
}

.home .section1 .wrap .l .list .item .d2 {
    display: none
}

.home .section1 .wrap .l .list .item .d2 .p1 {
    color: rgba(39, 39, 39, 0.6);
    font-weight: 700;
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 14px;
    margin: .52083vw 0 .78125vw 0
}

.home .section1 .wrap .l .list .item .d2 .content ul {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 14px;
    font-weight: 400;
    padding-left: 1em;
    width: 95%;
    margin: 0 auto
}

.home .section1 .wrap .l .list .item .d2 .content ul li {
    list-style: disc;
    line-height: 1.71;
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
}

.home .section1 .wrap .l .list .item .d2 .content a {
    margin-top: 1.04167vw;
    display: block;
    text-decoration: underline;
    font-family: 'Tinos';
}

.home .section1 .wrap .l .list .item.on .d1 .icon img {
    transform: rotate(180deg)
}

.home .section1 .wrap .pic {
    overflow: hidden
}

.home .section1 .wrap .pic img {
    width: 48.22917vw;
    height: 100vh;
    object-fit: cover;
    transition: all 600ms
}

.home .section1 .wrap .pic:hover img {
    transform: scale(1.05)
}

.home .section2 {
    padding: 6.14583vw 0 0 0
}

.home .section2 h1 {
    text-align: center;
    font-weight: 400;
}

.home .section2 h1 .t1 {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0.312vw
}

.home .section2 h1 .t2 {
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-size: 20px;
    font-weight: 700;
    line-height: 2;
}

.home .section2 .map {
    margin: 5.20833vw auto 9.58333vw auto;
    width: 56.40625vw;
    position: relative
}

.home .section2 .map .pic img {
    width: 100%;
    display: block;
    object-fit: cover
}

.home .section2 .map .text_box .text {
    position: absolute;
    right: -16.66667vw;
    top: 48%;
    transform: translateY(-50%);
    display: none
}

.home .section2 .map .text_box .text.on {
    display: block
}

.home .section2 .map .text_box .text .box {
    width: 19.6875vw;
    /* height: 22.39583vw; */
    border: 1px dashed rgba(39, 39, 39, 0.38);
    padding: 2.65625vw 1.82292vw 2.65625vw 3.95833vw;
}

.home .section2 .map .text_box .text .box .pt {
    font-weight: 700;
    font-family: 'Tinos';
    margin-bottom: 1.97917vw;
    width: fit-content;
    text-decoration: underline;
    position: relative;
}

.home .section2 .map .text_box .text .box .pt::before {
    content: '';
    display: block;
    position: absolute;
    left: -1.97917vw;
    top: 50%;
    transform: translateY(-50%);
    width: 15.999px;
    height: 15.999px;
    background: #272727;
    border-radius: 50%
}

.home .section2 .map .text_box .text .box .info {
    font-family: 'Tinos'
}

.home .section2 .map .text_box .text .box .info .gray {
    color: rgba(39, 39, 39, 0.6)
}

.home .section2 .map .text_box .text .box .info p {
    font-family: 'Tinos';
    line-height: 1.71
}

.home .section2 .map .text_box .text .box .info p:nth-child(2n) {
    font-weight: 700
}

.home .section2 .map .text_box .text.t_right {
    left: auto;
    right: 100%;
    padding-left: 0;
    padding-right: 0.5vw
}

.home .section2 .map .point {
    position: absolute;
    z-index: 1;
    cursor: pointer
}

.home .section2 .map .point .dot {
    display: flex;
    align-items: center
}
.home .section2 .map .map-inner{
    position: relative;
}
.home .section2 .map .point .dot p {
    font-family: "Inter";
    font-weight: 800;
    line-height: 1.71;
    transition: all 600ms;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translate(0,-50%);
    width: max-content;
    pointer-events: none;
}

.home .section2 .map .point .dot .icon {
    margin-left: .41667vw;
    position: relative
}

.home .section2 .map .point .dot .icon span {
    width: .625vw;
    height: .625vw;
    background: #000;
    border-radius: 50%;
    display: block;
    transition: all 600ms
}

.home .section2 .map .point .dot .icon img {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 600ms;
    width: 1.04167vw
}

.home .section2 .map .point.right .dot {
    flex-direction: row-reverse
}

.home .section2 .map .point.right .dot p {
    margin-left: 8px
}

.home .section2 .map .point.on .dot p {
    color: #C81313
}

.home .section2 .map .point.on .dot .icon span {
    opacity: 0
}

.home .section2 .map .point.on .dot .icon img {
    opacity: 1
}

.home .section2 .map .point1 {
    left: 12.1875vw;
    top: 6.77083vw;
    z-index: 10
}

.home .section2 .map .point2 {
    left: 23.4375vw;
    top: 5.15625vw
}

.home .section2 .map .point3 {
    left: 41.14583vw;
    top: 7.65625vw
}

.home .section2 .map .point4 {
    left: 39.79167vw;
    top: 10vw
}

.home .section2 .map .point5 {
    left: 39.73958vw;
    top: 13.33333vw
}

.home .section2 .map .point6 {
    right: 4.11458vw;
    top: 8.48958vw
}

.home .section2 .map .point7 {
    right: 5.98958vw;
    top: 9.32292vw
}

.home .section2 .map .point8 {
    right: 5.3125vw;
    top: 10.52083vw
}

@media screen and (max-width: 1024px) {
    .home .section1 h1 {
        top: 80px;
        letter-spacing: 4px;
        color: white
    }

    .home .section1 .wrap {
        flex-direction: column-reverse
    }

    .home .section1 .wrap .l {
        width: 100%
    }

    .home .section1 .wrap .l .list {
        position: static;
        width: 90%;
        margin: 20px auto
    }

    .home .section1 .wrap .l .list .item .d1 {
        padding: 15px 0
    }

    .home .section1 .wrap .l .list .item .d1 .icon img {
        width: 15px
    }

    .home .section1 .wrap .l .list .item .d2 .p1 {
        margin: 8px 0
    }

    .home .section1 .wrap .l .list .item .d2 .content ul {
        width: 90%
    }

    .home .section1 .wrap .l .list .item .d2 .content a {
        margin-top: 10px
    }

    .home .section1 .wrap .pic img {
        width: 100%;
        height: auto
    }

    .home .section2 {
        padding: 60px 0 0 0
    }

    .home .section2 h1 .t1 {
        letter-spacing: 4px
    }

    .home .section2 .map {
        margin: 50px 5%;
        width: 90%
    }

    .home .section2 .map .point .dot p {
        font-size: 12px;
        opacity: 0;
        right: 10px;
        transition: all ease 0.3s;
    }
    .home .section2 .map .point:hover .dot p {
        opacity: 1;
    }

    .home .section2 .map .point .dot .icon {
        margin-left: 4px
    }

    .home .section2 .map .point .dot .icon span {
        width: 6px;
        height: 6px
    }

    .home .section2 .map .point .dot .icon img {
        width: 6px
    }

    .home .section2 .map .text_box {
        margin-top: 30px;
    }

    .home .section2 .map .text_box .text {
        position: static;
        transform: translateY(0);
        width: 100%;
    }

    .home .section2 .map .text_box .text .box {
        width: 100%;
        padding: 20px 5% 20px 60px;
    }

    .home .section2 .map .text_box .text .box .pt::before {
        left: -35px;
    }
    .home .section2 h1 .t2{
        font-size: 16px;
    }
}
.home .office {
    margin-top: 50px;
    margin-bottom: 75px;
}

.home .section2 .gallery .gallery-item {
    flex: 0 0 auto;
    width: 320px; /* 默认 320px 宽度 */
    height: 640px;
    overflow: hidden; /* 超出部分隐藏 */
    display: flex; /* 图片居中 */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out, width .5s ease-in-out;
    cursor: pointer;
    position: relative;
}
.home .section2 .gallery .gallery-item img{
    height: 640px;
    flex: 0 0 auto;
    max-width: none; /* 保持原始宽度用于裁切效果 */
}
/* 阴影遮罩：提升文字可读性 */
.home .section2 .gallery .gallery-item::before{
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1;
}
.home .section2 .gallery .gallery-item.is-expanded::before{
    opacity: 1;
}
.home .section2 .gallery .gallery-item .overlay  {
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out, scale 0.45s ease-in-out;
    z-index: 2; /* 置于遮罩之上 */
}
.home .section2 .gallery .gallery-item.is-expanded .overlay  {
    opacity: 1;
    transform: translateY(120px);
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}
    /* 当有任意一个 item 展开时，gallery 容器添加一个标记类（这需要 JS 配合，或者我们利用 CSS 选择器技巧）
       由于 CSS 无法选择父级或兄弟元素的子元素基于另一兄弟的状态（除了后续兄弟），
       这里更稳妥的方式是：
       当某个 item 展开 (.is-expanded) 时，我们修改它的 overlay-title 为白色。
       而对于那些没有展开的 item，如果此时有 item 展开了，它们的 overlay-title 需要变灰。
       这在纯 CSS 中比较难实现“当A展开时，B变灰”，除非它们有共同父级且父级有状态。
       
       通常做法：给父级容器加个类，比如 .has-expanded-item
    */
    
    /* 默认状态：白色 */
    .home .section2 .gallery .gallery-item .overlay .overlay-title {
        font-size: 40px;
        text-align: center;
        font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
        font-weight: 400;
        letter-spacing: 3px;
        color: #fff;
        transition: color 0.3s ease;
    }

    .home .section2 .gallery .gallery-item.is-expanded .overlay .overlay-title {
        font-size: 64px;
        font-weight: 400;
    }

    /* 当父容器有 .has-expanded 类时，所有 item 的 title 变灰 */
    .home .section2 .gallery.has-expanded .gallery-item .overlay .overlay-title {
        color: #a1a6aa;
    }

    /* 但被展开的那个 item (即 .is-expanded) 的 title 需保持白色 */
    .home .section2 .gallery.has-expanded .gallery-item.is-expanded .overlay .overlay-title {
        color: #fff;
    }
.home .section2 .gallery .gallery-item  .overlay-details {
    position: absolute;
    top: 320px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 320px;
    opacity: 0;
    z-index: 2; /* 置于遮罩之上 */
}
.home .section2 .gallery .gallery-item.is-expanded  .overlay-details {
    opacity: 1;
    text-align: center;
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out, scale 0.45s ease-in-out;
}
.home .section2 .gallery .gallery-item .overlay-details .detail {
    line-height: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.home .section2 .gallery .gallery-item.is-expanded  .overlay-details .detail span {
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei";
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.home .section2 .gallery .gallery-item.is-expanded {
    width: 540px; /* 点击展开到 540px 完整展示 */
}
.home .section2 .gallery .gallery-item:not(.is-expanded) img {
    /* filter: brightness(1.8) saturate(1.02); */
}
    .home .section2 .gallery .gallery-item:not(.is-expanded)::before{
        opacity: 0;
    }
    .home .section2 .gallery .gallery-item.is-expanded::before{
        opacity: 1;
    }


@media (max-width: 768px) {
    .swiper-wrapper {
        /* left: 60px; */
    }
    .home .section2 .gallery .gallery-item {
        width: 300px; 
        height: 454px;
        /* transition: transform .25s ease-in-out, box-shadow .25s ease-in-out, width .5s ease-in-out; */
    }
    .home .section2 .gallery .gallery-item img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* 移动端加强遮罩以凸显文字 */
    .home .section2 .gallery .gallery-item::before{
        opacity: .55;
        transition: opacity 0.3s ease;
    }
    .home .section2 .gallery .gallery-item.is-expanded::before{
        opacity: .7;
    }
    .home .section2 .gallery .gallery-item .overlay{
        top: 120px;
    }
    .home .section2 .gallery .gallery-item .overlay .overlay-title {
        font-size: 42px;
    }

    .home .section2 .gallery .gallery-item  .overlay-details {
        position: absolute;
        top: 180px;
        left: 50%;
        width: 250px;
        height: 240px;
        text-align: center;
        font-size: 14px;
        font-family: 'Tinos';
        font-style: italic;
        line-height: 1.5;
        opacity: 1;
        transform: translateX(-50%);
    }
    .home .section2 .gallery .gallery-item .overlay-details .detail {
        line-height: 16px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    .home .section2 .gallery .gallery-item .overlay-details .detail span {
        font-size: 16px;
        color: #fff !important;
        font-family: 'Noto Serif SC', "PingFang SC", "Microsoft YaHei" !important;
        font-style: normal;
        font-weight: 400;
        line-height: 12px;
    }
}
