/* ==================== 主页样式 ==================== */

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    overflow-x: hidden;
}

/* 滚动淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏毛玻璃效果 */
.nav-blur {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
}

/* ==================== 微信二维码弹窗 ==================== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-mask.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-mask.show .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}
.qr-code-box {
    width: 290px;
    height: 330px;
    margin: 0 auto 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}
.qr-code-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮无障碍样式 */
button:focus-visible {
    outline: 2px solid #165DFF;
    outline-offset: 2px;
}
a:focus-visible {
    outline: 2px solid #165DFF;
    outline-offset: 2px;
}

/* ==================== 移动端菜单 ==================== */
#mobileMenu {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}