* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding: 70px 0 50px;
    min-height: 100vh;
    background-color: #fff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-list {
    margin-top: 20px;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}

.news-item.no-image {
    /* 没有图片时，整个项目的布局 */
    flex-direction: row;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    flex: 0 0 40%; /* 左侧图片占40%宽度 */
    position: relative;
    height: 200px;
}

.news-item.no-image .news-image-container {
    display: none; /* 没有图片时隐藏图片容器 */
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 防止图片加载失败时布局错乱 */
    background-color: #f0f0f0;
    color: #999;
    font-size: 14px;
    text-align: center;
    line-height: 200px;
}

.news-text-container {
    flex: 0 0 60%; /* 右侧文字占60%宽度 */
    padding: 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item.no-image .news-text-container {
    flex: 0 0 100%; /* 没有图片时文字占满全部宽度 */
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.news-title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 15px 5px 0;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
    align-self: flex-start;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.load-more {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.load-more:hover {
    background-color: #eaa702;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image-container {
        flex: 0 0 auto;
        height: 200px;
        width: 100%;
    }

    .news-text-container {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-meta {
        margin-top: 5px;
        justify-content: flex-start;
    }
}