* {
    margin: 0;
    padding: 0;
}

ul {
    padding: 0 !important;
    margin: 0 !important;
}

.line2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*设置对齐模式*/
    -webkit-line-clamp: 3;
    /*设置多行的行数*/
}

.no-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header {
    width: 100%;
    position: absolute;
    z-index: 999;
    background: transparent;
    transition: all 0.3s ease-out;
}


.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(284deg, #9C27B0 10%, #3150ed);
    box-shadow: 0 .02415rem .24155rem rgba(0, 0, 0, .4);
    /* 添加从上到下的动画起点到终点的变化 */
    animation: slideDown 0.3s ease-out forwards;
}

.header a img {

    height: 50%;
    width: auto;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}



/* !页脚 */
.footer-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f8f9fa' fill-opacity='1' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    /* width: 40px; */
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    filter: invert(1);
}

.footer-text {
    font-size: 14px;
    color: #6c757d;
}

.footer-col h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #0d6efd;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #6c757d;
}


/* !分页条 */
.pagebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagebar span {
    display: inline-flex;
    align-items: center;
}

.pagebar a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #fff;
    margin: 0 .1rem;
}

.pagebar a:hover {
    border-color: #9C27B0;
    color: #9C27B0;
    background-color: #f5f9ff;
}

/* 当前页码样式 */
.page-num-current {
    background-color: #9C27B0 !important;
    color: #fff !important;
    border-color: #9C27B0 !important;
    font-weight: 500;
}

/* 禁用状态样式（如前一页在第一页时） */
.page-pre a[href="javascript:;"] {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.page-pre a[href="javascript:;"]:hover {
    border-color: #ddd;
    color: #ccc;
    background-color: #f5f5f5;
}

/* 状态文本样式 */
.page-status {
    margin-right: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .pagebar {
        padding: 0.8rem 0.5rem;
        gap: 0.3rem;
    }

    .page-status {
        width: 100%;
        text-align: center;
        margin: 0 0 0.5rem 0;
        font-size: 0.85rem;
    }

    .pagebar a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        margin: 0 .1rem;
    }

    /* 在极小屏幕上可以进一步简化显示 */
    @media (max-width: 480px) {

        .page-index,
        .page-last {
            display: none;
            /* 在超小屏幕上隐藏首页和尾页 */
        }

        .pagebar a {
            padding: 0.35rem 0.7rem;
            margin: 0 .1rem;
        }
    }
}

/* 大屏幕优化 */
@media (min-width: 1024px) {
    .pagebar {
        gap: 0.8rem;
    }

    .pagebar a {
        padding: 0.6rem 1.2rem;
    }
}



/* 返回顶部按钮样式 */
.back-to-top {
    /* 固定在右下角 */
    position: fixed;
    bottom: 30px;
    right: 30px;

    /* 紫色背景 */
    background-color: #9c27b0;
    color: white;

    /* 圆形按钮 */
    width: 40px;
    height: 40px;
    border-radius: 50%;

    /* 图标居中 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 图标大小 */
    font-size: 24px;

    /* 去除默认边框 */
    border: none;

    /* 鼠标悬停时显示手型 */
    cursor: pointer;

    /* 阴影效果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    /* 过渡动画，使颜色变化更平滑 */
    transition: all 0.3s ease;

    /* 默认隐藏，可通过JavaScript控制显示 */
    opacity: 0;
    visibility: hidden;
}

/* 箭头浮动动画 */
.back-to-top i {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* 鼠标移入效果 */
.back-to-top:hover {
    background-color: white;
    color: #9c27b0;
    /* 增加悬停时的阴影效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 显示按钮的类 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}