/* 首页特定样式 */

/* 主内容区域 */
.main-content {
    position: relative;
    padding-bottom: 40px;
}

/* 欢迎横幅 */
.welcome-banner {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid var(--border-color);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.banner-content {
    flex: 1;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.banner-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 25px;
    max-width: 80%;
}

.banner-actions {
    display: flex;
    gap: 15px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.banner-image {
    width: 40%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-image:hover img {
    transform: scale(1.05);
}

/* 部分标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* 我的组队名片 */
.my-team-card {
    margin-bottom: 40px;
}

/* 组队卡片样式 */
.team-card {
    margin-bottom: 20px;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    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;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-stats {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.user-stats span {
    font-size: 0.9rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-stats i {
    color: var(--primary-color);
}

.card-status {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-status.active {
    color: #4caf50;
}

.card-status.active i {
    font-size: 0.7rem;
}

.card-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.card-section:last-child {
    border-bottom: none;
}

.card-section h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-section h4 i {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 3px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.card-message {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--light-text);
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f0f0f0;
    color: var(--light-text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* 组队卡片广场 */
.team-card-square {
    margin-bottom: 40px;
}

.filter-panel {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.range-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-panel .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .banner-image {
        width: 100%;
        height: 200px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
} 