:root {
    --brand: #0D3875;
    --brand-deep: #0A2F60;
    --gold: #C9A163;
    --ink: #333A45;
    --ink-soft: #3A4A5E;
    --gray: #7A8698;
    --line: #DCE6F2;
    --wash: #F4F8FE;
    --tint: #EAF2FF;
    --footer: #0E2137;
    --border-hover: #BFD3EA;
    --pill-bd: #CFE0F3;
    --pill-bg: #F3F8FF;
    --num-soft: #D6E3F5;
    --tick: #8A94A6;
    --sep: #B9C7DC;
    --hover-row: #F7FAFF;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 14px;
    color: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 顶部条 */
.top-bar {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}

.top-bar .slogan {
    letter-spacing: 1px;
}

.top-bar a {
    margin-left: 16px;
    color: rgba(255, 255, 255, .62);
    transition: color .2s;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .user-name {
    color: #fff;
    margin-right: 10px;
}

/* 导航 */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 84px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 34px;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
}

.nav-menu a {
    display: block;
    position: relative;
    padding: 0 14px;
    line-height: 84px;
    font-size: 14px;
    color: var(--ink-soft);
    transition: color .2s;
}

.nav-menu a:hover {
    color: var(--brand);
}

.nav-menu a.active {
    color: var(--brand);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--brand);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-right .btn-login {
    border: 1px solid var(--brand);
    color: var(--brand);
    padding: 6px 18px;
    border-radius: 3px;
    font-size: 13px;
    transition: background .2s, color .2s;
}

.nav-right .btn-login:hover {
    background: var(--brand);
    color: #fff;
}

.nav-right .btn-quit {
    border: 1px solid var(--line);
    color: var(--gray);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-left: 10px;
}

.nav-right .btn-quit:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.nav-right .nav-user {
    font-size: 13px;
    color: var(--ink);
    margin-right: 2px;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.link-btn:hover {
    color: #fff;
}

.menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 3px;
    color: var(--ink-soft);
}

/* 轮播图（全站共用） */
.banner {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: var(--brand-deep);
}

.banner-track {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    max-width: 90%;
    color: #fff;
    text-align: center;
}

/* 不上遮罩，靠一圈很淡的黑描边把字从照片里拎出来 */
.banner-text h2 {
    font-size: 33px;
    font-weight: 600;
    letter-spacing: 5px;
    -webkit-text-stroke: 1px rgba(9, 22, 40, .55);
    text-shadow: 0 1px 4px rgba(9, 22, 40, .45);
}

.banner-text .sub {
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(9, 22, 40, .9), 0 1px 4px rgba(9, 22, 40, .55);
}

.banner-text p {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 2px rgba(9, 22, 40, .95), 0 0 5px rgba(9, 22, 40, .7), 0 1px 5px rgba(9, 22, 40, .6);
}

.banner-text .btn {
    margin-top: 20px;
}

/* 透明边框按钮压在亮照片上会消失，轮播里改成白底实心 */
.banner-text .btn-ghost {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.banner-text .btn-ghost:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.banner-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, .5);
    margin: 0 5px;
    transition: background .2s;
    box-shadow: 0 0 3px rgba(9, 22, 40, .45);
}

.banner-dots .dot.active {
    background: #fff;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 54px;
    border: none;
    background: rgba(0, 0, 0, .22);
    transition: background .2s;
}

.banner-arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.banner-arrow.prev {
    left: 0;
}

.banner-arrow.prev::before {
    transform: rotate(-135deg);
    margin-left: 16px;
}

.banner-arrow.next {
    right: 0;
}

.banner-arrow.next::before {
    transform: rotate(45deg);
    margin-right: 16px;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, .45);
}

/* 面包屑 */
.crumb {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.crumb .container {
    display: flex;
    align-items: center;
    height: 46px;
    font-size: 12px;
    color: var(--gray);
}

.crumb a:hover {
    color: var(--brand);
}

.crumb span.sep {
    margin: 0 8px;
    color: var(--sep);
}

.crumb .current {
    color: var(--ink);
}

/* 区块 */
.section {
    padding: 62px 0;
}

.section.wash {
    background: var(--wash);
}

.section.tint {
    background: var(--tint);
}

.section-head {
    text-align: center;
    margin-bottom: 38px;
}

.section-head .kicker {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
}

.section-head h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--ink);
    margin-top: 8px;
}

.section-head .line {
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 12px;
}

.section-head p {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: .5px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 11px 32px;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 2px;
    border: none;
    transition: background .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-deep);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
    background: transparent;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--brand);
}

.btn-outline {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: #fff;
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* 通用卡片 */
.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 页脚 */
.site-footer {
    background: var(--footer);
    color: rgba(255, 255, 255, .55);
    margin-top: 4px;
}

.footer-main {
    display: flex;
    padding: 46px 0 32px;
}

.footer-brand {
    width: 38%;
    padding-right: 40px;
}

.footer-brand .fb-logo {
    height: 46px;
    width: auto;
    background: #fff;
    padding: 9px 13px;
    border-radius: 3px;
    margin-bottom: 18px;
    box-sizing: content-box;
}

.footer-brand p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, .5);
}

.footer-col {
    width: 20.6%;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 13px;
    line-height: 2.1;
    color: rgba(255, 255, 255, .5);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 14px 0 18px;
    color: rgba(255, 255, 255, .34);
}

/* 回到顶部 */
.back-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 3px;
    background: rgba(13, 36, 62, .82);
    color: #fff;
    z-index: 200;
    display: none;
}

.back-top::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: -2px auto 0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: rotate(45deg);
}

.back-top.show {
    display: block;
}

.back-top:hover {
    background: var(--brand);
}

/* 提示条 */
.toast-msg {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-deep);
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    z-index: 999;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 1100px) {
    .nav-menu a {
        padding: 0 10px;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .banner {
        height: 280px;
    }

    .banner-text h2 {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .section {
        padding: 46px 0;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        flex-wrap: wrap;
    }

    .footer-brand {
        width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .footer-col {
        width: 33.3%;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .logo {
        margin-right: 0;
    }

    .logo-img {
        height: 54px;
    }

    .menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 8px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        line-height: 42px;
        padding: 0;
        border-top: 1px solid var(--line);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .top-bar .slogan {
        display: none;
    }

    .top-bar .container {
        justify-content: flex-end;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-col {
        width: 50%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .banner {
        height: 260px;
    }

    .banner-text {
        max-width: 72%;
    }

    .banner-text h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    /* 窄屏一行只剩几十个字，小字压不住背景，索性只留标题和按钮 */
    .banner-text .sub,
    .banner-text p {
        display: none;
    }

    .banner-text .btn {
        margin-top: 16px;
        padding: 9px 24px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .banner-arrow {
        width: 30px;
        height: 44px;
    }

    .section-head h2 {
        font-size: 21px;
        letter-spacing: 2px;
    }
}