:root {
    color-scheme: light;
    --bg: #f5f7f8;
    --surface: #ffffff;
    --text: #162124;
    --muted: #627174;
    --line: #dfe6e8;
    --primary: #0f7c78;
    --primary-dark: #0b5e5b;
    --accent: #c87d2f;
    --shadow: 0 18px 45px rgba(22, 33, 36, .09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-weight: 800;
    font-size: 18px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
    background: #eef4f3;
}

.hero {
    background: linear-gradient(135deg, #f7fbfa 0%, #eef5f1 55%, #f7efe5 100%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    min-height: 300px;
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    gap: 28px;
    padding: 54px 0;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-stat {
    min-height: 160px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    background: var(--text);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-stat strong {
    font-size: 54px;
    line-height: 1;
}

.hero-stat span {
    color: #d5dedf;
}

.section {
    padding: 42px 0 64px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.category-tabs a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    overflow: hidden;
    min-height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(22, 33, 36, .06);
}

.news-card a {
    display: grid;
    grid-template-rows: 190px 1fr;
    height: 100%;
}

.news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #dfe8e6;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.news-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.news-card-top span {
    color: var(--primary);
    font-weight: 800;
}

.news-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.news-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.news-card strong {
    color: var(--primary-dark);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    padding: 36px 0 64px;
}


.article-single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.article-detail,
.side-panel,
.empty-state,
.empty-page {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(22, 33, 36, .06);
}

.article-detail {
    padding: 30px;
}

.article-detail h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
}

.article-meta {
    color: var(--muted);
    margin-bottom: 22px;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 8px;
    background: #dfe8e6;
    margin-bottom: 26px;
}

.article-content {
    color: #243235;
    font-size: 17px;
    line-height: 1.9;
}

.article-content h2 {
    font-size: 26px;
}

.article-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--primary);
    background: #f2f7f6;
}

.back-link,
.button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-weight: 800;
}

.side-panel {
    align-self: start;
    padding: 18px;
}

.side-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.side-link strong {
    color: var(--accent);
}

.empty-state,
.empty-page {
    padding: 44px;
    text-align: center;
}

.site-footer {
    padding: 26px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
}

@media (max-width: 820px) {
    .hero-inner,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-height: 110px;
        justify-items: start;
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .category-tabs {
        justify-content: flex-start;
    }

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

    .news-card a {
        grid-template-columns: 120px 1fr;
        grid-template-rows: 1fr;
    }

    .news-card img {
        height: 100%;
        min-height: 170px;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .hero-inner {
        padding: 34px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .news-card a {
        grid-template-columns: 1fr;
    }

    .news-card img {
        min-height: 0;
        height: 190px;
    }

    .article-detail {
        padding: 22px;
    }
}

