/* ================================================================
   news.css — 情报中心列表页样式
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:   rgb(235, 180, 28);
    --gold-d: rgba(235, 180, 28, 0.18);
    --bg:     #0a0a0a;
    --bg2:    #111;
    --bg3:    rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text:   #e6f7ff;
    --muted:  #888;
    --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* 顶部导航 */
.news-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 20px;
}

.news-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
    flex-shrink: 0;
}

.news-logo:hover { opacity: 0.8; }

.news-header-sep {
    color: #333;
    font-size: 18px;
}

.news-header-crumb {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 2px;
}

.news-header-back {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 1px;
    border: 1px solid #333;
    padding: 5px 14px;
    border-radius: 2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.news-header-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero 横幅 */
.news-hero {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #0e0e0e 0%, #141414 60%, #1a1208 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(235,180,28,0.03) 0px, rgba(235,180,28,0.03) 1px,
        transparent 1px, transparent 80px
    ),
    repeating-linear-gradient(
        0deg,
        rgba(235,180,28,0.03) 0px, rgba(235,180,28,0.03) 1px,
        transparent 1px, transparent 80px
    );
    pointer-events: none;
}

.news-hero-inner {
    position: relative;
    padding: 0 48px 36px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.news-hero-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 10px;
    opacity: 0.85;
    font-family: var(--font-heading);
}

.news-hero-title {
    font-size: 42px;
    letter-spacing: 8px;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
}

.news-hero-sub {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--muted);
    font-family: var(--font-heading);
}

/* 右侧装饰数字 */
.news-hero-deco {
    position: absolute;
    right: 48px;
    bottom: 24px;
    font-size: 100px;
    font-weight: 900;
    letter-spacing: -4px;
    color: rgba(235,180,28,0.05);
    font-family: monospace;
    pointer-events: none;
    user-select: none;
}

/* 分类过滤栏 */
.news-filter-bar {
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.news-filter-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 0;
}

.news-tab {
    position: relative;
    padding: 16px 22px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 3px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: color 0.2s;
    white-space: nowrap;
}

.news-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s;
}

.news-tab:hover { color: #ccc; }
.news-tab:hover::after { width: 30px; }

.news-tab.active {
    color: var(--gold);
}
.news-tab.active::after { width: 40px; }

.news-tab-sep {
    width: 1px;
    height: 14px;
    background: #2a2a2a;
    flex-shrink: 0;
}

/* 分类角标（选中 tab 时显示条目数） */
.news-tab-count {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
}

/* 主内容区 */
.news-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px;
    min-height: 400px;
}

/* 卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    display: block;
    animation: cardFadeIn 0.35s ease both;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-card:hover {
    border-color: rgba(235,180,28,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* 卡片图片区 */
.news-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.news-card:hover .news-card-img img {
    transform: scale(1.04);
}

/* 无封面占位 */
.news-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 28px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

/* 分类角标 */
.news-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 3px 8px;
    background: rgba(235,180,28,0.88);
    color: #000;
    font-family: var(--font-heading);
    border-radius: 1px;
    line-height: 1.4;
}

/* 卡片信息区 */
.news-card-body {
    padding: 14px 16px 16px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.news-card-date {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}

.news-card-title {
    font-size: 14px;
    color: var(--text);
    letter-spacing: 1px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: #fff;
}

/* 空状态 / 加载 */
.news-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 0;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 2px;
}

.news-state-icon {
    font-size: 36px;
    opacity: 0.3;
}

/* 加载占位骨架 */
.news-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-skeleton-card {
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg3);
    border: 1px solid var(--border);
    animation: skPulse 1.4s ease infinite;
}

.news-skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.05);
}

.news-skeleton-body {
    padding: 14px 16px 16px;
}

.news-skeleton-line {
    height: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 8px;
}
.news-skeleton-line:last-child { width: 60%; margin-bottom: 0; }

@keyframes skPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* 分页 */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 48px;
}

.news-pg-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #2a2a2a;
    background: rgba(0,0,0,0.5);
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s;
    padding: 0;
    line-height: 1;
    font-family: serif;
}

.news-pg-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
}

.news-pg-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.news-pg-num {
    font-size: 18px;
    letter-spacing: 3px;
    color: #ccc;
    min-width: 40px;
    text-align: center;
    font-family: monospace;
}

/* 页脚 */
.news-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #333;
    letter-spacing: 1px;
    border-top: 1px solid var(--border);
}

/* ================================================================
   响应式 — 平板 (≤ 960px)
   ================================================================ */
@media (max-width: 960px) {
    .news-hero { height: 170px; }
    .news-hero-inner { padding: 0 28px 28px; }
    .news-hero-title { font-size: 32px; letter-spacing: 5px; }
    .news-hero-deco { display: none; }

    .news-filter-inner { padding: 0 28px; }

    .news-main { padding: 28px 28px; }

    .news-grid,
    .news-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-header { padding: 0 20px; }
}

/* ================================================================
   响应式 — 手机 (≤ 600px)
   ================================================================ */
@media (max-width: 600px) {
    .news-header { padding: 0 16px; height: 52px; }
    .news-logo { font-size: 15px; letter-spacing: 2px; }
    .news-header-crumb { display: none; }

    .news-hero { height: 140px; }
    .news-hero-inner { padding: 0 16px 20px; }
    .news-hero-title { font-size: 24px; letter-spacing: 4px; }
    .news-hero-sub { display: none; }
    .news-hero-label { margin-bottom: 6px; }

    .news-filter-inner { padding: 0 6px; gap: 0; overflow-x: auto; }
    .news-tab { padding: 13px 14px; font-size: 12px; letter-spacing: 1px; }
    .news-tab-sep { display: none; }

    .news-main { padding: 20px 16px; }

    .news-grid,
    .news-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-card-title { font-size: 13px; }

    .news-pagination { gap: 12px; }
}
