/* 公共基础样式 - 所有页面共享 */

:root {
    --bg: #f6f8fb;
    --text: #0e1b2f;
    --muted: #445369;
    --primary: #0f4c81;
    --accent: #25b2a8;
    --card: #ffffff;
    --line: #e6ebf2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}

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

.container {
    width: min(1520px, 92vw);
    margin: 0 auto;
}

.container-content {
    width: min(1280px, 92vw);
    margin: 0 auto;
}


/* Header & Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 76px;
    background: #012168;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
    position: relative;
}

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

.brand-image img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ebf8ff;
}

.brand-name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.brand-sub {
    margin: 0;
    font-size: 0.77rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 80px;
    color: #d9e4ff;
    font-weight: 500;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    opacity: 1;
}

.nav-icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.nav-home .nav-icon {
    background-image: url("../assets/home/icon_home.png");
}

.nav-services .nav-icon {
    background-image: url("../assets/home/icon_services.png");
}

.nav-team .nav-icon {
    background-image: url("../assets/home/icon_team.png");
}

.nav-faq .nav-icon {
    background-image: url("../assets/home/icon_faq.png");
}

.nav-glossary .nav-icon {
    background-image: url("../assets/home/icon_syb.png");
}

.nav-contact .nav-icon {
    background-image: url("../assets/home/icon_lxwm.png");
}

.nav-home:hover .nav-icon,
.nav-home.active .nav-icon {
    background-image: url("../assets/home/icon_home-h.png");
}

.nav-services:hover .nav-icon,
.nav-services.active .nav-icon {
    background-image: url("../assets/home/icon_services-h.png");
}

.nav-team:hover .nav-icon,
.nav-team.active .nav-icon {
    background-image: url("../assets/home/icon_team-h.png");
}

.nav-faq:hover .nav-icon,
.nav-faq.active .nav-icon {
    background-image: url("../assets/home/icon_faq-h.png");
}

.nav-contact:hover .nav-icon,
.nav-contact.active .nav-icon {
    background-image: url("../assets/home/icon_lxwm-h.png");
}

.nav-glossary:hover .nav-icon,
.nav-glossary.active .nav-icon {
    background-image: url("../assets/home/icon_syb-h.png");
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    display: block;
}


/* 通用排版 */

h1,
h2,
h3,
h4 {
    line-height: 1.3;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.section {
    padding: 80px 0 0;
}

.section h2 {
    margin: 0;
    font-size: 32px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
}

.section-lead {
    margin-top: 30px;
    font-size: 20px;
    margin-bottom: 0;
    color: var(--muted);
}


/* 通用页面头部 */

.page-head {
    padding: 62px 0;
    background: radial-gradient(circle at 15% 15%, #e8f7ff, transparent 45%), linear-gradient(180deg, #f7fbff 0%, #fff 80%);
    border-bottom: 1px solid var(--line);
}

.page-head .breadcrumbs {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-head p {
    /* margin: 14px 0 0;
    max-width: 820px; */
    color: #2f4567;
}


/* 通用按钮 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1269aa);
    color: #fff;
}

.btn-outline {
    border-color: #b5c9df;
    color: #163f67;
    background: #fff;
}


/* Footer */

.site-footer {
    padding-top: 32px;
    background: #0e214a;
    color: #a9b8d8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
    width: min(1520px, 92vw);
}

.footer-grid {
    margin-top: 0;
    grid-template-columns: 1.6fr 1fr 0.9fr 1.15fr;
    gap: 24px;
    align-items: start;
    display: grid;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: #fff;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.footer-brand p {
    margin: 12px 0 14px;
    color: #95a7cf;
    font-size: 16px;
    line-height: 1.6;
}

.footer-logo {
    width: min(323px, 100%);
    height: auto;
    display: block;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease;
}

.footer-socials:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-social-xhs {
    width: 32px;
    height: 16px;
    background: url("../assets/home/小红书.png") center center / contain no-repeat;
}

.footer-social-xhs:hover {
    background: url("../assets/home/小红书-h.png") center center / contain no-repeat;
    transform: translateY(-1px);
}

.footer-service-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    column-gap: 22px;
    grid-template-rows: repeat(3, minmax(34px, auto));
    grid-auto-flow: column;
    row-gap: 10px;
    align-items: center;
}

.footer-col .footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 34px;
    line-height: 1.1;
    white-space: nowrap;
    color: #a9b8d8;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col>.footer-link+.footer-link {
    margin-top: 10px;
}

.footer-col .footer-link::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.86;
    transition: opacity 0.2s ease, transform 0.2s ease, background-image 0.2s ease;
}

.footer-link-jkbx::before {
    background-image: url("../assets/home/icon_jkbx(1).png");
}

.footer-link-rsbx::before {
    background-image: url("../assets/home/icon_zssnx(1).png");
}

.footer-link-zjbx::before {
    background-image: url("../assets/home/icon_zjjbx(1).png");
}

.footer-link-srbx::before {
    background-image: url("../assets/home/icon_srbhx(1).png");
}

.footer-link-fdbx::before {
    background-image: url("../assets/home/icon_fdbhx(1).png");
}

.footer-link-zssn::before {
    background-image: url("../assets/home/icon_zssnx(1).png");
}

.footer-link-gywm::before {
    background-image: url("../assets/home/icon_gywm.png");
}

.footer-link-jrw::before {
    background-image: url("../assets/home/icon_team(1).png");
}

.footer-link-lxwm::before {
    background-image: url("../assets/home/icon_lxwm.png");
}

.footer-link-tel::before {
    background-image: url("../assets/home/icon_tell(3).png");
}

.footer-link-email::before {
    background-image: url("../assets/home/icon_email(1).png");
}

.footer-link-wx::before {
    background-image: url("../assets/home/icon_wx(1).png");
}

.footer-link-wx-qr {
    gap: 6px;
}

.footer-qr-badge {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background: url("../assets/icon/微信二维码.png") center / contain no-repeat;
    border-radius: 2px;
    opacity: 0.95;
}

.footer-link-jkbx:hover::before {
    background-image: url("../assets/home/icon_jkbx-h.png");
}

.footer-link-rsbx:hover::before {
    background-image: url("../assets/home/icon_zssnx-h.png");
}

.footer-link-zjbx:hover::before {
    background-image: url("../assets/home/icon_zjjbx-h.png");
}

.footer-link-srbx:hover::before {
    background-image: url("../assets/home/icon_srbhx-h.png");
}

.footer-link-fdbx:hover::before {
    background-image: url("../assets/home/icon_fdbhx-h.png");
}

.footer-link-zssn:hover::before {
    background-image: url("../assets/home/icon_zssnx-h.png");
}

.footer-link-gywm:hover::before {
    background-image: url("../assets/home/icon_gywm-h.png");
}

.footer-link-jrw:hover::before {
    background-image: url("../assets/home/icon_team-h.png");
}

.footer-link-lxwm:hover::before {
    background-image: url("../assets/home/icon_lxwm-h.png");
}

.footer-link-tel:hover::before {
    background-image: url("../assets/home/icon_tell-h.png");
}

.footer-link-email:hover::before {
    background-image: url("../assets/home/icon_email-h.png");
}

.footer-link-wx:hover::before {
    background-image: url("../assets/home/icon_wx-h.png");
}

.footer-col .footer-link:hover {
    color: #ffffff;
}

.footer-col .footer-link:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

.footer-bottom {
    width: 100%;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    padding: 12px 0 14px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.copyright {
    margin: 0;
    color: #93a5ca;
    font-size: 14px;
}

.footer-policy-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-policy-links a {
    position: relative;
    color: #ACC0DC;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-policy-links a+a {
    padding-left: 30px;
}

.footer-policy-links a+a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 1px;
    height: 16px;
    transform: translateY(-50%);
    background: rgba(172, 192, 220, 0.45);
}

.footer-policy-links a:hover {
    color: #3cd02d;
}

.footer-back-top {
    margin-left: auto;
    color: #9eb2db;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: none;
}


/* 图片灯箱 - 多页面共用 */

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.82);
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.image-lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(92vw, 720px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}


/* 公共响应式 */

@media (max-width: 1366px) {
    .nav {
        gap: 48px;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(1540px, 92vw);
    }
    .site-footer .container {
        width: min(1540px, 92vw);
    }
    .menu-toggle {
        display: inline-flex;
    }
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #082a76;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding: 8px 4vw 12px;
        z-index: 20;
    }
    .site-header.is-open .nav {
        display: flex;
    }
    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    /* 底部：平板两列 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-socials {
        margin-top: 24px;
    }
    .footer-bottom-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .footer-back-top {
        margin-left: 0;
    }
    .footer-service-links {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

@media (max-width: 620px) {
    .container {
        width: calc(100vw - 32px);
    }
    .why-contact .container {
        padding-bottom: 30px !important;
    }
    .nav-wrap {
        min-height: 56px;
    }
    .brand-image img {
        height: 30px;
    }
    .section {
        padding: 30px 0 30px;
        padding-bottom: 30px !important;
    }
    /* 通用页面头部：移动端字号与间距 */
    .page-head {
        padding: 38px 0;
    }
    .page-head h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }
    .page-head p {
        margin: 12px 0 0;
        font-size: 0.95rem;
        line-height: 1.7;
    }
    /* 图片灯箱：移动端更紧凑、易关闭 */
    .image-lightbox {
        padding: 16px;
    }
    .lightbox-image {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 96px);
        border-radius: 12px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    /* 底部：移动端单列、加大间距 */
    .site-footer {
        padding-top: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-footer .container {
        width: 100%;
        max-width: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-logo {
        max-width: 280px;
    }
    .footer-socials {
        margin-top: 20px;
    }
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .footer-col .footer-link {
        white-space: normal;
        word-break: break-word;
        min-height: 40px;
        font-size: 0.88rem;
    }
    .footer-col>.footer-link+.footer-link {
        margin-top: 8px;
    }
    /* 底部版权区：垂直排列、居中 */
    .footer-bottom {
        margin-top: 28px;
        padding-top: 20px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 0 20px;
        gap: 16px;
    }
    .copyright {
        order: 1;
        font-size: 0.8rem;
    }
    .footer-policy-links {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
        box-sizing: border-box;
        gap: 10px 14px;
        justify-content: center;
    }
    .footer-policy-links a+a {
        padding-left: 0;
    }
    .footer-policy-links a+a::before {
        content: none;
    }
    .footer-back-top {
        order: 3;
        width: 100%;
        max-width: 200px;
        justify-content: center;
        display: inline-flex;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}