/* ===================================================
   全面优化版：通用顶栏样式 (dinglan.css)
   彻底修复手机端不齐，并将风格融入内页，告别突兀
   =================================================== */

/* 顶栏外层大容器 */
.top-nav-bar {
    width: 100%;
    padding: 0;
    margin-bottom: 12px;
}

/* 内层包裹：电脑端和手机端的基础设置 */
.nav-inner {
    width: 650px;
    max-width: 100%; /* 确保在手机端不会超出屏幕 */
    margin: 0 auto;
    
    /* 🎨 风格改良：干掉生硬的纯深蓝，改用更典雅的暗墨绿，完美过渡下方的亮绿色 */
    background: #1e2d24; 
    border-radius: 10px;
    padding: 14px 30px;
    display: flex;
    gap: 45px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 导航按钮基础样式（电脑端生效） */
.nav-btn {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.25s ease;
    letter-spacing: 1px;
    
    /* ✦ 核心加入：让电脑端的字也变饱满扎实 ✦ */
    font-weight: bold !important; 
}


/* 🎨 悬停特效改动：把原本晃眼的科技蓝（#3498db）改为淡雅的玉石绿 */
.nav-btn:hover {
    background: #3a5f43; 
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(58, 95, 67, 0.4);
}

/* 用户头像区域 可点击跳转 */
.user-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

/* 彻底修复头像拉伸裂开 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #fff;
    display: block;
    background: #94a3b8;
}

.user-name-text {
    color: #fff;
    font-size: 16px;
}

/* ===================================================
   📱 移动端极致对齐与适配优化（全面修复缩进问题）
   =================================================== */
/* ===================================================
   📱 移动端完美圆角与对齐修正
   =================================================== */

/* ===================================================
   📱 移动端完美圆角与对齐修正（最终完美版）
   =================================================== */

/* ===================================================
   📱 移动端完美圆角与字样清晰度极致优化
   =================================================== */

/* 手机端与平板统一适配 */
@media (max-width: 650px) {
    /* 让外层大容器完全撑满，并且不带任何多余边距 */
    .top-nav-bar {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
    }

    .nav-inner {
        width: 100% !important; 
        margin: 0 auto !important;
        border-radius: 20px !important; 
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 10px !important; 
        box-sizing: border-box !important;
    }
    
    /* ✦ 核心优化：专门针对手机端按钮文字清晰度进行强力修复 ✦ */
    .nav-btn {
        font-size: 15px !important;
        padding: 4px 10px !important;
        letter-spacing: 0;
        
        /* 1. 强行加粗字体，对抗手机屏幕的自动弱化 */
        font-weight: bold !important; 
        
        /* 2. 增加一层极其微弱的黑色文字阴影，这能在视觉上勾勒出文字的轮廓，瞬间让字凸显出来 */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
        
        /* 3. 启用高级抗锯齿渲染，让字体边缘在手机上更圆润、更饱满 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
    }
    
    /* ✦ 如果已登录，用户名也要同步加粗清晰 ✦ */
    .user-name-text {
        font-size: 14px !important;
        font-weight: bold !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    }
}
