/* ==========================================================================
   news.css - 新闻列表 / 详情页样式（浅色商务风，与整站一致）
   ========================================================================== */

/* ============ 新闻 Hero（子页头部） ============ */
.news-hero {
    position: relative;
    padding: 180px 0 70px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}
.news-hero::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 65%);
    pointer-events: none;
}
.news-hero .section-eyebrow { position: relative; }
.news-hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 8px 0 20px;
    position: relative;
    color: var(--text-primary);
}
.news-hero-title .title-gradient { display: inline; }
.news-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

/* ============ 分类筛选栏 ============ */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 56px;
    max-width: 900px;
}
.news-filter-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-base);
}
.news-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.news-filter-btn.active {
    color: #fff;
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* ============ 新闻网格 ============ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.news-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #161a2e, #0a0e1a);
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.32));
    pointer-events: none;
}
.news-cover-cat {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    backdrop-filter: blur(6px);
}
.news-cover-date {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}
.news-cover-watermark {
    position: absolute;
    right: 14px; bottom: 8px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.16);
    z-index: 0;
}

.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 28px 28px;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.news-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 100px;
}
.news-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.news-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.3s;
}
.news-card:hover .news-title { color: var(--accent); }
.news-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s;
}
.news-card:hover .news-more { gap: 10px; }

/* ============ 面包屑 ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ============ 文章头部 ============ */
.article-head { margin-bottom: 36px; }
.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.article-meta-top .news-tag {
    color: #fff;
    background: var(--gradient-1);
    border-color: transparent;
}
.article-date, .article-author, .article-read {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}
.article-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 900px;
}

/* ============ 文章封面 ============ */
.article-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #161a2e, #0a0e1a);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.28));
    pointer-events: none;
}
.article-cover-watermark {
    position: absolute;
    left: 40px; bottom: 24px;
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* ============ 文章正文 ============ */
.article-body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: #33404f;
}
.article-body p { margin-bottom: 26px; }
.article-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 44px 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}
.article-body ul {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
.article-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: #33404f;
}
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 14px; height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}
.article-body strong { color: var(--text-primary); font-weight: 700; }
.article-body blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(0, 240, 255, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 17px;
    color: var(--text-primary);
    line-height: 1.8;
}

.article-foot {
    max-width: 820px;
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* ============ 相关新闻 ============ */
.news-related {
    margin-top: 100px;
}
.news-related .section-title { text-align: left; margin-bottom: 40px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.related-cover {
    width: 96px; height: 72px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover !important;
    background-position: center !important;
    background-color: #161a2e;
}
.related-info { display: flex; flex-direction: column; gap: 6px; }
.related-cat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
}
.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
}

/* ============ 空状态 ============ */
.news-empty {
    text-align: center;
    padding: 80px 20px;
}
.news-empty h2 { font-size: 28px; margin-bottom: 12px; color: var(--text-primary); }
.news-empty p { color: var(--text-secondary); margin-bottom: 28px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .news-hero { padding: 140px 0 50px; }
    .news-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 16px; }
    .article-cover { aspect-ratio: 16 / 10; }
}

/* ============ noscript 兜底（GEO/SEO 可见性） ============ */
.news-noscript {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-noscript li a {
    color: var(--accent, #1a5fbf);
    font-size: 15px;
    text-decoration: none;
    border-left: 3px solid var(--accent, #1a5fbf);
    padding-left: 14px;
    transition: color .25s;
}
.news-noscript li a:hover { color: var(--accent-2, #2f9bff); }
.news-noscript-tip {
    color: var(--text-secondary, #aab4c8);
    font-size: 15px;
    line-height: 1.8;
    padding: 20px;
    border: 1px solid var(--border, rgba(124, 58, 237, 0.22));
    border-radius: 12px;
    background: var(--bg-card, rgba(20, 28, 48, 0.55));
}
.news-noscript-tip a { color: var(--accent, #1a5fbf); }
