/* ============================================================
   YMX会员中心小工具样式
   ============================================================ */

/* ---------- 未登录状态 ---------- */
.ymx-mcw-not-logged-in {
    text-align: center;
}

.ymx-mcw-poster {
    margin-bottom: 16px;
    overflow: hidden;
}

.ymx-mcw-poster-img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ymx-mcw-auth-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 16px 16px;
}

.ymx-mcw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.ymx-mcw-btn-login {
    background: #f5af19;
    color: #fff;
}

.ymx-mcw-btn-login:hover {
    background: #e09e0f;
    color: #fff;
}

.ymx-mcw-btn-register {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.ymx-mcw-btn-register:hover {
    background: #f5f5f5;
    color: #333;
}

/* ---------- 登录状态 ---------- */
.ymx-mcw-logged-in {
    text-align: center;
}

/* 用户信息区 */
.ymx-mcw-user-info {
    padding-bottom: 16px;
}

.ymx-mcw-avatar {
    margin: 10px 0;
}

.ymx-mcw-avatar img {
    border-radius: 50%;
    display: inline-block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.ymx-mcw-username-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ymx-mcw-vip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #999;
    color: #999;
}

.ymx-mcw-vip-icon--active {
    fill: #f5af19;
    color: #f5af19;
}

.ymx-mcw-username {
    font-size: 16px;
    font-weight: 600;
    color: #999;
    line-height: 1.4;
}

.ymx-mcw-username--vip {
    color: #f5af19;
}

.ymx-mcw-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #fef3d0, #fdebb3);
    border-radius: 10px;
    font-size: 12px;
    color: #b8860b;
    font-weight: 500;
}

.ymx-mcw-vip-expire {
    color: #999;
    font-weight: 400;
}

/* 菜单网格 */
.ymx-mcw-menus {
    display: grid;
    gap: 8px;
}

/* 一行2个（默认） */
.ymx-mcw-menus.ymx-mcw-cols-2cols {
    grid-template-columns: repeat(2, 1fr);
}

/* 一行1个 */
.ymx-mcw-menus.ymx-mcw-cols-1col {
    grid-template-columns: repeat(1, 1fr);
}

/* 一行3个 */
.ymx-mcw-menus.ymx-mcw-cols-3cols {
    grid-template-columns: repeat(3, 1fr);
}

.ymx-mcw-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 6px;
    background: #fafafa;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}

.ymx-mcw-menu-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    text-decoration: none;
}

.ymx-mcw-menu-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #666;
    color: #666;
}

.ymx-mcw-menu-label {
    font-size: 12px;
    color: #555;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .ymx-mcw-menus.ymx-mcw-cols-3cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .ymx-mcw-avatar img {
        width: 60px;
        height: 60px;
    }
}
