/* ZY 用户卡片：仿 Zibll 风格侧边栏登录卡片 */

.zy-usercard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 封面 */
.zy-usercard-cover {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #667eea;
    position: relative;
}
.zy-usercard-cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .18));
}

/* 头像：压在封面下沿，居中 */
.zy-usercard-avatar {
    width: 72px;
    height: 72px;
    margin: -36px auto 0;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zy-usercard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 正文区 */
.zy-usercard-body {
    padding: 12px 16px 18px;
    text-align: center;
}
.zy-usercard-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}
.zy-usercard-desc {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    line-height: 1.5;
}
.zy-usercard-vip {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #f6c453, #d4a017);
    vertical-align: 2px;
    margin-left: 4px;
}

/* 三个按钮：登录 / 注册 / 找回密码 */
.zy-usercard-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.zy-usercard-btn {
    flex: 1;
    display: block;
    padding: 9px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.zy-usercard-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    text-decoration: none;
}
.zy-usercard-btn-login {
    background: #1890ff;
    color: #fff;
}
.zy-usercard-btn-signup {
    background: #52c41a;
    color: #fff;
}
.zy-usercard-btn-forgot {
    background: #f0f0f0;
    color: #595959;
}

/* 快速登录分隔线 */
.zy-usercard-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
    color: #bfbfbf;
    font-size: 12px;
}
.zy-usercard-sep::before,
.zy-usercard-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

/* 快速登录图标 */
.zy-usercard-social {
    display: flex;
    justify-content: center;
    gap: 14px;
}
.zy-usercard-sc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}
.zy-usercard-sc:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #fff;
    text-decoration: none;
}
.zy-sc-qq { background: #12b7f5; }
.zy-sc-weixin { background: #07c160; }
.zy-sc-weibo { background: #e6162d; }
.zy-sc-alipay { background: #1677ff; }

/* 页脚隐藏的 [tblogin]：只隐藏它的按钮，保留登录弹窗 */
.zy-usercard-modal-holder .zy-login-box {
    display: none;
}

/* 手机端抽屉菜单（.m-navbar）顶部的用户卡片：满宽贴边，无圆角无阴影 */
.m-navbar .zy-mnav-card {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 8px !important;
    border: none !important;
    background: transparent;
}
.m-navbar .zy-mnav-card .zy-usercard {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}
.m-navbar .zy-mnav-card .zy-usercard-cover { height: 88px; }
.m-navbar .zy-mnav-card .zy-usercard-avatar { width: 60px; height: 60px; margin-top: -30px; }
.m-navbar .zy-mnav-card .zy-usercard-body { padding: 10px 12px 14px; }
.m-navbar .zy-mnav-card .zy-usercard-actions { gap: 6px; }
.m-navbar .zy-mnav-card .zy-usercard-btn { font-size: 13px; padding: 8px 0; }

/* 手机端微调 */
@media (max-width: 767px) {
    .zy-usercard-cover { height: 96px; }
    .zy-usercard-avatar { width: 64px; height: 64px; margin-top: -32px; }
}
