:root {
    --red: #c82d29;
    --red-2: #c82d29;
    --red-deep: #ab1d22;
    --red-dark: #991820;
    --gold: #f4ad18;
    --gold-soft: #ffd980;
    --cream: #ffe2df;
    --white: #ffffff;
    --container: 1000px;
    --shadow: 0 14px 34px rgba(82, 0, 0, 0.18);
}

@font-face {
    font-family: 'SourceHanSerifCN-Medium';
    src: url('../fonts/SourceHanSerifCN-Medium.woff') format('woff'),
    url("../fonts/SourceHanSerifCN-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--white);
    background: var(--red);
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 83%;
    /* width: min(var(--container), calc(100% - 40px)); */
    margin: 0 auto;
}

.site-header {
    background: var(--red);
}

.pc-img {
    display: block;
}

.pad-img {
    display: none;
}

.h5-img {
    display: none;
}

.hero {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #e12a18;
}

.hero img {
    width: 100%;
    height: clamp(300px, 49.8vw, 600px);
    object-fit: cover;
    object-position: center;
}

.main-nav {
    background: var(--red-deep);
}

.nav-inner {
    width: min(var(--container), calc(100% - 40px));
    height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-inner a {
    position: relative;
    padding: 0 24px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.nav-inner a+a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
}

.nav-inner a.active,
.nav-inner a:hover {
    color: var(--gold);
}

.timeline-section {
    position: relative;
    overflow: hidden;
    min-height: 595px;
    background:
        linear-gradient(rgba(201, 38, 32, 0.84), rgba(201, 38, 32, 0.96)),
        url("../images/road-wide.jpg") center / cover no-repeat;
}

.timeline-heading {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}

.timeline-heading strong {
    font-size: 28px;
    font-weight: 700;
}

.script-title {
    font-family: "SourceHanSerifCN-Medium", sans-serif;
    font-size: 50px;
    line-height: 0.85;
    color: var(--white);
}

.timeline-heading .divider {
    width: 2px;
    height: 64px;
    background: rgba(255, 255, 255, 0.75);
}

.timeline {
    position: relative;
    height: 420px;
    margin-top: 26px;
}

.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 47%;
    width: 1160px;
    height: 116px;
    transform: translateX(-50%) rotate(-2deg);
    background: url("../images/gold-texture.jpg") center / cover no-repeat;
    clip-path: polygon(0 46%, 12% 32%, 25% 40%, 36% 58%, 48% 52%, 58% 34%, 70% 44%, 82% 62%, 100% 48%, 100% 78%, 84% 91%, 69% 73%, 57% 66%, 47% 77%, 35% 88%, 22% 66%, 11% 58%, 0 72%);
    box-shadow: 0 8px 16px rgba(72, 0, 0, 0.2);
    opacity: 0.96;
    z-index: 1;
}

.timeline::after {
    top: 52%;
    height: 76px;
    transform: translateX(-50%) rotate(5deg);
    opacity: 0.55;
    filter: saturate(0.75);
}

.timeline-item {
    --x: 0%;
    position: absolute;
    left: var(--x);
    width: 155px;
    z-index: 2;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    width: 2px;
    height: 138px;
    background: rgba(255, 255, 255, 0.68);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: -14px;
    width: 28px;
    height: 28px;
    border: 4px solid var(--gold-soft);
    border-radius: 50%;
    background: rgba(211, 41, 37, 0.75);
    box-shadow: 0 0 0 3px rgba(231, 83, 35, 0.25);
}

.timeline-item.top {
    top: 28px;
}

.timeline-item.top::before {
    top: 58px;
}

.timeline-item.top::after {
    top: 188px;
}

.timeline-item.bottom {
    bottom: 2px;
}

.timeline-item.bottom::before {
    bottom: 72px;
}

.timeline-item.bottom::after {
    bottom: 202px;
}

.timeline-item h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 19px;
    line-height: 1.45;
}

.timeline-item img {
    width: 115px;
    height: 64px;
    object-fit: cover;
}

.timeline-item.t1 {
    --x: 2%;
}

.timeline-item.t2 {
    --x: 14%;
}

.timeline-item.t3 {
    --x: 28%;
}

.timeline-item.t4 {
    --x: 39%;
}

.timeline-item.t5 {
    --x: 54%;
}

.timeline-item.t6 {
    --x: 63%;
}

.timeline-item.t7 {
    --x: 84%;
}

.timeline-item.t8 {
    --x: 89%;
}

.message-section {
    padding: 36px 0 20px;
    background: var(--red-2);
}

.message-box {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 22px;
    align-items: center;
    border: 2px solid var(--gold);
    padding: 22px 34px 24px;
}

.message-title {
    color: #fff;
    font-family: "SourceHanSerifCN-Medium", sans-serif;
    font-size: 55px;
    line-height: 0.9;
}

.message-box p {
    grid-column: 2;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
}

.message-box .signature {
    text-align: right;
}

.content-section,
.event-block {
    padding: 34px 0 44px;
    background: var(--red-2);
}

.content-section.darker,
.event-block.darker {
    background: var(--red-deep);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    border-bottom: 2px solid rgba(244, 173, 24, 0.8);
    margin-bottom: 14px;
}

.section-head h2,
.center-title {
    margin: 0;
    color: var(--gold);
    font-family: "SourceHanSerifCN-Medium", sans-serif;
    font-size: 39px;
    line-height: 1.2;
    font-weight: 900;
}

.section-head a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    padding-bottom: 8px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 18px;
}

.news-card {
    min-height: 130px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(244, 173, 24, 0.75);
    border-radius: 8px;
    background: rgba(173, 25, 31, 0.55);
    color: #fff;
    cursor: pointer;
}

.news-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
}

.news-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    min-height: 50px;
}

.news-card .more {
    display: block;
    margin-top: 8px;
    text-align: right;
    font-size: 14px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 46px;
}

.image-card {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    border-radius: 5px 5px 0 0;
    background: #811;
    box-shadow: var(--shadow);
}

.image-card figure {
    margin: 0;
}

.image-card img {
    width: 100%;
    aspect-ratio: 1.72;
    object-fit: cover;
}

.image-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 38px;
    padding: 7px 10px;
    background: linear-gradient(90deg, rgba(36, 36, 36, 0.82), rgba(78, 78, 78, 0.68));
    font-size: 14px;
    line-height: 1.35;
}

.image-card strong {
    display: block;
}

.pager-dots {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pager-dots span,
.pager-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.pager-dots span {
    background: var(--gold);
}

.leaders-section {
    padding-bottom: 62px;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    padding: 18px 10px 0;
    text-align: center;
}

.leader-card img {
    width: 145px;
    height: 145px;
    margin: 0 auto 13px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(75, 0, 0, 0.25);
}

.leader-card h3 {
    margin: 0;
    color: var(--gold);
    font-size: 15px;
    line-height: 1.5;
}

.leader-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.site-footer {
    min-height: 164px;
    padding-top: 58px;
    background: var(--red-deep);
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.load-error {
    width: min(var(--container), calc(100% - 40px));
    margin: 24px auto;
    padding: 14px 18px;
    border: 1px solid rgba(255, 217, 128, 0.75);
    border-radius: 8px;
    background: rgba(153, 24, 32, 0.85);
    color: #fff;
    text-align: center;
}

.events-page {
    background: var(--red);
}

.event-block {
    padding-top: 34px;
    padding-bottom: 60px;
}

.event-block .container {
    --container: 1015px;
}

.center-title {
    position: relative;
    margin: 0 auto 38px;
    text-align: center;
}

.center-title::after {
    content: "";
    display: block;
    width: 270px;
    height: 2px;
    margin: 8px auto 0;
    background: rgba(255, 255, 255, 0.88);
}

.detail-page {
    min-height: 4300px;
    padding: 54px 0 100px;
    background: var(--cream);
    color: #111;
}

.article-wrap {
    width: min(990px, calc(100% - 40px));
    margin: 0 auto;
}

.article-wrap h1 {
    margin: 0 0 20px;
    text-align: center;
    color: #151515;
    font-family: "SourceHanSerifCN-Medium", "Microsoft YaHei", sans-serif;
    font-size: 34px;
    line-height: 1.28;
    font-weight: 900;
}

.article-rule {
    height: 2px;
    margin-bottom: 44px;
    background: #ff4b1e;
}

.article-cover {
    width: 100%;
    margin-bottom: 44px;
}

.article-wrap p {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.75;
    text-align: justify;
}

.article-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rich-text>*:first-child {
    margin-top: 0;
}

.rich-text>*:last-child {
    margin-bottom: 0;
}

.rich-text img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 24px auto;
    border-radius: 6px;
}

.rich-text video,
.rich-text audio {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 24px auto;
}

.rich-text video {
    max-height: 70vh;
    border-radius: 8px;
    background: #000;
}

.rich-text iframe,
.rich-text embed,
.rich-text object {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 360px;
    margin: 24px auto;
    border: 0;
    aspect-ratio: 16 / 9;
    background: #000;
}

.rich-text figure {
    margin: 24px 0;
}

.rich-text figcaption {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.rich-text blockquote {
    margin: 24px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--red);
    background: rgba(255, 255, 255, 0.55);
    color: #333;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 24px;
    padding-left: 1.6em;
    font-size: 17px;
    line-height: 1.75;
}

.rich-text a {
    color: var(--red);
    text-decoration: underline;
}

.rich-table {
    width: 100%;
    margin: 24px 0;
    overflow-x: auto;
}

.rich-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.35);
}

.rich-table th,
.rich-table td {
    padding: 10px 12px;
    border: 1px solid rgba(153, 24, 32, 0.22);
    line-height: 1.6;
    text-align: left;
}

.empty-tip {
    color: #666;
    text-align: center !important;
}

.article-wrap .editor {
    text-align: right;
    margin-top: 38px;
}

@media (max-width: 1024px) {

    .container,
    .nav-inner,
    .article-wrap {
        width: min(100% - 28px, var(--container));
    }

    .hero img {
        height: 42vw;
        min-height: 180px;
    }


    .pc-img {
        display: none;
    }

    .pad-img {
        display: block;
    }

    .h5-img {
        display: none;
    }

    .nav-inner {
        height: 48px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .nav-inner a {
        padding: 0 18px;
        font-size: 18px;
    }

    .timeline-section {
        min-height: auto;
        padding-bottom: 28px;
    }

    .timeline-heading {
        font-size: 24px;
    }

    .script-title {
        font-size: 38px;
    }

    .timeline {
        height: auto;
        margin: 24px auto 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .timeline::before,
    .timeline::after {
        display: none;
    }

    .timeline-item,
    .timeline-item.top,
    .timeline-item.bottom {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        padding: 14px;
        border: 1px solid rgba(255, 217, 128, 0.45);
        border-radius: 10px;
        background: rgba(155, 22, 28, 0.42);
    }

    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }

    .timeline-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.78;
        object-fit: cover;
    }

    .message-box {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .message-title,
    .message-box p {
        grid-column: auto;
    }

    .message-title {
        font-size: 42px;
    }

    .news-grid,
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .leader-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 12px;
    }

    .leader-card img {
        width: 112px;
        height: 112px;
    }

    .detail-page {
        min-height: 1300px;
        padding-top: 38px;
    }
}

@media (max-width: 768px) {

    .container,
    .nav-inner,
    .article-wrap {
        width: calc(100% - 24px);
    }

    .pc-img {
        display: none;
    }

    .pad-img {
        display: none;
    }

    .h5-img {
        display: block;
    }

    .hero img {
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center;
    }

    .nav-inner {
        height: 46px;
    }

    .nav-inner a {
        padding: 0 14px;
        font-size: 16px;
    }

    .timeline-heading {
        gap: 12px;
        font-size: 20px;
    }

    .timeline-heading .divider {
        height: 52px;
    }

    .script-title {
        font-size: 32px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .message-section {
        padding-top: 22px;
    }

    .message-box p {
        font-size: 14px;
        line-height: 1.75;
        font-weight: 600;
    }

    .section-head {
        align-items: center;
    }

    .section-head h2,
    .center-title {
        font-size: 27px;
    }

    .news-grid,
    .image-grid,
    .leader-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-height: auto;
        cursor: pointer;
    }

    .leader-grid {
        padding-inline: 0;
    }

    .leader-card {
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 16px;
        align-items: center;
        text-align: left;
        padding: 0 22px;
    }

    .leader-card img {
        width: 92px;
        height: 92px;
        margin: 0;
    }

    .event-block {
        padding-bottom: 38px;
    }

    .center-title {
        margin-bottom: 24px;
    }

    .center-title::after {
        width: 160px;
    }

    .detail-page {
        padding: 32px 0 70px;
    }

    .article-wrap h1 {
        font-size: 23px;
    }

    .article-rule {
        margin-bottom: 24px;
    }

    .article-cover {
        margin-bottom: 26px;
    }

    .article-wrap p {
        font-size: 15px;
        line-height: 1.85;
    }

    .rich-text ul,
    .rich-text ol {
        font-size: 15px;
        line-height: 1.85;
    }

    .rich-text iframe,
    .rich-text embed,
    .rich-text object {
        min-height: 210px;
    }

    .rich-table table {
        min-width: 520px;
    }
}