/* 模组页面样式 */
/* 动态背景 */
body {
    background: transparent; /* 移除固定背景，让动态背景显示 */
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
}

/* 修复CSS变量定义 */
:root {
    --primary: var(--primary-color);
    --accent: var(--accent-color);
    --dark-text: var(--text-color);
    --light-text: var(--text-light);
    --primary-dark: var(--secondary-color);
}

/* 移除页面特定的背景和粒子定义，使用统一背景系统 */

.mods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

/* 修复页面头部文字显示 */
.page-header {
    padding: clamp(120px, 15vh, 140px) 0 clamp(30px, 5vh, 40px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.page-description {
    max-width: min(800px, 90vw);
    margin: 0 auto clamp(25px, 4vh, 40px);
    color: var(--light-text);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(12px, 2vh, 15px) clamp(15px, 3vw, 20px);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: clamp(20px, 4vh, 30px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(6px, 1.5vh, 8px) clamp(12px, 2.5vw, 15px);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 1);
}

.mod-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.mod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.2);
    border-color: var(--primary-color);
}

.mod-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mod-version {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
    background: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.mod-description {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.mod-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-tech {
    background: rgba(33, 150, 243, 0.2);
    color: #1976d2;
    border-color: #1976d2;
}

.category-magic {
    background: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
    border-color: #7b1fa2;
}

.category-world {
    background: rgba(76, 175, 80, 0.2);
    color: #388e3c;
    border-color: #388e3c;
}

.category-utility {
    background: rgba(255, 152, 0, 0.2);
    color: #f57c00;
    border-color: #f57c00;
}

.category-decoration {
    background: rgba(233, 30, 99, 0.2);
    color: #c2185b;
    border-color: #c2185b;
}

.search-container {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 3px solid var(--primary-color);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    background: white;
}

.filter-btn {
    padding: 15px 25px;
    border-radius: 50px;
    background: var(--primary-color);
    border: 3px solid var(--primary-color);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.filter-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    z-index: 1001;
    display: none;
}

.filter-dropdown.active {
    display: block;
}

.filter-option {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: rgba(33, 150, 243, 0.1);
}

.filter-option input {
    margin-right: 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .mods-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input, .filter-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .filter-dropdown {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    .mod-card {
        padding: 20px;
    }
    
    .page-header {
        padding: 100px 0 30px;
    }
}