/* 首页第二部分：内容展示区域 */
.content-section {
    margin: 32px 0;
    background-color: #ffffff;
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 第一个模块：标题 */
.content-section .section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* 第二个模块：Tab导航 */
.tab-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-nav-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Tab滚动按钮样式 */
.tab-scroll-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 6px;
}

.tab-scroll-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.tab-scroll-btn:hover {
    color: #3b82f6;
    background: transparent;
    transform: translateY(-1px);
    text-decoration: none;
}

.tab-scroll-btn:hover::before {
    width: 20px;
}

.tab-scroll-btn:active {
    transform: translateY(0) scale(0.98);
    color: #1e40af;
}

.tab-scroll-btn:focus {
    outline: none;
    color: #3b82f6;
}

.tab-scroll-btn:focus::before {
    width: 20px;
}

.tab-scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    color: #cbd5e1;
}

.tab-scroll-btn:disabled::before {
    display: none;
}

.tab-scroll-btn:disabled:hover {
    color: #cbd5e1;
    background: transparent;
    transform: none;
}

.tab-scroll-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.tab-scroll-btn:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.tab-scroll-btn:active:not(:disabled) svg {
    transform: scale(1.05);
}

.tab-scroll-left {
    margin-right: 12px;
}

.tab-scroll-right {
    margin-left: 12px;
}

.tab-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
    scroll-behavior: smooth;
    align-items: center;
}

/* 隐藏滚动条 */
.tab-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-btn {
    padding: 8px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.tab-btn:hover {
    color: #3b82f6;
    background: transparent;
    transform: translateY(-1px);
}

.tab-btn:hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.tab-btn:active {
    transform: translateY(0);
    color: #1e40af;
}

.tab-btn.active {
    color: #1e40af;
    background: transparent;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

/* 防止悬停状态与激活状态冲突 */
.tab-btn.active:hover::before {
    display: none;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 28px;
        opacity: 1;
    }
}


/* 第三个模块：卡片列表 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* 卡片网格布局已由 prompt-card.css 处理 */

/* 查看更多按钮 */
.more-button-container {
    text-align: center;
}

.more-button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background-color: #409eff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.more-button:hover {
    background-color: #66b1ff;
}

.more-button:active {
    background-color: #3a8ee6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .tab-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .tab-nav {
        justify-content: flex-start;
        padding: 10px 0;
        gap: 20px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .tab-scroll-btn {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .tab-scroll-btn svg {
        width: 18px;
        height: 18px;
    }

    .tab-scroll-left {
        margin-right: 8px;
    }

    .tab-scroll-right {
        margin-left: 8px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .content-section .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .tab-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    /* 响应式卡片样式由 prompt-card.css 处理 */
}