:root {
    --ink: #17202a;
    --muted: #687382;
    --paper: #fffdf8;
    --line: #e7dfd2;
    --chinese: #a13d2d;
    --english: #236b63;
    --gold: #b9852f;
    --panel: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background:
        linear-gradient(90deg, rgba(35, 107, 99, 0.06), transparent 30%, rgba(161, 61, 45, 0.06)),
        var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid rgba(23, 32, 42, 0.1);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(14px);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--ink);
}

.site-nav {
    gap: 6px;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(23, 32, 42, 0.07);
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 64px;
}

.home-hero,
.column-hero {
    min-height: 310px;
    display: grid;
    align-items: end;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 253, 248, 0.58)),
        repeating-linear-gradient(0deg, rgba(185, 133, 47, 0.08), rgba(185, 133, 47, 0.08) 1px, transparent 1px, transparent 34px);
}

.column-hero.chinese {
    border-top: 6px solid var(--chinese);
}

.column-hero.english {
    border-top: 6px solid var(--english);
}

.home-copy,
.column-hero > div {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 840px;
    margin-bottom: 18px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.25;
}

.lead {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-note {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.column-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.column-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(23, 32, 42, 0.11);
}

.column-label,
.card-link,
.open-link {
    font-size: 13px;
    font-weight: 700;
}

.column-label {
    color: var(--gold);
}

.column-card h2 {
    margin: 16px 0 8px;
    font-size: 34px;
}

.column-card p {
    color: var(--muted);
}

.card-link,
.open-link {
    color: var(--ink);
}

.chinese-card {
    border-top: 5px solid var(--chinese);
}

.english-card {
    border-top: 5px solid var(--english);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}

.article-panel,
.history-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.article-panel {
    min-width: 0;
}

.history-panel {
    padding: 22px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    position: sticky;
    top: 86px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.section-heading.compact {
    padding: 0 0 16px;
}

.open-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(23, 32, 42, 0.16);
    border-radius: 999px;
    background: #ffffff;
}

.latest-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(23, 32, 42, 0.16);
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.latest-article-body {
    overflow: hidden;
}

.latest-article-body.is-collapsed {
    display: none;
}

.article-frame {
    width: 100%;
    min-height: 780px;
    display: block;
    border: 0;
    background: #ffffff;
    overflow: hidden;
}

.article-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.article-list a {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(23, 32, 42, 0.09);
}

.article-list .module-list-link {
    margin-bottom: 4px;
    padding: 14px;
    border: 1px solid rgba(185, 133, 47, 0.28);
    background: rgba(185, 133, 47, 0.08);
}

.article-list .module-list-link strong {
    color: var(--gold);
}

.article-list a:hover strong {
    color: var(--gold);
}

.article-date,
.article-list span:last-child,
.muted {
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 70px 22px;
    text-align: center;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .column-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .article-frame {
        min-height: 680px;
    }

    .history-panel {
        max-height: none;
        overflow-y: visible;
        position: static;
        top: auto;
    }
}

@media (max-width: 560px) {
    main {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    .home-hero,
    .column-hero,
    .column-card {
        padding: 22px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


.module-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.module-card {
    display: grid;
    gap: 8px;
    min-height: 138px;
    padding: 16px;
    border: 1px solid rgba(23, 32, 42, 0.1);
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(23, 32, 42, 0.09);
}

.module-card strong {
    color: var(--chinese);
    font-size: 16px;
    line-height: 1.35;
}

.module-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .module-panel {
        padding: 18px;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}
