/* 用户系统相关样式 */

/* 公共表单容器样式 */
.user-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 350px);
    padding: 40px 0;
}

/* 表单盒子样式 */
.user-form-box {
    background-color: var(--card-color);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.user-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* 表单标题样式 */
.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

/* 表单样式 */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 表单组样式 */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-group input {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 175, 169, 0.2);
    outline: none;
}

.form-tip {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-error {
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 5px;
    min-height: 18px;
}

/* 记住密码选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.remember-me label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* 表单操作按钮区域 */
.form-actions {
    margin-top: 10px;
}

.form-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 表单底部链接 */
.form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.form-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ========== 个人中心页面样式 ========== */

/* 个人中心容器 */
.profile-container {
    background-color: var(--card-color);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    margin: 40px 0;
    overflow: hidden;
}

/* 个人中心头部 */
.profile-header {
    display: flex;
    padding: 30px;
    background: linear-gradient(to right, rgba(58, 175, 169, 0.1), rgba(43, 122, 120, 0.2));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 头像区域 */
.profile-avatar {
    position: relative;
    margin-right: 30px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
}

.avatar-upload {
    position: absolute;
    right: 0;
    bottom: 0;
}

.avatar-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.avatar-upload-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* 用户信息区域 */
.profile-info {
    flex-grow: 1;
}

.welcome-text {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.user-phone {
    color: #666;
    margin-bottom: 20px;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 内容区域 */
.profile-content {
    display: flex;
    min-height: 500px;
}

/* 侧边导航 */
.profile-sidebar {
    width: 220px;
    background-color: #f8f8f8;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 0;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 5px;
    border-left: 3px solid transparent;
}

.sidebar-nav li:hover {
    background-color: rgba(58, 175, 169, 0.05);
}

.sidebar-nav li.active {
    background-color: rgba(58, 175, 169, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-nav li i {
    margin-right: 10px;
}

/* 主要内容区域 */
.profile-main {
    flex-grow: 1;
    padding: 30px;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.tab-title {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 个人中心表单样式 */
.profile-form {
    max-width: 500px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    font-weight: 500;
    margin-bottom: 8px;
}

.profile-form input {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    width: 100%;
}

.profile-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 175, 169, 0.1);
    outline: none;
}

.profile-form input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 空状态 */
.tools-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.tools-empty-state i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.tools-empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.tools-empty-state .primary-button {
    padding: 10px 20px;
    display: inline-block;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .profile-content {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-nav li {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
    }
    
    .sidebar-nav li.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .user-form-box {
        padding: 30px 20px;
    }
    
    .profile-form {
        max-width: 100%;
    }
    
    .profile-main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 15px;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .welcome-text {
        font-size: 20px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        width: 100%;
    }
} 