  1→/* 分类内容展示模块样式 */
  2→
  3→.category-showcase-section {
  4→    padding: 80px 0;
  5→    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
  6→    position: relative;
  7→    overflow: hidden;
  8→}
  9→
 10→.category-showcase-section::before {
 11→    content: '';
 12→    position: absolute;
 13→    top: -50%;
 14→    right: -50%;
 15→    width: 200%;
 16→    height: 200%;
 17→    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
 18→    animation: rotate 30s linear infinite;
 19→    display: none;
 20→}
 21→
 22→@keyframes rotate {
 23→    from { transform: rotate(0deg); }
 24→    to { transform: rotate(360deg); }
 25→}
 26→
 27→.category-showcase-container {
 28→    max-width: 1280px;
 29→    margin: 0 auto;
 30→    padding: 0 20px;
 31→    position: relative;
 32→    z-index: 1;
 33→}
 34→
 35→/* 分类头部样式 */
 36→.category-showcase-header {
 37→    display: flex;
 38→    justify-content: space-between;
 39→    align-items: center;
 40→    margin-bottom: 50px;
 41→    padding-bottom: 25px;
 42→    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
 43→    animation: slideDown 0.6s ease-out;
 44→}
 45→
 46→@keyframes slideDown {
 47→    from {
 48→        opacity: 0;
 49→        transform: translateY(-30px);
 50→    }
 51→    to {
 52→        opacity: 1;
 53→        transform: translateY(0);
 54→    }
 55→}
 56→
 57→.category-title {
 58→    font-size: 36px;
 59→    font-weight: 700;
 60→    color: #1a202c;
 61→    margin: 0;
 62→    position: relative;
 63→    padding-left: 20px;
 64→}
 65→
 66→.category-title::before {
 67→    content: '';
 68→    position: absolute;
 69→    left: 0;
 70→    top: 50%;
 71→    transform: translateY(-50%);
 72→    width: 6px;
 73→    height: 80%;
 74→    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
 75→    border-radius: 3px;
 76→}
 77→
 78→.category-nav-wrapper {
 79→    display: flex;
 80→    align-items: center;
 81→    gap: 40px;
 82→}
 83→
 84→.category-nav {
 85→    display: flex;
 86→    gap: 15px;
 87→    align-items: center;
 88→    background: rgba(255, 255, 255, 0.5);
 89→    padding: 8px;
 90→    border-radius: 50px;
 91→    backdrop-filter: blur(10px);
 92→}
 93→
 94→.category-nav-item {
 95→    color: #4a5568;
 96→    text-decoration: none;
 97→    font-size: 16px;
 98→    font-weight: 500;
 99→    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.category-nav-item:hover::before {
    left: 100%;
}

.category-nav-item:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.category-more-btn {
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 25px;
    border: 2px solid #2563eb;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.category-more-btn:hover::before {
    left: 0;
}

.category-more-btn:hover {
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 文章卡片网格布局 - 左1右6布局 */
.category-posts-grid {
    display: none;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    animation: fadeIn 0.6s ease-out;
}

.category-posts-grid.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 第一个卡片（特色卡片）- 占据左侧两行 */
.category-post-card.featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* 单个文章卡片 */
.category-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.category-post-card:hover::before {
    opacity: 1;
}

.category-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* 卡片图片 */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    position: relative;
}

.category-post-card.featured .card-image {
    height: 70%;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-post-card:hover .card-thumb {
    transform: scale(1.1) rotate(2deg);
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-post-card:hover .card-image::after {
    opacity: 1;
}

/* 卡片内容 */
.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.category-post-card.featured .card-content {
    padding: 30px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;

    line-height: 1.5;
    transition: color 0.3s ease;
    
    /* 标题最多显示1行 - 使用max-height方法 */
    max-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.category-post-card.featured .card-title {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    
    /* 标题最多显示1行 - 使用max-height方法 */
    max-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.category-post-card:hover .card-title {
    color: #2563eb;
}

.card-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.7;
    flex: 1;
    
    /* 摘要最多显示2行 - 使用max-height方法 */
    max-height: 3.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-post-card.featured .card-excerpt {
    font-size: 16px;
    line-height: 1.7;
    /* 摘要最多显示2行 - 使用max-height方法 */
    max-height: 3.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #a0aec0;
    padding: 60px 0;
    font-size: 18px;
    font-weight: 500;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-post-card.featured {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .category-nav {
        gap: 10px;
    }
    
    .category-nav-item {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .category-more-btn {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .category-showcase-section {
        padding: 50px 0;
    }
    
    .category-showcase-header {
        flex-wrap: wrap;
        margin-bottom: 30px;
        gap: 20px;
    }
    
    /* 第一行：标题和更多按钮 */
    .category-title {
        font-size: 28px;
        flex: 1 1 auto;
        margin: 0;
    }
    
    .category-more-btn {
        display: none;
    }
    
    /* 第二行：导航栏占满整行 */
    .category-nav-wrapper {
        width: 100%;
        order: 3;
        position: relative;
        background: #ffffff;
        border-radius: 25px;
        padding: 10px 50px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* 左右箭头按钮 - 仅移动端显示 */
    .category-nav-wrapper::before,
    .category-nav-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: #f5f5f5;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="%23475569"><path d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px;
    }
    
    .category-nav-wrapper::before {
        left: 10px;
    }
    
    .category-nav-wrapper::after {
        right: 10px;
        transform: translateY(-50%) rotate(180deg);
    }
    
    .category-nav {
        width: 100%;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-nav-item {
        padding: 8px 16px;
        font-size: 14px;
        background: transparent;
        color: #94a3b8;
        border-radius: 20px;
        flex-shrink: 0;
        font-weight: 500;
    }
    
    .category-nav-item.active {
        background: #1e40af;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
    }
    
    .category-nav-item:hover {
        transform: none;
        color: #64748b;
    }
    
    .category-nav-item.active:hover {
        color: #ffffff;
    }
    
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-post-card.featured {
        grid-column: 1 / -1;
    }
    
    .card-image {
        height: 180px;
    }
    
    .category-post-card.featured .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .category-post-card.featured .card-title {
        font-size: 20px;
    }
    
    .card-excerpt {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .category-showcase-container {
        padding: 0 15px;
    }
    
    .category-title {
        font-size: 24px;
    }
}