/* 
 * 移动端侧边菜单样式
 * 适用于所有页面
 */

/* 移动端导航按钮 */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9001;
    position: relative;
}

.mobile-menu-btn:hover {
    background: rgba(112, 0, 255, 0.2);
}

.mobile-menu-btn i {
    font-size: 22px;
}

/* 移动端侧边导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9990;
}

.mobile-menu__container {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(to bottom, #15152d, #0b0b1a);
    z-index: 9995;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.mobile-menu.active .mobile-menu__container {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 9996;
}

.mobile-menu__header .logo {
    font-size: 1.2rem;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 9997;
}

.mobile-menu__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu__close i {
    font-size: 20px;
}

.mobile-menu__nav {
    margin-bottom: 30px;
    flex: 1;
    position: relative;
    z-index: 9996;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 9997;
}

.mobile-menu__item {
    margin-bottom: 5px;
    position: relative;
    z-index: 9997;
}

.mobile-menu__link {
    display: block;
    width: 100%;
    padding: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 9998;
    -webkit-tap-highlight-color: rgba(112, 0, 255, 0.2);
    border: 1px solid transparent;
    background-color: rgba(30, 30, 60, 0.5);
}

.mobile-menu__link:hover, .mobile-menu__link.active {
    background: rgba(112, 0, 255, 0.1);
    color: #fff;
    border-color: rgba(112, 0, 255, 0.3);
}

.mobile-menu__link:active {
    background: rgba(112, 0, 255, 0.2);
}

.mobile-menu__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__contact {
    margin-bottom: 20px;
}

.mobile-menu__contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.mobile-menu__contact-item i {
    margin-right: 10px;
    color: var(--primary-color, #7000ff);
    font-size: 1.1rem;
}

.mobile-menu__social {
    display: flex;
    gap: 12px;
}

.mobile-menu__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu__social-link:hover {
    background: var(--primary-color, #7000ff);
    transform: translateY(-3px);
}

/* 当导航打开时固定body */
body.mobile-menu-open {
    overflow: hidden;
}

/* 媒体查询适配 */
@media screen and (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
}

