@charset "utf-8";
/* CSS Document */

.tab-section {
    padding: 60px 0;
    background-image: url(../img/img_geometricbg.png);
    background-size: cover;
    background-position: center;
}

.tab-container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

/* 头部布局 */
.tab-header {
    margin-bottom: 40px;
}

.tab-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 按钮组样式 */
.tab-buttons {
    display: flex;
    gap: 15px;
}

.tab-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    background: #e0e0e0;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #06487a, #0a6aa5);
    color: white;
    box-shadow: 0 4px 12px rgba(6,72,122,0.3);
}

/* 更多按钮 */
.more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #06487a, #0a6aa5);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

/* 卡片与图片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: center;
}

.image-container {
    width: 280px;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

/* 切换动画 */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .image-container {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .card-image {
        position: absolute;
        left: 0;
        top: 0;
    }
}