/* 游戏辅助列表页样式 */
:root {
    --primary-color: #6a3de8;
    --secondary-color: #4527a0;
    --accent-color: #00e5ff;
    --dark-bg: #1a1a2e;
    --card-bg: #242444;
    --text-light: #ffffff;
    --text-gray: #b8b8d4;
    --border-color: #34344e;
    --hover-color: #7b5ffa;
}

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(90deg, rgba(74, 47, 189, 0.2) 0%, rgba(74, 47, 189, 0.05) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(106, 61, 232, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.breadcrumb-label {
    color: var(--text-gray);
    font-size: 14px;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.breadcrumb-label i {
    margin-right: 6px;
    color: var(--accent-color);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px 0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.breadcrumb a:active {
    transform: translateY(1px);
    color: var(--hover-color);
}

.breadcrumb i.fas.fa-angle-right {
    margin: 0 10px;
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0.8;
}

.breadcrumb span:last-child {
    color: var(--accent-color);
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
}

/* 辅助工具列表容器 */
.tools-container {
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tools-header h1 {
    color: var(--text-light);
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
}

.tools-header h1 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.tools-filter {
    display: flex;
    gap: 15px;
}

.tools-filter select {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
}

.tools-filter select:focus {
    border-color: var(--accent-color);
}

/* 辅助工具列表 - 横向布局 */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 横向卡片样式 - 固定宽高 */
.tool-card {
    background: linear-gradient(145deg, var(--card-bg), #2a2a52);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    max-width: 1169px;
    min-height: 151px;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 图片区域 */
.tool-image {
    position: relative;
    overflow: hidden;
    width: 240px;
    min-width: 240px;
    height: 151px;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0) 50%);
    pointer-events: none;
}

/* 图片悬浮效果 */
.tool-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.tool-image:hover .tool-image-overlay {
    opacity: 1;
}

.tool-image-overlay span {
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.tool-image-overlay:hover span {
    background-color: var(--accent-color);
    color: #000;
}

.tool-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

/* 内容区域 */
.tool-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.tool-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.tool-main-info {
    flex: 1;
    min-width: 250px;
}

.tool-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-light);
}

.tool-category {
    display: inline-block;
    background: rgba(106, 61, 232, 0.2);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.tool-price-section {
    text-align: right;
    padding-left: 20px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.price small {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: normal;
}

/* 功能描述 */
.tool-description {
    margin: 10px 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    width: calc(100% - 120px);
}

/* 购买按钮 - 默认隐藏 */
.tool-action {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(10px);
}

.tool-card:hover .tool-action {
    opacity: 1;
    transform: translateY(0);
}

.tool-action:hover {
    background: linear-gradient(90deg, var(--hover-color), var(--primary-color));
    box-shadow: 0 5px 10px rgba(106, 61, 232, 0.3);
}

/* 分页包装器 */
.pagination-wrapper {
    margin-top: 40px;
    padding: 20px 0;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    padding: 0 20px;
}

.pagination .page-num, 
.pagination .page-index, 
.pagination .page-pre, 
.pagination .page-next, 
.pagination .page-last {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pagination .page-num::before, 
.pagination .page-index::before, 
.pagination .page-pre::before, 
.pagination .page-next::before, 
.pagination .page-last::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.pagination .page-num:hover::before, 
.pagination .page-index:hover::before, 
.pagination .page-pre:hover::before, 
.pagination .page-next:hover::before, 
.pagination .page-last:hover::before {
    left: 100%;
}

.pagination .page-num:hover, 
.pagination .page-index:hover, 
.pagination .page-pre:hover, 
.pagination .page-next:hover, 
.pagination .page-last:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(106, 61, 232, 0.3);
}

.pagination .page-num-current {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 12px rgba(106, 61, 232, 0.3);
    font-weight: 600;
}

/* 首页和末页按钮 */
.pagination .page-index,
.pagination .page-last {
    padding: 0 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 上一页和下一页按钮 */
.pagination .page-pre,
.pagination .page-next {
    padding: 0 15px;
}

.pagination .page-pre::after,
.pagination .page-next::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin: 0 5px;
}

.pagination .page-pre::after {
    content: '\f104';
    margin-right: 0;
    margin-left: 5px;
}

.pagination .page-next::after {
    content: '\f105';
    margin-left: 0;
    margin-right: 5px;
}

/* 状态信息美化 */
.pagination .page-status {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-gray);
    font-size: 14px;
    background-color: var(--card-bg);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* 分页符合样式 */
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PBoot分页样式在小屏幕上的调整 */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 30px;
        padding: 15px 0;
        border-radius: 8px;
    }

    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px;
    }

    .pagination .page-num,
    .pagination .page-index,
    .pagination .page-pre,
    .pagination .page-next,
    .pagination .page-last,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 6px;
    }

    .pagination .page-status {
        width: 100%;
        text-align: center;
        margin: 15px 0 0 0;
        padding: 8px 12px;
        font-size: 13px;
        order: 10;
        border-radius: 6px;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }

    .pagination .page-pre,
    .pagination .page-next {
        padding: 0 12px;
        font-weight: 600;
    }

    /* 隐藏过多的页码数字，只显示关键的 */
    .pagination .page-num:nth-child(n+8) {
        display: none;
    }
}

@media (max-width: 576px) {
    .pagination-wrapper {
        margin-top: 25px;
        padding: 12px 0;
        border-radius: 6px;
    }

    .pagination {
        gap: 3px;
        padding: 0 10px;
    }

    .pagination .page-num,
    .pagination .page-index,
    .pagination .page-pre,
    .pagination .page-next,
    .pagination .page-last,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 4px;
    }

    .pagination .page-pre,
    .pagination .page-next {
        padding: 0 8px;
    }

    /* 在极小屏幕上进一步限制显示的页码数量 */
    .pagination .page-num:nth-child(n+6) {
        display: none;
    }

    /* 简化按钮文字 */
    .pagination .page-index::after {
        content: '首';
    }
    .pagination .page-last::after {
        content: '末';
    }
    .pagination .page-index,
    .pagination .page-last {
        font-size: 0;
        padding: 0 8px;
    }

    /* 移动端触摸优化 */
    .pagination .page-num,
    .pagination .page-index,
    .pagination .page-pre,
    .pagination .page-next,
    .pagination .page-last {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 移动端活跃状态 */
    .pagination .page-num:active,
    .pagination .page-index:active,
    .pagination .page-pre:active,
    .pagination .page-next:active,
    .pagination .page-last:active {
        transform: scale(0.95);
        background-color: var(--primary-color);
        color: white;
    }
}

/* 移动端提示 */
.mobile-tip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 100;
    text-align: center;
    transition: opacity 0.5s;
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .tool-card {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .tools-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tools-filter {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tools-filter select {
        flex-grow: 1;
        min-width: 120px;
    }
    
    .tool-image {
        width: 200px;
        min-width: 200px;
    }
    
    .tool-card {
        height: auto;
    }
    
    .tool-description {
        width: 100%;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .breadcrumb {
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    .breadcrumb .current {
        padding: 3px 8px;
    }
    
    .tools-header h1 {
        font-size: 20px;
    }
    
    .tool-card {
        flex-direction: column;
        height: auto;
    }
    
    .tool-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
    
    .tool-content {
        padding: 15px;
    }
    
    .tool-info {
        flex-direction: column;
    }
    
    .tool-price-section {
        text-align: left;
        padding-left: 0;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .tool-action {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 15px;
        width: 100%;
    }
    
    .pagination {
        margin-top: 25px;
    }
    
    .tool-description {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .tools-filter {
        flex-direction: column;
        gap: 10px;
    }
    
    .tools-filter select {
        width: 100%;
    }
    
    .tool-image {
        height: 150px;
    }
    
    .tool-title {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    

}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 61, 232, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(106, 61, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 61, 232, 0);
    }
}

.tool-card:hover .tool-action {
    animation: pulse 1.5s infinite;
}
