@media screen and (max-width: 768px) {
    body {
        font-size: var(--font-size-text-base);
    }
}

body {
    -webkit-font-smoothing: antialiased;
    /* 抗锯齿 */
    font: 16px/1.5 var(--font-family-primary);
    color: var(--font-color-primary);
    background-color: #F4F5F9;
}


/* 清除所有标签的内外边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 使用CSS3盒子模型 */
}

/* 清除列表项的默认样式 */
ul,
ol {
    list-style: none;
}

/* 设置图片的默认样式 */
img {
    border: 0;
    /* 去掉图片外边框 */
    vertical-align: middle;
    /* 取消图片底侧空白缝隙 */
}

/* 设置链接的默认样式 */
a {
    color: var(--font-color-primary);
    text-decoration: none;
}

a:hover {
    /* color: var(--font-color-hover); */
}

/* 设置按钮和输入框的默认样式 */
button,
input {
    font-family: var(--font-family-primary);
    border: 0;
    /* 去掉默认边框 */
    outline: none;
    /* 去掉输入框的蓝色边框 */
    cursor: pointer;
    /* 鼠标悬停时变成小手 */
}

/* 清除浮动 */
.clearfix:after {
    visibility: hidden;
    clear: both;
    display: block;
    content: ".";
    height: 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    box-shadow: inset 0px -2px 0px 0px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-40);
    background: rgba(255, 255, 255, 0.2);
    /* background: linear-gradient(270deg, rgba(0, 76, 126, 0.56) 0%, rgba(0, 117, 193, 0) 57.96%); */
    background-image: url('navbar-bg.png');
    background-size: 100% 100%;
    transition: all var(--animation-duration-fast) var(--animation-ease-in-out);
}

.navbar.scrolled {
    background-color: var(--color-brand-secondary);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: var(--spacing-40);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 250px;
}

.logo img {
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-20);
    flex: 1 1 auto;
    overflow: hidden;
}

.nav-link {
    font-size: var(--font-size-nav);
    line-height: 18px;
    color: #fff;
    transition: all var(--animation-duration-fast) var(--animation-ease-in-out);
    position: relative;
    flex: 1 0 auto;
    text-align: center;
    text-shadow: 0px 1px 8px #004379;
}

.nav-link:hover {
    /* color: var(--color-brand-primary); */
}

.nav-link.active {
    font-weight: var(--font-weight-medium);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--color-brand-primary);
    z-index: -1;
}

.nav-divider {
    height: 40px;
    width: 2px;
    background-image: url('nav-divider.png');
}

.nav-link-language {
    flex: 0 0 100px;
    text-align: center;
}

/* 页脚 */
.footer {
    background-color: #0075C4;
    color: #ffffff;
    padding: var(--spacing-40) 0 var(--spacing-20);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-20);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    width: 300px;
    margin-bottom: var(--spacing-80);
}

.footer-logo img {
    width: 100%;
    object-fit: contain;
    height: 40px;
}

.footer-info {
    flex: 0 0 350px;
    min-width: 300px;
    margin-right: var(--spacing-60);
}

.footer-nav {
    flex: 2;

}

.footer-nav-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-nav-column {
    /* flex: 1; */
    margin-bottom: var(--spacing-20);
}

.footer-nav-title {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    margin-bottom: var(--spacing-15);
    color: #ffffff;
}

.footer-nav-link {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--font-size-text-base);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-nav-link:hover {
    color: #ffffff;
}

.contact-item {
    margin-bottom: var(--spacing-24);
    font-size: var(--font-size-text-base);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 24px;
}

.contact-item i {
    margin-right: var(--spacing-10);
    width: 16px;
    text-align: center;
}

.footer-qr {
    text-align: center;
    margin-top: var(--spacing-20);
}

.footer-qr img {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-10);
}

.footer-qr-text {
    font-size: var(---font-size-text-xs);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-30);
    padding-top: var(--spacing-20);
    text-align: center;
    font-size: var(--font-size-text-xs);
    color: #fff;
}

.footer-contact {
    float: right;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    line-height: 24px;
}

/* 页面banner区域 */
.page-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.banner-content {
    width: 100%;
    height: 100%;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 二级导航区域 */
.page-nav {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    height: 80px;
}

.nav-container {
    width: 100%;
    height: inherit;
}

.nav-list {
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.nav-item {
    flex: 1;
    height: inherit;
}

.nav-item a {
    width: 100%;
    height: inherit;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-item a:hover {
    color: #3584e4;
}

.nav-item .nav-logo {
    width: 30px;
    height: 30px;
    display: inline-block;
}

.nav-item .nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-item.active a {
    color: #fff;
    background: #0075C1;
    position: relative;
}

.nav-item.active img {
    filter: brightness(0) invert(1);
}



/* 底部中间加个倒三角 */
.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top: 12px solid #0075C1;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    bottom: -12px;
}


.nav-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.nav-item span {
    font-size: var(--font-size-text-base);
}

/* 首屏导航栏动画：从顶部滑入 */
.nav-anim {
    animation: navSlideDown 0.6s ease-out forwards;
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首屏横幅内容动画：淡入并轻微放大 */
.banner-anim {
    animation: bannerFadeIn 1s ease-out forwards;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0.7;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 注意：不要给 gsap-* 类加 will-change: transform 之类的属性——
   属性选择器会误伤 <html>（打标类 gsap-anim）及带 gsap- 类的祖先容器，
   使其成为 position:fixed 后代的包含块，导致导航栏/悬浮按钮 fixed 失效；
   GSAP 动画运行时浏览器会自动创建合成层，无需 CSS 提示 */

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-info,
    .footer-nav,
    .footer-contact {
        margin-right: 0;
        margin-bottom: var(--spacing-30);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {

    /* 导航栏样式 */
    .navbar {
        padding: 0 var(--spacing-20);
    }

    .nav-links {
        gap: var(--spacing-20);
    }
}

/* ========== GSAP 动画初始状态防闪烁 ==========
   html 未打 gsap-anim 标记（universal.js 尚未执行/加载失败）时先隐藏所有待动画元素，
   CSS 先于首次绘制生效，避免“先显示内容、再隐藏、再播动画”的闪烁；
   failsafe：5 秒后强制显示，防止 JS 加载失败导致内容永久消失
   （universal.js 为 defer，正常远早于 5 秒执行并在同帧打标接管，不会与 failsafe 竞态） */
@keyframes gsap-boot-failsafe {
    to { opacity: 1; }
}

html:not(.gsap-anim) .gsap-fade-up,
html:not(.gsap-anim) .gsap-fade-up-lg,
html:not(.gsap-anim) .gsap-fade-down,
html:not(.gsap-anim) .gsap-fade-left,
html:not(.gsap-anim) .gsap-fade-left-lg,
html:not(.gsap-anim) .gsap-fade-right,
html:not(.gsap-anim) .gsap-fade-right-lg,
html:not(.gsap-anim) .gsap-scale-in,
html:not(.gsap-anim) .gsap-scale-out,
html:not(.gsap-anim) .gsap-flip-x,
html:not(.gsap-anim) .gsap-flip-y,
html:not(.gsap-anim) .gsap-reveal,
html:not(.gsap-anim) .gsap-stagger > *,
html:not(.gsap-anim) .gsap-section .gsap-animate {
    opacity: 0;
    animation: gsap-boot-failsafe 0.01s linear 5s forwards;
}