

/* 字体*/
@font-face {
        font-family: "lovely";
        src: url("/XT/ziti/ziti.woff2") format("woff2");
        font-display: swap;
    }

    * {
        font-family: "lovely"
    }
/* 字体*/


/* 子比主题-封面缩略图经典组合特效*/
.item-thumbnail:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0);
  transition: background .35s;
  border-radius: 8px;
  z-index: 2;
  max-width: 765px;
  margin: 0 auto;
  pointer-events: none;
  padding-left: 10px
}

.item-thumbnail:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background: url(/XT/img/favicon.svg);background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
  -webkit-transform: scale(2);
  transform: scale(2);
  transition: opacity .35s,-webkit-transform .35s;
  transition: transform .35s,opacity .35s;
  transition: transform .35s,opacity .35s,-webkit-transform .35s;
  opacity: 0;
  pointer-events: none;
}

.item-thumbnail:hover:before {
  background: rgba(0,0,0,.5)
}

.item-thumbnail:hover:after {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1
}
/* 子比主题-封面缩略图经典组合特效 */

/*首页幻灯片过渡样式美化*/
.swiper-slide::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 58%;
    right: 0;
    bottom: 0;
    transform: scale(1.01);
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, var(--body-bg-color) 100%);
}
/*首页幻灯片过渡样式美化*/

/*鼠标移动图片外发光*/.wp-posts-content img:hover {box-shadow:0px 0px 8px #63B8FF;}

/* 子比主题分页当前页码渐变美化 - 经典粉色系 */
.pagenav .current {
    background: linear-gradient(to right, #ff6b9d, #f986a7, #ff9fbd) !important;
    color: #ffffff !important; 
    border: none !important; 
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3); 
}

/* 分页按钮hover效果 */
.pagenav a:hover {
    background: linear-gradient(to right, #ff7ca8, #fa96b2, #ffadc7) !important;
    color: #ffffff !important;
    border: none !important;
}
/* 子比主题分页当前页码渐变美化 - 经典粉色系 */

/*浮动圆点标题美化 - 赛博朋克风版*/
.article-content > .wp-posts-content > h2,
.article-content .wp-posts-content > h1,
.article-content .wp-posts-content > h3,
.article-content .wp-posts-content > h4,
.article-content .wp-posts-content > h5 {
    z-index: 1;
}

.article-content > .wp-posts-content > h2:hover::before,
.article-content > .wp-posts-content > h2:hover::after,
.article-content > .wp-posts-content > h1:hover::before,
.article-content > .wp-posts-content > h1:hover::after,
.article-content > .wp-posts-content > h3:hover::before,
.article-content > .wp-posts-content > h3:hover::after,
.article-content > .wp-posts-content > h4:hover::before,
.article-content > .wp-posts-content > h4:hover::after,
.article-content > .wp-posts-content > h5:hover::before,
.article-content > .wp-posts-content > h5:hover::after {
    transform: scale(1.2) !important;
    transform-origin: center !important;
    transition: 0.4s;
}

.article-content .wp-posts-content h2::before,
.article-content .wp-posts-content h1::before,
.article-content .wp-posts-content h3::before,
.article-content .wp-posts-content h4::before,
.article-content .wp-posts-content h5::before {
    box-shadow: none !important;
    opacity: 0.6 !important;
    border-radius: 50% !important;
    top: -5px !important;
    left: -10px !important;
    z-index: 1;
}

/* 赛博朋克配色 - 高对比霓虹感（新增h4/h5配色） */
.article-content .wp-posts-content h1::before,
.article-content .wp-posts-content h1::after {
    background: linear-gradient(#00FFFF, transparent) !important; /* h1：荧光青（主标题） */
}

.article-content .wp-posts-content h2::before,
.article-content .wp-posts-content h2::after {
    background: linear-gradient(#FF00FF, transparent) !important; /* h2：霓虹紫（二级标题） */
}

.article-content .wp-posts-content h3::before,
.article-content .wp-posts-content h3::after {
    background: linear-gradient(#FF9500, transparent) !important; /* h3：橙光色（三级标题） */
}

.article-content .wp-posts-content h4::before,
.article-content .wp-posts-content h4::after {
    background: linear-gradient(#39FF14, transparent) !important; /* h4：荧光绿（四级标题） */
}

.article-content .wp-posts-content h5::before,
.article-content .wp-posts-content h5::after {
    background: linear-gradient(#FF0000, transparent) !important; /* h5：霓虹红（五级标题） */
}

/* 各层级标题圆点尺寸（适配h4/h5） */
.article-content .wp-posts-content h1::before {
    height: 35px !important;
    width: 35px !important;
}

.article-content .wp-posts-content h2::before {
    height: 30px !important;
    width: 30px !important;
}

.article-content .wp-posts-content h3::before {
    height: 25px !important;
    width: 25px !important;
}

.article-content .wp-posts-content h4::before {
    height: 20px !important;
    width: 20px !important;
}

.article-content .wp-posts-content h5::before {
    height: 18px !important;
    width: 18px !important;
}

/* 次级小圆点样式（新增h4/h5） */
.article-content .wp-posts-content h2::after,
.article-content .wp-posts-content h1::after,
.article-content .wp-posts-content h3::after,
.article-content .wp-posts-content h4::after,
.article-content .wp-posts-content h5::after {
    content: "";
    opacity: 0.6;
    position: absolute;
    transition: 0.4s;
    border-radius: 50%;
}

.article-content .wp-posts-content h2::after {
    top: -15px;
    left: 15px;
    width: 10px;
    height: 10px;
}

.article-content .wp-posts-content h1::after {
    top: -13px;
    left: 25px;
    width: 13px;
    height: 13px;
}

.article-content .wp-posts-content h3::after {
    top: -17px;
    left: 12px;
    width: 8px;
    height: 8px;
}

.article-content .wp-posts-content h4::after {
    top: -12px;
    left: 10px;
    width: 7px;
    height: 7px;
}

.article-content .wp-posts-content h5::after {
    top: -10px;
    left: 8px;
    width: 6px;
    height: 6px;
}
/*浮动圆点标题美化 - 赛博朋克风版*/

/*【夏天屋】文章添加更新时间*/
.update-ts{
    padding-top: 6px;
    padding-bottom: 8px;
}
.article-update-tips {
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.38), rgba(139, 92, 246, 0.38));
    color: #333;
    margin: 0 0px 20px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}span1 { 
    color: #f60;
    margin: 0 3px;
}
/*【夏天屋】文章添加更新时间*/

/* 子比主题文章卡片 - 一行显示5个（宽屏适配） */
@media (min-width: 700px) {
    .posts-item.card {
        width: calc(20% - 16px);
        /* 20%对应5个卡片，16px为卡片间距补偿 */
        box-sizing: border-box; /* 防止宽度溢出 */
        margin: 0 8px 16px; /* 统一卡片间距 */
    }
    /* 适配卡片容器，防止布局错乱 */
    .posts-items.card-list {
        justify-content: flex-start;
        margin: 0 -8px; /* 抵消卡片左右间距 */
    }
}

/* 中等屏幕适配（可选）- 一行4个 */
@media (min-width: 500px) and (max-width: 699px) {
    .posts-item.card {
        width: calc(25% - 16px);
        box-sizing: border-box;
        margin: 0 8px 16px;
    }
}

/* 小屏适配（保持默认）- 一行2个 */
@media (max-width: 499px) {
    .posts-item.card {
        width: calc(50% - 16px);
        box-sizing: border-box;
        margin: 0 8px 16px;
    }
}
/* 子比主题文章卡片 - 一行显示5个（宽屏适配） */

/* 动态灵动岛美化样式 - 无外部资源版 */
.dynamic-island {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: center;
    width: auto;
    max-width: 80%;
    height: 48px;
    /* 玻璃拟态+渐变+动态光效底纹 */
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(17, 24, 39, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* 弹性过渡曲线 */
    overflow: hidden;
    z-index: 9999;
    padding: 0 24px 0 40px;
    opacity: 0;
    /* 多层高级阴影+3D效果 */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 2px 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* 动态光效背景 */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(64, 158, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(103, 194, 58, 0.05) 0%, transparent 20%);
    /* 3D微动效基础 */
    perspective: 1000px;
}

/* 显示时的弹性动画 */
.dynamic-island.active {
    transform: translateX(-50%) scale(1) rotateX(0deg);
    opacity: 1;
    animation: islandPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 3D弹出动画 */
@keyframes islandPop {
    0% { transform: translateX(-50%) scale(0.8) rotateX(10deg); opacity: 0; }
    70% { transform: translateX(-50%) scale(1.05) rotateX(-2deg); opacity: 1; }
    100% { transform: translateX(-50%) scale(1) rotateX(0deg); opacity: 1; }
}

.dynamic-island.inactive {
    transform: translateX(-50%) scale(0) rotateX(5deg);
    opacity: 0;
}

/* 内容文字美化（移除下划线相关） */
.island-content {
    opacity: 0;
    transition: opacity 0.8s ease-in-out 0.2s; /* 延迟显示更有层次 */
    font-weight: 500;
    flex-grow: 1;
    text-align: left;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 渐变文字+发光效果（移除下划线） */
.island-text {
    background: linear-gradient(90deg, #409eff, #67c23a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 12px;
    line-height: 1;
    /* 文字发光 */
    text-shadow: 0 0 8px rgba(64, 158, 255, 0.2);
}

.dynamic-island.active .island-content {
    opacity: 1;
}

/* SVG图标美化+3D动效（适配内置SVG） */
.island-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 图标多层光晕+边框 */
    box-shadow: 
        0 0 10px rgba(64, 158, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 图标呼吸光效 */
    animation: iconBreath 3s infinite ease-in-out alternate;
}

/* 图标呼吸动画 */
@keyframes iconBreath {
    0% { box-shadow: 0 0 10px rgba(64, 158, 255, 0.4); }
    100% { box-shadow: 0 0 18px rgba(64, 158, 255, 0.6); }
}

/* 悬浮交互升级（3D+光效） */
.dynamic-island:hover {
    height: 64px;
    border-radius: 32px;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 3px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    /* 3D倾斜微动效 */
    transform: translateX(-50%) scale(1) rotateX(-2deg) translateY(-2px);
    /* 悬浮时光效增强 */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(64, 158, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(103, 194, 58, 0.1) 0%, transparent 25%);
}

.dynamic-island:hover .island-icon {
    width: 36px;
    height: 36px;
    box-shadow: 
        0 0 20px rgba(64, 158, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    animation: iconBreath 1.5s infinite ease-in-out alternate;
}

/* 波动条形美化 */
.bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding-right: 5px;
    position: relative;
}

.bars::before {
    /* 条形背景光效 */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    background: radial-gradient(rgba(64, 158, 255, 0.1) 0%, transparent 80%);
    border-radius: 10px;
    z-index: -1;
}

.bar {
    width: 2.5px;
    height: 14px;
    background: linear-gradient(180deg, #409eff, #67c23a);
    border-radius: 2px;
    animation: bounce 1.5s infinite ease-in-out alternate;
    opacity: 0.8;
    /* 条形发光 */
    box-shadow: 0 0 3px rgba(64, 158, 255, 0.3);
}

/* 差异化动画+随机高度 */
.bar:nth-child(1) { animation-duration: 1.2s; height: 10px; animation-delay: 0.1s; }
.bar:nth-child(2) { animation-duration: 0.9s; height: 16px; animation-delay: 0.2s; }
.bar:nth-child(3) { animation-duration: 0.8s; height: 12px; animation-delay: 0.3s; }
.bar:nth-child(4) { animation-duration: 0.7s; height: 18px; animation-delay: 0.4s; }
.bar:nth-child(5) { animation-duration: 0.6s; height: 14px; animation-delay: 0.5s; }
.bar:nth-child(6) { animation-duration: 0.9s; height: 17px; animation-delay: 0.6s; }
.bar:nth-child(7) { animation-duration: 0.7s; height: 11px; animation-delay: 0.7s; }

/* 波动动画 */
@keyframes bounce {
    0% { 
        transform: scaleY(0.2); 
        background: linear-gradient(180deg, #409eff, #67c23a);
        opacity: 0.6;
        box-shadow: 0 0 3px rgba(64, 158, 255, 0.3);
    }
    50% { 
        transform: scaleY(1); 
        background: linear-gradient(180deg, #ff7f50, #ff4757);
        opacity: 1;
        box-shadow: 0 0 6px rgba(255, 127, 80, 0.5);
    }
    100% { 
        transform: scaleY(0.2); 
        background: linear-gradient(180deg, #409eff, #67c23a);
        opacity: 0.6;
        box-shadow: 0 0 3px rgba(64, 158, 255, 0.3);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dynamic-island {
        top: 60px;
        max-width: 90%;
        height: 42px;
        padding: 0 18px 0 35px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .dynamic-island:hover {
        height: 56px;
        transform: translateX(-50%) scale(1) rotateX(-1deg) translateY(-1px);
    }
    .island-content {
        font-size: 13px;
    }
    .island-icon {
        width: 24px;
        height: 24px;
    }
    .dynamic-island:hover .island-icon {
        width: 30px;
        height: 30px;
    }
    .bar {
        width: 2px;
        height: 12px;
    }
    @keyframes islandPop {
        0% { transform: translateX(-50%) scale(0.8) rotateX(5deg); opacity: 0; }
        70% { transform: translateX(-50%) scale(1.03) rotateX(-1deg); opacity: 1; }
        100% { transform: translateX(-50%) scale(1) rotateX(0deg); opacity: 1; }
    }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .dynamic-island {
        background: linear-gradient(135deg, rgba(30,30,30,0.85) 0%, rgba(40,40,40,0.9) 100%);
        border-color: rgba(255, 255, 255, 0.15);
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(64, 158, 255, 0.15) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(103, 194, 58, 0.1) 0%, transparent 20%);
    }
    .dynamic-island:hover {
        background: linear-gradient(135deg, rgba(30,30,30,0.9) 0%, rgba(40,40,40,0.95) 100%);
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(64, 158, 255, 0.2) 0%, transparent 25%),
            radial-gradient(circle at 90% 80%, rgba(103, 194, 58, 0.15) 0%, transparent 25%);
    }
}

/* 点击反馈动画 */
.dynamic-island:active {
    transform: translateX(-50%) scale(0.98) rotateX(0deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.1s ease;
}