/* 全局页面样式 */
.pagebody {
    min-height: 100vh;
    padding: 30px 0;
    position: relative;
}

.pagebody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.article {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}
.article h2{margin-bottom: 20px;}

/* 页面标题样式 */
.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 50px 0 60px 0;
    position: relative;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* 文章网格容器 */
.article-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

/* 单条文章样式 - 严格左右布局 */
.artlist {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
            0 20px 60px rgba(0,0,0,0.1),
            0 8px 25px rgba(0,0,0,0.05),
            inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    width: 100%;
    min-height: 140px;
    border: 1px solid rgba(255,255,255,0.2);
}

.artlist::before {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%);
    background-size: 200% 100%;
    animation: rainbow-flow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.artlist a {
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: all 0.3s ease;
}

/* 左侧图片区域 - 固定宽度 */
.artimg {
    margin-left:10px;
    border-radius: 5px;
    background: linear-gradient(135deg, #94bde5, #7cd1a7);
}
.artimg img {
    width: 220px !important;
    height:150px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(1.1);
}

.artlist:hover .artimg img {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(1.05) saturate(1.2);
}
/* 右侧内容区域 - 自适应宽度 */
.artinfo {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(248,249,250,0.05));
}

/* 文章标题样式 */
.article-title {
    margin-bottom:10px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.artlist:hover .article-title {
    color: #667eea;
    transform: translateX(5px);
}

.artinfo h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.artlist:hover .artinfo h2 {
    color: #667eea;
    transform: translateX(5px);
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
}
/* 文章摘要 */
.artinfo .artsummary {
    color: #495057;
    line-height: 1.8;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
    font-weight: 400;
    width:90%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 分页样式 */
.turnpage {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 100px 40px;
    color: rgba(255,255,255,0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.empty-state::before {
    content: '✨';
    font-size: 5rem;
    display: block;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 2rem;
    color: white;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.9;
}
/* 动画效果 */
@keyframes rainbow-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}


.turnpage {
    margin:20px auto;
    width:90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow:
            0 8px 32px 0 rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.turnpage a,
.turnpage span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* 普通链接样式 */
.turnpage a {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.turnpage a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.5s;
}

.turnpage a:hover::before {
    left: 100%;
}

.turnpage a:hover {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow:
            0 0 20px rgba(0, 212, 255, 0.6),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
}

/* 当前页样式 */
.turnpage .current {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border: 1px solid #ff6b6b;
    box-shadow:
            0 0 25px rgba(255, 107, 107, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow:
                0 0 25px rgba(255, 107, 107, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
                0 0 35px rgba(255, 107, 107, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* 禁用状态样式 */
.turnpage .disabled {
    color: #666;
    background: rgba(102, 102, 102, 0.1);
    border: 1px solid rgba(102, 102, 102, 0.2);
    cursor: not-allowed;
    opacity: 0.5;
}

/* 前进后退按钮特殊样式 */
.turnpage a:first-child,
.turnpage a:last-child {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    color: #8a2be2;
}

.turnpage a:first-child:hover,
.turnpage a:last-child:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    box-shadow:
            0 0 20px rgba(138, 43, 226, 0.6),
            inset 0 0 20px rgba(138, 43, 226, 0.1);
}

/* 鼠标悬停时的粒子效果 */
.turnpage a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: particle 1s infinite;
}

@keyframes particle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

.turnpage a:hover::after {
    animation-play-state: running;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .turnpage {
        flex-wrap: wrap;
        gap: 6px;
        padding: 15px;
    }

    .turnpage a,
    .turnpage span {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* 加载时的波纹效果 */
.turnpage {
    position: relative;
}

.turnpage::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #8a2be2, #ff6b6b, #00d4ff);
    border-radius: 22px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    opacity: 0.3;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}