/**
 * 安全洞察与深度实践 - 高级分页组件样式
 * WuThreat Premium Pagination Styles
 */

/* ========= 容器布局 ========= */
.pagination-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
	width: 100%;
}

.custom-pagination {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 100px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.custom-pagination:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========= 按钮通用样式 ========= */
.pagination-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0;
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 50%;
	background: transparent;
	border: 1px solid transparent;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
    overflow: hidden;
}

/* ========= 悬停效果 ========= */
.pagination-btn:not(.active):not(.disabled):hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pagination-btn:not(.active):not(.disabled):active {
	transform: translateY(0);
}

/* ========= 激活状态 ========= */
.pagination-btn.active {
	color: #000;
	background: #36c958; /* 主题绿 */
	font-weight: 700;
	box-shadow: 0 0 20px rgba(54, 201, 88, 0.4);
	cursor: default;
    border-color: #36c958;
}

/* ========= 禁用状态 ========= */
.pagination-btn.disabled {
	color: rgba(255, 255, 255, 0.15);
	cursor: not-allowed;
    background: transparent;
}

/* ========= 上一页/下一页特殊样式 ========= */
.pagination-btn.prev,
.pagination-btn.next {
	width: auto;
	padding: 0 16px;
	border-radius: 100px;
    gap: 6px;
}

.pagination-btn.prev i,
.pagination-btn.next i {
    width: 16px; 
    height: 16px;
    transition: transform 0.3s ease;
}

.pagination-btn.prev:hover i {
    transform: translateX(-3px);
}

.pagination-btn.next:hover i {
    transform: translateX(3px);
}

/* ========= 省略号 ========= */
.pagination-ellipsis {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 40px;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
    letter-spacing: 2px;
}

/* ========= 响应式 ========= */
@media (max-width: 768px) {
    .custom-pagination {
        gap: 6px;
        padding: 6px 10px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 12px;
    }
    
    .pagination-btn.prev span,
    .pagination-btn.next span {
        display: none; /* 移动端隐藏文字，只留箭头 */
    }
}
