
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    list-style: none;
    word-wrap: break-word;
}

body {
    color: #fff;
    line-height: 1.3;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden !important;
}

main {
    background-color: #121417;
    position: relative;
    z-index: 4;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.vlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.vlines span {
    display: block;
    float: left;
    width: 20%;
    height: 100%;
    border-right: 1px solid rgba(100, 100, 100, 0.1);
}

p {
    font-size: 15px;
    font-weight: 300;
    font-family: 'Rubik', sans-serif;
    color: #ddd;
    line-height: 1.8;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

img {
    width: 100%;
    height: auto;
}

span,
a,
a:hover {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.section-padding {
     padding: 0px 40px;
}

.o-hidden {
    overflow: hidden;
}

.position-re {
    position: relative;
}

.full-width {
    width: 100% !important;
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-fixed {
    background-attachment: fixed;
}

.valign {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
   
}

.v-middle {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 15px;
    display: inline-block;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.4);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #0DD3C5;
}

/* ----------------------------------------------------------------     [ End Basics ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 02 Start Buttons ]-----------------------------------------------------------------*/
.butn {
    padding: 15px 20px;
    background: #333;
    border: 1px solid transparent;
    position: relative;
    z-index: 3;
    -webkit-transition: all .4s;
    transition: all .4s;
    cursor: pointer;
    outline: none !important;
    overflow: hidden;
}

.butn span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.butn:before,
.butn:after {
    content: '';
    width: 0;
    height: 100%;
    background: #0DD3C5;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: width 0.4s;
    transition: width 0.4s;
    z-index: 1;
    opacity: .4;
}

.butn:after {
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    opacity: 1;
}

.butn:hover:before,
.butn:hover:after {
    width: 100%;
}

.butn:hover:after {
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
}

.butn:hover span {
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
}

.butn-bg {
    background: #222;
    border-color: #222;
    color: #fff;
}

.butn-bg:before,
.butn-bg:after {
    background: #fff;
}

.butn-bg:hover span {
    color: #222;
}

.butn-light {
    background: #fff;
}

.butn-light:before,
.butn-light:after {
    background: #0DD3C5;
}

.butn-light:hover span {
    color: #fff;
}

.butn-light span {
    color: #222;
}

.butn-bord {
    background: transparent;
    border: 1px solid #eee;
}

.butn-bord:before,
.butn-bord:after {
    background: #0DD3C5;
}

.butn-bord:hover {
    border-color: #0DD3C5;
}

.butn-bord:hover span {
    color: #fff;
}

.button-top {
    font-size: 15px;
    position: fixed;
    bottom: -40px;
    right: 40px;
    cursor: pointer;
    -webkit-transition: all .8s;
    transition: all .8s;
    z-index: 99;
}

.button-top a {
    font-family: 'Rubik', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    position: absolute;
    top: 20px;
    left: 0;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.button-top a:after {
    content: '';
    width: 15px;
    height: 1px;
    background-color: #fff;
    position: absolute;
    bottom: 5px;
    left: -20px;
}

.button-show {
    bottom: 60px;
}

/* ----------------------------------------------------------------     [ End Buttons ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 03 Start Navbar ]-----------------------------------------------------------------*/
.side-menu .logo {
    width: 80px;
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 999;
}

.side-menu .icon-open {
    display: inline-block;
    position: fixed;
    top: 40px;
    right: 40px;
    width: 36px;
    color: #fff;
    z-index: 999;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
}

.side-menu .icon-open span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 2px;
    background-color: #fff;
    float: left;
    -webkit-transition: all .4s;
    transition: all .4s;
}

.side-menu .icon-open span:first-child {
    -webkit-transition-delay: .3s;
    transition-delay: .3s;
}

.side-menu .icon-open span:nth-of-type(2) {
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
}

.side-menu .nav-menu {
    position: fixed;
    width: 100%;
    height: 0;
    background-color: rgba(25, 25, 26, 0.97);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .4s;
    transition: all .4s;
}

.side-menu .nav-menu:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: -1;
    background-color: rgba(15, 15, 16, 0.8);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .4s;
    transition: all .4s;
}

.side-menu .nav-menu .valign {
    height: 100%;
    z-index: 4;
}

.side-menu ul {
    width: 100%;
    text-align: center;
    margin: 0;
    opacity: 0;
    -webkit-transform: translateY(-200px);
    transform: translateY(-200px);
    -webkit-transition: all .4s;
    transition: all .4s;
}

.side-menu li {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #eee;
}

.side-menu li:last-of-type {
    margin-bottom: 0;
}

.side-menu li:hover,
.side-menu li .active {
    color: #0DD3C5;
}

.side-menu .menu-open {
    opacity: 1;
    visibility: visible;
    height: 100%;
    -webkit-transition: all .7s;
    transition: all .7s;
}

.side-menu .menu-open:after {
    opacity: 1;
    visibility: visible;
    height: 100%;
    -webkit-transition: all .7s;
    transition: all .7s;
    -webkit-transition-delay: .4s;
    transition-delay: .4s;
}

.side-menu .menu-open ul {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    -webkit-transition: all .7s;
    transition: all .7s;
    -webkit-transition-delay: .6s;
    transition-delay: .6s;
}

.side-menu .icon-active .hover {
    opacity: 0;
}

.side-menu .menu-item-list {
    cursor: pointer;
}

.side-menu .menu-item-list .drop {
    display: none;
}

.side-menu .menu-item-list .drop .menu-item {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
}

/* ----------------------------------------------------------------     [ End Navbar ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 04 Start Header ]-----------------------------------------------------------------*/
.header {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 3;
}



.header .caption p {
    color: #eee;
    font-size: 18px;
    margin: 15px 0;
}

.header .button-scroll {
    position: absolute;
    bottom: 5%;
    left: calc(50% - 13px);
    width: 26px;
    height: 44px;
    border-radius: 15px;
    border: 2px solid #fff;
    cursor: pointer;
    z-index: 9;
}

.header .button-scroll span {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    position: absolute;
    left: calc(50% - 3px);
    background: #fff;
    -webkit-animation: scroll .5s infinite alternate;
    animation: scroll .5s infinite alternate;
}

.min-header {
    min-height: 80vh;
}

@keyframes scroll {
    0% {
        top: 50%;
    }

    50% {
        top: 55%;
    }

    100% {
        top: 60%;
    }
}

@-webkit-keyframes scroll {
    0% {
        top: 50%;
    }

    50% {
        top: 55%;
    }

    100% {
        top: 60%;
    }
}

/* ----------------------------------------------------------------     [ End Header ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 05 Start Portfolio ]-----------------------------------------------------------------*/
.portfolio .row {
    padding: 0 25px;
}

.portfolio .filtering .filter {
    display: inline-block;
}

.portfolio .filtering span {
    color: #eee;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 8px 20px;
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.portfolio .filtering span:after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: #0DD3C5;
    position: absolute;
    left: 0;
    bottom: -10px;
    opacity: 0;
    -webkit-transition: all .4s;
    transition: all .4s;
}

.portfolio .filtering .active {
    color: #0DD3C5;
}

.portfolio .filtering .active:after {
    bottom: 0;
    opacity: 1;
}




.portfolio .item-img {
    position: relative;
}

.portfolio .item-img:hover .item-img-overlay {
    visibility: visible;
    opacity: 1;
}

.portfolio .item-img:hover p,
.portfolio .item-img:hover h6 {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.portfolio .item-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 16, 0.9);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.portfolio .item-img-overlay .overlay-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 100%;
    overflow: hidden;
}

.portfolio .item-img-overlay .icon {
    position: absolute;
    left: calc(50% - 20px);
    bottom: calc(50% - 20px);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-size: 40px;
}

.portfolio .item-img-overlay p {
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-transform: translateY(200px);
    transform: translateY(200px);
    -webkit-transition: all .5s;
    transition: all .5s;
}

.portfolio .item-img-overlay h6 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-top: 5px;
    -webkit-transform: translateY(150px);
    transform: translateY(150px);
    -webkit-transition: all .5s;
    transition: all .5s;
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
}

.style2 .container-fluid {
    padding: 0 100px;
    position: relative;
}

.style2 .container-fluid .layout {
    position: fixed;
    top: 50%;
    left: 30px;
    font-size: 30px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.style2 .container-fluid .show-filter-button {
    opacity: 1;
    visibility: visible;
}

.style2 .row {
    padding: 0;
}

.style2 .filtering {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 88;
    opacity: 0;
    visibility: hidden;
}

.style2 .filter-show {
    opacity: 1;
    visibility: visible;
}

.style2 .active {
    margin-top: -30px;
}

/* ----------------------------------------------------------------     [ End Portfolio ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 06 Start Testimonials ]-----------------------------------------------------------------*/
.testimonials .big-title h2 {
    font-size: 70px;
    font-weight: 200;
}

.testimonials .big-title h2 span {
    font-weight: 700;
}

.testimonials .item .icon {
    width: 50px;
    margin-bottom: 30px;
}

.testimonials .item p {
    margin-bottom: 50px;
    font-size: 20px;
    font-style: italic;
}

.testimonials .item .client-area .info h6 {
    font-weight: 500;
    display: inline-block;
}

.testimonials .item .client-area .info span {
    color: #0DD3C5;
    font-weight: 200;
    font-style: italic;
    margin-left: 10px;
}

.testimonials .owl-carousel .owl-stage-outer {
    padding-bottom: 30px;
}

.testimonials .owl-theme .owl-dots {
    float: right;
    margin-top: 0 !important;
}

/* ----------------------------------------------------------------     [ End Testimonials ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 07 Start clients ]-----------------------------------------------------------------*/
.clients {
    padding: 80px 0;
}

.clients .client-logo {
    opacity: .7;
    padding: 40px 20px;
}

.clients .client-logo:hover {
    opacity: 1;
}

.clients img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: all .5s;
    transition: all .5s;
}

.clients img:hover {
    -webkit-filter: none;
    filter: none;
}

/* ----------------------------------------------------------------     [ End clients ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 08 Start About ]-----------------------------------------------------------------*/
.about .stories {
    margin-bottom: 80px;
}

.about .stories h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
    z-index: 2;
}

.about .stories h6:after {
    content: '';
    width: 30px;
    height: 1px;
    background-color: #0DD3C5;
    position: absolute;
    left: -40px;
    bottom: 50%;
}

.about .stories h4 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.about .services {
    margin-top: 80px;
}

.about .services .item {
    text-align: center;
    padding: 0 15px;
}

.about .services .item .icon {
    color: #ccc;
    font-size: 40px;
    margin-bottom: 30px;
}

.about .services .item h6 {
    margin-bottom: 10px;
}

/* ----------------------------------------------------------------     [ End About ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 09 Start Blog ]-----------------------------------------------------------------*/
.blog .post {
    padding: 0 15px;
}

.blog .post:hover img {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
}

.blog .post-img {
    position: relative;
}

.blog .post-img .img {
    overflow: hidden;
}

.blog .post-img img {
    -webkit-transition: all .7s;
    transition: all .7s;
}

.blog .post-img .date {
    position: absolute;
    top: 25px;
    left: -25px;
    padding: 10px;
    background-color: #222;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.blog .post-img .date:after {
    content: '';
    width: 30px;
    height: 1px;
    position: absolute;
    bottom: 50%;
    right: -25px;
    background-color: #eee;
}

.blog .post-content {
    margin-top: 30px;
}

.blog .post-content h5 {
    font-size: 18px;
    margin-bottom: 15px;
}

.blog .post-content .tags a {
    font-size: 13px;
    color: #999;
}

.blog .post-content .more {
    margin-top: 30px;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #0DD3C5;
}

.blog .post-content .more:hover {
    color: #0DD3C5;
}

/* ----------------------------------------------------------------     [ End Blog ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 10 Start Contact ]-----------------------------------------------------------------*/
.contact .info .item .icon {
    font-size: 25px;
    color: #0DD3C5;
    margin-bottom: 30px;
}

.contact .info .item .cont h6 {
    font-size: 15px;
    margin-bottom: 10px;
}

.contact .info .item .cont p {
    font-size: 14px;
}

.contact .form input,
.contact .form textarea {
    color: #fff;
    font-weight: 600;
    width: 100%;
    padding: 20px;
    border: 0;
    background: #050505;
}

.contact .form textarea {
    height: 160px;
    max-height: 160px;
    max-width: 100%;
    margin-bottom: 10px;
}

/* ----------------------------------------------------------------     [ End Contact ]-----------------------------------------------------------------*/
/* ----------------------------------------------------------------     [ 11 Start Footer ]-----------------------------------------------------------------*/
footer {
    background-color: #0F1010;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 0;
    z-index: 1;
}
footer {
       padding-left: 40px;
}
footer div {
     color: #484848;
}

footer .contact-info p {
    margin-bottom: 5px;
    color: #777;
    font-size: 20px;
    font-weight: 400;
   
}


footer .contact-info a:hover {
    color: #0DD3C5;
}

footer .social a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #222;
    margin: 15px 5px;
    text-align: center;
}

footer .social a:hover {
    color: #0DD3C5;
    background: #222;
}

/* ----------------------------------------------------------------     [ End Footer ]-----------------------------------------------------------------*/
/* ---------------------------------------------------------------- 	 [ 12 Responsive ]-----------------------------------------------------------------*/
@media screen and (max-width: 991px) {
    .mb-md50 {
        margin-bottom: 50px;
    }

    .mb-md30 {
        margin-bottom: 30px;
    }

    .mb-md0 {
        margin-bottom: 0;
    }

    .hide-md {
        display: none !important;
    }

    .bg-fixed {
        background-attachment: scroll !important;
    }

    .header .caption h1 {
        font-size: 40px !important;
    }

    .about .stories h4 {
        font-size: 24px;
        font-weight: 500;
    }


}

@media screen and (max-width: 767px) {
    .mb-sm80 {
        margin-bottom: 80px;
    }

    .mb-sm50 {
        margin-bottom: 50px;
    }

    .mb-sm30 {
        margin-bottom: 30px;
    }

    .header .caption {
        text-align: center;
    }

    .header .caption br {
        display: none;
    }

    .style2 .container-fluid {
        padding: 0 15px;
    }

    .style2 .container-fluid .layout {
        display: none;
    }

    .style2 .filtering {
        position: static;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
    }

    .style2 .filtering br {
        display: none;
    }

    .style2 .active {
        margin-top: 50px;
    }



    .about .stories h4 {
        font-size: 20px;
        line-height: inherit;
        letter-spacing: 0;
    }

    .blog .post-content h5 {
        font-size: 16px;
        line-height: 1.5;
    }

    footer .text-right,
    footer .contact-info {
        text-align: center !important;
    }
}

@media screen and (max-width: 480px) {
    .side-menu .logo {
        left: 20px;
        top: 20px;
        width: 60px;
    }

    .side-menu .icon-open {
        right: 20px;
        top: 20px;
        width: 30px;
    }

    .side-menu .icon-open span {
        width: 6px;
        height: 6px;
    }

    .side-menu li {
        font-size: 30px;
    }

    .button-top {
        right: 20px;
    }

    .header .caption h1 {
        font-size: 35px;
    }

    .portfolio .row {
        padding: 0;
    }

    .portfolio .filtering {
        text-align: left !important;
    }

    .portfolio .filtering span {
        margin-bottom: 10px;
        display: block;
    }

    .portfolio .filtering span:last-of-type {
        margin-bottom: 0;
    }
    .header .caption h2{
    font-size: 26px;
    }
}

.avatar img {
    width: 120px;
        border-radius: 50%;
}



.header .caption h1 {
    text-align: center;
    font-size: 84px;
    font-weight: 900;
}
.header .caption h1 b{
color: #ff8b00;
}
.header .caption h2{
margin-top: 20px;
text-align: center;
}
.header .caption a{
font-size: 36px;
    margin-top: 8px;
    text-align: center;
    text-decoration: underline;
}
.container{
    width:auto
}
.row{
        text-align: center;
}

footer .contact-info{
    text-align: left;
}




     /* 筛选器样式 */
        .filtering {

        }
        .filter span {
            display: inline-block;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }
        .filter span:hover {
        }
        .filter span.active {

        }
        
        /* 瀑布流布局样式 */
        .image-gallery {
            column-count: 4;
            column-gap: 15px;
            margin-top: 34px;
        }
        .image-gallery .gallery-item {
            width: 100%;
            height: auto;
            break-inside: avoid;
            margin-bottom: 15px;
            border-radius: 8px;
            cursor: pointer;
            display: block;
            transition: all 0.4s ease;
            transition: opacity 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡 transform 和 box-shadow */
        }
        .image-gallery .gallery-item.hidden {
            transform: scale(0.8);
            opacity: 0;
            height: 0;      
            margin: 0;
            padding: 0;
            border: none;
            overflow: hidden;
        }
        .image-gallery .gallery-item:hover{
           opacity: 0.4;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.4); /* 添加黑色阴影 */

        }

        @media (max-width: 900px) { .image-gallery { column-count: 2; } }
        @media (max-width: 720px) { .image-gallery { column-count: 1; } }
        
        /* 弹窗样式 */
        .modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.9);display:flex;justify-content:center;align-items:center;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility .4s ease;overflow:hidden}.modal.active{opacity:1;visibility:visible}.modal-content{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center}#modal-image{max-width:95%;max-height:95%;object-fit:contain;transform-origin:center center;transition:transform .2s linear;cursor:grab;-webkit-touch-callout:none}#modal-image.dragging{cursor:grabbing}.close-button,.prev-button,.next-button{z-index:10}.close-button{position:absolute;top:15px;right:20px;color:#fff;font-size:40px;font-weight:700;cursor:pointer}.prev-button,.next-button{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-size:45px;padding:16px;-webkit-user-select:none;user-select:none}.prev-button{left:5px}.next-button{right:5px}@media (max-width:768px){.prev-button,.next-button{font-size:30px;padding:10px}.close-button{font-size:30px}}





                /* --- 导航栏容器 --- */
        #nav-container {
             /* 关键：给容器一个高度，让占位符能撑开空间 */
             /* JS会自动计算并设置占位符高度，这里只是为了布局 */
             padding: 40px 0;
        }


        /* 
         * --- 关键改动：导航栏初始样式 ---
         * 我们从一开始就让它水平居中
        */
        .filtering {
            position: relative; /* 使用相对定位，以便 transform 生效且不脱离文档流 */
            left: 50%;
            transform: translateX(-50%);

            
            
            /* 关键：平滑过渡动画，这是实现“渐变”的核心 */
            transition: all 0.4s ease-in-out;
        }

        .filtering .filter {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .filtering .filter span {
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
            white-space: nowrap; /* 防止文字换行 */
        }

        .filtering .filter span.active {
 
        }

        /* --- 吸顶后的“药丸”样式 --- */
        .filtering.sticky {
            position: fixed;
            top: 20px;
            
            /* 
             * 水平居中方式 (left, transform) 与初始状态完全相同！
             * 因此这部分不会产生动画。
            */
            
            /* 变化的只是外观 */
            width: auto; /* 宽度由内容决定 */
            background-color: rgba(20, 20, 20, 0.9);
            backdrop-filter: blur(8px);
            border-radius: 50px;
            padding: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    
            z-index: 1000;
        }

        /* 吸顶后，内部文字和高亮项的样式 */
        .filtering.sticky .filter span {
     
        }

        .filtering.sticky .filter span.active {
      
        }

        /* 占位符样式 */
        #nav-placeholder {
            display: none;
        }


