/* =========================================
   ★ 新闻列表页：专属样式
   ========================================= */
.news-list-section {
    max-width: 1200px; margin: 0 auto 40px; padding: 0 24px;
}
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* 空状态 */
.news-empty {
    grid-column: 1 / -1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
    padding: 80px 20px; color: var(--text-secondary); font-size: 14px;
    border: 1px dashed var(--border-dim); border-radius: 16px;
}
.news-empty svg { opacity: 0.3; }

/* 新闻卡片 */
.n-card {
    background: var(--bg-card-solid); border: 1px solid var(--border-dim);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    transition: all 0.4s ease;
}
.n-card:hover {
    border-color: var(--border-glow); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,229,255,0.08);
}

/* 封面图区域 */
.n-card-img {
    position: relative; width: 100%; aspect-ratio: 16/9;
    overflow: hidden; background: #0a0d14; flex-shrink: 0;
}
.n-card-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.n-card:hover .n-card-img img { transform: scale(1.05); }
.n-card-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, rgba(14,18,28,0.7), transparent); pointer-events: none;
}

/* 日期角标 - 科技感竖排 */
.n-card-date-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(0,229,255,0.2);
    backdrop-filter: blur(6px); line-height: 1;
}
.n-card-date-badge .d {
    font-size: 20px; font-weight: 800; color: var(--jade);
    font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.n-card-date-badge .m {
    font-size: 9px; color: var(--text-secondary); margin-top: 4px;
    font-family: var(--font-mono); letter-spacing: 0.5px; white-space: nowrap;
}

/* 卡片内容区 */
.n-card-body {
    padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.n-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono);
}
.n-tag {
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
    color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(255,215,0,0.2);
    letter-spacing: 0.5px;
}
.n-views { display: flex; align-items: center; gap: 4px; opacity: 0.7; }

.n-card-title {
    font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; transition: color 0.3s;
}
.n-card:hover .n-card-title { color: var(--jade); }

.n-card-summary {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; flex: 1; word-break: break-all;
}

.n-card-read {
    display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--border-dim);
    font-size: 11px; font-weight: 600; color: var(--jade);
    font-family: var(--font-mono); letter-spacing: 1px; transition: all 0.3s;
}
.n-card-read svg { transition: transform 0.3s; }
.n-card:hover .n-card-read svg { transform: translateX(4px); }

/* =========================================
   ★ 新闻列表页：响应式适配
   ========================================= */
@media(max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
    .news-list-section { margin-bottom: 28px; padding: 0 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    
    /* 移动端改为横向卡片布局 */
    .n-card { flex-direction: row; align-items: stretch; }
    .n-card-img { width: 120px; aspect-ratio: auto; min-height: 100px; flex-shrink: 0; }
    .n-card-date-badge { 
        top: auto; bottom: 8px; right: 8px; 
        flex-direction: row; gap: 4px; padding: 3px 8px; 
    }
    .n-card-date-badge .d { font-size: 13px; }
    .n-card-date-badge .m { font-size: 9px; margin-top: 0; }
    
    .n-card-body { padding: 12px 14px; gap: 6px; }
    .n-card-title { font-size: 14px; -webkit-line-clamp: 1; }
    .n-card-summary { font-size: 12px; -webkit-line-clamp: 1; line-height: 1.5; }
    .n-card-read { padding-top: 8px; font-size: 10px; }
    .n-card-meta { gap: 8px; }
    .n-tag { font-size: 9px; padding: 1px 6px; }
}

@media(max-width: 380px) {
    .news-list-section { padding: 0 12px; }
    .n-card-img { width: 100px; }
    .n-card-body { padding: 10px 12px; }
    .n-card-title { font-size: 13px; }
}