/* 导航栏样式 - 清除冲突 */
.navbar {
    background: rgba(15, 15, 15, 0.95) !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
    height: 76px !important;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
    padding: 20px 0 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 76px !important;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: #ffc107 !important;
    transform: none !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 26px 20px !important;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    height: 76px !important;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .dropdown-menu {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 10px;
}

.navbar-nav .dropdown-item {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.navbar-nav .dropdown-item.active {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* 二级导航（面包屑） */
.sub-header {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    height: 50px;
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.breadcrumb-item a:hover {
    color: #ffc107;
}

.breadcrumb-item.active {
    color: #ffc107;
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* 响应式导航 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        height: auto !important;
    }
    
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
    
    .sub-header {
        top: auto !important;
        position: relative !important;
    }
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
}

.form-control:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
}

.form-select:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875em;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 玩家中心下拉菜单样式 */
#playerCenterDropdown {
    position: relative;
}

#playerCenterDropdown::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#playerCenterDropdown:hover::after,
#playerCenterDropdown.active::after {
    width: 80%;
}

/* 下拉菜单项图标样式 */
.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #667eea;
}

.dropdown-item:hover i {
    color: #ffc107;
}

/* 分隔线样式 */
.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* 退出按钮样式调整 */
.logout-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-radius: 25px;
    padding: 8px 20px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.5);
    font-weight: 500;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: white !important;
}

/* 角色选择下拉菜单优化 */
#characterDropdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 150px;
}

#characterDropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

#currentCharacterName {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* 导航栏右侧布局 */
.navbar-nav:last-child {
    align-items: center;
}

.navbar-nav:last-child > li {
    margin-left: 5px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    #characterDropdown {
        width: 100%;
        margin: 5px 0;
    }
    
    .logout-btn {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
}
