/**
 * 一人一册（一人一册）用户相关样式
 * @author  云蓝图科技
 * @date    2024年12月25日
 * @version 1.0.0
 */

/* ================================
   登录页
================================ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-logo-icon i {
    font-size: 40px;
    color: #fff;
}

.login-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.login-logo-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.login-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.login-input-group {
    margin-bottom: 16px;
}

.login-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    padding-left: 44px;
    font-size: 15px;
    color: #333;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
}

.login-input:focus {
    border-color: var(--wrce-primary, #6366f1);
    background: #fff;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

.login-input:focus + .login-input-icon,
.login-input:not(:placeholder-shown) + .login-input-icon {
    color: var(--wrce-primary, #6366f1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.login-remember {
    display: flex;
    align-items: center;
    color: #666;
}

.login-remember input {
    margin-right: 6px;
}

.login-forgot {
    color: var(--wrce-primary, #6366f1);
}

.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.login-divider span {
    padding: 0 16px;
}

.login-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.login-social-btn {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #666;
    transition: all 0.2s;
}

.login-social-btn.wechat {
    color: #07c160;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.login-footer a {
    color: #fff;
    font-weight: 600;
}

/* ================================
   注册页
================================ */
.register-page {
    min-height: 100vh;
    background: #f8f8f8;
    padding: 20px;
}

.register-header {
    text-align: center;
    padding: 40px 0;
}

.register-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.register-logo i {
    font-size: 32px;
    color: #fff;
}

.register-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.register-form {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}

/* ================================
   个人中心
================================ */
.user-center {
    background: #f8f8f8;
    min-height: 100vh;
    padding-bottom: 70px;
}

.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    padding-top: 60px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-right: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    color: #fff;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-id {
    font-size: 13px;
    opacity: 0.8;
}

.user-edit-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

/* 用户统计 */
.user-stats {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin: -30px 16px 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f5f5f5;
}

.user-stat-item:last-child {
    border-right: none;
}

.user-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.user-stat-label {
    font-size: 12px;
    color: #999;
}

/* 功能菜单 */
.user-menu {
    background: #fff;
    border-radius: 12px;
    margin: 0 16px 16px;
    overflow: hidden;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f8f8f8;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.user-menu-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.user-menu-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.user-menu-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.user-menu-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.user-menu-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-menu-content {
    flex: 1;
}

.user-menu-title {
    font-size: 15px;
    color: #333;
}

.user-menu-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.user-menu-arrow {
    color: #ccc;
    font-size: 16px;
}

.user-menu-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    margin-right: 8px;
}

/* 存储空间 */
.user-storage {
    background: #fff;
    border-radius: 12px;
    margin: 0 16px 16px;
    padding: 16px;
}

.user-storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-storage-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.user-storage-upgrade {
    font-size: 13px;
    color: var(--wrce-primary, #6366f1);
}

.user-storage-bar {
    height: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.user-storage-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.user-storage-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 退出登录 */
.user-logout {
    margin: 16px;
}

.user-logout-btn {
    width: 100%;
    height: 48px;
    background: #fff;
    color: #ef4444;
    font-size: 15px;
    border: none;
    border-radius: 12px;
}

