/* 
 * 第三行：一行两列新闻布局
 * 国际新闻 + 国内新闻
 * 作者：欧秘 (西北狼·狼眼世界 CTO)
 * 创建时间：2026-04-12
 */

/* 第三行容器 */
.third-row-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #d1e3ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .third-row-news {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

/* 新闻栏目通用样式 */
.news-column {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f1ff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-column:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 国际新闻栏目 */
.international-news-column {
    border-top: 4px solid #3498db;
}

.international-news-column .column-title {
    color: #2980b9;
}

.international-news-column .column-title i {
    color: #3498db;
}

/* 国内新闻栏目 */
.domestic-news-column {
    border-top: 4px solid #e74c3c;
}

.domestic-news-column .column-title {
    color: #c0392b;
}

.domestic-news-column .column-title i {
    color: #e74c3c;
}

/* 栏目标题 */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f7ff;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-title i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, currentColor, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 查看全部链接 */
.view-all {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

/* 新闻列表 */
.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 限制最多显示3条新闻 */
.news-item:nth-child(n+4) {
    display: none;
}

/* 新闻项 */
.news-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    background: #f0f7ff;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.news-item.domestic {
    border-left-color: #e74c3c;
}

.news-item.domestic:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
}

/* 新闻标题 */
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title:hover {
    color: #3498db;
}

.news-item.domestic .news-title:hover {
    color: #e74c3c;
}

/* 新闻元数据 */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.source {
    background: #e8f4fc;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.time {
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.time::before {
    content: "🕒";
    font-size: 0.9rem;
}

.importance {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* 新闻摘要 */
.news-excerpt {
    font-size: 0.95rem;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻标签 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #f1f8ff;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
    transform: scale(1.05);
}

.news-item.domestic .tag {
    background: #ffeaea;
    color: #e74c3c;
}

.news-item.domestic .tag:hover {
    background: #e74c3c;
    color: white;
}

/* 热门新闻指示器 */
.hot-news {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 空状态 */
.empty-news {
    text-align: center;
    padding: 40px 20px;
    color: #bdc3c7;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* 加载状态 */
.loading-news {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 新闻分类 */
.news-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #5d6d7e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #e9ecef;
    color: #3498db;
}

.category-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 新闻统计 */
.news-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .third-row-news {
        background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
        border-color: #34495e;
    }
    
    .news-column {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .column-title {
        color: #e2e8f0;
    }
    
    .news-item {
        background: #4a5568;
    }
    
    .news-title {
        color: #e2e8f0;
    }
    
    .news-excerpt {
        color: #cbd5e0;
    }
    
    .view-all {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .category-btn {
        background: #4a5568;
        border-color: #718096;
        color: #cbd5e0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeInUp 0.5s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }