/* 官网子页面（技术支持 / 隐私政策 / 更新公告）顶部导航与页脚，与首页保持一致的视觉风格 */
.vsp-topbar {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #1c1c1e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vsp-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 52px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vsp-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1c1c1e;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.vsp-brand img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
}

.vsp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.vsp-nav a {
    color: #3a3a3c;
    text-decoration: none;
    font-size: 13.5px;
    white-space: nowrap;
    transition: color 0.2s;
}

.vsp-nav a:hover,
.vsp-nav a.active {
    color: #3a74b8;
}

.vsp-nav a.active {
    font-weight: 600;
}

.vsp-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vsp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3a74b8;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.vsp-cta:hover {
    background: #2c5f9c;
}

.vsp-lang-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 语言按钮左侧的 App 下载按钮（仅官网子页面，主页不加） */
.vsp-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3a74b8;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 980px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.vsp-dl-btn:hover {
    background: #2c5f9c;
    color: #fff !important;
}

/* 桌面导航中的下载按钮整体左移 10px（不影响移动端紧凑布局） */
.vsp-nav > .vsp-dl-btn {
    transform: translateX(-10px);
}

.vsp-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.vsp-menu-btn span {
    display: block;
    width: 20px;
    height: 1.6px;
    background: #1c1c1e;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.vsp-topbar.open .vsp-menu-btn span:nth-child(1) {
    transform: translateY(6.6px) rotate(45deg);
}

.vsp-topbar.open .vsp-menu-btn span:nth-child(2) {
    opacity: 0;
}

.vsp-topbar.open .vsp-menu-btn span:nth-child(3) {
    transform: translateY(-6.6px) rotate(-45deg);
}

.vsp-nav .lang-switch-container,
.vsp-nav .lang-selector-wrap {
    display: flex;
    align-items: center;
}

.vsp-nav-actions .lang-switch-container {
    display: none;
    align-items: center;
}

@media (max-width: 860px) {
    .vsp-topbar-inner {
        padding: 0 18px;
    }

    .vsp-nav {
        display: none;
    }

    .vsp-topbar.open .vsp-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
        padding: 16px 20px 20px;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .vsp-topbar.open .vsp-nav a {
        font-size: 15px;
    }

    .vsp-nav-actions .lang-switch-container {
        display: flex;
    }

    .vsp-cta {
        display: none;
    }

    .vsp-dl-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .vsp-topbar-inner {
        gap: 10px;
    }

    .vsp-menu-btn {
        display: flex;
    }
}

@media (max-width: 400px) {
    .vsp-brand span {
        display: none;
    }
}

/* ===== 顶部语言按钮 / 语言面板（与主页 .lang-selector-btn 视觉一致） ===== */
.vsp-mobile-lang {
    display: none;
    align-items: center;
    gap: 8px;
}

.vsp-lang-btn {
    border: 1px solid rgba(58, 116, 184, 0.3);
    background: #fff;
    color: #3a74b8;
    font-size: 13px;
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.vsp-lang-btn:hover {
    background: #3a74b8;
    color: #fff;
}

.vsp-lang-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vsp-lang-overlay.open {
    display: flex;
}

.vsp-lang-panel {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    min-width: 240px;
    max-width: 85vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.vsp-lang-panel h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.vsp-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 2px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.vsp-lang-item:hover {
    background: #e9f1fb;
}

.vsp-lang-item.active {
    background: #e8f0fe;
    border-color: #3a74b8;
    font-weight: 600;
}

.vsp-lang-flag {
    font-size: 16px;
}

.vsp-lang-check {
    margin-left: auto;
    color: #3a74b8;
    font-weight: 700;
    visibility: hidden;
}

.vsp-lang-item.active .vsp-lang-check {
    visibility: visible;
}

@media (max-width: 860px) {
    .vsp-mobile-lang {
        display: flex;
    }
}

/* 语言切换已迁到顶部导航按钮；旧切换条保留在 DOM 中（仅隐藏），
   这样 App 传入的 ?lang= 参数解析、localStorage 偏好以及脚本触发的 .click() 都不受影响 */
#langSwitcher {
    display: none !important;
}

.vsp-site-footer {
    background: #fff;
    border-top: 1px solid #e3e7ee;
    margin-top: 32px;
    font-size: 14px;
}

.vsp-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 18px;
}

.vsp-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vsp-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 15px;
}

.vsp-footer-brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.vsp-footer-tagline {
    margin-top: 6px;
    color: #8a8a8f;
    font-size: 13px;
}

.vsp-footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.vsp-footer-links a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
}

.vsp-footer-links a:hover {
    color: #3a74b8;
}

.vsp-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    color: #8a8a8f;
    font-size: 12px;
}

@media (prefers-color-scheme: dark) {
    /* 全站为浅色设计，页脚在深色模式下保持浅色，避免与浅色主体页面割裂 */
    .vsp-site-footer {
        background: #fff;
        border-top-color: #eee;
    }

    .vsp-footer-brand {
        color: #1c2c5b;
    }

    .vsp-footer-links a {
        color: #4a5470;
    }

    .vsp-footer-bottom {
        border-top-color: #eee;
        color: #8a8a8f;
    }
}

/* ===== 页脚“联系我们”站内弹窗（mailto 无邮件客户端时的可视化反馈） ===== */
.vsp-contact-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vsp-contact-mask.open {
    display: flex;
}

.vsp-contact-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-sizing: border-box;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.vsp-contact-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
    color: #2c3e6b;
    text-align: center;
}

.vsp-contact-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #8a8a8f;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.vsp-contact-desc {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

.vsp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 9px;
    background: #2c3e6b;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all;
}

.vsp-contact-btn span:last-child {
    flex-shrink: 0;
    opacity: 0.85;
}

.vsp-contact-btn.secondary {
    background: #fff;
    color: #2c3e6b;
    border: 1px solid #2c3e6b;
}

@media (prefers-color-scheme: dark) {
    .vsp-contact-card {
        background: #fff;
        color: #1c2c5b;
    }

    .vsp-contact-card h3 {
        color: #1c2c5b;
    }

    .vsp-contact-desc {
        color: #4a5470;
    }

    .vsp-contact-btn.secondary {
        background: #fff;
        color: #2c3e6b;
        border-color: #2c3e6b;
    }
}
