@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap');

:root {
    --bg: #f4f8ff;
    --text: #18253d;
    --muted: #5a6882;
    --brand: #0f7bff;
    --brand-2: #11b6a4;
    --brand-3: #ffc857;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --border: rgba(17, 60, 120, 0.14);
    --shadow: 0 16px 40px rgba(16, 43, 86, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(17, 182, 164, 0.25), transparent 34%),
        radial-gradient(circle at 80% 0%, rgba(15, 123, 255, 0.2), transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(255, 200, 87, 0.28), transparent 34%),
        var(--bg);
}

ul {
    list-style: none;
}

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

.container {
    width: min(92%, 1160px);
    margin: auto;
}

.section-title {
    font-family: 'ZCOOL XiaoWei', serif;
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
    color: #122344;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    margin: 12px auto 0;
    border-radius: 999px;
}

.bg-light {
    background: transparent;
}

header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.35rem;
    color: #10213f;
    letter-spacing: 0.03em;
}

.header-logo {
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(10, 63, 145, 0.25);
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1f355a;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links li a:hover {
    background: linear-gradient(90deg, rgba(15, 123, 255, 0.15), rgba(17, 182, 164, 0.2));
    color: #063e89;
    transform: translateY(-1px);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 24px;
    height: 3px;
    background-color: #24436f;
    margin: 4px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(3, 25, 57, 0.64), rgba(7, 57, 111, 0.58)),
        url('https://class.peter267.dpdns.org/static/group_photo.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 100px 16px 40px;
}

.hero-content {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 34px 28px;
    max-width: 760px;
    animation: fade-up 0.8s ease both;
}

.hero-content h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: clamp(2.4rem, 6vw, 4.3rem);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
}

.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    margin-bottom: 26px;
    color: #eaf1ff;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(15, 123, 255, 0.36);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(17, 182, 164, 0.36);
}

section {
    padding: 88px 0;
}

.page-content {
    padding-top: 108px;
    min-height: calc(100vh - 80px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-text {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.about-text h3 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.9rem;
    margin-bottom: 12px;
    color: #132c52;
}

.about-text p {
    font-size: 1.04rem;
    margin-bottom: 22px;
    color: var(--muted);
}

.stats {
    background: rgba(245, 251, 255, 0.9);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(38, 95, 165, 0.18);
}

.stats li {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #274268;
}

.stats li:last-child {
    margin-bottom: 0;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 34px rgba(14, 56, 113, 0.2);
}

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.45rem;
    margin-bottom: 10px;
    color: #12315f;
}

.card-content p {
    color: var(--muted);
}

.card.clickable {
    cursor: pointer;
}

.honors {
    background: transparent;
}

.honor-list {
    max-width: 880px;
    margin: 0 auto;
}

.honor-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    background: var(--surface-strong);
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.honor-item:hover {
    transform: translateX(4px);
}

.honor-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff9e7, #ffe6a7);
}

.honor-details h4 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: #1b3155;
}

.honor-details p {
    color: var(--muted);
}

.honor-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.view-certificate-btn {
    border: 1px solid rgba(15, 123, 255, 0.32);
    background: linear-gradient(120deg, rgba(15, 123, 255, 0.12), rgba(17, 182, 164, 0.18));
    color: #0c4a96;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 9px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-certificate-btn:hover {
    background: linear-gradient(120deg, rgba(15, 123, 255, 0.22), rgba(17, 182, 164, 0.3));
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(14, 78, 156, 0.2);
}

footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(17, 182, 164, 0.18), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(15, 123, 255, 0.16), transparent 40%),
        rgba(236, 245, 255, 0.78);
    border-top: 1px solid rgba(17, 60, 120, 0.14);
    backdrop-filter: blur(10px);
    text-align: center;
    color: #214067;
    padding: 26px 0;
    margin-top: 18px;
}

.footer-content p {
    margin-bottom: 8px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 20, 38, 0.64);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    margin: 8% auto;
    padding: 28px;
    border-radius: 20px;
    width: min(92%, 760px);
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: #6c7c96;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: #1b2f52;
}

#modal-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
}

#modal-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #13305a;
}

#modal-body {
    font-size: 1.03rem;
    color: #304564;
    line-height: 1.85;
}

.honor-modal-content {
    max-width: 900px;
}

#honor-certificate-image {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    margin: 8px 0 14px;
}

#honor-certificate-title {
    font-family: 'ZCOOL XiaoWei', serif;
    color: #17396a;
    font-size: 1.7rem;
    text-align: center;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 28px 20px;
    }
}

@media screen and (max-width: 768px) {
    header {
        top: 6px;
    }

    .nav-container {
        min-height: 62px;
        border-radius: 14px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header-logo {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 72px;
        width: 100%;
        min-height: 72vh;
        background: rgba(248, 252, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-20px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    .nav-links li {
        margin-bottom: 18px;
    }

    .nav-links li a {
        font-size: 1.05rem;
        padding: 10px 16px;
    }

    .nav-active {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .burger {
        display: block;
    }

    .hero {
        padding-top: 92px;
    }

    .page-content {
        padding-top: 88px;
    }

    .section-title {
        margin-bottom: 2.2rem;
    }

    .honor-item {
        grid-template-columns: 56px 1fr;
    }

    .honor-action {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 4px;
    }
}
