﻿.abilities-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: #f5f5f7;
    padding: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 标签导航样式 */
.abilities-tabs {
    background: white;
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 55px;
    z-index: 10;
}

.tabs-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

    .tabs-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

.tab-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    background: #f9f9fa;
    border: 2px solid transparent;
}

    .tab-item:hover {
        background: #f0e9f4;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(96, 44, 137, 0.1);
    }

    .tab-item.active {
        background: white;
        border-color: #1788ff;
        box-shadow: 0 8px 25px rgba(96, 44, 137, 0.15);
    }

.tab-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tab-item:hover .tab-icon {
    filter: grayscale(0);
    opacity: 0.9;
}

.tab-item.active .tab-icon {
    filter: grayscale(0);
    opacity: 1;
}

.tab-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.tab-item:hover .tab-text {
    color: #1788ff;
}

.tab-item.active .tab-text {
    color: #1788ff;
    font-weight: 700;
}

.tab-indicator {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #1788ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.tab-item.active .tab-indicator {
    width: 40px;
}

/* 内容区域样式 */
.abilities-content {
    position: relative;
    min-height: 400px;
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .content-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.content-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

    .content-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.content-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

    .content-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.content-item:hover .content-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(96, 44, 137, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-item:hover .image-overlay {
    opacity: 1;
}

.view-detail {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.content-title {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    border-top: 1px solid #f0f0f0;
}

/* 无内容提示 */
.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

    .no-content img {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
        opacity: 0.6;
    }

    .no-content p {
        font-size: 18px;
        color: #999;
        font-weight: 500;
    }

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .abilities-container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .tab-item {
        min-width: 90px;
        padding: 12px 5px;
    }

    .tab-text {
        font-size: 12px;
    }

    .tab-icon {
        width: 30px;
        height: 30px;
    }
}
/* 图片展示优化 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定3列，显示更整齐 */
    gap: 25px;
    padding: 20px;
}

.content-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

    .content-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(96, 44, 137, 0.15);
        border-color: #e0d0f0;
    }

.content-image {
    position: relative;
    width: 100%;
    height: 180px; /* 降低高度让图片更紧凑 */
    overflow: hidden;
    background: #f8f8f8;
}

    .content-image img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* 改为contain保持完整图片 */
        object-position: center;
        padding: 10px;
        transition: transform 0.5s ease;
    }

.content-item:hover .content-image img {
    transform: scale(1.03);
}

.content-title {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕2列 */
        gap: 20px;
    }

    .content-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr; /* 小屏幕1列 */
        gap: 15px;
    }

    .content-image {
        height: 200px; /* 手机端增加高度 */
    }

    .content-title {
        font-size: 13px;
        padding: 12px;
    }
}

@media (min-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr); /* 大屏幕4列 */
    }
}

/* 图片加载动画 */
.content-image img {
    animation: fadeInImage 0.5s ease;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 图片质量提示 */
.content-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-item:hover::after {
    opacity: 1;
}


/* Lightbox样式 - 放大版 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* 更深的背景 */
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 0; /* 去掉padding，让图片更大 */
}

.lightbox-content {
    position: relative;
    max-width: 95%; /* 增加到95% */
    max-height: 95%; /* 增加到95% */
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 90vh; /* 增加到90vh，占据更多垂直空间 */
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }

.close-btn {
    position: absolute;
    top: -15px;
    right: 0;
    color: white;
    font-size: 50px; /* 更大的关闭按钮 */
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: all 0.3s ease;
}

    .close-btn:hover {
        color: #ff6b6b;
        transform: scale(1.2);
    }

#lightboxCaption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px; /* 更大的字体 */
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 80%;
}

/* 弹性布局，自动适应容器  展示所有分类在同一水平线上 */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 或 space-between */
    align-items: center;
    gap: 8px 12px; /* 行间距8px，列间距12px */
    padding: 10px 0;
}

.tab-item {
    flex: 0 0 auto;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f9f9fa;
    border: 2px solid transparent;
    box-sizing: border-box;
}