@charset "UTF-8";

:root {
    --bg: #020822;
    --panel: rgba(5,16,46,.94);
    --text: #f4fbff;
    --muted: #9fb6de;
    --accent: #39f2aa;
    --accent-blue: #38b6ff;
    --shadow-big: 0 26px 80px rgba(0,0,0,.7);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    background: #020822;
}

body {
    background: radial-gradient(circle at 0 0, rgba(26,107,255,0.3) 0, transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(17,223,140,0.3) 0, transparent 55%),
                #020822;
    background-attachment: fixed;
}

body:not(.home) #content,
body:not(.home) .neve-main,
body:not(.home) .site-content,
body:not(.home) .site-main {
    background: transparent !important;
}

body:not(.home) .inside-article,
body:not(.home) .nv-single-page-wrap,
body:not(.home) .nv-index-posts,
body:not(.home) .nv-archive-list,
body:not(.home) .nv-page-title-wrap {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(179,219,255,.2);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

body:not(.home) .inside-article {
    margin-top: 30px;
    margin-bottom: 30px;
}

body:not(.home) .nv-single-page-wrap,
body:not(.home) .nv-index-posts,
body:not(.home) .nv-archive-list,
body:not(.home) .nv-page-title-wrap {
    padding: 20px;
}

header.site *,
footer.site *,
.drawer-overlay * {
    box-sizing: border-box;
}

header.site .container,
footer.site .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: block;
}

/* ========== 全站顶部导航 ========== */
header.site {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #053993 0, #0a64d0 35%, #06bf8f 100%);
    border-bottom: 1px solid rgba(46,122,211,.7);
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0;
}

header.site .site-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 0 12px;
    height: 60px;
    width: 100%;
}

header.site .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    height: 100%;
}

header.site .brand > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    line-height: normal;
}

header.site .brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    display: block;
}

header.site .brand strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

header.site .brand .sub {
    color: rgba(223,239,255,.9);
    font-size: 11px;
    line-height: 1.1;
}

header.site nav.menu {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
    height: 60px;
}

header.site nav.menu a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(233,246,255,.96);
    background: rgba(4,16,43,.4);
    border: 1px solid rgba(179,219,255,.26);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: fit-content;
}

header.site nav.menu a:hover {
    background: rgba(5,26,70,.9);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

header.site .burger {
    display: none;
    align-items: center;
    height: 60px;
}

header.site .burger button {
    background: rgba(5,20,58,.9);
    border: 1px solid rgba(191,227,255,.5);
    color: #e4f3ff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 960px) {
    header.site nav.menu {
        display: none;
    }
    header.site .burger {
        display: flex;
    }
}

/* ========== 全站抽屉菜单 ========== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    z-index: 80;
}

.drawer-overlay.show {
    display: block;
}

.drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82%, 380px);
    background: #020826;
    border-left: 1px solid #10243f;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.drawer-overlay.show .drawer {
    transform: translateX(0);
}

.drawer a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: #e3f0ff;
    font-size: 14px;
    margin-bottom: 4px;
    text-decoration: none;
}

.drawer a:hover {
    background: #07152f;
    color: #fff;
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #10243f;
}

.drawer-head strong {
    color: #f6fbff;
}

.drawer-head button {
    background: #07152f;
    border: 1px solid #1d3b63;
    color: #cfe8ff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

/* ========== 全站页脚 ========== */
footer.site {
    margin-top: 40px;
    padding: 20px 0 15px;
    background: radial-gradient(circle at top, #061a45 0, transparent 60%), #020818;
    border-top: 1px solid rgba(25,64,125,.9);
    width: 100%;
    color: var(--text);
}

footer.site .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 960px) {
    footer.site .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    footer.site .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    footer.site .footer-col:first-child {
        grid-column: span 2;
        margin-bottom: 5px;
    }
}

footer.site .footer-col h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #dfeaff;
}

footer.site .footer-col p,
footer.site .footer-col a {
    font-size: 12px;
    color: #a5c7ff;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

footer.site .footer-col a:hover {
    color: var(--accent);
}

footer.site .footer-bottom {
    padding-top: 15px;
    border-top: 1px dashed rgba(26,47,95,.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

@media (max-width: 640px) {
    footer.site .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}

footer.site .footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

footer.site .footer-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6,24,68,.96);
    border: 1px solid rgba(42,104,186,.9);
    font-size: 10px;
    color: #d9ecff;
}
