/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 670px; /* 横幅图底部位置：70px导航栏 + 600px横幅图 */
    right: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: rgba(138, 51, 255, 0.2);
    color: #fff;
}

.sidebar-item.active {
    background: rgba(138, 51, 255, 0.3);
    color: #fff;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #8a33ff;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: #8a33ff;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-icon {
    width: 24px;
    height: 24px;
    color: #8a33ff;
}

.download-arrow {
    color: #666;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        right: 10px;
        padding: 15px 10px;
    }
    
    .sidebar-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
}

/* 移动端侧边栏按钮样式 */
.mobile-sidebar-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #8a33ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999; /* 提高z-index确保不被其他元素遮挡 */
    box-shadow: 0 4px 20px rgba(138, 51, 255, 0.6);
    transition: all 0.3s ease;
    /* 确保按钮在各种设备上都能正确显示 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* 防止按钮被其他元素遮挡 */
    pointer-events: auto;
}

/* 确保SVG元素不拦截按钮的点击事件 */
.mobile-sidebar-btn svg {
    pointer-events: none;
    stroke: #fff;
}

.mobile-sidebar-btn:hover {
    background: #7c2aea;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(138, 51, 255, 0.7);
}

.mobile-sidebar-btn.active {
    background: #8a33ff;
}

.mobile-sidebar-btn.active:hover {
    background: #7c2aea;
}

/* 移动端侧边栏样式 */
@media (max-width: 480px) {
    .sidebar {
        display: none;
        position: fixed;
        bottom: 80px;
        right: 20px;
        top: auto;
        width: 200px;
        height: auto;
        z-index: 999;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 10px 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: none;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .sidebar.active {
        display: block;
    }
    
    .mobile-sidebar-btn {
        display: flex;
    }
    
    .sidebar-menu {
        margin-top: 0;
    }
    
    .sidebar-item {
        padding: 12px 18px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-item:last-child {
        border-bottom: none;
    }
    
    .sidebar-icon {
        width: 18px;
        height: 18px;
    }
}

/* 平板端样式调整 */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-sidebar-btn {
        display: none;
    }
}