* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Microsoft YaHei;
    background-color: #F9F9F9;
    color: #333333;
}

a {
    text-decoration: none;
}

/* 移动端 */
.safe-width {
    width: calc(100% - 24px);
    margin: 0 auto;
}

.header {
    width: 100%;
    height: 42px;
    background-color: #EDEDED;
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    display: block;
    height: 12px;
}

.logo img {
    height: 100%;
}

.menu-toggle {
    position: absolute;
    top: 50%;
    margin-top: -12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: url('../imgs/menu.png') no-repeat center / 14px 14px;
}

.menu-toggle.active {
    background-image: url('../imgs/menu-close.png');
}

.nav {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    z-index: 9;
    background-color: #EDEDED;
    flex-direction: column;
    padding: 20px;
    row-gap: 18px;
}

.nav.active {
    display: flex;
    align-items: center;
    background: #fff url('../imgs/plan-bg2.png') no-repeat center / cover;
}

.nav-item {
    font-weight: 400;
    font-size: 12px;
    color: #333333;
    letter-spacing: 1px;
}

.nav-item.active {
    font-weight: bold;
    font-size: 13px;
}

.footer {
    width: 100%;
    background: #262935;
    padding-top: 25px;
    padding-bottom: 25px;
}

.footer-top {
    display: flex;
    column-gap: 18px;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo {
    height: 12px;
    line-height: 12px;
}

.footer-logo img {
    height: 100%;
}

.footer-contact {
    font-weight: bold;
    font-size: 11px;
    color: #FFFFFF;
    font-style: italic;
    display: flex;
    column-gap: 10px;
    align-items: center;
    letter-spacing: 3px;
}

.footer-contact::before {
    content: '';
    display: block;
    width: 1px;
    height: 7px;
    background: #FFFFFF;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-about {
    display: none;
}

.footer-product {
    display: none;
}

.footer-plan {
    display: none;
}

.footer-qrcode {
    display: flex;
    justify-content: center;
    column-gap: 18px;
    margin-top: 15px;
    margin-bottom: 18px;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-img {
    width: 47px;
    height: 47px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.qrcode1 {
    background-image: url('../imgs/qrcode1.png');
}

.qrcode2 {
    background-image: url('../imgs/qrcode2.png');
}

.qrcode-text {
    font-weight: 400;
    font-size: 10px;
    color: #FFFFFF;
    opacity: 0.4;
    margin-top: 9px;
    line-height: 1;
}

.footer-bottom {
    width: 310px;
    margin: 14px auto 0;
    line-height: 16px;
    text-align: center;
    font-weight: 400;
    font-size: 10px;
    color: #FFFFFF;
    opacity: 0.4;
}

.title-wrap {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-wrap .title {
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    padding-bottom: 10px;
    position: relative;
    letter-spacing: 2px;
}

.title-wrap .title::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #014099;
    border-radius: 1px;
    bottom: 0;
    left: 50%;
    margin-left: -12px;
}

.title-wrap .subtitle {
    font-weight: 400;
    font-size: 12px;
    color: #014099;
    line-height: 20px;
    margin-top: 5px;
    letter-spacing: 1px;
    text-align: center;
}

.title-wrap .subtitle.small {
    font-size: 9px;
}

.title-wrap .title .white {
    color: #FFFFFF;
}

.title-wrap .title .orange {
    color: #EE7802;
}

.title-wrap .title.small {
    font-size: 15px;
}

.title-wrap.dark .title::after {
    background: #FFFFFF;
}

.title-wrap.dark .subtitle {
    color: #FFFFFF;
}

.swiper-pagination-bullet {
    width: 5px !important;
    height: 5px !important;
}

.swiper-pagination-bullet-active {
    background: #014099 !important;
}

/* 默认状态：透明且偏移（隐藏） */
/* 1. 从下往上移动 + 淡入 */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 2. 从左向右移动 + 淡入 */
.fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* 3. 由小变大 + 淡入 (缩放) */
.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
        transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.zoom-in.in-view {
    opacity: 1;
    transform: scale(1);
}

/* 也可以使用关键帧动画方式，下面是一个额外例子：旋转进入 */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.5s ease;
}

.rotate-in.in-view {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 回到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #014099;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    opacity: 0;
    /* 默认隐藏 */
    transform: translateY(20px);
    pointer-events: none;
    /* 防止隐藏时点击 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* 显示状态 */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 悬停效果 */
#back-to-top:hover {
    background: #2563eb;
    transform: scale(1.08);
}

/* 焦点效果（辅助功能） */
#back-to-top:focus-visible {
    outline: 3px solid #1e293b;
    outline-offset: 3px;
}

/* 简单的箭头图标（用 CSS 绘制） */
#back-to-top::before {
    content: "▲";
    display: block;
    line-height: 1;
    font-size: 14px;
}

/* 滚动条样式（可选） */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

/* pc端 */
@media screen and (min-width: 768px) {
    #back-to-top {
        width: 56px;
        height: 56px;
        bottom: 30px;
        right: 30px;
    }

    #back-to-top::before {
        font-size: 24px;
    }

    .header {
        height: 90px;
        min-width: 1200px;
        background-color: #F9F9F9;
    }

    .safe-width {
        width: 1200px;
        min-width: 1200px;
        height: 100%;
        margin: 0 auto;
    }

    .logo {
        height: 24px;
    }

    .header-content {
        justify-content: space-between;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        column-gap: 65px;
        background-color: unset;
        width: unset;
        padding: unset;
    }

    .nav-item {
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        letter-spacing: 1px;
    }

    .nav-item.active {
        font-weight: bold;
        font-size: 16px;
    }

    .title-wrap {
        height: 175px;
    }

    .title-wrap .title {
        font-size: 30px;
        padding-bottom: 14px;
    }

    .title-wrap .title::after {
        width: 40px;
        margin-left: -20px;
    }

    .title-wrap .subtitle {
        font-size: 18px;
        line-height: 29px;
        margin-top: 12px;
    }

    .title-wrap .subtitle.small {
        font-size: 18px;
    }

    .title-wrap .title.small {
        font-size: 30px;
    }

    .footer {
        width: 100%;
        min-width: 1200px;
        height: 440px;
        background: #262935;
        padding-top: 96px;
        padding-bottom: unset;
    }

    .footer-top {
        display: flex;
        justify-content: flex-start;
        column-gap: 30px;
        align-items: center;
        margin-bottom: 28px;
    }

    .footer-logo {
        height: 24px;
        line-height: 24px;
    }

    .footer-logo img {
        height: 100%;
    }

    .footer-contact {
        font-size: 22px;
        column-gap: 20px;
        letter-spacing: 3px;
    }

    .footer-contact::before {
        width: 2px;
        height: 14px;
    }

    .divider {
        width: 100%;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .footer-mid {
        padding-top: 40px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 11px;
    }

    .footer-about {
        display: block;
        width: 160px;
    }

    .footer-product {
        display: block;
        width: 240px;
    }

    .footer-plan {
        display: block;
        width: 310px;
    }

    .footer-qrcode {
        width: 210px;
        display: flex;
        justify-content: space-between;
        margin-top: unset;
        margin-bottom: unset;
    }

    .footer-title {
        font-weight: 400;
        font-size: 18px;
        line-height: 1;
        color: #FFFFFF;
        opacity: 0.8;
        margin-bottom: 22px;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-item {
        font-weight: 400;
        font-size: 14px;
        color: #FFFFFF;
        line-height: 32px;
        opacity: 0.4;
    }

    .qrcode-img {
        width: 62px;
        height: 62px;
    }

    .qrcode-text {
        font-size: 14px;
        margin-top: 19px;
    }

    .footer-bottom {
        width: 100%;
        margin-top: 49px;
        line-height: 1;
        font-size: 14px;
    }
}