/* 标签导航 */
.news-tabs {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    top: 60px;
    z-index: 90;
}

.news-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.tab {
    padding: 16px 24px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    .tab.active {
        color: #4a90ff;
        border-bottom-color: #4a90ff;
    }

    .tab:hover {
        color: #4a90ff;
    }

/* 主内容区域 */
.news-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .news-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

.news-image-wrapper {
    width: 180px;
    height: 140px;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0
}

.news-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.news-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #BBBBBB;
}

.news-tag {
    background: #ff9500;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

    .news-tag.php {
        background: #8b5cf6;
    }

    .news-tag.multi {
        background: #10b981;
    }

    .news-tag.pro {
        background: #ef4444;
    }

    .news-tag.v3 {
        background: #f59e0b;
    }


/* 响应式设计 */
@media (max-width: 768px) {
   
    .banner h1 {
        font-size: 32px;
    }

    .banner {
        padding: 40px 20px;
    }

        .banner::after {
            width: 200px;
            height: 200px;
            opacity: 0.5;
        }

    .news-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 14px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .news-item {
        flex-direction: column;
        padding: 12px;
    }

    .news-image-wrapper {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-content {
        padding: 0;
    }

    .news-title {
        font-size: 16px;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

