/* 修复移动端导航栏问题 */

/* 菜单切换按钮样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* 链接样式优化 */
.domain a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 2px 0;
    cursor: pointer;
}

.domain a:hover {
    color: var(--primary-hover);
}

.domain a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-hover);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.domain a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Telegram联系链接特殊样式 */
.telegram-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 30px !important;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    background-color: rgba(89, 170, 231, 0.1) !important;
    color: #59AAE7 !important;
}

.telegram-link::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    background-image: url('../images/telegram-icon.svg');
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.telegram-link:hover::before {
    transform: scale(1.2);
}

.download-links a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.download-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 复制提示样式 */
.copy-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
    padding: 2px 6px;
    background-color: rgba(26, 144, 255, 0.1);
    border-radius: 4px;
    vertical-align: middle;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 导航栏 */
    .header-inner {
        padding: 0.8rem 1rem;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 15px 10px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        z-index: 1000;
        display: none; /* 初始状态为隐藏 */
    }
    
    .nav.active {
        display: flex; /* 激活时显示 */
    }
    
    .nav a {
        width: auto;
        font-size: 14px;
        text-align: center;
        padding: 8px 14px;
    }
    
    .nav .register {
        width: auto;
        margin-top: 0;
    }
    
    /* 菜单切换按钮 */
    .menu-toggle {
        display: flex;
        margin-right: 8px;
        z-index: 1010;
    }
    
    /* 下载链接在移动端的样式 */
    .download-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .download-links a {
        min-width: 90px;
    }
    
    /* 复制提示在移动端的样式 */
    .copy-hint {
        display: block;
        margin: 5px auto;
        text-align: center;
        width: fit-content;
    }
    
    /* Telegram图标在移动端的样式 */
    .telegram-link {
        padding-left: 26px !important;
    }
    
    .telegram-link::before {
        left: 8px;
        width: 14px;
        height: 14px;
    }
} 