/**
 * CX User Center Styles
 * 匹配 gifxp 主题 green.css 配色
 */

/* ==================== PC端导航栏会员菜单 ==================== */
.cx-user-menu {
    position: relative;
}

.cx-user-menu > a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 48px;
    line-height: 48px;
}

.cx-user-icon {
    margin-right: 5px;
}

.cx-dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
}

.cx-user-submenu {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    min-width: 180px;
    background: #363636;
    border-top: 2px solid #0289cb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
}

.cx-user-menu:hover .cx-user-submenu {
    display: block;
}

.cx-user-submenu li {
    border-top: 1px solid #444;
    height: 36px;
    line-height: 36px;
}

.cx-user-submenu li:first-child {
    border-top: none;
}

.cx-user-submenu li a,
.cx-user-submenu li.cx-user-info {
    display: block;
    padding: 0 20px;
    color: #fff !important;
    font-size: 13px;
    font-weight: normal;
}

.cx-user-submenu li a:hover {
    background: #0289cb;
}

.cx-user-submenu li.cx-user-info {
    background: rgba(2, 137, 203, 0.2);
    color: #fff;
}

.cx-vip-icon,
.cx-logout-icon {
    margin-right: 5px;
}

/* ==================== 移动端侧边栏会员信息 ==================== */
.cx-mobile-user-info {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.cx-mobile-user-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.cx-mobile-vip-type {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.cx-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cx-mobile-actions a {
    display: block;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff !important;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.cx-mobile-actions a:hover {
    background: #0289cb;
}

/* ==================== 用户中心页面 ==================== */
.cx-user-center-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.cx-user-center-container {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
}

.cx-page-title {
    font-size: 20px;
    font-weight: bold;
    padding: 20px;
    margin: 0;
    border-bottom: 3px solid #0289cb;
    text-align: center;
    background: #f8f9fa;
}

.cx-user-card {
    padding: 40px 20px;
}

.cx-user-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.cx-avatar-icon {
    font-size: 60px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
}

.cx-user-name {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.cx-user-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.cx-info-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 3px solid #0289cb;
}

.cx-info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.cx-info-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cx-user-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cx-btn {
    display: block;
    padding: 14px 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.cx-btn-primary {
    background: #0289cb;
    color: #fff !important;
}

.cx-btn-primary:hover {
    background: #0270a8;
}

.cx-btn-secondary {
    background: #f0f0f0;
    color: #333 !important;
    border: 1px solid #ddd;
}

.cx-btn-secondary:hover {
    background: #e0e0e0;
}

/* ==================== 响应式设计 ==================== */

/* 平板 */
@media (min-width: 768px) and (max-width: 1024px) {
    .cx-user-center-wrapper {
        max-width: 500px;
    }
}

/* 手机 */
@media (max-width: 767px) {
    .cx-user-center-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .cx-user-card {
        padding: 30px 15px;
    }
    
    .cx-avatar-icon {
        font-size: 50px;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
    
    .cx-user-name {
        font-size: 20px;
    }
    
    .cx-info-value {
        font-size: 16px;
    }
    
    .cx-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* PC端导航菜单在移动端隐藏 */
    .cx-user-menu {
        display: none !important;
    }
}

/* PC端 */
@media (min-width: 768px) {
    /* 移动端会员信息在PC端隐藏 */
    .cx-mobile-user-info {
        display: none;
    }
}
