:root {
    --color-primary: #004a95;
    --color-primary-dark: #062f5d;
    --color-primary-soft: #eaf3fa;
    --color-accent: #fdb42f;
    --color-sky: #4ea8ce;
    --color-ink: #1d2a36;
    --color-muted: #627282;
    --color-line: #dbe5ee;
    --color-paper: #ffffff;
    --color-section: #f5f8fb;
    --shadow-soft: 0 18px 42px rgba(0, 54, 108, 0.12);
    --shadow-card: 0 12px 30px rgba(12, 42, 72, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    background: var(--color-paper);
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.site-header {
    position: relative;
    padding-top: 80px;
    background: var(--color-primary-dark);
}

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 80px;
    padding: 0 48px;
    color: #fff;
    background-image: linear-gradient(90deg, #fecd4c 0%, #4ea8ce 48%, #004a95 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

section[id],
footer[id] {
    scroll-margin-top: 96px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 260px;
    height: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
}

.nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 80px;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
}

.nav-list a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 1px;
    content: "";
    background-image: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
    opacity: 1;
    transform: translateY(0);
}

.en-page .nav-list {
    gap: 18px;
    font-size: 15px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    border-radius: 3px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("../images/zibs-campus-lake.jpeg");
    background-position: center center;
    background-size: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 36, 75, 0.9) 0%, rgba(0, 53, 104, 0.72) 43%, rgba(0, 74, 149, 0.18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    min-height: 82vh;
    margin: 0 auto;
    padding: 92px 0 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.kicker,
.small-label,
.section-title span,
.panel-heading span,
.deadline-panel > span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--color-accent);
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker::before,
.small-label::before,
.section-title span::before,
.panel-heading span::before,
.deadline-panel > span::before {
    display: inline-block;
    width: 28px;
    height: 3px;
    content: "";
    background: currentColor;
}

.hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: 58px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-title-en {
    max-width: 780px;
    margin: 18px 0 0;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.32;
}

.hero-copy {
    max-width: 720px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
    color: #173252;
    background: var(--color-accent);
    box-shadow: 0 14px 26px rgba(253, 180, 47, 0.22);
}

.secondary-action {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.quick-facts {
    position: relative;
    z-index: 3;
    margin-top: -48px;
    padding-bottom: 22px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.fact-item {
    min-height: 124px;
    padding: 28px 28px 24px;
    border-right: 1px solid var(--color-line);
    background: #fff;
}

.fact-item:last-child {
    border-right: 0;
}

.fact-item.accent {
    color: #fff;
    background: var(--color-primary);
}

.fact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 15px;
}

.fact-item.accent .fact-label {
    color: rgba(255, 255, 255, 0.72);
}

.fact-item strong {
    display: block;
    color: inherit;
    font-size: 24px;
    line-height: 1.35;
}

.section {
    padding: 86px 0;
}

.section-title {
    position: relative;
    margin-bottom: 38px;
}

.section-title::after {
    position: absolute;
    top: 25px;
    right: 0;
    display: block;
    width: 84px;
    height: 10px;
    content: "";
    background-image: linear-gradient(90deg, var(--color-accent) 0 50%, var(--color-primary) 50% 100%);
}

.section-title.light::after {
    background-image: linear-gradient(90deg, #fff 0 50%, var(--color-accent) 50% 100%);
}

.section-title h2 {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: 42px;
    line-height: 1.25;
    letter-spacing: 0;
}

.section-title.light h2 {
    color: #fff;
}

.overview-section {
    padding-top: 72px;
    background:
        linear-gradient(180deg, #fff 0%, #fff 42%, var(--color-section) 42%, var(--color-section) 100%);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 52px;
    align-items: center;
}

.section-copy p {
    margin: 0 0 22px;
    color: #344657;
    font-size: 18px;
}

.campus-card,
.approval-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.campus-card img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.approval-card {
    background: #fff;
}

.approval-card img {
    width: 100%;
    height: auto;
}

.approval-card figcaption {
    position: static;
    padding: 14px 18px;
    color: var(--color-primary-dark);
    font-size: 15px;
    background: #fff;
    border-top: 1px solid var(--color-line);
}

.campus-card figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(180deg, transparent, rgba(0, 34, 70, 0.82));
}

.details-section {
    background: #fff;
}

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

.detail-item {
    min-height: 168px;
    padding: 26px 24px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    box-shadow: 0 8px 18px rgba(2, 52, 96, 0.04);
}

.detail-item.wide {
    grid-column: span 2;
}

.detail-item.fee {
    grid-column: span 2;
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(135deg, rgba(0, 74, 149, 0.96), rgba(78, 168, 206, 0.82)),
        var(--color-primary);
}

.detail-item span {
    display: block;
    margin-bottom: 12px;
    color: var(--color-muted);
    font-size: 15px;
}

.detail-item.fee span {
    color: rgba(255, 255, 255, 0.74);
}

.detail-item strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 24px;
    line-height: 1.45;
}

.detail-item.fee strong {
    color: #fff;
}

.detail-item p {
    margin: 10px 0 0;
    color: #5c6976;
    font-size: 16px;
    line-height: 1.7;
}

.detail-item.fee p {
    color: rgba(255, 255, 255, 0.86);
}

.curriculum-section {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 56, 112, 0.95), rgba(0, 74, 149, 0.86)),
        var(--color-primary);
}

.curriculum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.course-panel {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.course-panel.core {
    padding: 34px 36px 38px;
}

.course-panel.compact {
    padding: 28px 30px;
}

.side-panels {
    display: grid;
    gap: 20px;
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: course;
}

.course-list li {
    position: relative;
    min-height: 58px;
    padding: 15px 16px 15px 58px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.1);
    line-height: 1.45;
    counter-increment: course;
}

.course-list li::before {
    position: absolute;
    top: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #173252;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    content: counter(course, decimal-leading-zero);
    background: var(--color-accent);
}

.course-panel.compact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 21px;
    line-height: 1.55;
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.plain-list li + li {
    margin-top: 12px;
}

.plain-list li::before {
    position: absolute;
    top: 13px;
    left: 0;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--color-accent);
}

.course-note {
    margin: 0;
    padding: 22px 24px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
    color: #16304c;
    background: #fff;
}

.admission-section {
    background: var(--color-section);
}

.admission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.admission-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 34px 36px 38px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.admission-card.blue {
    color: #fff;
    background:
        linear-gradient(145deg, rgba(0, 74, 149, 0.96), rgba(6, 47, 93, 0.98)),
        var(--color-primary-dark);
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #14385f;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: var(--color-accent);
}

.admission-card h3 {
    margin: 0 0 18px;
    color: var(--color-primary-dark);
    font-size: 28px;
    line-height: 1.3;
}

.admission-card.blue h3 {
    color: #fff;
}

.admission-card ul {
    margin: 0;
    padding-left: 21px;
}

.admission-card li {
    margin-bottom: 12px;
    color: #3a4b5d;
}

.condition-note {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.admission-card.blue li {
    color: rgba(255, 255, 255, 0.88);
}

.admission-card a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.apply-section {
    background:
        linear-gradient(90deg, #fff 0%, #fff 54%, #edf6fb 54%, #edf6fb 100%);
}

.apply-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
}

.apply-subtitle {
    margin: 0 0 18px;
    color: var(--color-primary-dark);
    font-size: 26px;
    line-height: 1.35;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.material-grid div,
.material-grid a {
    min-height: 68px;
    padding: 18px 20px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(2, 52, 96, 0.04);
}

.material-grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.material-grid a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.material-grid small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.zh-page .material-grid > div,
.zh-page .material-grid > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
}

.zh-page .material-grid > a {
    flex-direction: row;
    justify-content: flex-start;
}

.material-index {
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #173252;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    background: var(--color-accent);
}

.deadline-panel {
    position: sticky;
    top: 110px;
    padding: 32px 30px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(140deg, rgba(0, 74, 149, 0.98), rgba(78, 168, 206, 0.86)),
        var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.deadline-panel h3 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.35;
}

.deadline-panel p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.deadline-panel p strong {
    color: #fff;
}

.email-link {
    display: inline-flex;
    max-width: 100%;
    margin-top: 14px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.deadline {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.deadline small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.deadline strong {
    display: block;
    margin-top: 4px;
    color: var(--color-accent);
    font-size: 28px;
    line-height: 1.3;
}

.campus-section {
    padding: 0;
    background: #fff;
}

.image-band {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: 360px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-primary-dark);
}

.image-band > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 38px;
    color: #fff;
}

.image-band h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.45;
    letter-spacing: 0;
}

.image-band img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.footer {
    margin-top: 86px;
    color: #fff;
    background: var(--color-primary-dark);
}

.footer-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 80px;
    padding: 62px 0 54px;
}

.footer-brand img {
    width: 180px;
    height: auto;
}

.footer-brand .footer-slogan {
    width: 250px;
    margin-top: 22px;
}

.contact-list {
    font-style: normal;
}

.contact-list h2 {
    margin: 0 0 22px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

.contact-list h2 span {
    margin-left: 8px;
    color: var(--color-sky);
    font-size: 25px;
    font-weight: 400;
}

.contact-list p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.contact-list a {
    color: #fff;
    overflow-wrap: anywhere;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1100px) {
    .topbar {
        padding: 0 28px;
        gap: 22px;
    }

    .brand img {
        width: 220px;
    }

    .nav-list {
        gap: 18px;
        font-size: 15px;
    }

    .split,
    .curriculum-layout,
    .apply-wrap,
    .admission-grid {
        grid-template-columns: 1fr;
    }

    .campus-card img {
        height: 460px;
    }

    .deadline-panel {
        position: static;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 32px, 720px);
    }

    .topbar {
        min-height: 68px;
        padding: 0 18px;
    }

    .site-header {
        padding-top: 68px;
    }

    section[id],
    footer[id] {
        scroll-margin-top: 82px;
    }

    .brand img {
        width: 204px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-list {
        position: fixed;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border-radius: 8px;
        background: var(--color-primary);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list a {
        min-height: 54px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-list a::after {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 76vh;
    }

    .hero-inner {
        padding: 70px 0 86px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(0, 36, 75, 0.92) 0%, rgba(0, 53, 104, 0.76) 66%, rgba(0, 74, 149, 0.22) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.22;
    }

    .hero-title-en {
        font-size: 22px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .quick-facts {
        margin-top: -34px;
    }

    .fact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact-item {
        min-height: 112px;
        padding: 22px 20px;
    }

    .fact-item:nth-child(2) {
        border-right: 0;
    }

    .fact-item strong {
        font-size: 21px;
    }

    .section {
        padding: 64px 0;
    }

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

    .section-title::after {
        top: auto;
        bottom: -14px;
        left: 0;
        width: 72px;
        height: 8px;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .overview-section {
        padding-top: 58px;
    }

    .split {
        gap: 34px;
    }

    .campus-card img {
        height: 430px;
    }

    .details-grid,
    .material-grid,
    .course-list,
    .image-band,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-item.wide,
    .detail-item.fee {
        grid-column: auto;
    }

    .image-band {
        min-height: unset;
    }

    .image-band img {
        min-height: 260px;
    }

    .footer {
        margin-top: 64px;
    }

    .footer-inner {
        gap: 36px;
        padding: 48px 0 44px;
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 176px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-title-en {
        font-size: 18px;
    }

    .hero-actions {
        width: 100%;
    }

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

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

    .fact-item,
    .fact-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .fact-item:last-child {
        border-bottom: 0;
    }

    .campus-card img {
        height: 340px;
    }

    .admission-card,
    .course-panel.core,
    .course-panel.compact,
    .deadline-panel {
        padding: 26px 22px;
    }

    .detail-item strong {
        font-size: 21px;
    }

    .email-link {
        font-size: 18px;
    }
}
