/* 组队卡片广场页面样式 */

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.page-title p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选区域 */
.filter-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f8f8;
}

.filter-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-header h3 i {
    color: var(--primary-color);
}

.filter-body {
    padding: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.checkbox-group.horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

/* 卡片列表区域 */
.card-list-section {
    margin-bottom: 40px;
}

.card-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-list-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.view-options {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

.btn-icon.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 列表视图 */
.card-grid.list-view {
    grid-template-columns: 1fr;
}

.card-grid.list-view .team-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
        "header header header"
        "body body body"
        "footer footer footer";
}

.card-grid.list-view .card-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-grid.list-view .card-body {
    grid-area: body;
    display: flex;
    flex-wrap: wrap;
}

.card-grid.list-view .card-section {
    flex: 1;
    min-width: 300px;
}

.card-grid.list-view .card-message {
    flex: 1;
    min-width: 300px;
}

.card-grid.list-view .card-footer {
    grid-area: footer;
}

/* 卡片样式增强 */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(45deg) translate(20px, -40px);
    z-index: 0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 中式风格装饰 */
.main-content::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=200&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(15deg);
    z-index: -1;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 150px;
    height: 150px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=150&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(-15deg);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-options {
        width: 100%;
        justify-content: flex-end;
    }
    
    .filter-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-actions-bottom button {
        width: 100%;
    }
} 