/* 快捷键助手 - 静态页头样式 */

body {
    padding-top: 88px;
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-brand:hover {
    color: #2563eb;
}

.site-brand__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.site-brand__icon i {
    font-size: 1.2rem;
}

.site-menu {
    position: relative;
    margin: 0;
}

.site-menu > summary {
    list-style: none;
}

.site-menu > summary::-webkit-details-marker {
    display: none;
}

.site-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #334155;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-menu__toggle:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.site-menu__toggle i {
    font-size: 1rem;
}

.site-menu[open] .site-menu__toggle {
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.14);
}

.site-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 240px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    display: grid;
    gap: 8px;
    z-index: 1050;
}

.site-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-menu__link:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateX(2px);
}

.site-menu__link.is-active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}

.site-menu__link i {
    font-size: 1rem;
    color: #64748b;
}

.site-menu__link.is-active i,
.site-menu__link:hover i {
    color: inherit;
}

.card-footer a {
    color: inherit;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    body {
        padding-top: 84px;
    }

    .site-header__inner {
        min-height: 68px;
    }

    .site-brand {
        font-size: 1rem;
    }

    .site-brand__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .site-menu__toggle span {
        display: none;
    }

    .site-menu__panel {
        width: min(260px, calc(100vw - 24px));
    }
}
