/* SafeW 5 全站公共样式 */

.site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92) !important;
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.07);
}

.header-inner {
    position: relative;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    background: #fff;
    color: var(--text, #111827);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-menu-btn:hover {
    border-color: #cfd4dc;
    background: var(--bg-soft, #f7f8fb);
}

.nav a.active {
    color: var(--primary, #2f6dff);
}

.site-footer {
    padding: 52px 0 24px;
}

.footer-main {
    gap: 0;
}

.footer-logo {
    width: min(220px, 70vw);
    margin: 0 auto 18px;
}

.footer-desc {
    max-width: 560px;
    margin: 0 auto;
}

.footer-bottom {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .header-inner {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: 64px !important;
        padding: 10px 0 !important;
        gap: 12px !important;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .header-actions .btn {
        min-height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0 !important;
        padding: 8px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line, #e5e7eb);
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
        z-index: 60;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav a:hover,
    .nav a.active {
        background: var(--bg-soft, #f7f8fb);
        color: var(--primary, #2f6dff);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container, 1280px), calc(100% - 28px));
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-desc {
        font-size: 14px;
        line-height: 1.75;
    }
}
