/* 新闻列表页特有样式 */

/* 新闻列表区域 */
.article-list {
    flex: 1;
}

/* 文章卡片样式 */
.article-card {
    display: flex;
    gap: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.article-image {
    flex-shrink: 0;
    width: 280px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-content h3 a {
    color: #111827;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #1E3A8A;
    text-decoration: none;
}

.article-summary {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #9CA3AF;
    align-items: center;
}

.article-meta .category {
    background-color: #1E3A8A;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 新闻订阅表单 */
.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-form button {
    padding: 8px 16px;
    font-size: 14px;
}

/* 数据状态提示 */
.data-state {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #475569;
    font-size: 14px;
}

.data-state-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1E3A8A;
    animation: pulseDot 1s ease-in-out infinite;
}

.data-state-error {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

.retry-link {
    display: inline-block;
    margin-top: 10px;
    color: #1E3A8A;
    font-weight: 600;
}

.retry-link:hover {
    text-decoration: underline;
}

.data-state-empty {
    color: #64748B;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767px) {
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form button {
        width: 100%;
    }
}