/* 装备页面布局 */
.equipment-main {
    display: flex;
    padding: 2rem 5%;
    gap: 2rem;
}

/* 侧边栏样式 */
.category-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.category-group,
.filter-group {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.category-group h3,
.filter-group h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
}

.category-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-btn:hover,
.category-btn.active {
    background-color: #e8f5e9;
    color: #2c5530;
}

.price-sort {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

/* 装备展示区域 */
.equipment-content {
    flex-grow: 1;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* 装备卡片样式 */
.equipment-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
}

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(44, 85, 48, 0.9);
    padding: 0.75rem;
    text-align: center;
    transition: bottom 0.3s ease;
}

.equipment-card:hover .quick-view {
    bottom: 0;
}

.preview-btn {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: #fff;
    color: #2c5530;
}

.equipment-info {
    padding: 1.5rem;
}

.equipment-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c5530;
}

.buy-btn {
    background-color: #2c5530;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #1a3c1d;
}

/* 预览模态框样式 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.preview-image {
    height: 400px;
    background-color: #f5f5f5;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-info {
    padding: 2rem;
}

.preview-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.preview-buy-btn {
    background-color: #2c5530;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-buy-btn:hover {
    background-color: #1a3c1d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .equipment-main {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }

    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
} 