/* 格致正诚 - 热点新闻归档样式 */
/* 沿用主站紫色渐变 + Glass Morphism */

:root {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
    --accent-color: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    --glass-blur: blur(12px);
    --hover-bg: rgba(255, 255, 255, 0.1);

    /* 板块分类色 */
    --section-global: linear-gradient(135deg, #3b82f6, #1e40af);
    --section-macro: linear-gradient(135deg, #f59e0b, #d97706);
    --section-industry: linear-gradient(135deg, #10b981, #059669);
    --section-tech: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --section-risk: linear-gradient(135deg, #ef4444, #b91c1c);

    --font-display: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* === Navigation === */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(15, 20, 40, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: var(--hover-bg);
}

.nav-links a.active {
    background: var(--primary-gradient);
    color: #fff;
}

/* === Page Header === */
.page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.page-header .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.page-header .meta {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.page-header .meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

/* === Section Block === */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.section-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.section-global .section-icon  { background: var(--section-global); }
.section-macro  .section-icon   { background: var(--section-macro); }
.section-industry .section-icon { background: var(--section-industry); }
.section-tech    .section-icon  { background: var(--section-tech); }
.section-risk    .section-icon  { background: var(--section-risk); }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* === News Headline (主头条) === */
.headline-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.headline-card::before {
    content: "头条";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.headline-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 12px 40px rgba(96, 165, 250, 0.15);
}

.headline-card .source-tag {
    display: inline-block;
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-right: 0.6rem;
    font-weight: 500;
}

.headline-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.7rem 0 0.6rem;
    line-height: 1.5;
}

.headline-card .summary {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.5rem;
}

.headline-card .link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #93c5fd;
    font-size: 0.85rem;
}

/* === News List Item === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.news-item {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-left: 3px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.4rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.news-item:hover {
    background: var(--hover-bg);
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.news-item .num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

.news-item .body {
    flex: 1;
    min-width: 0;
}

.news-item .source-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.1rem 0.5rem;
    border-radius: 5px;
    font-size: 0.74rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

.news-item .source-tag.hot {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.news-item .source-tag.global {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.news-item .body a {
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.55;
}

.news-item .body a:hover {
    color: var(--accent-color);
}

/* === Risk Block === */
.risk-block {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(185, 28, 28, 0.04));
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 1.5rem 1.8rem;
}

.risk-block ul {
    list-style: none;
    margin-top: 0.8rem;
}

.risk-block li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.risk-block li:last-child {
    border-bottom: none;
}

.risk-block strong {
    color: #fca5a5;
    font-weight: 600;
}

/* === Index Page (列表页) === */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.archive-item {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem 1.8rem;
    transition: all 0.25s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.archive-item:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.12);
}

.archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-gradient);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    min-width: 90px;
}

.archive-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.archive-date .month {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.archive-date .weekday {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.archive-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.archive-info .meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.archive-info .desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.archive-arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
}

.archive-item:hover .archive-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* === Footer === */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--card-border);
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer a {
    color: var(--text-light);
    margin: 0 0.6rem;
}

footer a:hover {
    color: var(--accent-color);
}

footer .icp {
    margin-top: 0.8rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.9rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .archive-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    .archive-arrow {
        display: none;
    }

    .headline-card,
    .news-item {
        padding: 1rem 1.1rem;
    }

    .section-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.5s ease both;
}

.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.1s; }
.section:nth-child(4) { animation-delay: 0.15s; }
.section:nth-child(5) { animation-delay: 0.2s; }
/* === AI 子板块配色 === */
:root {
    --section-ai-invest:   linear-gradient(135deg, #f59e0b, #d97706);   /* 金/琥珀 */
    --section-ai-industry: linear-gradient(135deg, #06b6d4, #0e7490);   /* 青蓝 */
    --section-ai-tech:     linear-gradient(135deg, #ec4899, #be185d);   /* 紫红 */
    --section-ai-infra:    linear-gradient(135deg, #10b981, #047857);   /* 绿青 */
}

.section-ai-invest   .section-icon { background: var(--section-ai-invest); }
.section-ai-industry .section-icon { background: var(--section-ai-industry); }
.section-ai-tech     .section-icon { background: var(--section-ai-tech); }
.section-ai-infra    .section-icon { background: var(--section-ai-infra); }

/* === AI 板块配色（与宏观/政策/产业链/科技等权并列） === */
:root {
    --section-ai: linear-gradient(135deg, #ec4899, #be185d);   /* 紫粉渐变 */
}

.section-ai .section-icon { background: var(--section-ai); }
