:root {
    color: #172733;
    background: #f4f7f8;
    font: 16px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: #12586d; }

.shell {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header { background: #153445; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 66px;
    padding-block: 12px;
}

.brand {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 750;
    text-decoration: none;
}

.preview-label {
    padding: 4px 11px;
    border: 1px solid #6b8999;
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
}

.header-actions,
.language-switch,
.section-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.header-actions { gap: 4px 16px; }

.language-switch {
    gap: 6px;
    color: #d7e8ef;
    font-size: .9rem;
}

.language-switch a,
.section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    text-underline-offset: 3px;
}

.language-switch [aria-current] { font-weight: 700; }

.section-nav ul {
    gap: 2px 4px;
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
}

.section-nav a {
    min-width: 44px;
    justify-content: center;
    padding-inline: 10px;
    border-radius: 6px;
}

.section-nav a:hover,
.section-nav a[aria-current] { background: #2a5063; }

.section-nav a[aria-current] { font-weight: 700; }

.site-header :focus-visible { outline-color: #fff; }

.intro { margin-block: clamp(30px, 6vw, 64px) 28px; }

.eyebrow {
    margin: 0 0 4px;
    color: #9c3726;
    font-size: .9rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.25;
}

.intro-copy {
    margin-block: 12px 0;
    color: #425a68;
    font-size: 1.05rem;
}

.stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin: 0 0 56px;
    padding: 0;
    list-style: none;
}

.card,
.story,
.empty {
    overflow-wrap: anywhere;
    background: #fff;
    border: 1px solid #dce5e9;
    border-radius: 12px;
}

.card { overflow: hidden; }

.card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-copy { padding: 18px 19px; }

.card h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.45;
}

.card h2 a { text-underline-offset: 3px; }

.card p {
    margin: 10px 0 0;
    color: #425a68;
    font-size: .94rem;
}

.card p:empty,
.story-cover:empty { display: none; }

.empty { padding: 16px; }

.story {
    max-width: 860px;
    margin: 28px auto 56px;
    padding: clamp(18px, 5vw, 48px);
}

.story-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.story h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }

.story-toc {
    margin-top: 24px;
    padding: 14px 18px;
    background: #f4f7f8;
    border: 1px solid #dce5e9;
    border-radius: 8px;
}

.story-toc p {
    margin: 0 0 6px;
    font-weight: 700;
}

.story-toc ol {
    margin: 0;
    padding-inline-start: 1.5em;
}

.story-cover,
.story-body { margin-top: 24px; }

.story-body { line-height: 1.85; }

.story-body h2[id] { scroll-margin-block-start: 16px; }

.story-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #dce5e9;
}

.story img {
    display: block;
    max-width: 100%;
    height: auto;
}

.story-body figure { margin: 1.5em 0; }

.story-body figcaption {
    margin-top: 6px;
    color: #425a68;
    font-size: .88rem;
}

.story-body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 8px;
}

.story-body .wp-block-gallery figure { margin: 0; }

.story-body .wp-block-gallery img { width: 100%; }

.story-body .wp-block-table { overflow-x: auto; }

.story-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}

.story-body :is(th, td) {
    border: 1px solid #dce5e9;
    padding: 8px 11px;
    text-align: start;
    vertical-align: top;
}

.story-body th { background: #eaf1f4; }

@media (max-width: 520px) {
    .story-body .wp-block-table table { min-width: 28rem; }

    .story-body .wp-block-table :is(th, td) { min-width: 6em; }

    .story-body .wp-block-table::before {
        content: "左右滑动查看表格";
        display: block;
        padding-bottom: 6px;
        color: #425a68;
        font-size: .85rem;
    }
}

:focus-visible {
    outline: 2px solid #a33b2b;
    outline-offset: 4px;
}
