/* =========================
   site-header
   ========================= */
.site-header {
    width: 92%;
    height: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    position: sticky;
    background: rgba(5, 5, 5, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}
.site-header {
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}
.header-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
}
.header-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}
.header-icon:hover {
    background: #1a2230;
}
.wechat-modal {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .68);
}
.wechat-modal.show {
    display: flex;
}
.wechat-dialog {
    position: relative;
    width: 300px;
    max-width: calc(100vw - 40px);
    padding: 26px 24px 22px;
    background: #111824;
    border: 1px solid #273244;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    text-align: center;
    transform: translateY(-30px);
}
.wechat-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}
.wechat-desc {
    margin-top: 8px;
    color: #8d99ab;
    font-size: 13px;
    line-height: 1.5;
}
.wechat-qr {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 20px auto 14px;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    object-fit: contain;
}
.wechat-tip {
    color: #697589;
    font-size: 12px;
    line-height: 1.5;
}
/* Logo */
.logo {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .5px;
    text-decoration: none;
}
.logo span {
    color: #38bdf8;
}
/* PC Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav > a {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    transition: color .2s ease;
}
.nav > a:hover {
    color: #fff;
}
.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.telegram-link svg {
    display: block;
}
/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-actions img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.user-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #dce5f0;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s ease;
}
.user-actions .btn:hover {
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
    background: rgba(255, 255, 255, .05);
}
/* Mobile Menu Button */
.menu-btn {
    display: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}
/* Mobile Menu */
.mobile-menu {
    display: none;
}
/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
        padding: 0 20px;
    }
    .wechat-modal {
        padding: 16px;
    }
    .wechat-dialog {
        width: calc(100vw - 32px);
        max-width: 320px;
        padding: 24px 18px 20px;
        border-radius: 14px;
    }
    .wechat-title {
        font-size: 17px;
    }
    .wechat-desc {
        font-size: 12px;
    }
    .wechat-qr {
        width: min(220px, 65vw);
        height: min(220px, 65vw);
        margin-top: 18px;
    }
    .logo {
        font-size: 18px;
    }
    .nav {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .mobile-menu {
        position: absolute;
        top: 60px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px;
        background: #111722;
        box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
    }
    .mobile-menu.show {
        display: flex;
    }
    .mobile-social{
        display:flex;
        flex-direction:column;
        gap:4px;
        margin-top:8px;
    }

    .mobile-social-item{
        display:flex;
        align-items:center;
        gap:9px;
        width:100%;
        height:40px;
        padding:0;
        margin:0;
        border:0;
        border-radius:0;
        outline:none;
        background:transparent;
        box-shadow:none;
        color:inherit;
        font:inherit;
        font-size:15px;
        line-height:1;
        text-decoration:none;
        text-align:left;
        cursor:pointer;
        appearance:none;
        -webkit-appearance:none;
    }

    .mobile-social-item img{
        width:18px;
        height:18px;
        object-fit:contain;
        border-radius:0;
    }
    .mobile-social-item svg{
        width:18px;
        height:18px;
        flex:none;
    }

    .mobile-social-item:hover{
        opacity:.75;
    }

    .mobile-wechat img{
        display:block;
        width:18px;
        height:18px;
        object-fit:contain;
        flex:none;
    }
}