:root {
    --navy: #062a78;
    --navy-dark: #041d58;
    --blue: #123f9d;
    --yellow: #fbc21b;
    --text: #17254b;
    --muted: #6d7690;
    --line: #e4e8f0;
    --bg: #f8faff;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 8px 28px rgba(11, 37, 92, .10);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

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


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eef1f6;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 430px;
}

.brand-logo {
    width: 105px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.brand-logo span {
    font-size: 14px;
}

.brand-cn {
    font-size: 29px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
}

.brand-en {
    margin-top: 4px;
    color: var(--navy);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    white-space: nowrap;
}

.main-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #142354;
    padding: 36px 0 30px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy);
    border-color: var(--navy);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    gap: 14px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    font-weight: 700;
    padding: 12px 28px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-small {
    padding: 9px 25px;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-dark);
}

.btn-outline {
    border-color: var(--navy);
    color: var(--navy);
    background: #fff;
}

.btn-yellow {
    background: var(--yellow);
    color: #17254b;
}


/* =========================================================
   MOBILE MENU BUTTON
   Hidden by default.
   It will ONLY appear at <= 1100px.
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;
    margin-left: auto;

    border: 1px solid #d9dfeb;
    border-radius: 7px;

    background: #fff;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;

    width: 23px;
    height: 3px;

    background: var(--navy);

    border-radius: 2px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 460px;

    background:
        linear-gradient(
            90deg,
            rgba(2,31,86,.98) 0%,
            rgba(5,47,115,.85) 34%,
            rgba(8,47,111,.15) 68%
        ),
        url('../images/union_building.jpg?v=1')
        center/cover no-repeat;

    color: #fff;
}

.hero-inner {
    min-height: 460px;

    display: grid;
    grid-template-columns: 1fr 330px;

    align-items: center;

    gap: 60px;
}

.hero-kicker {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1.15;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 21px;
    margin: 14px 0 28px;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: #fff;
    background: transparent;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    background: rgba(255,255,255,.98);
    color: var(--text);

    border-radius: 12px;

    padding: 28px 30px;

    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.login-card h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 25px;
}

.login-card h2::after {
    content: '';

    display: block;

    width: 40px;
    height: 3px;

    background: var(--navy);

    margin-top: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;

    font-size: 14px;

    margin-bottom: 7px;

    color: #4e5871;
}

.form-control {
    width: 100%;
    height: 46px;

    border: 1px solid #dfe3ea;
    border-radius: 7px;

    padding: 0 13px;

    font-size: 15px;

    outline: none;
}

.form-control:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(18,63,157,.09);
}

.login-meta {
    display: flex;
    justify-content: space-between;

    font-size: 13px;

    margin: 4px 0 16px;
}

.login-meta a {
    color: var(--navy);
    font-weight: 700;
}

.login-card .btn {
    width: 100%;
}

.login-register {
    text-align: center;

    font-size: 13px;

    margin-top: 16px;
}

.login-register a {
    color: var(--navy);
    font-weight: 700;
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.quick-links {
    padding: 18px 0 10px;
}

.quick-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.quick-card {
    display: flex;
    align-items: center;

    gap: 18px;

    min-height: 104px;

    background: #fff;

    border: 1px solid #e7eaf1;

    border-radius: 9px;

    padding: 18px 22px;

    box-shadow:
        0 5px 20px rgba(16,43,99,.07);
}

.quick-icon {
    font-size: 36px;

    color: var(--navy);

    width: 58px;

    text-align: center;
}

.quick-card h3 {
    margin: 0 0 4px;

    font-size: 18px;

    color: var(--navy);
}

.quick-card p {
    margin: 0;

    color: #606a82;

    font-size: 14px;

    line-height: 1.45;
}

.quick-arrow {
    margin-left: auto;

    color: var(--yellow);

    font-size: 25px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 22px 0 55px;
}

.section-heading {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;

    font-size: 25px;

    color: var(--navy);
}

.section-heading h2::after {
    content: '';

    display: block;

    width: 62px;
    height: 3px;

    background: var(--yellow);

    margin-top: 7px;
}

.section-heading a {
    color: var(--navy);

    font-weight: 700;
}


/* =========================================================
   NEWS
   ========================================================= */

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.news-card {
    border: 1px solid #e2e6ee;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;
}

.news-image {
    height: 150px;

    background:
        linear-gradient(
            135deg,
            #dbe5f8,
            #9eafd0
        );

    display: grid;

    place-items: center;

    color: var(--navy);

    font-size: 38px;

    font-weight: 800;
}

.news-body {
    padding: 16px 18px 18px;
}

.news-title {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 18px;
}

.news-meta {
    color: #68728a;

    font-size: 13px;

    display: flex;

    justify-content: space-between;

    gap: 10px;
}

.status {
    border-radius: 4px;

    padding: 4px 8px;

    background: #eef2ff;

    color: var(--navy);

    white-space: nowrap;
}

.status.open {
    background: #e5f7ea;

    color: #1d7c3b;
}


/* =========================================================
   INNER PAGE HERO
   ========================================================= */

.page-hero {
    background:
        linear-gradient(
            120deg,
            var(--navy),
            #1652b7
        );

    color: #fff;

    padding: 55px 0;
}

.page-hero h1 {
    margin: 0;

    font-size: 42px;
}

.page-content {
    padding: 50px 0 80px;

    min-height: 450px;
}

.content-card {
    background: #fff;

    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: var(--shadow);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);

    color: #fff;

    padding-top: 28px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1.5fr
        1.2fr
        auto;

    align-items: center;

    gap: 35px;
}

.footer-brand {
    display: flex;

    gap: 14px;

    align-items: center;
}

.footer-logo {
    width: 54px;
    height: 62px;

    color: #fff;

    border-color: #fff;

    font-size: 16px;
}

.footer-brand strong {
    font-size: 15px;
}

.footer-brand span {
    opacity: .9;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 0;
}

.footer-links a {
    padding: 0 18px;

    border-right:
        1px solid rgba(255,255,255,.3);

    font-size: 14px;
}

.footer-links a:first-child {
    padding-left: 0;
}

.footer-contact {
    font-size: 14px;

    line-height: 2;
}

.socials {
    display: flex;

    gap: 12px;
}

.socials a {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #fff;

    color: var(--navy);

    font-weight: 800;
}

.footer-bottom {
    border-top:
        1px solid rgba(255,255,255,.18);

    margin-top: 22px;

    padding: 13px 0;

    font-size: 12px;

    opacity: .8;
}


/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-page {
    background: var(--bg);

    min-height:
        calc(100vh - 100px);

    padding: 60px 0;
}

.auth-card {
    width: min(460px, 100%);

    margin: 0 auto;

    background: #fff;

    border-radius: 12px;

    padding: 34px;

    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-top: 0;

    color: var(--navy);
}


/* =========================================================
   TABLET / SMALL DESKTOP
   1200px
   ========================================================= */

@media screen and (max-width: 1200px) {

    .brand {
        min-width: auto;
    }

    .brand-cn {
        font-size: 22px;
    }

    .brand-en {
        font-size: 13px;
    }

    .main-nav {
        gap: 18px;
    }

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

    .header-actions {
        gap: 8px;
    }

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


/* =========================================================
   TABLET / MOBILE NAVIGATION
   1100px
   ========================================================= */

@media screen and (max-width: 1100px) {

    .header-inner {
        min-height: 80px;

        position: relative;

        padding: 10px 0;

        flex-wrap: nowrap;
    }

    /* SHOW HAMBURGER */
    .mobile-menu-toggle {
        display: flex;
    }

    /* HIDE DESKTOP NAV */
    .main-nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        margin: 0;

        padding: 10px 20px 20px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: #fff;

        border-top:
            1px solid #eee;

        box-shadow:
            0 8px 20px rgba(0,0,0,.12);

        z-index: 1000;
    }

    /* OPEN MENU */
    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: block;

        width: 100%;

        padding: 14px 10px;

        border-bottom:
            1px solid #eee;

        font-size: 16px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* Hide login/register */
    .header-actions {
        display: none;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;

        padding: 45px 0;
    }

    .login-card {
        max-width: 420px;
    }

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


/* =========================================================
   PHONE
   600px
   ========================================================= */

@media screen and (max-width: 600px) {

    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        min-height: 72px;

        padding: 7px 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 48px;
        height: 58px;
    }

    .brand-cn {
        font-size: 18px;
    }

    .brand-en {
        font-size: 11px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .quick-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .content-card {
        padding: 22px;
    }
}