:root {
    --ink: #171917;
    --muted: #5d625f;
    --paper: #f4f5f2;
    --white: #ffffff;
    --line: #d8dcd7;
    --red: #b33a2f;
    --teal: #1f6b67;
    --gold: #a57f2c;
    --black: #111311;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
    background: var(--paper);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 16px;
    color: var(--white);
    background: var(--black);
}

.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 245, 242, .97);
    backdrop-filter: blur(12px);
}

.site-notice {
    color: #d8ddda;
    font-size: 12px;
    background: var(--black);
}

.site-notice__inner {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-notice strong { color: #ffffff; font-weight: 600; }

.site-header__main {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.site-brand img { width: 44px; height: 44px; }
.site-brand span { display: grid; line-height: 1.2; }

.site-brand strong {
    font-family: "Songti SC", STSong, serif;
    font-size: 22px;
}

.site-brand small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.site-search {
    display: flex;
    width: min(430px, 44vw);
    border-bottom: 1px solid var(--ink);
}

.site-search input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.site-search button {
    min-width: 62px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: var(--ink);
}

.site-search button:hover { background: var(--red); }

.site-nav-wrap { border-top: 1px solid var(--line); }
.site-nav-row { min-height: 48px; }

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

.site-nav__link {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    color: #3f4541;
    font-size: 14px;
    font-weight: 600;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
}

.site-nav__link:hover,
.site-nav__link.is-active { color: var(--red); }
.site-nav__link.is-active::after { background: var(--red); }

.site-mobile-nav { display: none; }

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

.section-heading h2 {
    margin: 4px 0 0;
    font-family: "Songti SC", STSong, serif;
    font-size: 34px;
    line-height: 1.35;
}

.section-heading > p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
}

.section-kicker {
    margin: 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.button--primary { color: var(--white); background: var(--ink); }
.button--quiet { background: transparent; }
.button:hover { border-color: var(--red); color: var(--white); background: var(--red); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover { color: var(--red); }

.site-footer {
    color: #d5d9d6;
    background: var(--black);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.2fr;
    gap: 60px;
    padding-top: 58px;
    padding-bottom: 54px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 16px;
}

.site-footer p { margin: 0; color: #aeb5b0; font-size: 14px; }

.site-footer__brand {
    display: flex;
    align-items: start;
    gap: 14px;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    font-size: 14px;
}

.site-footer__links a:hover,
.site-footer__bottom a:hover { color: #ffffff; }

.site-footer__bottom { border-top: 1px solid #343834; }

.site-footer__bottom .site-container {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.site-footer__bottom a { color: #c4cac6; }

@media (max-width: 940px) {
    .site-header { position: relative; }
    .site-search, .site-nav { display: none; }
    .site-header__main { min-height: 70px; }
    .site-nav-wrap { border-top: 0; }
    .site-nav-row { min-height: 0; }

    .site-mobile-nav {
        position: absolute;
        right: 20px;
        top: 47px;
        display: block;
    }

    .site-mobile-nav summary {
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        list-style: none;
        background: var(--white);
    }

    .site-mobile-nav summary::-webkit-details-marker { display: none; }

    .site-mobile-nav[open] {
        z-index: 50;
        width: min(360px, calc(100vw - 32px));
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: var(--white);
        box-shadow: 0 18px 44px rgba(17, 19, 17, .14);
    }

    .site-mobile-nav[open] summary { margin-bottom: 10px; }
    .site-mobile-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .site-mobile-nav nav a {
        padding: 10px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

    .site-mobile-nav nav a.is-active { color: var(--red); }

    .site-mobile-nav form { display: flex; margin-top: 14px; }

    .site-mobile-nav input {
        min-width: 0;
        flex: 1;
        height: 40px;
        padding: 0 10px;
        border: 1px solid var(--line);
    }

    .site-mobile-nav button {
        width: 60px;
        border: 0;
        color: var(--white);
        background: var(--ink);
    }

    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 640px) {
    .site-container { width: min(100% - 28px, 1180px); }
    .site-notice__inner { justify-content: center; }
    .site-notice__inner span { display: none; }
    .site-brand img { width: 40px; height: 40px; }
    .site-brand strong { font-size: 20px; }
    .site-mobile-nav { right: 14px; }

    .section-heading { display: block; margin-bottom: 26px; }
    .section-heading h2 { font-size: 28px; }
    .section-heading > p { margin-top: 12px; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 40px; }
    .site-footer__bottom .site-container { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}
