/* ──────────────────────────────
   news.css — 新闻资讯页专用样式
   ────────────────────────────── */

/* 全局基础 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.8;
    color: #333;
    background-color: #f4f6fb;
}

/* 统一 section-header 样式（备用） */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #165DFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.eyebrow-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #165DFF, transparent);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: black;
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ── news 页专属：覆写 hero 底部渐变，融入内容区背景色 ── */
.page-hero {
    background: linear-gradient(180deg,
            #3d82e8 0%,
            #5b9cf6 25%,
            #a8c8ff 60%,
            #d8e8ff 80%,
            #f4f6fb 100%);
}

.page-hero::after {
    background: linear-gradient(to bottom, transparent, #f4f6fb);
}

/* ── 核心内容区 ── */
.news-core {
    padding: 60px 0 120px;
    background: #f4f6fb;
    position: relative;
}

.core-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ─────────────────────────────────────────
   1. 论坛入口主卡
   ───────────────────────────────────────── */
.forum-hero-card {
    position: relative;
    background: linear-gradient(135deg, #0c3aad 0%, #165DFF 55%, #1a6fff 100%);
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 20px 60px rgba(22, 93, 255, 0.3);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 装饰背景 */
.forum-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% -10%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.forum-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}

.forum-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    padding: 60px 64px;
}

/* 左侧文字 */
.forum-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 13px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.forum-hero-title {
    font-size: 46px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.forum-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 36px;
}

.forum-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.forum-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: white;
    color: #165DFF;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.forum-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    color: #0E46D9;
}

.forum-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.forum-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    color: white;
}

/* 右侧统计格 */
.forum-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-width: 320px;
}

.forum-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.forum-stat:hover {
    background: rgba(255, 255, 255, 0.18);
}

.forum-stat i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    display: block;
}

.forum-stat strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}

.forum-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* ─────────────────────────────────────────
   2. 分类资讯导航
   ───────────────────────────────────────── */
.news-categories {
    margin-bottom: 64px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 18px;
    padding: 28px 28px;
    text-decoration: none;
    border: 1.5px solid #eaeef6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 18px 0 0 18px;
    transition: width 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.category-card:hover::before {
    width: 6px;
}

.category-card--blue::before {
    background: #165DFF;
}

.category-card--green::before {
    background: #059669;
}

.category-card--purple::before {
    background: #6B46C1;
}

.category-card--red::before {
    background: #DC2626;
}

.category-card:hover.category-card--blue {
    box-shadow: 0 16px 40px rgba(22, 93, 255, 0.12);
}

.category-card:hover.category-card--green {
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.12);
}

.category-card:hover.category-card--purple {
    box-shadow: 0 16px 40px rgba(107, 70, 193, 0.12);
}

.category-card:hover.category-card--red {
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.12);
}

.category-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-card--blue .category-card-icon {
    background: rgba(22, 93, 255, 0.09);
    color: #165DFF;
}

.category-card--green .category-card-icon {
    background: rgba(5, 150, 105, 0.09);
    color: #059669;
}

.category-card--purple .category-card-icon {
    background: rgba(107, 70, 193, 0.09);
    color: #6B46C1;
}

.category-card--red .category-card-icon {
    background: rgba(220, 38, 38, 0.09);
    color: #DC2626;
}

.category-card-body {
    flex: 1;
}

.category-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.category-card--blue:hover .category-card-body h3 {
    color: #165DFF;
}

.category-card--green:hover .category-card-body h3 {
    color: #059669;
}

.category-card--purple:hover .category-card-body h3 {
    color: #6B46C1;
}

.category-card--red:hover .category-card-body h3 {
    color: #DC2626;
}

.category-card-body p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.category-card-arrow {
    color: #ccc;
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.category-card:hover .category-card-arrow {
    transform: translateX(5px);
    color: #aaa;
}

/* ─────────────────────────────────────────
   3. 底部行：快速入口 + 关注提示
   ───────────────────────────────────────── */
.news-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── 快速入口卡 ── */
.quick-links-card {
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    border: 1.5px solid #eaeef6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.quick-links-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f8;
}

.quick-links-header i {
    font-size: 18px;
    color: #165DFF;
}

.quick-links-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.quick-link-item:hover {
    background: #f4f6fb;
}

.quick-link-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.quick-link-icon--blue {
    background: rgba(22, 93, 255, 0.08);
    color: #165DFF;
}

.quick-link-icon--teal {
    background: rgba(6, 182, 212, 0.09);
    color: #0891B2;
}

.quick-link-icon--green {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.quick-link-icon--orange {
    background: rgba(217, 119, 6, 0.09);
    color: #B45309;
}

.quick-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-link-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.quick-link-text span {
    font-size: 12px;
    color: #999;
}

.quick-link-chevron {
    font-size: 11px;
    color: #ccc;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quick-link-item:hover .quick-link-chevron {
    transform: translateX(4px);
    color: #999;
}

/* ── 关注提示卡 ── */
.follow-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
}

.follow-card-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(22, 93, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(107, 70, 193, 0.25) 0%, transparent 45%);
    pointer-events: none;
}

.follow-card-content {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
    text-align: center;
}

.follow-icon {
    width: 64px;
    height: 64px;
    background: rgba(22, 93, 255, 0.2);
    border: 1.5px solid rgba(22, 93, 255, 0.4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 26px;
    color: #7eb3ff;
}

.follow-card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    line-height: 1.3;
}

.follow-card-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin-bottom: 28px;
}

.follow-actions {
    margin-bottom: 28px;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #165DFF;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.4);
}

.follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(22, 93, 255, 0.5);
    background: #1a6fff;
    color: white;
}

.follow-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.follow-meta span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.follow-meta i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── 动画 ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   响应式
   ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .forum-hero-content {
        padding: 52px 48px;
        gap: 40px;
    }

    .forum-stat-grid {
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .forum-hero-content {
        grid-template-columns: 1fr;
        padding: 48px 44px;
        gap: 36px;
    }

    .forum-hero-title {
        font-size: 40px;
    }

    .forum-stat-grid {
        grid-template-columns: repeat(4, 1fr);
        min-width: unset;
    }

    .news-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-core {
        padding: 80px 0 100px;
    }

    .forum-hero-card {
        margin-bottom: 56px;
        border-radius: 20px;
    }

    .forum-hero-content {
        padding: 40px 32px;
    }

    .forum-hero-title {
        font-size: 34px;
    }

    .forum-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .module-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .forum-hero-content {
        padding: 36px 24px;
    }

    .forum-hero-title {
        font-size: 28px;
    }

    .forum-hero-desc {
        font-size: 14px;
    }

    .forum-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-btn-primary,
    .forum-btn-secondary {
        justify-content: center;
    }

    .forum-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        padding: 22px 20px;
    }

    .quick-links-card {
        padding: 28px 22px;
    }

    .follow-card-content {
        padding: 32px 24px;
    }

    .module-title {
        font-size: 28px;
    }
}