/* ==============================
   List Page Specific Styles
   ============================== */

/* 主容器 */
.list-container {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

/* 装饰性动态元素 */
.list-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    animation: float 15s infinite ease-in-out;
    z-index: -1;
}

.list-container::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -30px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(250, 208, 196, 0.1));
    animation: float 18s infinite ease-in-out reverse;
    z-index: -1;
}

/* 浮动动画 */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 页面头部 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.list-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(106, 17, 203, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 154, 158, 0.05) 0%, transparent 20%);
    z-index: -1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    color: #6a5acd;
    position: relative;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    border-radius: 2px;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
}

/* 视图选项 - 移除按钮样式，改为更柔和的装饰元素 */
.view-options {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.view-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a5acd;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.view-option.active {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    transform: scale(1.1);
}

.view-option:not(.active):hover {
    background: rgba(106, 92, 205, 0.1);
    transform: translateY(-3px);
}

/* 内容区域 */
.list-content {
    display: flex;
    gap: 30px;
}

/* 侧边栏 */
.filters-sidebar {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9a9e;
    color: #6a5acd;
    font-family: 'Orbitron', sans-serif;
}

.category-list {
    list-style: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 154, 158, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-link:hover::before {
    transform: translateX(100%);
}

.category-link:hover,
.category-link.active {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    color: #6a5acd;
    transform: translateX(5px);
}

.category-count {
    background: rgba(106, 92, 205, 0.1);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.category-link:hover .category-count,
.category-link.active .category-count {
    background: rgba(106, 92, 205, 0.2);
}

.sort-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a5acd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.sort-select:focus {
    outline: none;
    border-color: #6a5acd;
    box-shadow: 0 0 10px rgba(106, 92, 205, 0.2);
}

/* 游戏内容区域 */
.games-content {
    flex: 1;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-weight: 500;
    color: #666;
}

/* 移动端筛选按钮 */
.mobile-filters-btn {
    display: none;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.mobile-filters-btn i {
    margin-right: 8px;
}

/* 移动端筛选侧边栏 */
.mobile-filters-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.mobile-filters-content {
    background: white;
    margin: 20px;
    border-radius: 15px;
    padding: 25px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-filters-title {
    font-size: 1.5rem;
    color: #6a5acd;
    font-family: 'Orbitron', sans-serif;
}

.mobile-filters-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* 游戏容器 */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 游戏项目 */
.game-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.game-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-item:hover::before {
    opacity: 1;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.1);
}

.game-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-item:hover .game-cover img {
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9a9e 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.game-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-category {
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-rating .fas.fa-star {
    color: #ffc107;
}

.game-rating .fas.fa-star-half-alt {
    color: #ffc107;
}

.game-rating .far.fa-star {
    color: #ddd;
}

.rating-value {
    font-weight: 600;
    color: #666;
    margin-left: 5px;
}

.game-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-details,
.btn-play {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-details {
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    border: 1px solid rgba(106, 92, 205, 0.2);
}

.btn-details:hover {
    background: #6a5acd;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 92, 205, 0.2);
}

.btn-play {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #6a5acd;
    border: none;
}

.btn-play:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff9a9e);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-arrow:hover {
    background: #6a5acd;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(106, 92, 205, 0.2);
}

.pagination-pages {
    display: flex;
    gap: 10px;
}

.pagination-page {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-page:hover,
.pagination-page.active {
    background: #6a5acd;
    color: white;
    box-shadow: 0 5px 10px rgba(106, 92, 205, 0.2);
}

.pagination-page.active {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .list-content {
        flex-direction: column;
    }
    
    .filters-sidebar {
        flex: 0 0 auto;
    }
    
    .list-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-controls {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filters-sidebar {
        display: none;
    }
    
    .mobile-filters-btn {
        display: block;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .games-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .pagination-container {
        flex-wrap: wrap;
    }
    
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
}