/**
 * 聚合登录样式
 */

.juhe-login-buttons {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.juhe-login-title {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    position: relative;
}

.juhe-login-title::before,
.juhe-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #ddd;
}

.juhe-login-title::before {
    left: 20%;
}

.juhe-login-title::after {
    right: 20%;
}

.juhe-login-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.juhe-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.juhe-login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

.juhe-login-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.juhe-login-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* 各平台颜色 */
.juhe-login-qq {
    background: #12b7f5;
}

.juhe-login-wx {
    background: #07c160;
}

.juhe-login-alipay {
    background: #1677ff;
}

.juhe-login-baidu {
    background: #2932e1;
}

.juhe-login-microsoft {
    background: #00a4ef;
}

.juhe-login-sina {
    background: #e6162d;
}

/* WordPress 登录页面样式 */
.login .juhe-login-buttons {
    background: transparent;
    padding: 10px 0;
}

.login .juhe-login-title::before,
.login .juhe-login-title::after {
    width: 40px;
}

.login .juhe-login-title::before {
    left: 10%;
}

.login .juhe-login-title::after {
    right: 10%;
}

/* 用户个人资料页面样式 */
.juhe-login-bindings {
    list-style: none;
    padding: 0;
    margin: 0;
}

.juhe-login-bindings li {
    padding: 10px;
    background: #f1f1f1;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.juhe-login-bindings li .button {
    margin-left: 10px;
}

/* 导航菜单中的登录按钮 */
.juhe-login-menu-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.juhe-login-menu-label {
    color: #666;
    font-size: 14px;
}

.juhe-login-menu-link {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.juhe-login-menu-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

/* 头部登录按钮区域 */
.juhe-login-header {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.juhe-login-header .juhe-login-buttons {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* 主题头部快捷登录样式 */
.site-header .juhe-login-buttons {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
}

.site-header .juhe-login-title {
    display: none;
}

.site-header .juhe-login-list {
    display: inline-flex;
    gap: 5px;
}

.site-header .juhe-login-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.site-header .juhe-login-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.site-header .juhe-login-text {
    font-size: 12px;
}

/* 深色模式适配 */
[data-bs-theme="dark"] .site-header .juhe-login-buttons {
    background: transparent;
}

/* 登录表单中的聚合登录样式 */
.juhe-login-form-wrapper .juhe-login-buttons {
    background: transparent;
    padding: 0;
}

.juhe-login-form-wrapper .juhe-login-title {
    display: none;
}

.juhe-login-form-wrapper .juhe-login-list {
    flex-direction: row;
    justify-content: center;
}

.juhe-login-form-wrapper .juhe-login-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .juhe-login-header {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        max-width: 100%;
    }
    
    .juhe-login-menu-item {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .juhe-login-menu-label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .juhe-login-list {
        flex-direction: column;
        align-items: center;
    }
    
    .juhe-login-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .juhe-login-title::before,
    .juhe-login-title::after {
        display: none;
    }
}
