:root {
    color-scheme: light;
    --navy: #15395d;
    --gold: #e8bc76;
    --ink: #172c42;
    --muted: #536477;
    --line: #dce4eb;
    --paper: #f5f6f8;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: system-ui, 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
}
a {
    color: #174c80;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid #be7a20;
    outline-offset: 3px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
h1, h2, h3, p {
    overflow-wrap: anywhere;
}
h1 {
    font-size: clamp(29px, 3.1vw, 44px);
    line-height: 1.3;
    margin: 12px 0;
}
h2 {
    font-size: 23px;
    line-height: 1.4;
}
h3 {
    font-size: 19px;
    margin: 0;
}
p {
    margin: 12px 0;
}
.wrap {
    max-width: 1320px;
    width: calc(100% - 64px);
    margin: auto;
}
.header {
    background: white;
    border-bottom: 1px solid var(--line);
}
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    line-height: 1.2;
    flex-shrink: 0;
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
nav a {
    font-weight: 600;
}
.hero {
    background: var(--navy);
    color: white;
    padding: 42px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
}
.hero-grid img {
    width: 100%;
    border-radius: 12px;
}
.hero h2 {
    color: #f1cf98;
}
.hero p {
    color: #e0e9f2;
}
.eyebrow {
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
}
.button, button {
    display: inline-block;
    background: var(--gold);
    color: #142b42;
    font: inherit;
    font-weight: 700;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    margin: 5px 5px 5px 0;
}
.ghost {
    background: transparent;
    border: 1px solid #dce4eb;
    color: white;
}
.strip {
    display: grid;
    grid-template-columns: .8fr repeat(4,1fr);
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
.strip a {
    border-left: 1px solid var(--line);
    padding-left: 15px;
    font-size: 18px;
    font-weight: 700;
}
.strip small {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
}
.feature {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.feature-main {
    padding: 30px;
    background: linear-gradient(120deg,#173b60,#285975);
    color: white;
    border-radius: 12px;
}
.feature-main a {
    color: #f1cf98;
}
.panel {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.panel h2 {
    margin-top: 0;
}
.feature aside a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.catalog {
    margin: 30px 0;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font: inherit;
    border: 1px solid #a8b9cb;
    border-radius: 6px;
    color: var(--ink);
    background: white;
}
.section-head input {
    display: inline-block;
    width: min(260px, 100%);
}
.topics {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}
.topic {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    color: var(--ink);
}
.topic img {
    width: 100%;
}
.topic div {
    padding: 18px;
}
.topic p {
    color: var(--muted);
}
.topic span {
    font-weight: 700;
    color: #174c80;
}
[hidden] {
    display: none !important;
}
.source-band {
    margin: 24px 0;
}
.content {
    padding: 32px 0 50px;
}
.article {
    max-width: 850px;
    padding: 30px 0 50px;
}
.article article {
    background: white;
    padding: clamp(18px,4vw,42px);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.crumb, .lead {
    color: var(--muted);
}
.diagram {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    margin: 22px 0;
}
.example {
    background: #edf2f7;
    padding: 20px;
    border-left: 4px solid #be7a20;
    margin: 25px 0;
}
.source-list, .tool-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}
.calc label {
    display: block;
    margin: 15px 0;
}
output {
    display: block;
    font-weight: 700;
    color: var(--navy);
    min-height: 28px;
}
footer {
    background: #102b46;
    color: #dbe5f0;
    padding: 28px 0;
}
footer a {
    color: #f1cf98;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    padding: 8px;
    z-index: 3;
}
@media (max-width: 850px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .top {
        align-items: flex-start;
        flex-direction: column;
    }
    nav {
        gap: 10px 16px;
    }
    .hero-grid, .feature {
        grid-template-columns: 1fr;
    }
    .strip {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .strip strong {
        grid-column: 1 / -1;
    }
    .topics, .source-list, .tool-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 520px) {
    .hero {
        padding: 28px 0;
    }
    .topics, .source-list, .tool-grid {
        grid-template-columns: 1fr;
    }
    .panel, .feature-main {
        padding: 18px;
    }
    .section-head input {
        display: block;
    }
}

.source-quick, .record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.source-quick a {
    padding: 12px;
    background: #edf2f7;
    border-radius: 6px;
}
.record-row {
    border-top: 1px solid var(--line);
    padding: 8px 0;
    overflow-wrap: anywhere;
}
.article dt {
    font-weight: 700;
    margin-top: 12px;
}
.article dd {
    margin: 4px 0 12px;
}
@media (max-width: 520px) {
    .source-quick, .record-grid {
        grid-template-columns: 1fr;
    }
}
