/* ==========================================
   内容中心页面样式
   ========================================== */

/* 顶部横幅 */
.vc-hub-hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.vc-hub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.vc-hub-hero .container {
    position: relative;
    z-index: 1;
}

.vc-hub-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.vc-hub-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.vc-hub-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 搜索框 */
.vc-hub-search {
    margin-bottom: 0;
}

.vc-hub-search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.vc-hub-search-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.vc-hub-search-wrapper .search-icon {
    color: var(--text-gray);
    flex-shrink: 0;
    margin-right: 12px;
}

.vc-hub-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 8px;
    color: var(--text-dark);
}

.vc-hub-search-input::placeholder {
    color: var(--text-light);
}

.vc-hub-search-btn {
    background: linear-gradient(135deg, var(--primary-color), #FF8533);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vc-hub-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

/* 主切换标签 */
.vc-hub-tabs-wrapper {
    background: white;
    padding: 40px 0 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.vc-hub-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.vc-hub-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
}

.vc-hub-tab:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.vc-hub-tab.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
    /* border-bottom: 4px solid var(--primary-color); */
}

.vc-hub-tab .tab-icon {
    color: var(--text-gray);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vc-hub-tab.active .tab-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.vc-hub-tab .tab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.vc-hub-tab .tab-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.vc-hub-tab.active .tab-title {
    color: var(--primary-color);
}

.vc-hub-tab .tab-count {
    font-size: 13px;
    color: var(--text-light);
}

/* 二级分类筛选 */
.vc-hub-filters-wrapper {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.vc-hub-filters {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}

.vc-hub-filters.active {
    display: flex;
    animation: fadeIn 0.4s ease-out forwards;
}

.vc-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vc-filter-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.vc-filter-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vc-filter-tag .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.vc-filter-tag.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* 内容展示区域 */
.vc-hub-content-wrapper {
    background: var(--bg-light);
    padding: 60px 0 80px;
}

.vc-hub-content {
    display: none;
}

.vc-hub-content.active {
    display: block;
    animation: fadeInContent 0.5s ease-out;
}

.vc-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 卡片样式 */
.vc-hub-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInCard 0.5s ease-out forwards;
}

.vc-hub-card:nth-child(1) { animation-delay: 0.1s; }
.vc-hub-card:nth-child(2) { animation-delay: 0.15s; }
.vc-hub-card:nth-child(3) { animation-delay: 0.2s; }
.vc-hub-card:nth-child(4) { animation-delay: 0.25s; }
.vc-hub-card:nth-child(5) { animation-delay: 0.3s; }
.vc-hub-card:nth-child(6) { animation-delay: 0.35s; }

.vc-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 106, 0, 0.15);
}

.vc-hub-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.vc-hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vc-hub-card:hover .vc-hub-card-image img {
    transform: scale(1.1);
}

.vc-hub-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.vc-hub-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 106, 0, 0.95);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.vc-hub-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vc-hub-card-badge-inline {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vc-hub-card-body {
    padding: 24px;
}

.vc-hub-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.vc-hub-card-date,
.vc-hub-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-hub-card-date svg,
.vc-hub-card-author svg {
    flex-shrink: 0;
}

.vc-hub-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.vc-hub-card-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.vc-hub-card:hover .vc-hub-card-title a {
    color: var(--primary-color);
}

.vc-hub-card-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vc-hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vc-hub-card:hover .vc-hub-card-link {
    gap: 10px;
}

.vc-hub-card-link svg {
    transition: transform 0.3s ease;
}

/* 产品卡片特殊样式 */
.vc-hub-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vc-hub-product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 加载更多 */
.vc-hub-load-more {
    text-align: center;
    margin-top: 40px;
}

.vc-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vc-load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.vc-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.vc-load-more-btn .load-more-spinner {
    display: none;
    animation: spin 1s linear infinite;
}

.vc-load-more-btn.loading .load-more-spinner {
    display: block;
}

.vc-load-more-btn.loading .load-more-text {
    display: none;
}

.vc-load-more-end {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 16px;
}

.vc-load-more-end svg {
    color: #4CAF50;
}

/* 空状态 */
.vc-hub-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.vc-hub-empty svg {
    color: var(--text-light);
    margin: 0 auto 20px;
}

.vc-hub-empty h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.vc-hub-empty p {
    font-size: 16px;
    color: var(--text-gray);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 1024px) {
    .vc-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .vc-hub-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .vc-hub-hero {
        padding: 60px 0 80px;
        min-height: 350px;
    }
    
    .vc-hub-title {
        font-size: 32px;
    }
    
    .vc-hub-subtitle {
        font-size: 16px;
    }
    
    .vc-hub-tabs {
        flex-direction: column;
        gap: 12px;
    }
    
    .vc-hub-tab {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .vc-hub-filters-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .vc-hub-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .vc-hub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vc-hub-search-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .vc-hub-search-input {
        width: 100%;
        padding: 12px;
    }
    
    .vc-hub-search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vc-hub-title {
        font-size: 28px;
    }
    
    .vc-hub-card-image {
        height: 200px;
    }
    
    .vc-load-more-btn {
        width: 100%;
    }
}
