/* 登录按钮容器样式 - 修改为靠右显示 */
.login-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end; /* 改为右对齐 */
    width: 100%; /* 确保容器宽度充满父元素 */
}

/* 登录和注册按钮基础样式 */
.login-btn, .register-btn {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 60px;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

/* 登录按钮特定样式 - 增强美化 */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a6fd8;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* 注册按钮特定样式 */
.register-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #ee5d72;
}

.register-btn:hover {
    background: linear-gradient(135deg, #ee5d72 0%, #ec82e9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 87, 108, 0.4);
}

.register-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.3);
}

/* QQ登录按钮样式 - 增强美化 */
.qq-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #12b7f5 0%, #008fd4 100%);
    border: 1px solid #008fd4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-left: 2px;
}

.qq-login-btn:hover {
    background: linear-gradient(135deg, #008fd4 0%, #0075b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 183, 245, 0.4);
}

.qq-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(18, 183, 245, 0.3);
}

.qq-login-btn img {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.qq-login-btn:hover img {
    transform: scale(1.1);
}

/* 按钮波纹效果 */
.login-btn::after, .register-btn::after, .qq-login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.login-btn:active::after, .register-btn:active::after, .qq-login-btn:active::after {
    width: 100px;
    height: 100px;
}

/* 已登录状态样式 - 修改为靠右显示 */
.logged {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: flex-end; /* 靠右显示 */
    width: 100%; /* 确保容器宽度充满父元素 */
}

.logged b {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.logged a {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.3s ease;
    border: 1px solid #357abd;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logged a:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a6a9d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(53, 122, 189, 0.3);
}

.logged a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(53, 122, 189, 0.2);
}

.logged a:last-child {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #5a6268;
}

.logged a:last-child:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

/* 清除浮动 */
.clear {
    clear: both;
}

/* 响应式设计 - 保持右对齐但调整间距 */
@media (max-width: 768px) {
    .login-buttons {
        gap: 3px;
        justify-content: center; /* 在移动端居中显示，更美观 */
    }
    
    .login-btn, .register-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 55px;
    }
    
    .qq-login-btn {
        padding: 4px 6px;
    }
    
    .qq-login-btn img {
        width: 16px;
        height: 16px;
    }
    
    .logged {
        gap: 4px;
        font-size: 11px;
        justify-content: center; /* 在移动端居中显示 */
    }
    
    .logged a {
        padding: 3px 6px;
        font-size: 10px;
    }
}