/* 移动端导航栏美化 */

/* 移动端导航栏样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 110, 253, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-radius: 8px;
        margin: 2px 0;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link i {
        width: 20px;
        text-align: center;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        margin-top: 5px;
        backdrop-filter: blur(10px);
    }
    
    .dropdown-item {
        padding: 10px 15px;
        border-radius: 6px;
        margin: 2px 5px;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(13, 110, 253, 0.1);
        transform: translateX(3px);
    }
    
    .dropdown-item i {
        width: 18px;
        text-align: center;
        color: #0d6efd;
    }
    
    /* 移动端搜索框 */
    .d-lg-none .form-control {
        border-radius: 25px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding: 10px 15px;
    }
    
    .d-lg-none .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .d-lg-none .form-control:focus {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .d-lg-none .btn-outline-light {
        border-radius: 25px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 8px 15px;
    }
    
    /* 移动端用户信息 */
    .d-lg-none hr {
        border-color: rgba(255, 255, 255, 0.3);
        margin: 15px 0;
    }
    
    .d-lg-none .nav-link strong {
        font-size: 1.1em;
    }
    
    /* 移动端退出登录按钮 */
    .d-lg-none button.nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        text-align: left;
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
        margin: 2px 0;
        transition: all 0.3s ease;
    }
    
    .d-lg-none button.nav-link:hover {
        background: rgba(220, 53, 69, 0.2);
        color: #fff !important;
        transform: translateX(5px);
    }
    
    /* 移动端菜单项动画 */
    .navbar-collapse.show .nav-item {
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }
    
    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 桌面端保持原有样式 */
@media (min-width: 992px) {
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: none;
    }
    
    .dropdown-item {
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(13, 110, 253, 0.1);
        transform: translateX(2px);
    }
}