/*首页前端小工具样式*/
.tab-widget-container {
    margin: 20px auto;
    border: var(--border-box);
    border-radius: var(--border-hd);
    overflow: hidden;
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f5f6f7;
    white-space: nowrap;
    overflow: auto;
}

/* Tab导航样式 */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 19px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tab-button.active {
    color: var(--MaincolorHover);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    display: flex;
    justify-content: center;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--MaincolorHover);
}

.tab-button:hover {
    color: var(--MaincolorHover);
}
.tab-content-container {
    padding: 0 20px 20px 20px;
}
/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 内容卡片样式 */
.content-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* 图片容器样式 */
.content-image {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-img {
    transform: scale(1.05);
}

/* 标题样式 */
.content-title {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    font-size: 14px;
    color: #999;
    box-sizing: border-box;
    font-weight: 500;
    min-height: 18px;
    margin: 8px 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-align: center;
}

/* Tab面板样式 */
.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .tab-button.active::after {
        width: calc(100% - 30px);
    }
}

@media (max-width: 576px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}