/* ===================================================
   首页专属：黑金国风顶栏样式 (index_custom.css)
   =================================================== */

/* 彻底干掉原本的深蓝色背景，限制宽度并微调对齐 */
.top-nav-bar {
    width: 100%;
    max-width: 650px;              /* 严格对齐下方 650px 的主容器 */
    margin: 0 auto 15px auto;      /* 居中，并与下方主卡片保持精致间距 */
    padding: 0;                    /* ✦ 将这里的 padding 改为 0 ✦ */
    background: transparent; 
    box-shadow: none;
}

/* 将内层包裹转化为半透明玄黑木质感，带微弱金边 */
.nav-inner {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    background: linear-gradient(180deg, #161210 0%, #0f0c0a 100%); /* 玄黑底色 */
    border: 1px solid rgba(140, 107, 67, 0.4); /* 极细暗古铜金边框 */
    border-radius: 8px;
    padding: 12px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    
    /* ✦ 新增下面两行：强制让内层边框撑满 100% 宽度，消除缩进 ✦ */
    width: 100%;
    box-sizing: border-box;
}


/* 顶栏普通按钮：变成国风宣纸金 */
.nav-inner .nav-btn {
    color: #ccab7e;                
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent; /* 移除原本的蓝色底色 */
}

/* 鼠标悬停时的发光特效 */
.nav-inner .nav-btn:hover {
    color: #f9f4dc;                
    text-shadow: 0 0 8px rgba(204, 171, 126, 0.7); 
    background: rgba(140, 107, 67, 0.15); 
}

/* === 已登录：头像和用户名的古风美化 === */
.user-avatar-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;                      
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(140, 107, 67, 0.1); 
    border: 1px solid rgba(140, 107, 67, 0.2);
    transition: all 0.3s ease;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccab7e;     
    box-shadow: 0 0 5px rgba(204, 171, 126, 0.4);
}

.user-name-text {
    color: #ccab7e;
    font-size: 0.9rem;
    max-width: 80px;               
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;       
}

.user-avatar-wrap:hover {
    border-color: rgba(204, 171, 126, 0.8);
    background: rgba(140, 107, 67, 0.25);
}
.user-avatar-wrap:hover .user-name-text {
    color: #f9f4dc;
    text-shadow: 0 0 5px rgba(204, 171, 126, 0.6);
}