:root {
    --ink: #1c2d36;
    --muted: #5d717c;
    --brand: #087da3;
    --brand-hover: #065d7a;
    --navy: #20323b;
    --teal: #244e60;
    --surface: #edf2f4;
    --silver: #f4f5f5;
    --warm: #efede8;
    --line: #d6e0e4;
    --content-width: 1240px;
    --page-gutter: 40px;
    --radius: 6px;
}
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}
body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    min-width: 0;
    line-height: 1.65;
    overflow-wrap: break-word;
}
[hidden] {
    display: none !important;
}
button, input, select, textarea {
    font: inherit;
}
button, a {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: default;
    opacity: .55;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color .18s, background .18s, border-color .18s;
}
button {
    transition: color .18s, background .18s, border-color .18s;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
}
svg {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
    stroke-linecap: round;
    stroke-linejoin: round;
}
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}
h2 {
    font-size: 40px;
}
h3 {
    font-size: 24px;
}
.shell {
    width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
}
.empty-state, .error-state {
    padding: 35px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
}
.error-state {
    color: #9d3434;
    background: #fff3f0;
}
.empty-state a {
    display: inline-block;
    margin-top: 18px;
    color: var(--brand);
}
.back-to-top {
    position: fixed;
    z-index: 40;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: 50%;
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 20px #102f3f22;
}
.back-to-top:hover {
    background: var(--brand-hover);
    transform: translateY(-3px);
}
.toast {
    position: fixed;
    z-index: 200;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(500px, 90vw);
    padding: 16px 24px;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 30px #0003;
}
.spinner {
    width: 26px;
    height: 26px;
    display: inline-block;
    border: 3px solid #b8d3df;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 900px) {
    :root {
        --page-gutter: 28px;
    }
    h2 {
        font-size: 32px;
    }
}
@media (max-width: 640px) {
    :root {
        --page-gutter: 20px;
    }
    h2 {
        font-size: 28px;
    }
    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
