.header .box .logo img {
    transition: .6s ease
}

img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover
}

.common_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1
}

.item_hover {
    overflow: hidden
}

.item_hover:hover img {
    transform: scale(1.05)
}

.item_hover img {
    transition: .6s ease
}

@-webkit-keyframes fadeInUp_ {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0)
    }

    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

@keyframes fadeInUp_ {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0)
    }

    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

.fadeInUp_ {
    -webkit-animation-name: fadeInUp_;
    animation-duration: 2s;
    animation-name: fadeInUp_
}

@keyframes moveDown {
    0% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(20px);
        opacity: 0
    }
}

.banner {
    position: relative
}

.banner .down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3.4375vw;
    cursor: pointer
}

.banner .down svg {
    width: 22px;
    height: 11px;
    display: block;
    animation: moveDown 2s infinite ease-in-out
}

.banner .down svg:last-child {
    animation-delay: 200ms
}

.banner .down svg:not(:last-child) {
    margin: 0 0 5px
}

.banner video {
    width: 100%;
    height: 100vh;
    display: block;
    object-fit: cover
}

.section1 {
    padding: 9.583vw 0 10.416vw
}

.section1 .title {
    text-align: center;
    margin: 0 0 10.677vw
}

.section1 .title .p1 {
    font-style: normal;
    font-weight: 400;
    line-height: 190%;
    letter-spacing: 0.333vw;
}

.section1 .title .more {
    width: 14.47917vw;
    height: 3.4375vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-style: normal;
    font-weight: 500;
    margin: 1.19792vw auto 0;
    background: #272727
}

.section1 .content {
    padding: 0 1.5625vw 0 0;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    position: relative
}

.section1 .content .position {
    position: absolute;
    left: 3.22917vw;
    top: .83333vw;
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 190%;
    writing-mode: vertical-lr;
    /* 降级方案 */
    transform: rotate(180deg);
    /* writing-mode: sideways-lr; */
    letter-spacing: 5.76px;
    white-space: nowrap;
    padding-right: 2vw;
}

.section1 .content>div {
    width: fit-content;
    display: flex;
    align-items: flex-end;
    flex-direction: column
}

.section1 .content .big_img {
    width: 85.46875vw;
    height: 32.91667vw;
    position: relative;
    overflow: hidden
}

.section1 .content .big_img img {
    width: 100%;
    height: 120%;
    max-height: unset;
    top: -14.58333vw;
    position: relative
}

.section1 .content .flex1 {
    width: 100%;
    margin: 1.25vw 0 3.645vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.55208vw;
    padding-left: 4.531vw;
}

.section1 .content .flex1 .p1 {
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 190%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 5.5%;
    text-underline-offset: 16%;
    text-underline-position: from-font;
    letter-spacing: 0.187vw;
}

.section1 .content .flex1 .p2 {
    width: 39.583vw;
    color: #000;
    font-style: normal;
    font-weight: 400;
    font-family: 'LXGW WenKai', "PingFang SC", "Microsoft YaHei";
    line-height: 140%;
    margin: .52083vw 0 0 0
}

.section1 .content .flex2 {
    width: 39.583vw;
    padding: 0 1.97917vw 0 0
}

.section1 .content .flex2 .p1 {
    color: #272727;
    font-style: normal;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 5.5%;
    text-underline-offset: 16%;
    text-underline-position: from-font;
    letter-spacing: 0.187vw;
}

.section1 .content .flex2 .dis {
    /* display: grid;
    grid-template-columns: repeat(5,1fr); */
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 1.09375vw;
    margin-top: 1.354vw;
    /* flex-shrink: 0 */
}

.section1 .content .flex2 .dis .img {
    width: auto;
    height: 3.0729vw;
    display: flex;
    align-items: center;
}

@keyframes yAnimate {
    0% {
        transform: translateY(20px);
        opacity: 0
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.section2 {
    padding: 0 16.5625vw;
    position: relative;
    overflow: hidden;
    
}

.section2 .top {
    position: absolute;
    right: 5.52083vw;
    bottom: 7.60417vw;
    width: 1.5625vw;
    height: fit-content
}

.section2 .t {
    margin: 0 0 0 1.04167vw
}

.section2 .t .title {
    color: #272727;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 2.083vw;
    letter-spacing: 0.187vw;
}

.section2 .t .cut {
    height: 8.4vw;
}

.section2 .t .cut .cut_list {
    display: none
}

.section2 .t .cut .cut_list.on {
    display: block;
    animation: yAnimate .6s ease forwards
}

.section2 .t .p1 {
    color: #272727;
    font-style: normal;
    font-weight: 700;
    margin: 0 0 .20833vw
}

.section2 .t .p2 {
    width: 31.25vw;
    color: #272727;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25vw;
}

.section2 .content {
    margin: 3.38542vw 0 0 0;
    position: relative
}

.section2 .content .swiper-pagination {
    position: static;
    height: 1px;
    background: #ADADAD;
    margin: 1.71875vw 1.04167vw 0 1.04167vw
}

.section2 .content .swiper-pagination .swiper-pagination-progressbar-fill {
    height: 2px;
    background: #4F4F4F;
    top: -1px
}

.section2 .content .swiper1 {
    width: 83.07292vw;
    margin: 0
}

.section2 .content .swiper1 .swiper-slide {
    cursor: pointer
}

.section2 .content .swiper1 .swiper-slide.swiper-slide-active .img .scale {
    height: 100%
}

.section2 .content .swiper1 .swiper-slide.swiper-slide-active .img .scale:after {
    opacity: 1
}

.section2 .content .swiper1 .swiper-slide.swiper-slide-active .img .scale .text {
    opacity: 1
}

.section2 .content .swiper1 .swiper-slide .img {
    height: 22.65625vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.section2 .content .swiper1 .swiper-slide .img:hover .scale:after {
    opacity: 1
}

.section2 .content .swiper1 .swiper-slide .img:hover .scale .text {
    opacity: 1
}

.section2 .content .swiper1 .swiper-slide .img .scale {
    position: relative;
    height: 90%;
    width: 100%;
    transition: all 600ms
}

.section2 .content .swiper1 .swiper-slide .img .scale:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
    opacity: 0;
    transition: .6s ease
}

.section2 .content .swiper1 .swiper-slide .img .scale .text {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #FFF;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    opacity: 0;
    transition: .6s ease
}

.section2 .content .swiper1 .swiper-slide .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: all 600ms
}

.section2 .content2 {
    margin: 8.15625vw auto 8.33333vw;
    width: 31.25vw;
    color: #000;
    text-align: center;
    font-style: normal;
    font-weight: 400;
      line-height: 2;
    letter-spacing: 0.125vw;
}

.section3 {
    border-top: 1px solid #272727;
    border-bottom: 1px solid #272727;
    display: flex;
    justify-content: space-between
}

.section3 .l {
    /* padding: 17.39583vw 0 0 4.94792vw */
    position: relative;
    flex: 1;
}

.section3 .l .t1 {
    width: 27.21875vw;
    text-align: right;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.section3 .l .t1 .p1 {
    color: #000;
    text-align: right;
    font-style: normal;
    font-weight: 400;
    line-height: 112%;
    margin: 0 0 2.343vw;
    letter-spacing: 0.312vw;
}

.section3 .l .t1 .p2 {
    color: #000;
    text-align: right;
    font-style: italic;
    font-weight: 400;
    line-height: 143%;
    letter-spacing: 1.44px;
}

.section3 .l .t2 {
    margin: 3.54167vw 0 0 16.40625vw;
    color: #000;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 112%;
    letter-spacing: 5.76px;
    width: 27.29167vw
}

.section3 .img {
    width: 45.52083vw;
    height: 56.14583vw
}

.section3 .img img {
    width: 100%;
    height: 100%
}

.section4 {
    margin: 160px auto;
    width: 1176px;
    height: 784px
}

.section4 img {
    width: 100%;
    height: 100%
}

.section6 {
    padding: 8.33333vw 1.97917vw;
    position: relative;
    display: flex;
    gap: .9375vw;
    overflow: hidden
}

.section6 .item1 {
    width: 29.53125vw;
    margin: 17.34375vw 0 0 0
}

.section6 .item1 .p1 {
    color: #000;
    font-style: italic;
    /* line-height: 48%; */
    letter-spacing: 1.2px;
    margin: 0 0 .9375vw 0;
}

.section6 .item1 .img {
    width: 100%;
    height: 19.79167vw
}

.section6 .item1 .img img,
.section6 .item1 .img video {
    width: 100%;
    height: 100%
}

.section6 .big_img {
    width: 35vw;
    height: 45.10417vw
}

.section6 .big_img img,
.section6 .big_img video {
    width: 100%;
    height: 100%
}

.section6 .r {
    margin: 1.09375vw 0 0 0
}

.section6 .r .title {
    margin: 0 0 0 1.04167vw;
    letter-spacing: 0.26vw;
}

.section6 .r .title p {
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    position: relative
}

.section6 .r .title p:nth-child(2) {
    left: 0;
    text-align: right;
}

.section6 .r .img {
    margin: 8.28125vw 0 0 0;
    width: 29.53125vw;
    height: 19.79167vw
}

.section6 .r .img img,
.section6 .r .img video {
    width: 100%;
    height: 100%
}

.section6 .r .pick {
    color: #000;
    font-style: italic;
    line-height: 48%;
    letter-spacing: 1.2px;
    margin: .98958vw 0 0 0
}

.section7 {
    display: flex;
    height: 61.19792vw
}

.section7 .l {
    width: 50%;
    height: 100%;
    padding: 11.09375vw 0 0 0;
    position: relative;
    z-index: 2
}

.section7 .l .img {
    width: 12.65625vw;
    height: 7.29167vw;
    margin: 0 auto 21.97917vw
}

.section7 .l .img img {
    width: 100%;
    height: 100%;
    /* 小图位尺寸保持原样（12.65625vw × 7.29167vw，1440px 下约 182×102）；
       放入的 1:1 方图按比例居中裁切填满该位，不拉伸、不缩小留白 */
    object-fit: cover;
    object-position: center center
}

.section7 .l .p1 {
    width: 27.48958vw;
    margin: auto;
    color: #EADFDA;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 112%;
    letter-spacing: 0.114vw;
}

.section7 .img2 {
    width: 50%;
    height: 100%
}

.section7 .img2 img {
    width: 100%;
    height: 100%
}

.section8 {
    padding: 7.91667vw 1.92708vw 5.46875vw 1.97917vw;
    position: relative;
    display: flex;
    overflow: hidden
}

.section8 .title {
    position: absolute;
    top: 18.85417vw;
    left: 19.53125vw;
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    z-index: 1;
    letter-spacing: 0.666vw;
}

.section8 .title p {
    position: relative
}

.section8 .title p:last-child {
    left: 14.47917vw;
    top: 1.25vw
}

.section8 .p1 {
    width: 28.80208vw;
    color: #000;
    font-style: italic;
    font-weight: 300;
    line-height: 149%;
    position: absolute;
    top: 35.98958vw;
    left: 34.21875vw;
}

.section8 img {
    width: 100%;
    height: 100%
}

.section8 .img1 {
    width: 30.10417vw;
    height: 43.33333vw;
    margin: 6.5625vw 4.47917vw 0 0
}

.section8 .center .img2 {
    width: 16.04167vw;
    height: 22.76042vw;
    margin: 0 0 12.76042vw 12.03125vw
}

.section8 .center .img3 {
    width: 26.45833vw;
    height: 17.70833vw
}

.section8 .r {
    margin: 2.70833vw 0 0 11.875vw;
    position: relative
}

.section8 .r .img4 {
    width: 21.5625vw;
    height: 32.29167vw
}

.section8 .r .img5 {
    position: absolute;
    top: 22.76042vw;
    left: -6.71875vw;
    z-index: 2
}

.section8 .r .img5 .pic {
    width: 14.47917vw;
    height: 19.21875vw
}

.section8 .r .img5 .p2 {
    color: #000;
    font-style: italic;
    width: 15.9375vw;
    font-weight: 300;
    line-height: 149%;
    margin: .41667vw 0 0 0;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: .6s ease
}

.loading.on {
    opacity: 0;
    transition-delay: 1.2s;
    cursor: unset
}

.loading.on .fist {
    transform: scale(20)
}

.loading .fist {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 5s linear
}

.loading .fist img {
    width: 100%;
    height: 100%
}

.loading .p1 {
    font-size: 400px;
    font-weight: bold;
    transition: 5s linear
}

.loading .p1 img {
    filter: invert(100%)
}

.foot {
    position: relative
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    gap: 12px;
    z-index: 999999
}

.cursor .circle {
    width: 18px;
    height: 18px;
    background: #272727;
    border-radius: 50%
}

.cursor p {
    color: #272727;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

@media screen and (max-width: 1024px) {
    .banner {
        margin-top: 60px
    }

    .banner video {
        height: auto
    }

    .section1 {
        padding: 50px 5%
    }

    .section1 .title {
        margin: 0 0 50px
    }

    .section1 .title .more {
        width: 170px;
        height: 40px;
        font-size: 13px;
        margin: 15px auto 0
    }

    .section1 .content {
        padding: 0
    }

    .section1 .content>div {
        align-items: unset
    }

    .section1 .content .position {
        display: none
    }

    .section1 .content .big_img {
        width: 100%;
        height: auto
    }

    .section1 .content .big_img img {
        top: 0;
        transform: none !important
    }

    .section1 .content .flex1 {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .section1 .content .flex1 .p1 {
        margin: 0 0 20px
    }

    .section1 .content .flex1 .p2 {
        margin: 0;
        width: 100%
    }

    .section1 .content .flex2 {
        flex-direction: column;
        align-items: unset;
        margin: 22px 0 0 0;
        width: 100%;
    }

    .section1 .content .flex2 .p1 {
        text-align: left
    }

    .section1 .content .flex2 .dis {
        width: 100%;
        height: auto;
        gap: 22px;
        margin-top: 20px;
    }

    .section1 .content .flex2 .dis .img {
        height: 40px;
    }

    .section2 {
        padding: 50px 5%
    }

    .section2 .t .cut {
        height: 180px;
    }

    .section2 .t .title {
        line-height: unset;
        margin: 0 0 20px
    }

    .section2 .t .p1 {
        margin: 0 0 10px
    }

    .section2 .t .p2 {
        line-height: 1.5;
        width: 100%
    }

    .section2 .content {
        margin: 30px 0 0 0
    }

    .section2 .content .swiper1 {
        width: 100%;
        height: auto
    }

    .section2 .content .swiper1 .swiper-slide .img {
        height: 400px
    }

    .section2 .content .swiper1 .swiper-slide .img .scale {
        height: 100%
    }

    .section2 .content .swiper1 .swiper-slide .img .scale::after {
        opacity: 1
    }

    .section2 .content .swiper1 .swiper-slide .img .scale .text {
        opacity: 1
    }

    .section2 .content .swiper-pagination {
        margin: 30px auto 0
    }

    .section2 .content2 {
        width: 100%;
        margin: 50px auto 0
    }

    .section2 .top {
        right: 50px;
        bottom: 20px;
        width: 15px
    }

    .section2 .top svg {
        width: 100%
    }

    .section3 {
        height: auto;
        flex-direction: column
    }

    .section3 .img {
        width: 100%;
        height: auto
    }

    .section3 .l {
        
    }

    .section3 .l .t1 {
        width: 100%;
        text-align: left;
        position: static;
        transform: none;
        padding: 5%;
    }

    .section3 .l .t1 .p1 {
        margin: 0 0 15px
    }

    .section3 .l .t1 .p1,
    .section3 .l .t1 .p2 {
        text-align: left
    }

    .section3 .l .t2 {
        margin: 25px 0 0 0;
        width: 100%;
        text-align: left
    }

    .section4 {
        width: 90%;
        height: auto;
        margin: 60px auto
    }

    .section6 {
        padding: 50px 5%;
        flex-direction: column;
        gap: 15px
    }

    .section6 .item1 {
        width: 100%;
        margin: 0
    }

    .section6 .item1 .p1 {
        margin: 0 0 15px;
        line-height: inherit;
    }

    .section6 .item1 .img {
        height: auto
    }

    .section6 .big_img {
        width: 100%;
        height: auto
    }

    .section6 .r {
        margin: 20px 0 0 0;
        width: 100%
    }

    .section6 .r .title {
        margin: 0
    }

    .section6 .r .title p:nth-child(2) {
        text-align: left;
        left: 30px;
    }

    .section6 .r .img {
        width: 100%;
        height: auto;
        margin: 25px 0 0 0
    }

    .section6 .r .pick {
        margin: 15px 0 0 0
    }

    .section7 {
        flex-direction: column;
        height: auto
    }

    .section7 .img2 {
        width: 100%;
        height: auto
    }

    .section7 .l {
        width: 100%;
        height: 400px;
        padding: 50px 5%
    }

    .section7 .l .img {
        width: 100px;
        height: auto;
        margin: 0 auto 200px
    }

    .section7 .l .p1 {
        width: 100%
    }

    .section8 {
        padding: 70px 5%;
        flex-direction: column
    }

    .section8 .title {
        position: static;
        margin: 0 0 30px
    }

    .section8 .p1 {
        position: static;
        width: 100%;
        left: 0;
        top: 0
    }

    .section8 .img1 {
        width: 100%;
        height: auto;
        margin: 15px 0 15px
    }

    .section8 .center .img2 {
        margin: 0 0 15px;
        width: 100%;
        height: auto
    }

    .section8 .center .img3 {
        width: 100%;
        height: auto
    }

    .section8 .r {
        margin: 15px 0 0 0
    }

    .section8 .r .img4 {
        width: 100%;
        height: auto
    }

    .section8 .r .img5 {
        position: static;
        margin: 15px 0 0 0
    }

    .section8 .r .img5 .pic {
        width: 100%;
        height: auto
    }

    .section8 .r .img5 .p2 {
        width: 100%;
        margin: 15px 0 0 0
    }

    .loading,
    .cursor {
        display: none
    }

    .home {
        overflow: hidden
    }
}

/* ==================== Section 03b / 案例精选 · 项目集 ==================== */
.sec-portfolio {
    padding: 6vw 4vw 8vw;
    background: #F7F3EF;
    border-top: 1px solid #272727;
}

.sec-portfolio .pf-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.sec-portfolio .pf-tabs {
    display: flex;
    justify-content: center;
    gap: 4.5vw;
    list-style: none;
    margin: 0 0 5vw;
    padding: 0 0 0.6vw;
    border-bottom: 1px solid #d9d3c5;
}

.sec-portfolio .pf-tab {
    position: relative;
    padding: 0.8vw 0;
    font-size: 16px;
    letter-spacing: 2px;
    color: #555;
    cursor: pointer;
    transition: color .3s;
    user-select: none;
    -webkit-user-select: none;
}

.sec-portfolio .pf-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.6vw;
    width: 0;
    height: 2px;
    background: #C5302A;
    transition: width .35s ease, left .35s ease;
}

.sec-portfolio .pf-tab:hover {
    color: #222;
}

.sec-portfolio .pf-tab.active {
    color: #C5302A;
    font-weight: 600;
}

.sec-portfolio .pf-tab.active::after {
    width: 100%;
    left: 0;
}

.sec-portfolio .pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4vw 2vw;
}

.sec-portfolio .pf-item {
    cursor: pointer;
    background: transparent;
}

.sec-portfolio .pf-item .pf-img-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e3d6;
    position: relative;
}

.sec-portfolio .pf-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s ease;
    transform-origin: center center;
}

.sec-portfolio .pf-item:hover img {
    transform: scale(1.06);
}

.sec-portfolio .pf-item .pf-cap {
    margin-top: 0.9vw;
    font-size: 15px;
    color: #272727;
    letter-spacing: 1.2px;
    line-height: 1.4;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
}

.sec-portfolio .pf-item .pf-num {
    flex: none;
    font-size: 12px;
    color: #9a9a9a;
    letter-spacing: 1px;
}

/* ===== Lightbox (fullscreen slideshow) ===== */
.pflb {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    -webkit-tap-highlight-color: transparent;
}

.pflb.open {
    opacity: 1;
    pointer-events: auto;
}

.pflb-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflb-img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 8px 60px rgba(0, 0, 0, .45);
}

.pflb-img.anim-prev {
    transform: translateX(-40px);
    opacity: 0;
}
.pflb-img.anim-next {
    transform: translateX(40px);
    opacity: 0;
}

/* 切图等待指示：由 JS 延迟 220ms 才点亮，命中内存缓存时不会闪一下 */
.pflb-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: rgba(255, 255, 255, .8);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: pflb-spin .8s linear infinite;
    transition: opacity .2s ease;
}

.pflb-spin.on {
    opacity: 1;
}

@keyframes pflb-spin {
    to { transform: rotate(360deg); }
}

.pflb-cap {
    position: absolute;
    top: 3vw;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 300;
}

.pflb-counter {
    position: absolute;
    bottom: 3vw;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
}

.pflb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    font-family: serif;
}

.pflb-btn:hover {
    background: rgba(255, 255, 255, .28);
}

.pflb-prev { left: 3vw; }
.pflb-next { right: 3vw; }

.pflb-close {
    position: absolute;
    top: 3vw;
    right: 3vw;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pflb-close:hover {
    background: rgba(255, 255, 255, .2);
}

/* prevent background scroll while lightbox is open */
html.pflb-locked,
body.pflb-locked {
    overflow: hidden;
}

/* ===== Mobile (≤ 768px) ===== */
@media (max-width: 768px) {
    .sec-portfolio {
        padding: 14vw 5vw 16vw;
    }
    .sec-portfolio .pf-tabs {
        gap: 8vw;
        flex-wrap: wrap;
        margin-bottom: 8vw;
    }
    .sec-portfolio .pf-tab {
        font-size: 13px;
        padding: 2vw 0;
        letter-spacing: 1px;
    }
    .sec-portfolio .pf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5vw 4vw;
    }
    .sec-portfolio .pf-item .pf-cap {
        font-size: 12px;
        margin-top: 2vw;
        gap: .5em;
    }
    .sec-portfolio .pf-item .pf-num {
        font-size: 11px;
    }
    .pflb-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .pflb-prev { left: 4vw; }
    .pflb-next { right: 4vw; }
    .pflb-img { max-width: 92vw; max-height: 75vh; }
    .pflb-cap { top: 5vw; font-size: 12px; }
    .pflb-close { top: 5vw; right: 5vw; width: 38px; height: 38px; font-size: 16px; }
    .pflb-counter { bottom: 5vw; font-size: 11px; }
}