.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-image-link {
    display: block;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.news-source {
    font-weight: 600;
    color: var(--primary-color);
}

.news-title-link {
    text-decoration: none;
    color: inherit;
}

.news-title-link:hover {
    text-decoration: none;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: inherit;
}

.news-description {
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.news-link:hover {
    background-color: var(--primary-color-dark);
}

.no-image-placeholder {
    height: 250px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    background-color: white;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    display: inline-block;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.refresh-button:hover {
    background-color: var(--accent-color-dark);
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
} 