/* 主页样式 */
.pl-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.pl-blur {
    filter: blur(50px);
}
.pl-visible {
    opacity: 1;
}

@keyframes blur-to-clear {
    0% {
        filter: blur(50px);
        opacity: 1;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes scale {
    0% {
        transform: scale(1.5);
        opacity: 0;
        -webkit-transform: scale(1.5);
        -moz-transform: scale(1.5);
        -ms-transform: scale(1.5);
        -o-transform: scale(1.5);
}

    to {
        transform: scale(1);
        opacity: 1;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
}
}
.pl-img.mini {
    background: var(--bg-image-desktop-mini) center/cover no-repeat;
}
.pl-img {
    background: var(--bg-image-desktop) center/cover no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 1;
    transition: opacity 1s;
}
/* 手机端适配优化 */
@media screen and (max-width: 768px) {
   
    #site-info {
        top: 30px;
        padding: 0 10px;
    }
    #site-title {
        font-size: 2em;
        padding: 0 5px;
        width: 70%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #site-title::after {
        height: 35px;
        top: 6px;
        width: 100%;
    }
    #site-subtitle {
        font-size: 1em;
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .scroll-down-bar {
        font-size: 16px;
        bottom: 10px;
    }
    .scroll-down-bar i {
        font-size: 2rem;
        padding-top: 1rem;
    }
    .video {
        min-height: 200px;
        height: 40vh;
    }
}

/* 超小屏幕进一步适配 */
@media screen and (max-width: 400px) {
    #site-title {
        font-size: 1.3em;
    }
    #site-subtitle {
        font-size: 0.9em;
    }
}
.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=);
    transition: opacity 0.5s;
}
.scroll-down-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.scroll-down-bar i {
    font-size: 3rem;
    font-weight: bold;
    display: inline-block;
    position: relative;
    padding-top: 2rem;
    transform: translateZ(0);
    animation: scroll-down 2.5s infinite;
}
@keyframes scroll-down {
    0% {
        opacity: 0.8;
        top: 0;
    }
    50% {
        opacity: 0.4;   
        top: -1em;
    }
    100% {
        opacity: 0.8;
        top: 0;
    }
}
#site-info {
    position: absolute;
    top: var(--index-title-info-top-height);

    width: 100%;
}
@keyframes show {
    0% {
        color: rgba(255, 255, 255, 0);
        text-shadow: transparent 2px 3px 10px;
    }

    81% {
        color: rgba(255, 255, 255, 0);
    }

    100% {
        color: rgb(255, 255, 255);
    }
}
#site-title {
    margin: 0px;
    color: var(--light-font);
    font-size: 3em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    animation: 1.5s linear 1s 1 normal both running show;
    margin: 0px auto !important;
    width: 100%;
    max-width: 100%;
    position: relative;
}
#site-title::after {
    content: "";
    position: absolute;
    left: 0px;
    margin: auto;
    border-radius: 12px;
    top: 11px;
    height: 55px;
    width: 110%;
    animation: 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.5s 1 normal both running color_change, 1.5s cubic-bezier(0.62, 0.21, 0.25, 1) 1.5s 1 normal both running swipe_box;
}
@keyframes color_change {
    0% {
        background: rgb(255, 255, 255);
    }

    100% {
        background: rgb(255, 255, 255,0.4);
    }
}
@keyframes swipe_box {
    0% {
        left: 0px;
        width: 0%;
    }

    50% {
        left: 0px;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 0%;
    }
}


#site-subtitle {
    color: var(--grey-font);
    font-size: 1.3em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    animation: 1.5s linear 1s 1 normal both running show;

}
#site-subtitle #subtitle {
    color: #fff;
    animation: 1.5s linear 1s 1 normal both running show;


}
#site-subtitle::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    margin: auto;
    border-radius: 12px;
    height: 30%;
    width: 0%;
    animation: 2s cubic-bezier(0.62, 0.21, 0.25, 1) 1.5s 1 normal both running color_change, 1.5s cubic-bezier(0.62, 0.21, 0.25, 1) 1.5s 1 normal both running swipe_box2;
}
@keyframes swipe_box2 {
    0% {
        left: 0px;
        width: 0%;
    }

    50% {
        left: 0px;
        width: 80%;
    }

    100% {
        left: 0px;
        width: 0%;
    }
}
.trap{
    width: 100%;
    height: 5vh;
}

 main{
    display: flex;
    flex-direction: column;
    width: 76vw;
    margin: 0 auto;
    margin-top: 2em;
    padding: 0 0em;
}
    .kks-news .news-item {
    margin-bottom: 1em;
}
.news-head h3 {
    color: #fff;
    font-weight: bold;
    position: relative;
    border-radius: 1em;
    display: inline-block;
    background: var(--public-color-theme);
    padding: 0.6em 2em 0.6em 4em;
    user-select: none;

}
.badge{
    background: #f5a623;
    color: white;
    font-size: 12px;
    padding: 5px 5px;
    border-radius: 5px;
    margin: 0 5px 0 0;
}
.news-head .more {
    padding: 0;
    float: right;
    transform-origin: top;
}
.news-head a {
    color: inherit;
    display: block;
    padding: 0.6em 1em;
}
.news-head .title i {
    top: 0;
    left: 0;
    padding: 0.9rem 0.9em;
    position: absolute;
    border-radius: 1em;
    background: rgba(0, 0, 0, .1);
}
.news-body{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}
.news-body .news-item {
    width: 48%;
    padding: 1em;
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 0 1em rgba(0, 0, 0, .1);
}
.news-body .news-item img {
    width: 100%;
    border-radius: 1em;
}
.news-body .news-item h3 {
    margin-top: 1em;
    font-size: 1.5em;
}
.news-body .news-item p {
    margin-top: 1em;
    color: #666;
}
.news-body .news-item .news-meta {
    margin-top: 1em;
    display: flex;
    justify-content: space-between;
}
.news-body .news-item .news-meta .news-time {
    color: #666;
}
.news-body .news-item .news-meta .news-read {
    color: #666;
}
.news-body .news-item .news-meta .news-read i {
    margin-right: 0.5em;
}
.news-article {
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    border-radius: 12px;
}
.kks-news{
    width: 74vw;
}
.auto-main-flex{
    width: 74vw;
}
.card-image{
    height: 0;
    padding-bottom: 62.5%;
    position: relative;

}
.card-image img{
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    width: 100%;
    border-radius: 12px;
}
.card-image:after {
    background: linear-gradient(transparent, #fff);
    bottom: -1px;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.card-info{
    padding: 1.5em;
    padding-top: .5em;
}
.card-info p {
    opacity: .5;
}
/* FLAX样式 */
    .container {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    
    /* 统一间距单位 */
    .container.s {
        --spacing: 0.5em;
        --padding: 10px;
    }
    .container.m {
        --spacing: 1em;
        --padding: 20px;
    }

    /* 通用列样式 */
    [class*="col-"] {
        background: #fff;
        border-radius: 12px;
        padding: 0;
        box-shadow: 0 0 1em rgba(0, 0, 0, .1);
    }

    /* 响应式列宽 */
     /* 响应式列宽 */
    .col-s-4 {
        flex: 0 0 calc(33.33% - var(--spacing)*2);
        margin: var(--spacing);
    }

    /* 添加手机端响应式 */
    @media screen and (max-width: 768px) {
        .col-s-4 {
            flex: 0 0 calc(100% - var(--spacing)*2) !important;
        }
        .auto-main-flex {
            width: 100vw;
            margin: 0 -3vw;
        }
         main {
            width: 100vw;
            margin: 0;
            padding: 0 3vw;
        }
        .kks-news{
            width: 90vw;
        }
    }
    /* 优化卡片通用样式 */
    .cardshadow {
        transition: transform 0.2s ease;
    }
    .cardshadow:hover {
        transform: translateY(-5px);
    }

    /* 合并重复的main样式 */
  

    /* 优化新闻标题样式 */
    .news-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 888;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
    background-color: white;
}
.header.notop{
    background-color: #fff;
    color:var(--public-fontcolor) !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.header.notop .head-left .head-toggle{
    white-space: nowrap;
        padding: 0.5rem 0.8rem;
        border-radius: 25px;
        position: relative;
        transition: transform 0.3s linear;
        -webkit-transition: transform 0.3s linear;
        -moz-transition: transform 0.3s linear;
        -ms-transition: transform 0.3s linear;
        -o-transition: transform 0.3s linear;
}
.header .head-left .head-toggle{
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
        border-radius: 25px;
        position: relative;
        transition: transform 0.3s linear
}
.trap{
    width: 100%;
    height: 5vh;
}
.header .head-left .head-toggle i{
    position: absolute;
    top: 30%;
    left: 40%;
    display:none;
}
.header .head-left .head-toggle:hover{
   
    background-color:var(--public-color-theme);
}
.header.notop .head-left .head-toggle:hover{
    color:var(--public-fontwhite);
    background-color:var(--public-color-theme);
}
.header .head-left .head-toggle:hover span{
    opacity: 0;
    
}
.header .head-left .head-toggle:hover i{
    display:block !important;
    z-index: 99;
    color: white;
}
.header .head-left .head-toggle:hover{
    transform:scale(0.9);
}
.tap-mini {
transition: transform 0.3s linear, box-shadow 0.3s linear;
}
.tap-mini:hover {
transform: scale(0.9);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.header.notop .head-right .menus_item a{
    color:var(--public-fontcolor) !important;
}
.header.notop .head-right .menus_item a:hover {
background-color: var(--public-color-theme);
color:var(--public-fontwhite) !important;
}
.header .head-left {
    display: flex;
    align-items: center;
    margin-left:10vw;
}

.header .head-left .head-logo img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
    border-radius: 5px;
}

.header .head-left .head-toggle {
    font-size: 19px;
    font-weight: bold;
}

.header .head-right {
    display: flex;
    align-items: center;
    margin-right: 5vw;
}

.header .head-right .menus_item {
    width: auto;
    padding: 0.5em 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    position: relative; /* 为了定位子菜单 */
 
}

.header .head-right .menus_item a {
    display: flex;
    align-items: center;
    border-radius: 100px;
    padding: 0.5rem 0.6rem;
    width: 100%;
    text-shadow: none !important;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: color 0.1s ease;
    transition: transform 0.3s linear;transition: opacity 0.3s ease-in-out;
   
}
.header .head-right .menus_item i{
    font-size: 1em;
    margin-right: 0.2em;
}
/* 添加hover效果 */
.header .head-right .menus_item a:hover {
    background-color: var(--public-color-theme);
    color: var(--public-fontwhite) !important;
    transform: scale(0.9);
}
.header .head-right .menus_item a:hover i{
  
    color: var(--public-fontwhite) !important;
}
/* 子菜单链接的hover效果 */
.header .head-right .menus_item .menus_item_child .recursion_menus_item a:hover {
    background-color: var(--public-color-theme);
    
}

/* 过渡效果 */
.header .head-right .menus_item .menus_item_child {
    
    width: 100px;
    position: absolute;
    visibility: hidden; /* 默认不可见 */
    opacity: 0; /* 默认透明 */
    transition: opacity 0.2s ease, visibility 0.2s ease; /* 添加过渡效果 */
    margin-top: 0; /* 去掉额外的间距 */
    background-color: var(--sidebar-bg);
  
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 20px -4px;
    border-radius: 5px;
    white-space: nowrap;
    padding: 2px 2px 4px 2px;
    top: 100%; /* 使子菜单位于父菜单下方 */
    left: 10%; /* 确保子菜单与父菜单对齐 */
    z-index: 1000; /* 确保子菜单在其他元素上方 */
    border-radius: 15px;
}
.header .head-right .menus_item .menus_item_child a{
   
}
.header .head-right .menus_item:hover .menus_item_child {
    visibility: visible; /* 悬停时可见 */
    opacity: 1; /* 悬停时不透明 */
}

.header .head-right .menus_item .menus_item_child .recursion_menus_item {
    display: flex;
    list-style: none;
    border-radius: 5px;
    margin: 0 4px;
    flex-direction: column;
    align-items: center;
    color:var(--public-fontcolor);
    
}
   .head-center{
        display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    color:black;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
}
#article-title{
    transition: opacity 0.1s ease-in-out;
    opacity: 1;
}

@media screen and (max-width: 1024px) {
     .head-toggle{
        display: none;
  }
  
}
@media screen and (max-width: 768px) {
    .header .head-right .menus_item{
        display: none;
  }
  .header .head-right .menus_item.mobile-menu{
    display: block !important;
  }
  .head-center{
    display: flex;
  }
  
}

#pjax-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, #a8ede9ac 0%, #fed6e3ac 100%);
   
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.loading-avatar{
    width: 100px;
         height: 100px;
         border-radius: 50%;
         position: absolute;
         left: 50%;
         top: 50%;
         margin-left: -50px;  /* 新增：向左偏移自身宽度的一半 */
         margin-top: -50px;   /* 新增：向上偏移自身高度的一半 */
         animation: avatarBlink 1.2s ease-in-out infinite, swing 2s ease-in-out infinite;
         box-shadow: 0 0 20px rgba(255,184,58,0.3);
         z-index: 1;
}
 @keyframes circle {
    0% { 
        
       /* 保持原始尺寸收缩 */
        clip-path: circle(100% at 50% 50%); /* 使用圆形裁剪 */
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        
         clip-path: circle(0% at 50% 50%); /* 收缩到中心点 */
        opacity: 0;
        transform: scale(1); 
    }
}

/* 保持其他动画关键帧不变 */
.circle-animation {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* 降低叠加层透明度 */
    animation: circle 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes avatarBlink {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

   .blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .blur-overlay.active {
    opacity: 1;
    visibility: visible;
  }

      .drawer-toggle {
        display: none;
        position: fixed;
        top: 15px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        z-index: 999;
        color: var(--public-fontcolor);
      }

       .drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

      .drawer.open {
        right: 0;
      }

      .drawer-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      .drawer-header {
        padding: 15px;
        display: flex;
        justify-content: flex-end;
      }

      .drawer-close {
        font-size: 24px;
        cursor: pointer;
        color: var(--public-fontcolor);
      }

      .drawer-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 20px;
      }

      .drawer-menu a {
        display: flex;
        align-items: center;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 700;
        color: var(--public-fontcolor);
        text-decoration: none;
        transition: background-color 0.3s ease;
      }

      .drawer-menu a i {
        margin-right: 10px;
        font-size: 1.2em;
      }

      .drawer-menu a:hover {
        background-color: var(--public-color-theme);
        color: var(--public-fontwhite);
      }

      @media screen and (max-width: 768px) {
        .drawer-toggle {
          display: block;
        }
        .header .head-right .menus_item:not(.mobile-menu) {
          display: none;
        }
      }