/* 紧急修复 - 导航栏布局问题 */

/* 备用鼠标显示机制 - 当自定义鼠标未激活时保持可见 */
body:not(.custom-cursor-active) * {
    cursor: auto !important;
}

body:not(.custom-cursor-active) a, 
body:not(.custom-cursor-active) button, 
body:not(.custom-cursor-active) .btn, 
body:not(.custom-cursor-active) [role="button"], 
body:not(.custom-cursor-active) input[type="submit"], 
body:not(.custom-cursor-active) input[type="button"],
body:not(.custom-cursor-active) .nav-main a, 
body:not(.custom-cursor-active) .nav-right a, 
body:not(.custom-cursor-active) .logo a, 
body:not(.custom-cursor-active) .more a, 
body:not(.custom-cursor-active) .pagination a {
    cursor: pointer !important;
}

body:not(.custom-cursor-active) input[type="text"], 
body:not(.custom-cursor-active) input[type="email"], 
body:not(.custom-cursor-active) input[type="password"], 
body:not(.custom-cursor-active) input[type="search"], 
body:not(.custom-cursor-active) textarea, 
body:not(.custom-cursor-active) [contenteditable] {
    cursor: text !important;
}

/* 最强优先级 - 确保所有容器都居中 */
html body * .container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 特殊情况处理 */
html body .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10001 !important;
}

/* 强制重置所有容器宽度 - 确保居中 */
html body .container,
html body.home .container,
html body.single .container,
html body.page .container,
html body.archive .container,
html body.search .container,
html body.category .container,
html body.tag .container {
    max-width: 1200px !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
}

/* 导航栏强制修复 */
html body .header .container {
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 70px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* 导航元素强制布局 */
html body .header .logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
}

html body .header .nav-main {
    display: flex !important;
    align-items: center !important;
    margin-left: 30px !important;
    flex: 1 !important;
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
}

html body .header .nav-right {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* 导航链接强制样式 */
html body .header .nav-main > li {
    float: none !important;
    display: inline-flex !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

html body .header .nav-main > li > a {
    padding: 25px 13px 23px !important;
    display: block !important;
    white-space: nowrap !important;
}

html body .header .nav-right > li {
    float: none !important;
    display: inline-flex !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* 响应式断点处理 - 强化居中 */
@media (max-width: 1230px) {
    html body .header .container {
        max-width: 990px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1024px) {
    html body .header .container {
        max-width: 895px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 925px) {
    html body .header .container {
        max-width: 737.5px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    html body .header .container {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    html body .header .nav-main {
        margin-left: 0 !important;
    }
}

/* 防止文字被挤压 */
html body .header * {
    box-sizing: border-box !important;
}

/* 清除可能的浮动问题 */
html body .header .container::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* 强制重置字体大小 */
html body .header .nav-main,
html body .header .nav-right {
    font-size: 15px !important;
}

/* 确保头像正常显示 */
html body .header .nav-login .avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
} 