/* 顶栏 —— 按用户最新截图 1:1 复刻 */
.site-header {
    background: linear-gradient(180deg, #232323, #1a1a1a);
    border-bottom: 1px solid #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.5);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 8px;
    gap: 0;
}

/* 字标 */
.brand {
    flex: 0 0 auto;
    padding: 0 12px 0 4px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -.6px;
    color: #fff;
    line-height: 44px;
}
.brand:hover { color: #fff; }
.brand-h { font-weight: 800; }

/* 彩色图标导航（每个图标独立方块 + 细分隔线） */
.nav-icons {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 44px;
}
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    border-right: 1px solid rgba(0,0,0,.45);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
    transition: background .15s;
}
.nav-icon:hover { background: rgba(255,255,255,.07); }
.nav-icon svg { fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0,0,0,.55)); }
.nav-icon-latest  { color: #a0d030; } /* 绿时钟 */
.nav-icon-popular { color: #d85050; } /* 红火 */
.nav-icon-toplist { color: #a858e0; } /* 紫钻 */
.nav-icon-random  { color: #e87830; } /* 橙随机箭头 */
.nav-icon-upload  { color: #d05050; } /* 红橙上传 */
.nav-icon-forum   { color: #f0b030; } /* 黄论坛 */

/* 更多（蓝色文字按钮） */
.nav-more-wrap { position: relative; height: 44px; }
.nav-more {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: #4aa3df;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.nav-more:hover, .nav-more[aria-expanded="true"] { background: rgba(255,255,255,.07); }

/* 更多下拉面板：3 列图标网格 + 社交行（按截图） */
.more-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 316px;
    padding: 14px;
    background: #161616;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.7);
    z-index: 1100;
}
.more-panel[hidden] { display: none; }
.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}
.more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}
.more-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, #2e2e2e, #222);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ddd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4);
}
.more-item:hover .more-ico { background: linear-gradient(180deg, #3a3a3a, #2a2a2a); color: #fff; }
.more-ico svg { fill: currentColor; }
.more-label { font-size: 12px; color: #aaa; text-align: center; line-height: 1.3; }
.more-item:hover .more-label { color: #ddd; }
.more-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 6px 2px;
    border-top: 1px solid #2e2e2e;
}
.social-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #8a8a8a;
    border-radius: 3px;
}
.social-ico:hover { color: #fff; background: #2e2e2e; }
.social-ico svg { fill: currentColor; }
.social-bluesky:hover { color: #38a3f0; }
.social-discord:hover { color: #5865f2; }

/* 搜索框 */
.search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 120px;
    max-width: 560px;
    margin-left: 10px;
}
.search-form {
    display: flex;
    align-items: center;
    height: 32px;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
}
.search-form:focus-within { border-color: #4aa3df; }
.search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #ccc;
    font-size: 13px;
}
.search-input::placeholder { color: #777; }
.search-camera, .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
}
.search-camera:hover, .search-submit:hover { color: #fff; }
.search-camera svg, .search-submit svg { fill: currentColor; }
.search-divider { width: 1px; height: 16px; background: #444; }

.search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #242424;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.search-suggest[hidden] { display: none; }
.search-suggest-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: transparent;
    border: none;
    color: #ddd;
    cursor: pointer;
}
.search-suggest-item:hover { background: #333; }
.search-suggest-type { float: right; color: #777; font-size: 11px; }

/* 右侧按钮：亮绿注册 + 深蓝灰登录（按截图） */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: 10px;
    padding-right: 4px;
}
.btn-register, .btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 56px;
    height: 32px;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-register {
    background: linear-gradient(180deg, #94c848, #6f9e2e);
    color: #fff;
    border: 1px solid #557d20;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.4);
}
.btn-register:hover { background: linear-gradient(180deg, #a3d657, #7cad3a); }
.btn-login {
    background: linear-gradient(180deg, #2c4a56, #1a323c);
    color: #dce8ea;
    border: 1px solid #122630;
    text-shadow: 0 1px 1px rgba(0,0,0,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.4);
}
.btn-login:hover { background: linear-gradient(180deg, #365a68, #214250); }

/* 窄屏汉堡菜单（wallhaven 同款：蓝色三条横线 + 悬停图标面板） */
.burger-wrap { position: relative; display: none; flex: 0 0 auto; }
.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #4aa3df;
    cursor: pointer;
}
.burger-btn:hover, .burger-btn[aria-expanded="true"] { background: #262626; color: #6cbeff; }
.burger-btn svg { fill: currentColor; }
.burger-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 316px;
    padding: 14px;
    background: #161616;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.7);
    z-index: 1100;
}
.burger-panel[hidden] { display: none; }
.burger-wrap:hover .burger-panel { display: block; }
.burger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
}
.burger-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}
.burger-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, #2e2e2e, #222);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ddd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4);
}
.burger-item:hover .burger-ico { background: linear-gradient(180deg, #3a3a3a, #2a2a2a); color: #fff; }
.burger-ico svg { fill: currentColor; }
.burger-label { font-size: 12px; color: #aaa; text-align: center; line-height: 1.3; }
.bi-latest .burger-ico, .bi-latest .burger-label { color: #a0d030; }
.bi-hot .burger-ico, .bi-hot .burger-label { color: #d85050; }
.bi-toplist .burger-ico, .bi-toplist .burger-label { color: #a858e0; }
.bi-random .burger-ico, .bi-random .burger-label { color: #e87830; }
.bi-upload .burger-ico, .bi-upload .burger-label { color: #d05050; }
.bi-forums .burger-ico, .bi-forums .burger-label { color: #f0b030; }
.burger-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 6px 2px;
    border-top: 1px solid #2e2e2e;
}

@media (max-width: 900px) {
    .nav-icons { display: none; }
    .burger-wrap { display: block; margin: 0 6px 0 2px; }
}
@media (max-width: 560px) {
    .btn-register, .btn-login { display: none; }
}
