:root {
    --red: #a80712;
    --red-2: #c31824;
    --deep: #241a1a;
    --gold: #c79a43;
    --paper: #fffaf3;
    --line: #eadfd4;
    --muted: #6f6460;
    --gray: #f6f3ef;
    --max: 1680px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--deep);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    line-height: 1.7;
}

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

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

.topline {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 22px;
    text-align: center;
}

.topline p {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.topline h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.35;
    letter-spacing: 0;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(90deg, #bd1420, #a80712);
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.main-nav {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 17px 24px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, .16);
}

.nav-toggle {
    display: none;
}

.hero {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    margin: 24px auto 0;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eee;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(58, 10, 13, .86), rgba(58, 10, 13, .4) 45%, rgba(58, 10, 13, .08));
}

.hero-panel {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100% - 36px));
    padding: 64px 0 0 54px;
    color: #fff;
}

.hero-panel span,
.section-title span {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
}

.hero-panel h2 {
    margin: 14px 0 18px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.28;
}

.hero-panel p {
    margin: 0;
    max-width: 560px;
    font-size: 18px;
}

.section {
    width: min(var(--max), calc(100% - 32px));
    margin: 48px auto;
}

.section-title {
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
}

.section-title.inline h2 {
    font-size: 24px;
    font-weight: 700;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 18px;
}

.intro-card,
.category-card,
.download-card,
.material-item {
    border: 1px solid var(--line);
    background: #fff;
}

.intro-card {
    padding: 26px;
    min-height: 190px;
}

.intro-card.strong {
    grid-row: span 2;
    background: var(--paper);
    border-top: 5px solid var(--red);
}

.intro-card h3,
.download-card h3,
.material-item h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.intro-card p,
.category-card p,
.download-card p,
.material-item p {
    margin: 0;
    color: var(--muted);
}

.category-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 170px;
    padding: 24px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 7, 18, .35);
    box-shadow: 0 14px 30px rgba(80, 24, 24, .11);
}

.category-card b {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 20px;
}

.downloads {
    padding: 36px;
    background: var(--gray);
    border-top: 4px solid var(--red);
}

.download-grid {
    grid-template-columns: repeat(3, 1fr);
}

.download-card {
    padding: 24px;
}

.download-card span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.download-card a,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 42px;
    margin-top: 22px;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

.download-card em,
.pending {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin-top: 22px;
    padding: 0 14px;
    color: #8a7772;
    background: #f3eee9;
    font-style: normal;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--red);
    font-weight: 700;
}

.breadcrumb span::before {
    content: ">";
    margin-right: 10px;
    color: #b8aaa5;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 560px;
    border: 1px solid var(--line);
}

.side-nav {
    background: #f7f3f0;
    border-right: 1px solid var(--line);
}

.side-nav h2 {
    margin: 0;
    padding: 22px 20px;
    background: var(--red);
    color: #fff;
    font-size: 22px;
}

.side-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.side-nav a.active,
.side-nav a:hover {
    color: var(--red);
    background: #fff;
}

.content-main {
    padding: 34px;
}

.material-list {
    display: grid;
    gap: 14px;
}

.material-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
}

.material-number {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.video-item {
    border-left: 5px solid var(--gold);
    background: linear-gradient(90deg, #fffaf3, #fff);
}

.outline-btn {
    margin-top: 0;
}

.secondary-btn {
    background: #5f5552;
}

.material-item .secondary-btn {
    margin-right: 8px;
}

.viewer-body {
    margin: 0;
    overflow: hidden;
    background: #2b2525;
}

.viewer-header {
    min-height: 74px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: linear-gradient(90deg, #65070d, #a80712);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    position: relative;
    z-index: 2;
}

.viewer-header span {
    color: #f5dba8;
    font-size: 14px;
    font-weight: 800;
}

.viewer-header h1 {
    margin: 4px 0 0;
    font-size: 20px;
    line-height: 1.35;
}

.viewer-tools,
.viewer-header nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.viewer-tools a,
.viewer-tools button,
.viewer-header nav a {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.viewer-tools label {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    font-weight: 800;
}

.viewer-tools input {
    width: 62px;
    height: 28px;
    border: 0;
    text-align: center;
    font: inherit;
    font-weight: 800;
}

.pdfjs-preview {
    height: calc(100vh - 74px);
    padding: 22px;
    overflow: auto;
    background: radial-gradient(circle at 50% 0, #584848, #262121 55%, #1a1717);
}

.pdf-stage {
    min-height: calc(100vh - 118px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.pdf-stage canvas {
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .36);
}

.viewer-loading {
    position: absolute;
    top: 40px;
    padding: 12px 18px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    font-weight: 800;
}

.video-preview {
    height: calc(100vh - 74px);
    padding: 24px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 0, #584848, #171414 62%);
}

.video-preview video {
    width: min(1200px, 100%);
    max-height: calc(100vh - 122px);
    background: #000;
    box-shadow: 0 22px 56px rgba(0, 0, 0, .42);
}

.site-footer {
    margin-top: 70px;
    padding: 28px 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #fff;
    background: #5e070d;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #f5dba8;
}

.showcase-body {
    --edu-blue: #075aa9;
    --edu-blue-2: #1387d8;
    --edu-orange: #ff7a16;
    --edu-ink: #1c2e44;
    --edu-soft: rgba(255, 255, 255, .88);
    color: var(--edu-ink);
    background: #eef7ff;
}

.showcase-header {
    background: rgba(255, 255, 255, .9);
}

.showcase-brand {
    min-height: 170px;
    padding: 26px max(18px, calc((100% - 1380px) / 2));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .86)),
        url("../images/hero-campus.png") center 34% / cover;
}

.brand-mark,
.footer-brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.brand-emblem {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 8px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 38% 34%, #30a8e8, #0065b8 58%, #00478b);
    box-shadow: 0 3px 10px rgba(0, 82, 161, .25);
    font-size: 26px;
    font-weight: 900;
}

.brand-mark strong,
.footer-brand strong {
    display: block;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
    color: #111;
}

.brand-mark em,
.footer-brand p {
    display: block;
    margin: 13px 0 0;
    color: #111;
    font-style: normal;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: .8em;
}

.showcase-brand h1,
.showcase-footer h2 {
    margin: 0;
    color: var(--edu-orange);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(38px, 4vw, 66px);
    line-height: 1;
    letter-spacing: 0;
}

.showcase-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--edu-blue);
}

.showcase-main-nav {
    width: min(1380px, 100%);
}

.showcase-main-nav > li {
    position: relative;
}

.showcase-main-nav > li > a {
    min-width: 150px;
    padding: 19px 22px;
    color: #fff;
    text-align: center;
    font-size: 17px;
}

.showcase-main-nav > li.is-active > a,
.showcase-main-nav > li:hover > a {
    color: var(--edu-orange);
    background: #fff;
}

.showcase-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    padding: 18px 20px;
    display: none;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 18px 35px rgba(4, 62, 119, .16);
}

.showcase-main-nav > li:hover .showcase-dropdown {
    display: grid;
    gap: 0;
}

.showcase-dropdown a {
    padding: 11px 8px;
    border-bottom: 1px dotted #b8c4d1;
    color: #202c39;
    font-size: 18px;
    font-weight: 700;
}

.showcase-dropdown a:hover {
    color: var(--edu-orange);
}

.showcase-hero {
    min-height: 690px;
    display: grid;
    place-items: center;
    position: relative;
    background:
        linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .12)),
        var(--hero-image) center / cover fixed;
    overflow: hidden;
}

.showcase-hero::before,
.showcase-page::before,
.showcase-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(ellipse at 10% 100%, rgba(38, 173, 238, .22) 0 2px, transparent 2px 12px),
        linear-gradient(90deg, rgba(226, 244, 255, .54), rgba(255, 255, 255, .2) 50%, rgba(226, 244, 255, .5));
}

.vertical-intro {
    width: min(1720px, calc(100% - 120px));
    min-height: 486px;
    padding: 72px 100px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 26px 60px rgba(12, 61, 109, .16);
}

.vertical-intro p {
    margin: 0;
    max-height: 330px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #2f3134;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .42em;
}

.vertical-intro span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #4a515a;
    font-family: "KaiTi", "STKaiti", serif;
    letter-spacing: .5em;
}

.hero-script {
    position: absolute;
    right: 10%;
    bottom: 22%;
    z-index: 2;
    writing-mode: vertical-rl;
    color: #1b1b1b;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(34px, 3.2vw, 56px);
    font-weight: 900;
    line-height: 1.15;
}

.showcase-band {
    position: relative;
    padding: 86px max(18px, calc((100% - 1380px) / 2));
    background:
        linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .86)),
        url("../images/hero-campus.png") center / cover;
    overflow: hidden;
}

.ribbon-title {
    width: min(900px, 100%);
    height: 98px;
    margin: 0 auto 46px;
    padding: 0 58px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    background: linear-gradient(100deg, #1d63b4, #19a7dc);
    clip-path: polygon(8% 0, 100% 0, 95% 100%, 0 100%);
}

.ribbon-title .brand-emblem {
    flex: 0 0 auto;
    margin-left: -22px;
}

.ribbon-title h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
}

.ribbon-title p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .08em;
}

.video-feature {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: center;
}

.video-feature aside {
    min-height: 500px;
    padding: 74px 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 45px rgba(26, 93, 154, .12);
}

.video-feature aside p {
    margin: 0;
    font-size: 17px;
    line-height: 2.05;
}

.video-poster {
    min-height: 580px;
    padding: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 24px;
    border: 1px solid #1685df;
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(5, 87, 179, .58), rgba(5, 87, 179, .32)),
        var(--poster-image) center / cover;
    box-shadow: inset 0 0 0 16px rgba(255, 255, 255, .92);
}

.video-poster strong {
    color: var(--edu-orange);
    font-size: clamp(46px, 5vw, 82px);
    line-height: 1;
}

.video-poster em {
    padding: 8px 44px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    font-size: clamp(26px, 3vw, 42px);
    font-family: "KaiTi", "STKaiti", serif;
    font-style: normal;
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    position: relative;
}

.play-button::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 22px;
    border-left: 22px solid #111;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.apply-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.apply-card {
    min-height: 224px;
    padding: 42px 32px 30px;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
    box-shadow: 0 18px 36px rgba(28, 93, 148, .12);
}

.line-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: block;
    border: 5px solid var(--edu-blue);
    border-radius: 8px;
    position: relative;
}

.line-icon::before,
.line-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 5px;
    background: var(--edu-blue);
}

.line-icon::before {
    top: 17px;
}

.line-icon::after {
    top: 33px;
}

.apply-card h3 {
    margin: 0;
    color: #606a76;
    font-size: 28px;
}

.apply-card p {
    margin: 10px auto 0;
    max-width: 360px;
    color: #6f7a86;
}

.apply-card a,
.apply-card em,
.showcase-material-list a,
.showcase-material-list em {
    min-height: 38px;
    margin-top: 18px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    background: var(--edu-orange);
    font-style: normal;
    font-weight: 800;
}

.apply-card em,
.showcase-material-list em {
    color: #7a8795;
    background: #eef3f8;
}

.showcase-page {
    min-height: 650px;
    padding: 24px max(18px, calc((100% - 1420px) / 2)) 70px;
    position: relative;
    display: grid;
    grid-template-columns: 318px 1fr;
    gap: 24px;
    background:
        linear-gradient(rgba(238, 248, 255, .78), rgba(238, 248, 255, .8)),
        var(--page-image) center / cover fixed;
    overflow: hidden;
}

.showcase-side,
.showcase-content {
    position: relative;
    z-index: 1;
}

.showcase-side {
    align-self: start;
    padding: 0 0 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .68);
    overflow: hidden;
}

.showcase-side h2 {
    margin: 0;
    padding: 18px 28px;
    color: var(--edu-orange);
    background: rgba(255, 255, 255, .86);
    font-size: 17px;
}

.showcase-side a {
    display: block;
    margin: 0 28px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .9);
    color: #384352;
    text-align: center;
    font-size: 17px;
}

.showcase-side a:hover {
    color: var(--edu-orange);
}

.showcase-crumb {
    height: 46px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px 6px 0 0;
    color: #7b8794;
    background: rgba(255, 255, 255, .92);
}

.showcase-crumb span::before {
    content: ">";
    margin-right: 12px;
    color: #b9c3cf;
}

.content-panel {
    min-height: 520px;
    padding: 42px;
    border-radius: 0 0 6px 6px;
    background: rgba(255, 255, 255, .92);
}

.content-panel h2 {
    margin: 0;
    color: var(--edu-blue);
    font-size: 30px;
}

.section-lead {
    margin: 12px 0 28px;
    color: #687686;
    font-size: 17px;
}

.showcase-material-list {
    display: grid;
    gap: 14px;
}

.showcase-material-list article {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid #dfeaf4;
    border-radius: 8px;
    background: #fff;
}

.showcase-material-list article > span {
    color: var(--edu-orange);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 900;
}

.showcase-material-list h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.showcase-material-list p {
    margin: 0;
    color: #718093;
}

.empty-material {
    min-height: 260px;
    display: grid;
    place-items: center;
    color: #8a97a6;
    background: #f6f9fc;
}

.showcase-footer {
    min-height: 260px;
    padding: 50px max(18px, calc((100% - 1380px) / 2));
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 42px;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(rgba(0, 85, 169, .9), rgba(0, 85, 169, .93)),
        url("../images/hero-campus.png") center / cover;
}

.showcase-footer .brand-emblem {
    border-color: rgba(255, 255, 255, .95);
}

.showcase-footer strong,
.showcase-footer .footer-brand p {
    color: #fff;
}

.showcase-footer p {
    margin: 8px 0 0;
}

.showcase-footer nav {
    display: grid;
    gap: 10px;
}

.showcase-footer nav a {
    min-width: 112px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .34);
    text-align: center;
    font-weight: 800;
}

.admin-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7f1ea, #fff);
}

.admin-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: flex;
    flex-direction: column;
}

.admin-card {
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 45px rgba(80, 24, 24, .08);
}

.login-card {
    width: min(460px, 100%);
    margin: 50px auto;
}

.admin-card span {
    color: var(--gold);
    font-weight: 800;
}

.admin-card h1,
.admin-card h2,
.admin-card h3 {
    margin: 6px 0 14px;
    line-height: 1.35;
}

.admin-card h1 {
    font-size: 30px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.admin-head p,
.admin-tip,
.upload-group p {
    margin: 0;
    color: var(--muted);
}

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

.admin-actions a,
.admin-card button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--red);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-actions a:first-child {
    background: #5f5552;
}

.login-card label,
.upload-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 800;
}

.login-card input,
.upload-form input,
.upload-form select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.login-card input[readonly] {
    color: #6d605b;
    background: #f6f1ed;
}

.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 16px;
    align-items: end;
}

.account-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.upload-form label,
.account-form label {
    margin-bottom: 0;
}

.account-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.upload-form input[type="file"] {
    padding: 8px 12px;
}

.account-form input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.admin-note {
    margin-top: 14px;
}

.admin-note code {
    padding: 2px 5px;
    background: #f3eee9;
    color: var(--red);
}

.admin-success,
.admin-error {
    padding: 12px 14px;
    margin: 0 0 18px;
    font-weight: 700;
}

.admin-success {
    color: #1f6b3a;
    background: #edf8f0;
}

.admin-error {
    color: #a80712;
    background: #fff0f0;
}

.admin-status-card {
    order: 0;
}

.admin-status-card .admin-success,
.admin-status-card .admin-error {
    margin-bottom: 18px;
    border: 1px solid currentColor;
}

.upload-list {
    display: grid;
    gap: 16px;
}

.upload-list h2 {
    margin-bottom: 0;
}

.upload-group {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.upload-group a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(199, 154, 67, .28);
    color: var(--red);
    font-weight: 700;
}

.admin-file-row {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(199, 154, 67, .28);
    color: var(--muted);
    font-weight: 700;
}

.party-body {
    --party-red: #b5121b;
    --party-red-deep: #7e0710;
    --party-gold: #f5c45b;
    --party-gold-2: #ffdf8a;
    --party-ink: #2b1d18;
    color: var(--party-ink);
    background: #fff8ea;
}

.party-header {
    background: #fff8ea;
}

.party-brand {
    min-height: 174px;
    padding: 28px max(18px, calc((100% - 1380px) / 2));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background: #fff8ea;
}

.party-school {
    display: flex;
    gap: 16px;
    align-items: center;
}

.party-emblem {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 7px solid var(--party-gold-2);
    border-radius: 50%;
    color: var(--party-gold-2);
    background: radial-gradient(circle at 38% 32%, #d9272e, var(--party-red-deep));
    box-shadow: 0 8px 20px rgba(126, 7, 16, .2);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 28px;
    font-weight: 900;
}

.party-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.party-brand-image {
    width: min(430px, 44vw);
    max-height: 100px;
    object-fit: contain;
}

.party-title-image {
    width: min(760px, 48vw);
    max-height: 160px;
    object-fit: contain;
    justify-self: end;
}

.party-school strong {
    display: block;
    color: #16110f;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.1;
}

.party-school em {
    display: block;
    margin-top: 12px;
    color: #211714;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .72em;
}

.party-brand h1,
.party-footer h2 {
    margin: 0;
    color: var(--party-red);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 2px 0 rgba(255, 223, 138, .75);
}

.party-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, var(--party-red-deep), var(--party-red));
    box-shadow: 0 10px 24px rgba(126, 7, 16, .22);
}

.party-main-nav {
    width: min(1380px, 100%);
}

.party-main-nav > li {
    position: relative;
}

.party-main-nav > li > a {
    min-width: 142px;
    padding: 19px 22px;
    color: #fff;
    text-align: center;
    font-size: 17px;
}

.party-main-nav > li.is-active > a,
.party-main-nav > li:hover > a {
    color: var(--party-red);
    background: linear-gradient(#fff8ea, #fff);
}

.party-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 218px;
    padding: 16px 20px;
    display: none;
    background: rgba(255, 250, 239, .96);
    box-shadow: 0 18px 36px rgba(126, 7, 16, .18);
}

.party-main-nav > li:hover .party-dropdown {
    display: grid;
}

.party-dropdown a {
    padding: 12px 8px;
    border-bottom: 1px dotted rgba(181, 18, 27, .32);
    color: #2b1d18;
    font-size: 18px;
    font-weight: 700;
}

.party-dropdown a:hover,
.party-dropdown a.active {
    color: var(--party-red);
}

.party-hero {
    min-height: 0;
    display: block;
    position: relative;
    background: #fff8ea;
    overflow: hidden;
}

.party-hero::before,
.party-band::before,
.party-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 220, 120, .34), transparent 28%),
        linear-gradient(90deg, rgba(126, 7, 16, .1), rgba(255, 248, 234, .58), rgba(126, 7, 16, .1));
}

.party-hero-card {
    width: min(1580px, calc(100% - 120px));
    min-height: 486px;
    padding: 74px 118px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 42px;
    background: rgba(255, 250, 239, .78);
    box-shadow: 0 26px 60px rgba(126, 7, 16, .16);
}

.party-carousel {
    width: min(1680px, calc(100% - 64px));
    margin: 0 auto;
    aspect-ratio: 1920 / 650;
    min-height: 520px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(199, 154, 67, .42);
    border-radius: 8px;
    background: #fff8ea;
    box-shadow: 0 26px 60px rgba(126, 7, 16, .18);
}

.party-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 12px rgba(255, 248, 234, .2);
    background: linear-gradient(90deg, rgba(126, 7, 16, .12), transparent 28%, rgba(126, 7, 16, .08));
}

.party-carousel figure {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .65s ease;
}

.party-carousel figure.is-active {
    opacity: 1;
}

.party-carousel img {
    width: 106%;
    height: 100%;
    margin: 0 0 0 -3%;
    object-fit: fill;
    object-position: center center;
}

.party-carousel figcaption {
    position: absolute;
    left: 46px;
    bottom: 34px;
    max-width: 70%;
    padding: 12px 24px;
    color: #fff8dc;
    background: rgba(126, 7, 16, .78);
    font-size: 28px;
    font-weight: 900;
}

.party-hero-card p {
    margin: 0;
    max-height: 350px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #291917;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .32em;
}

.party-hero-card span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: var(--party-red);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .5em;
}

.party-hero > strong {
    position: absolute;
    right: 9%;
    bottom: 22%;
    z-index: 2;
    writing-mode: vertical-rl;
    color: var(--party-red-deep);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(38px, 3.4vw, 62px);
    line-height: 1.15;
    text-shadow: 0 2px 0 var(--party-gold-2);
}

.party-band {
    position: relative;
    padding: 0 max(18px, calc((100% - 1380px) / 2)) 86px;
    background:
        linear-gradient(rgba(255, 248, 234, .92), rgba(255, 248, 234, .88)),
        var(--band-image, url("../images/hero-campus.png")) center / cover;
    overflow: hidden;
}

.party-ribbon {
    width: min(900px, 100%);
    min-height: auto;
    margin: 0 auto 34px;
    padding: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: var(--party-red-deep);
    background: transparent;
    clip-path: none;
}

.party-ribbon .party-emblem {
    display: none;
}

.party-ribbon h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
}

.party-ribbon p {
    margin: 8px 0 0;
    color: rgba(126, 7, 16, .58);
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .08em;
}

.party-ribbon-title-image {
    width: min(760px, 64vw);
    max-height: 98px;
    display: block;
    object-fit: contain;
}

.party-video-feature {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: center;
}

.party-video-feature aside {
    min-height: 500px;
    padding: 74px 48px;
    border-radius: 8px;
    background: rgba(255, 250, 239, .84);
    box-shadow: 0 18px 45px rgba(126, 7, 16, .12);
}

.party-video-feature aside p {
    margin: 0;
    font-size: 17px;
    line-height: 2.05;
}

.party-video-poster {
    min-height: 580px;
    padding: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 24px;
    border: 1px solid var(--party-red);
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(126, 7, 16, .68), rgba(126, 7, 16, .42)),
        var(--poster-image) center / cover;
    box-shadow: inset 0 0 0 16px rgba(255, 250, 239, .92);
}

.party-video-poster h2 {
    margin: 0;
    color: var(--party-gold-2);
    font-size: clamp(44px, 5vw, 78px);
    line-height: 1;
}

.party-video-poster p {
    margin: 0;
    padding: 8px 38px;
    border: 2px solid rgba(255, 223, 138, .9);
    border-radius: 999px;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(24px, 3vw, 38px);
}

.party-video-player {
    min-height: 580px;
    padding: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--party-red);
    border-radius: 18px;
    background:
        linear-gradient(rgba(126, 7, 16, .22), rgba(126, 7, 16, .12)),
        #1b1111;
    box-shadow: inset 0 0 0 16px rgba(255, 250, 239, .92);
}

.party-video-player video {
    width: min(100%, 1080px);
    max-height: 540px;
    background: #000;
    border-radius: 8px;
}

.party-apply-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.party-apply-card {
    min-height: 224px;
    padding: 42px 32px 30px;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 10px;
    background: rgba(255, 250, 239, .78);
    text-align: center;
    box-shadow: 0 18px 36px rgba(126, 7, 16, .12);
}

.party-card-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: block;
    border: 5px solid var(--party-red);
    border-radius: 8px;
    position: relative;
}

.party-card-icon::before,
.party-card-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 5px;
    background: var(--party-red);
}

.party-card-icon::before {
    top: 17px;
}

.party-card-icon::after {
    top: 33px;
}

.party-apply-card h3 {
    margin: 0;
    color: var(--party-red);
    font-size: 28px;
}

.party-apply-card p {
    margin: 10px 0 0;
    color: #7a5b47;
}

.party-page {
    min-height: 680px;
    padding: 24px max(18px, calc((100% - 1420px) / 2)) 70px;
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background:
        linear-gradient(rgba(255, 248, 234, .78), rgba(255, 248, 234, .82)),
        var(--page-image) center / cover fixed;
    overflow: hidden;
}

.party-side,
.party-content {
    position: relative;
    z-index: 1;
}

.party-side {
    align-self: start;
    border-radius: 8px;
    background: rgba(255, 250, 239, .72);
    overflow: hidden;
}

.party-side h2 {
    margin: 0;
    padding: 18px 28px;
    color: var(--party-red);
    background: rgba(255, 255, 255, .88);
    font-size: 17px;
}

.party-side a {
    display: block;
    margin: 0 28px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(181, 18, 27, .18);
    color: #45302a;
    text-align: center;
    font-size: 17px;
}

.party-side a:hover,
.party-side a.active {
    color: var(--party-red);
    background: rgba(255, 223, 138, .24);
}

.party-crumb {
    height: 46px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px 6px 0 0;
    color: #8b6b55;
    background: rgba(255, 250, 239, .94);
}

.party-crumb span::before {
    content: ">";
    margin-right: 12px;
    color: #c4a471;
}

.party-pdf-panel {
    min-height: 560px;
    padding: 28px;
    border-radius: 0 0 6px 6px;
    background: rgba(255, 255, 255, .94);
}

.party-pdf-panel h2 {
    width: fit-content;
    min-width: 260px;
    margin: 0 auto 28px;
    padding: 8px 0 14px;
    border: 0;
    border-bottom: 4px solid rgba(245, 196, 91, .95);
    color: var(--party-red-deep);
    text-align: center;
    font-size: 28px;
}

.rich-material {
    max-width: 980px;
    margin: 0 auto;
    color: #3c2a25;
    font-size: 17px;
    line-height: 1.9;
}

.rich-material h2,
.rich-material h3,
.rich-material h4 {
    margin: 26px 0 12px;
    color: var(--party-red-deep);
    line-height: 1.35;
}

.rich-material p,
.rich-material ul,
.rich-material ol,
.rich-material blockquote {
    margin: 0 0 16px;
}

.rich-material a {
    color: var(--party-red);
    font-weight: 800;
    text-decoration: underline;
}

.rich-material table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.rich-material th,
.rich-material td {
    padding: 10px 12px;
    border: 1px solid #eadfd4;
    text-align: left;
}

.link-material {
    max-width: 720px;
    margin: 40px auto;
    padding: 34px;
    text-align: center;
    border: 1px solid #eadfd4;
    background: #fffaf3;
}

.link-material p {
    margin: 0 0 20px;
    color: var(--muted);
}

.link-material a {
    min-height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--party-red);
    font-weight: 900;
}

.embedded-pdf-viewer {
    border: 1px solid rgba(199, 154, 67, .55);
    background: #fff8eb;
    box-shadow: 0 18px 42px rgba(126, 7, 16, .12);
}

.embedded-pdf-viewer.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 0;
    background: #fff8eb;
}

body.pdf-fallback-fullscreen {
    overflow: hidden;
}

.embedded-pdf-viewer.is-fullscreen .embedded-pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
}

.embedded-pdf-viewer.is-fullscreen .embedded-pdf-stage {
    min-height: 0;
    max-height: none;
    height: 100%;
}

.embedded-pdf-toolbar {
    min-height: 44px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff8dc;
    background: linear-gradient(90deg, var(--party-red-deep), var(--party-red));
    border-bottom: 2px solid rgba(228, 183, 91, .72);
}

.embedded-pdf-toolbar button,
.embedded-pdf-toolbar input {
    height: 30px;
    border: 1px solid rgba(255, 223, 138, .42);
    color: #fff8dc;
    background: rgba(255, 248, 220, .12);
    font: inherit;
    font-weight: 800;
}

.embedded-pdf-toolbar button {
    padding: 0 12px;
    cursor: pointer;
}

.embedded-pdf-toolbar button:hover {
    background: rgba(255, 248, 220, .22);
}

.embedded-pdf-toolbar input {
    width: 56px;
    text-align: center;
}

.embedded-pdf-stage {
    min-height: 720px;
    max-height: 78vh;
    padding: 22px;
    overflow: auto;
    background:
        radial-gradient(circle at 18% 0, rgba(228, 183, 91, .18), transparent 30%),
        linear-gradient(180deg, #fffaf0, #f1e4d2);
}

.embedded-pdf-pages {
    display: grid;
    gap: 22px;
    justify-items: center;
}

.embedded-pdf-page {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(199, 154, 67, .34);
    background: #fffdf7;
    box-shadow: 0 14px 34px rgba(126, 7, 16, .14);
}

.embedded-pdf-page canvas {
    display: block;
    max-width: 100%;
    background: #fff;
}

.embedded-pdf-page-number {
    position: absolute;
    right: 20px;
    top: 8px;
    padding: 2px 8px;
    color: #fff8dc;
    background: rgba(126, 7, 16, .82);
    font-size: 12px;
    font-weight: 800;
}

.party-footer {
    min-height: 170px;
    padding: 38px max(18px, calc((100% - 1380px) / 2));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 42px;
    align-items: center;
    color: #3a211d;
    background: #fff8ea;
    border-top: 1px solid rgba(199, 154, 67, .34);
}

.party-footer-slogan h2 {
    margin: 0;
    color: var(--party-red-deep);
    font-family: "KaiTi", "STKaiti", serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.2;
    letter-spacing: .12em;
    text-shadow: none;
}

.party-footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-left-image,
.footer-center-image,
.footer-right-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.footer-center-image {
    max-height: 180px;
}

.footer-right-image {
    width: min(360px, 30vw);
    max-height: 92px;
}

.manage-section {
    border-top: 5px solid var(--red);
}

.showcase-admin {
    order: 1;
}

.legacy-upload-section {
    order: 4;
}

.account-section {
    order: 5;
}

.legacy-list-section {
    order: 6;
}

.showcase-site-form {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 16px;
    align-items: end;
}

.showcase-site-form label,
.showcase-video-form label,
.menu-admin-head label,
.child-admin-row label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.showcase-site-form input,
.showcase-video-form input,
.inline-add-form input,
.menu-admin-head input,
.child-admin-row input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.showcase-video-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    border: 1px dashed rgba(168, 7, 18, .32);
    background: #fffaf3;
}

.showcase-video-form input[type="file"],
.child-admin-row input[type="file"] {
    padding: 7px 10px;
}

.upload-state {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.upload-state.is-ok,
.pdf-status.is-ok a {
    color: #176536;
    background: #eaf8ef;
}

.upload-state.is-empty,
.pdf-status.is-empty span {
    color: #8a5a19;
    background: #fff4d7;
}

.admin-preview-link {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #5f5552;
    font-weight: 800;
}

.inline-add-form {
    display: flex;
    gap: 10px;
    align-items: end;
}

.inline-add-form input {
    min-width: 220px;
}

.showcase-menu-admin-list {
    display: grid;
    gap: 18px;
}

.showcase-menu-admin {
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.menu-label {
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--red), #6d211e);
    font-weight: 900;
}

.child-label {
    align-self: stretch;
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    background: #fff0ec;
    font-weight: 900;
}

.menu-admin-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    background: #fffaf3;
}

.menu-admin-head form:first-child {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.child-admin-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
}

.child-admin-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(199, 154, 67, .28);
    background: #fff;
}

.child-admin-row form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.child-admin-row .child-content-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(234, 223, 212, .9);
    background: #fffaf3;
}

.child-content-form .rich-editor-label {
    grid-column: 1 / -1;
    display: block;
    color: #4d342d;
    font-weight: 800;
}

.child-content-form > button {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 220px;
}

.child-admin-row > form:not(.child-content-form) {
    grid-template-columns: minmax(280px, 520px) auto;
    justify-content: start;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.rich-editor-toolbar button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

.rich-editor {
    min-height: 160px;
    max-height: 320px;
    overflow: auto;
    display: block;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: #241a1a;
    font-weight: 400;
    line-height: 1.7;
    outline: none;
}

.rich-editor:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(168, 7, 18, .12);
}

.pdf-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pdf-status em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.pdf-status a,
.pdf-status span {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    color: var(--red);
    background: #f8efe3;
    font-weight: 800;
}

.child-add-form {
    padding: 0 18px 18px;
}

.child-add-form input {
    min-width: 260px;
}

.danger-btn {
    background: #6d211e !important;
}

.visual-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.visual-config-card {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #fffaf3;
}

.visual-config-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.visual-config-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.visual-config-card img,
.asset-placeholder {
    width: 170px;
    height: 96px;
    object-fit: contain;
    border: 1px solid #eadfd4;
    background: #fff;
}

.asset-placeholder {
    display: grid;
    place-items: center;
    color: #9b8a82;
    font-weight: 800;
}

.visual-config-card form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.visual-config-card input,
.carousel-head input {
    height: 42px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.asset-state {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.asset-state.is-ok {
    color: #176536;
    background: #eaf8ef;
}

.asset-state.is-empty {
    color: #8a5a19;
    background: #fff4d7;
}

.carousel-admin {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.carousel-head {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    align-items: end;
}

.carousel-head h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.carousel-head p {
    margin: 0;
    color: var(--muted);
}

.carousel-head form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.carousel-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.carousel-list article {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.carousel-list img {
    width: 180px;
    height: 64px;
    object-fit: cover;
}

.carousel-list strong {
    display: block;
}

.carousel-list p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.showcase-menu-admin summary {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, var(--red), #6d211e);
    cursor: pointer;
}

.showcase-menu-admin summary span,
.showcase-menu-admin summary em {
    font-style: normal;
    font-weight: 800;
    opacity: .86;
}

.showcase-menu-admin summary strong {
    font-size: 20px;
}

/* Modern education portal refresh */
.party-body {
    --party-red: #9f2637;
    --party-red-deep: #7f1d2d;
    --party-accent: #c94a5d;
    --party-bg: #f7f4ef;
    --party-surface: rgba(255, 255, 255, .78);
    --party-border: rgba(139, 30, 45, .12);
    --party-shadow: 0 18px 50px rgba(53, 40, 36, .1);
    background:
        radial-gradient(circle at 12% 0, rgba(139, 30, 45, .08), transparent 30%),
        linear-gradient(180deg, #faf7f2, #f3f5f7);
    color: #221f20;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.party-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 244, .78);
    border-bottom: 1px solid rgba(139, 30, 45, .08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(53, 40, 36, .06);
}

.party-brand {
    min-height: 128px;
    padding: 12px max(24px, calc((100% - 1360px) / 2));
    background: transparent;
}

.party-brand-image {
    width: min(520px, 48vw);
    max-height: 110px;
}

.party-brand h1 {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 700;
    color: var(--party-red-deep);
    text-shadow: none;
}

.party-nav {
    position: sticky;
    top: 89px;
    z-index: 45;
    background: rgba(255, 255, 255, .72);
    border-top: 1px solid rgba(255, 255, 255, .62);
    border-bottom: 1px solid rgba(139, 30, 45, .08);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.party-main-nav {
    width: min(1360px, calc(100% - 32px));
    justify-content: center;
    gap: 2px;
}

.party-main-nav > li > a {
    min-width: auto;
    padding: 16px 16px;
    position: relative;
    color: #4b4341;
    background: transparent;
    font-size: 17px;
    font-weight: 700;
}

.party-main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, #8b1e2d, #c94a5d);
    transition: transform .2s ease;
}

.party-main-nav > li.is-active > a,
.party-main-nav > li:hover > a {
    color: var(--party-red-deep);
    background: transparent;
}

.party-main-nav > li.is-active > a::after,
.party-main-nav > li:hover > a::after {
    transform: scaleX(1);
}

.party-dropdown {
    border: 1px solid var(--party-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    box-shadow: var(--party-shadow);
}

.party-dropdown a {
    font-size: 16px;
    line-height: 1.45;
    border-bottom-color: rgba(139, 30, 45, .1);
}

.party-hero {
    padding: 56px 24px 40px;
    background: transparent;
}

.party-hero::before {
    display: none;
}

.party-hero-inner {
    width: min(1360px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.25fr);
    gap: 32px;
    align-items: center;
}

.party-hero-copy {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58));
    backdrop-filter: blur(18px);
    box-shadow: var(--party-shadow);
}

.party-hero-copy > span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--party-red-deep);
    background: rgba(139, 30, 45, .08);
    font-size: 14px;
    font-weight: 800;
}

.party-hero-copy h2 {
    margin: 0;
    color: #201c1d;
    font-size: clamp(30px, 3.45vw, 48px);
    line-height: 1.18;
    letter-spacing: 0;
}

.party-hero-copy p {
    margin: 20px 0 0;
    color: #5f5653;
    font-size: 16px;
    line-height: 1.75;
}

.party-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.party-hero-actions a {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 30, 45, .18);
    border-radius: 999px;
    color: var(--party-red-deep);
    background: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.party-hero-actions a.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #8b1e2d, #c94a5d);
    box-shadow: 0 12px 28px rgba(139, 30, 45, .22);
}

.party-hero-visual {
    position: relative;
    min-width: 0;
}

.party-hero-visual::before {
    content: "";
    position: absolute;
    inset: 22px -10px -18px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(139, 30, 45, .18), rgba(255, 255, 255, 0));
}

.party-carousel,
.party-hero-static {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(53, 40, 36, .16);
}

.party-carousel img {
    width: 106%;
    height: 100%;
    margin: 0 0 0 -3%;
    object-fit: cover;
}

.party-carousel::after {
    box-shadow: none;
    background:
        linear-gradient(90deg, rgba(22, 18, 18, .18), transparent 42%),
        linear-gradient(180deg, transparent 68%, rgba(139, 30, 45, .22));
}

.party-band {
    padding: 56px 24px;
    background: transparent;
}

.party-band::before {
    display: none;
}

.party-ribbon {
    width: min(1360px, 100%);
    margin: 0 auto 24px;
    justify-content: flex-start;
}

.party-ribbon h2 {
    color: #201c1d;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
}

.party-ribbon p {
    color: var(--party-red);
    font-size: 13px;
    letter-spacing: .16em;
}

.party-video-feature,
.party-apply-grid {
    width: min(1360px, 100%);
    margin: 0 auto;
}

.party-video-feature {
    grid-template-columns: minmax(260px, .42fr) 1fr;
    gap: 24px;
}

.party-video-feature aside,
.party-video-player,
.party-video-poster,
.party-apply-card {
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px;
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 42px rgba(53, 40, 36, .09);
}

.party-video-feature aside {
    min-height: 420px;
    padding: 32px;
}

.party-video-player {
    min-height: 420px;
    padding: 14px;
}

.party-video-player video {
    border-radius: 12px;
}

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

.party-apply-card {
    min-height: 180px;
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.party-apply-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 30, 45, .22);
    box-shadow: 0 22px 58px rgba(53, 40, 36, .14);
}

.party-apply-card h3 {
    color: #221f20;
    font-size: 22px;
}

.party-apply-card p {
    color: #6c625f;
}

.party-card-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(139, 30, 45, .18);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 30, 45, .1), rgba(201, 74, 93, .04));
}

.party-footer {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px);
}

.party-footer-slogan h2 {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.2vw, 36px);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .02em;
}

/* Modern admin refresh */
.admin-body {
    background:
        radial-gradient(circle at 8% 0, rgba(139, 30, 45, .09), transparent 26%),
        linear-gradient(180deg, #faf7f2, #eef1f5);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.admin-shell {
    width: min(1360px, calc(100% - 48px));
    margin: 32px auto;
    display: grid;
    gap: 24px;
}

.admin-card,
.admin-status-card,
.showcase-menu-admin,
.visual-config-card,
.carousel-list article,
.child-admin-row {
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(53, 40, 36, .08);
}

.admin-card {
    padding: 28px;
}

.manage-section {
    border-top: 0;
}

.admin-head {
    gap: 18px;
    align-items: center;
}

.admin-head span,
.admin-card > span,
.showcase-menu-admin summary span {
    color: #9b3443;
    font-size: 13px;
    letter-spacing: .04em;
}

.admin-head h1,
.admin-head h2 {
    color: #201c1d;
}

.admin-head p,
.admin-tip,
.visual-config-card p,
.carousel-head p {
    color: #6c625f;
}

.admin-actions a,
.admin-card button,
.inline-add-form button,
.visual-config-card button,
.carousel-head button,
.showcase-video-form button,
.child-admin-row button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b1e2d, #c94a5d);
    color: #fff;
    box-shadow: 0 10px 22px rgba(139, 30, 45, .16);
}

.admin-actions a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
}

.danger-btn {
    background: #7d302d !important;
}

.showcase-site-form input,
.showcase-video-form input,
.inline-add-form input,
.menu-admin-head input,
.child-admin-row input,
.child-admin-row select,
.visual-config-card input,
.carousel-head input {
    border: 1px solid rgba(139, 30, 45, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
}

.visual-config-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.visual-config-card {
    grid-template-columns: 1fr;
}

.visual-config-card img,
.asset-placeholder {
    width: 100%;
    height: 132px;
    border-radius: 12px;
    border-color: rgba(139, 30, 45, .1);
}

.showcase-menu-admin {
    overflow: hidden;
}

.showcase-menu-admin summary {
    padding: 18px 22px;
    color: #201c1d;
    background: rgba(255, 255, 255, .72);
    border-bottom: 1px solid rgba(139, 30, 45, .08);
}

.showcase-menu-admin summary strong {
    color: #201c1d;
}

.menu-admin-head,
.child-admin-row .child-content-form,
.showcase-video-form {
    border: 1px solid rgba(139, 30, 45, .08);
    border-radius: 14px;
    background: rgba(250, 247, 242, .78);
}

.child-label {
    width: fit-content;
    border-radius: 999px;
    background: rgba(139, 30, 45, .08);
}

.rich-editor {
    min-height: 180px;
    border-radius: 12px;
}

.rich-editor-toolbar button {
    border-radius: 10px;
    box-shadow: none;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
        width: min(var(--max), calc(100% - 32px));
        height: 46px;
        margin: 0 auto;
        border: 0;
        color: #fff;
        background: transparent;
        font: inherit;
        font-weight: 800;
        text-align: left;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding: 8px 16px 14px;
        flex-wrap: wrap;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: 16px;
    }

    .hero {
        min-height: 360px;
    }

    .hero-panel {
        padding: 44px 0 0 28px;
    }

    .intro-grid,
    .category-grid,
    .download-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .intro-card.strong {
        grid-row: auto;
    }

    .side-nav {
        border-right: 0;
    }

    .material-item {
        grid-template-columns: 48px 1fr;
    }

    .material-item .outline-btn,
    .material-item .pending {
        grid-column: 2;
        justify-self: start;
    }

    .upload-form,
    .account-form,
    .admin-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .showcase-brand,
    .showcase-footer,
    .video-feature,
    .apply-grid,
    .showcase-page {
        grid-template-columns: 1fr;
    }

    .showcase-brand {
        min-height: 210px;
    }

    .showcase-main-nav {
        align-items: stretch;
    }

    .showcase-main-nav > li {
        width: 100%;
    }

    .showcase-main-nav > li > a {
        min-width: 0;
        text-align: left;
    }

    .showcase-dropdown {
        position: static;
        display: grid;
        box-shadow: none;
    }

    .showcase-hero {
        min-height: 560px;
    }

    .vertical-intro {
        width: calc(100% - 32px);
        min-height: 360px;
        padding: 36px 24px;
        overflow-x: auto;
    }

    .hero-script {
        right: 22px;
        bottom: 46px;
    }

    .video-feature aside {
        min-height: auto;
        padding: 28px;
    }

    .video-poster {
        min-height: 380px;
    }

    .showcase-material-list article {
        grid-template-columns: 48px 1fr;
    }

    .showcase-material-list a,
    .showcase-material-list em {
        grid-column: 2;
        justify-self: start;
    }

    .party-brand,
    .party-video-feature,
    .party-apply-grid,
    .party-page,
    .party-footer,
    .showcase-site-form,
    .visual-config-grid,
    .visual-config-card,
    .carousel-head,
    .carousel-head form,
    .carousel-list article,
    .menu-admin-head,
    .menu-admin-head form:first-child,
    .child-admin-row,
    .child-admin-row form {
        grid-template-columns: 1fr;
    }

    .party-main-nav > li {
        width: 100%;
    }

    .party-main-nav > li > a {
        min-width: 0;
        text-align: left;
    }

    .party-dropdown {
        position: static;
        display: grid;
        box-shadow: none;
    }

    .party-footer-logo {
        justify-content: flex-start;
    }

    .footer-right-image {
        width: min(360px, 100%);
    }

    .party-hero-card {
        width: calc(100% - 32px);
        padding: 36px 24px;
        overflow-x: auto;
    }

    .party-carousel {
        min-height: 360px;
    }

    .party-title-image {
        width: min(100%, 520px);
        justify-self: start;
    }

    .visual-config-card img,
    .asset-placeholder,
    .carousel-list img {
        width: 100%;
    }

    .party-video-feature aside {
        min-height: auto;
        padding: 28px;
    }

    .party-video-poster {
        min-height: 380px;
    }

    .party-video-player {
        min-height: 380px;
    }

    .embedded-pdf-stage {
        min-height: 560px;
    }

    .showcase-video-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .topline,
    .hero,
    .section {
        width: calc(100% - 24px);
    }

    .hero {
        min-height: 420px;
    }

    .hero-panel {
        width: calc(100% - 28px);
        padding-left: 22px;
    }

    .hero-panel p {
        font-size: 16px;
    }

    .downloads,
    .content-main {
        padding: 22px;
    }

    .site-footer {
        display: block;
        text-align: center;
    }

    .viewer-header {
        display: grid;
        padding: 16px;
    }

    .pdfjs-preview,
    .video-preview {
        height: calc(100vh - 132px);
        padding: 12px;
    }

    .showcase-brand,
    .showcase-band,
    .showcase-page,
    .showcase-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-mark strong,
    .footer-brand strong {
        font-size: 28px;
    }

    .brand-mark em,
    .footer-brand p {
        font-size: 18px;
        letter-spacing: .38em;
    }

    .brand-emblem {
        width: 58px;
        height: 58px;
        border-width: 6px;
        font-size: 20px;
    }

    .ribbon-title {
        height: auto;
        padding: 18px 24px;
        clip-path: none;
    }

    .ribbon-title h2 {
        font-size: 32px;
    }

    .ribbon-title p {
        font-size: 14px;
    }

    .vertical-intro p {
        font-size: 15px;
        letter-spacing: .26em;
    }

    .video-poster {
        padding: 28px;
        box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .92);
    }

    .video-poster strong {
        font-size: 40px;
    }

    .video-poster em {
        padding: 7px 16px;
        font-size: 24px;
    }

    .content-panel {
        padding: 24px;
    }

    .party-brand,
    .party-band,
    .party-page,
    .party-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .party-school strong {
        font-size: 28px;
    }

    .party-school em {
        font-size: 18px;
        letter-spacing: .36em;
    }

    .party-emblem {
        width: 58px;
        height: 58px;
        border-width: 5px;
        font-size: 21px;
    }

    .party-ribbon {
        clip-path: none;
        padding: 18px 24px;
    }

    .party-ribbon h2 {
        font-size: 32px;
    }

    .party-ribbon p {
        font-size: 14px;
    }

    .party-hero {
        min-height: 0;
    }

    .party-hero-card {
        min-height: 360px;
    }

    .party-carousel {
        aspect-ratio: 1920 / 650;
        min-height: 220px;
    }

    .party-carousel figcaption {
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
        font-size: 18px;
    }

    .party-hero-card p {
        font-size: 16px;
        letter-spacing: .22em;
    }

    .party-video-poster {
        padding: 28px;
        box-shadow: inset 0 0 0 8px rgba(255, 250, 239, .92);
    }

    .party-video-player {
        padding: 12px;
        box-shadow: inset 0 0 0 8px rgba(255, 250, 239, .92);
    }

    .party-video-poster h2 {
        font-size: 38px;
    }

    .party-pdf-panel {
        padding: 16px;
    }

    .party-pdf-panel h2 {
        min-width: 0;
        width: 100%;
        font-size: 22px;
    }
}
