.history-page {
    --history-brown: #4a261d;
    --history-brown-deep: #321812;
    --history-orange: #f29a00;
    --history-cream: #fff7e8;
    --history-paper: #f7f4ef;
    --history-white: #ffffff;
    --history-ink: #3d302c;
    --history-muted: #74645e;
    --history-line: #e3d7cb;
    color: var(--history-ink);
    background: var(--history-white);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.history-page *,
.history-page *::before,
.history-page *::after {
    box-sizing: border-box;
}

.history-page img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.history-page h1,
.history-page h2,
.history-page h3,
.history-page p,
.history-page figure,
.history-page blockquote {
    margin-top: 0;
}

.history-wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.history-path {
    margin-bottom: 0;
    background: var(--history-paper);
}

.history-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--history-brown-deep);
}

.history-hero__media,
.history-hero__shade {
    position: absolute;
    inset: 0;
}

.history-hero__media img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.history-hero__shade {
    background:
        linear-gradient(90deg, rgba(38, 17, 12, .94) 0%, rgba(49, 23, 17, .78) 42%, rgba(49, 23, 17, .25) 72%, rgba(49, 23, 17, .12) 100%),
        linear-gradient(0deg, rgba(38, 17, 12, .56) 0%, transparent 50%);
}

.history-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 112px;
    padding-bottom: 58px;
}

.history-eyebrow,
.history-section-no {
    margin-bottom: 14px;
    color: #a86000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.history-hero .history-eyebrow {
    color: #ffd58b;
}

.history-hero h1 {
    max-width: 780px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(43px, 6.2vw, 78px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.history-hero__lead {
    max-width: 650px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.85;
}

.history-hero__facts {
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.history-hero__facts div {
    padding: 18px 20px 17px 0;
}

.history-hero__facts div + div {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.history-hero__facts strong,
.history-hero__facts span {
    display: block;
}

.history-hero__facts strong {
    margin-bottom: 7px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.history-hero__facts span {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.history-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--history-line);
    background: rgba(255, 253, 248, .96);
    backdrop-filter: blur(12px);
}

.history-nav .history-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.history-nav .history-wrap::-webkit-scrollbar {
    display: none;
}

.history-nav a {
    min-height: 52px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: var(--history-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.history-nav a:hover,
.history-nav a:focus-visible {
    border-bottom-color: var(--history-orange);
    color: var(--history-brown);
}

.history-section {
    padding: 104px 0;
    scroll-margin-top: 52px;
}

.history-section--paper {
    background: var(--history-paper);
}

.history-section--brown {
    color: #fff;
    background: var(--history-brown);
}

.history-heading {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 54px;
    margin-bottom: 54px;
}

.history-heading .history-section-no {
    grid-row: 1 / span 2;
}

.history-heading h2,
.history-proof h2,
.history-highschool h2,
.history-today h2 {
    margin-bottom: 19px;
    color: var(--history-brown);
    font-size: clamp(34px, 4.7vw, 58px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.history-heading > p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--history-muted);
    font-size: 17px;
    line-height: 1.9;
}

.history-section--brown .history-section-no {
    color: #ffd58b;
}

.history-section--brown .history-heading h2 {
    color: #fff;
}

.history-section--brown .history-heading > p:last-child {
    color: rgba(255, 255, 255, .74);
}

.history-photo {
    margin: 0;
}

.history-photo img {
    height: auto !important;
    border: 1px solid var(--history-line);
    border-radius: 16px;
    background: #fff;
}

.history-photo figcaption,
.history-proof__visual figcaption,
.history-book figcaption {
    padding-top: 11px;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.5;
}

.history-section--brown .history-photo img {
    border-color: rgba(255, 255, 255, .24);
}

.history-section--brown .history-photo figcaption {
    color: rgba(255, 255, 255, .62);
}

.history-paris-gallery {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    align-items: start;
}

.history-photo--wide {
    grid-row: span 2;
}

.history-fact {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 54px;
    margin-top: 42px;
    padding: 27px 0;
    border-top: 1px solid var(--history-line);
    border-bottom: 1px solid var(--history-line);
}

.history-fact strong {
    color: var(--history-brown);
    font-size: 24px;
}

.history-fact p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--history-muted);
    line-height: 1.8;
}

.history-proof {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 60px;
    align-items: start;
}

.history-proof__visual {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--history-line);
    border-radius: 18px;
    background: #fff;
}

.history-proof__visual img {
    height: auto !important;
    border-radius: 10px;
}

.history-lead {
    color: var(--history-muted);
    font-size: 17px;
    line-height: 1.85;
}

.history-authority {
    margin-top: 28px;
    border-top: 1px solid var(--history-line);
}

.history-authority article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--history-line);
}

.history-authority time {
    color: #a86000;
    font-size: 21px;
    font-weight: 700;
}

.history-authority h3 {
    margin-bottom: 6px;
    color: var(--history-brown);
    font-size: 17px;
    line-height: 1.5;
}

.history-authority h3 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(74, 38, 29, .28);
    text-underline-offset: 4px;
}

.history-authority p {
    margin-bottom: 0;
    color: var(--history-muted);
    font-size: 14px;
    line-height: 1.75;
}

.history-route {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}

.history-route::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 8%;
    left: 2%;
    height: 1px;
    background: #cdbdaa;
}

.history-route li {
    position: relative;
    padding: 35px 20px 0 0;
}

.history-route li::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 15px;
    height: 15px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--history-orange);
    box-shadow: 0 0 0 1px #bba894;
}

.history-route strong,
.history-route b,
.history-route span {
    display: block;
}

.history-route strong {
    margin-bottom: 9px;
    color: var(--history-brown);
    font-size: 36px;
    line-height: 1;
}

.history-route b {
    margin-bottom: 6px;
    color: var(--history-ink);
}

.history-route span {
    color: var(--history-muted);
    font-size: 13px;
}

.history-china-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.history-classroom-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: start;
}

.history-photo--main {
    grid-row: span 2;
}

.history-constant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
    padding: 42px 0;
}

.history-constant p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 17px;
    line-height: 1.85;
}

.history-constant strong {
    padding-left: 22px;
    border-left: 4px solid var(--history-orange);
    color: #fff;
    font-size: 27px;
    line-height: 1.55;
}

.history-archive {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 42px;
    align-items: center;
    padding-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.history-archive h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 30px;
    line-height: 1.4;
}

.history-archive > div > p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.8;
}

.history-highschool,
.history-today {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.history-tags span {
    padding: 8px 12px;
    border: 1px solid var(--history-line);
    border-radius: 999px;
    color: var(--history-brown);
    background: var(--history-cream);
    font-size: 13px;
}

.history-years {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.history-year-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--history-line);
    border-radius: 16px;
    background: #fff;
}

.history-year-card img {
    height: auto !important;
}

.history-year-card figcaption {
    padding: 13px 16px;
    color: var(--history-brown);
    font-size: 22px;
    font-weight: 700;
}

.history-materials {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.history-books {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.history-book {
    margin: 0;
    padding: 9px;
    border: 1px solid var(--history-line);
    border-radius: 12px;
    background: #fff;
}

.history-book--old {
    grid-row: span 2;
}

.history-book img {
    height: auto !important;
    border-radius: 6px;
}

.history-development {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--history-line);
    list-style: none;
}

.history-development li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--history-line);
}

.history-development strong {
    color: var(--history-brown);
}

.history-development span {
    color: var(--history-muted);
    line-height: 1.65;
}

.history-today blockquote {
    margin-bottom: 28px;
    padding: 22px 0 22px 22px;
    border-left: 4px solid var(--history-orange);
    color: var(--history-brown);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.55;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-primary,
.history-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 2px solid var(--history-brown);
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.history-primary {
    color: #fff;
    background: var(--history-brown);
}

.history-secondary {
    color: var(--history-brown);
    background: #fff;
}

.history-primary:hover,
.history-primary:focus-visible {
    color: #fff;
    background: var(--history-brown-deep);
}

.history-secondary:hover,
.history-secondary:focus-visible {
    color: var(--history-brown);
    background: var(--history-cream);
}

.history-page a:focus-visible {
    outline: 3px solid #1e6bb8;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .history-hero {
        min-height: 620px;
    }

    .history-hero__shade {
        background: linear-gradient(90deg, rgba(38, 17, 12, .94) 0%, rgba(49, 23, 17, .76) 60%, rgba(49, 23, 17, .36) 100%);
    }

    .history-heading {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .history-heading .history-section-no {
        grid-row: auto;
    }

    .history-proof,
    .history-materials {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .history-proof__visual {
        max-width: 520px;
    }

    .history-highschool,
    .history-today {
        gap: 38px;
    }
}

@media (max-width: 767px) {
    .history-wrap {
        width: min(100% - 30px, 1200px);
    }

    .history-hero {
        min-height: 650px;
    }

    .history-hero__media img {
        object-position: 58% center;
    }

    .history-hero__shade {
        background:
            linear-gradient(0deg, rgba(38, 17, 12, .96) 0%, rgba(49, 23, 17, .84) 55%, rgba(49, 23, 17, .36) 100%);
    }

    .history-hero__content {
        padding-top: 90px;
        padding-bottom: 34px;
    }

    .history-hero h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .history-hero__lead {
        font-size: 16px;
        line-height: 1.75;
    }

    .history-hero__facts {
        grid-template-columns: 1fr 1fr;
    }

    .history-hero__facts div:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, .22);
        border-left: 0;
    }

    .history-hero__facts div:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, .22);
    }

    .history-nav .history-wrap {
        width: 100%;
        padding: 0 15px;
        gap: 24px;
    }

    .history-section {
        padding: 68px 0;
    }

    .history-heading {
        margin-bottom: 34px;
    }

    .history-heading h2,
    .history-proof h2,
    .history-highschool h2,
    .history-today h2 {
        font-size: 34px;
    }

    .history-heading > p:last-child,
    .history-lead {
        font-size: 16px;
        line-height: 1.78;
    }

    .history-paris-gallery,
    .history-classroom-grid,
    .history-constant,
    .history-archive,
    .history-highschool,
    .history-today {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .history-photo--wide,
    .history-photo--main {
        grid-row: auto;
    }

    .history-fact {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 30px;
    }

    .history-authority article {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .history-route {
        grid-template-columns: 1fr 1fr;
        row-gap: 26px;
    }

    .history-route::before {
        display: none;
    }

    .history-route li {
        padding-top: 26px;
    }

    .history-route li::before {
        top: 0;
    }

    .history-china-gallery,
    .history-years {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
    }

    .history-china-gallery .history-photo,
    .history-years .history-year-card {
        min-width: 82%;
        scroll-snap-align: start;
    }

    .history-constant {
        padding: 32px 0;
    }

    .history-constant strong {
        font-size: 23px;
    }

    .history-archive {
        padding-top: 32px;
    }

    .history-highschool,
    .history-today {
        align-items: start;
    }

    .history-books {
        grid-template-columns: 1.25fr 1fr;
    }

    .history-book--old {
        grid-row: span 4;
    }

    .history-development li {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .history-actions,
    .history-primary,
    .history-secondary {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .history-hero__facts div {
        padding: 14px 12px 14px 0;
    }

    .history-hero__facts div + div {
        padding-left: 12px;
    }

    .history-hero__facts strong {
        font-size: 24px;
    }

    .history-authority article {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .history-route strong {
        font-size: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-page {
        scroll-behavior: auto;
    }

    .history-page [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
