/* ============================================================
   志睿源官网 · layout.css
   顶部导航 / 页脚 / 浮动联系 / 页面头图
   ============================================================ */

/* ── 顶部导航 ─────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.03em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    display: block;
    font-size: 16.5px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.01em;
    font-style: normal;
}

.brand__sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .04em;
    font-style: normal;
    margin-top: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink-3);
    font-weight: 500;
    white-space: nowrap;
}

.site-nav a:hover {
    background: var(--surface);
    color: var(--ink);
}

.site-nav a.is-active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 17px;
    height: 1.6px;
    background: var(--ink);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 1.6px;
    background: var(--ink);
}

.nav-toggle span::before {
    top: -5.5px;
}

.nav-toggle span::after {
    top: 5.5px;
}

/* ── 页脚 ─────────────────────────────────────────────── */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 56px 0 0;
    font-size: 14.5px;
}

.site-footer a {
    color: #CBD5E1;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-brand .brand__name {
    color: #fff;
}

.footer-brand p {
    margin: 14px 0 0;
    line-height: 1.8;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-meta {
    border-top: 1px solid rgba(148, 163, 184, .18);
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #7C8CA3;
}

.footer-meta a {
    color: #7C8CA3;
}

.footer-meta a:hover {
    color: #CBD5E1;
}

/* ── 浮动联系按钮 ─────────────────────────────────────── */
.float-bar {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-2);
    transition: transform .16s ease, box-shadow .16s ease;
    padding: 0;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--brand);
}

.float-btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.float-btn--primary:hover {
    background: var(--brand-hover);
    color: #fff;
}

.float-btn svg {
    width: 20px;
    height: 20px;
}

.float-btn.is-hidden {
    display: none;
}

/* 二维码气泡 */
.qr-pop {
    position: fixed;
    right: 78px;
    bottom: 26px;
    z-index: 91;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    text-align: center;
    display: none;
    font-size: 13px;
    color: var(--muted);
}

.qr-pop.is-open {
    display: block;
}

.qr-pop img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 8px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

/* ── 页面头 ───────────────────────────────────────────── */
.page-head {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.page-head h1 {
    margin-bottom: 12px;
}

.page-head .lead {
    margin-bottom: 0;
}

.page-head__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--muted);
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-3);
}

.meta-pill strong {
    color: var(--ink);
    font-weight: 650;
}

.meta-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok-fg);
    box-shadow: 0 0 0 3px var(--ok-bg);
}

/* ── 面包屑 ───────────────────────────────────────────── */
.crumb {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumb a {
    color: var(--muted);
}

.crumb a:hover {
    color: var(--brand);
}

.crumb span {
    margin: 0 8px;
    color: var(--muted-2);
}

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 18px 18px;
        gap: 2px;
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
        font-size: 15.5px;
    }

    .header-actions .btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-head {
        padding: 34px 0 30px;
    }
}
