/* ============================================================
   用户中心设计系统  jlsycms2026
   主色 深蓝 #002E5B  /  点缀 金 #FFD700
   ============================================================ */
:root {
    --uc-navy: #002E5B;
    --uc-navy-2: #0a4480;
    --uc-navy-dark: #001e3e;
    --uc-gold: #D9A92E;
    --uc-gold-bright: #FFD700;
    --uc-bg: #f3f5f9;
    --uc-text: #1d2733;
    --uc-text-2: #55607a;
    --uc-muted: #93a0b5;
    --uc-border: #e7ebf2;
    --uc-radius: 14px;
    --uc-shadow: 0 10px 40px rgba(0, 46, 91, .08);
    --uc-shadow-sm: 0 2px 12px rgba(0, 46, 91, .06);
}

/* footer 吸底 */
html, body { height: 100%; }
body { display: flex; flex-direction: column; background: var(--uc-bg); }
body > header { flex-shrink: 0; }
body > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body > footer { flex-shrink: 0; }
.user-page { margin: 0; padding: 0; flex: 1; display: flex; }
.user-page > .container { flex: 1; display: flex; padding: 0; }
/* 个人中心普通 section 也撑满，保证 footer 贴底 */
body > main > section.page-content { flex: 1 0 auto; display: flex; }
body > main > section.page-content > .container { width: 100%; }

/* 导航栏个人中心图标 */
header .user-center-icon {
    color: #fff;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: color .2s ease;
    text-decoration: none;
}
header .user-center-icon:hover { color: var(--uc-gold-bright); }
header .user-center-icon svg.user-icon { width: 19px; height: 19px; color: #fff; cursor: pointer; }
header .user-center-icon:hover svg.user-icon { color: var(--uc-gold-bright); }

/* ============================================================
   一、认证页（登录 / 注册 / 重置密码）—— 左右分屏
   ============================================================ */
.auth-wrap {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    background: #fff;
}

/* 左侧品牌区 */
.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 64px 60px;
    color: #fff;
    background: linear-gradient(155deg, var(--uc-navy-dark) 0%, var(--uc-navy) 45%, var(--uc-navy-2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-brand::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    right: -160px; top: -140px;
    border-radius: 50%;
    border: 60px solid rgba(255, 215, 0, .06);
}
.auth-brand::after {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    left: -130px; bottom: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,.10) 0%, rgba(255,215,0,0) 70%);
}
.auth-brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-brand-top img { height: 42px; filter: brightness(0) invert(1); }
.auth-brand-top .brand-cn { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.auth-brand-main { position: relative; z-index: 1; }
.auth-brand-main h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
    color: #fff;
}
.auth-brand-main h2 em { font-style: normal; color: var(--uc-gold-bright); }
.auth-brand-main p { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); margin: 0; max-width: 380px; }
.auth-features { position: relative; z-index: 1; list-style: none; padding: 0; margin: 36px 0 0; }
.auth-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,.85); }
.auth-features .fi {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,215,0,.14);
    display: flex; align-items: center; justify-content: center;
    color: var(--uc-gold-bright);
}
.auth-features .fi svg { width: 17px; height: 17px; }
.auth-brand-foot { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255,255,255,.45); letter-spacing: .5px; }

/* 右侧表单区 */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}
.auth-box { width: 100%; max-width: 380px; }
.auth-box .auth-head { margin-bottom: 30px; }
.auth-box .auth-head h1 { font-size: 26px; font-weight: 700; color: var(--uc-text); margin: 0 0 8px; }
.auth-box .auth-head p { font-size: 14px; color: var(--uc-muted); margin: 0; }

/* 表单元素 */
.auth-form .form-group { margin-bottom: 20px; }
.auth-form .control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--uc-text-2);
    margin-bottom: 8px;
}
.auth-form .form-control {
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--uc-text);
    background: #fafbfd;
    border: 1.5px solid var(--uc-border);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.auth-form textarea.form-control { height: auto; padding: 12px 16px; }
.auth-form .form-control::placeholder { color: #b3bccb; }
.auth-form .form-control:focus {
    border-color: var(--uc-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 46, 91, .07);
}
.auth-form .form-control[disabled] { background: #f0f2f6; opacity: .8; }

/* 验证码拼接 */
.auth-form .input-group { display: flex; gap: 10px; }
.auth-form .input-group .form-control { flex: 1; }
.auth-form .input-group-addon,
.auth-form .input-group-btn { padding: 0; background: none; border: none; width: auto; }
.auth-form .input-group-addon img {
    height: 46px; width: 108px;
    border-radius: 10px; border: 1.5px solid var(--uc-border);
    cursor: pointer; object-fit: cover;
}
.btn-captcha {
    height: 46px;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 13px;
    border-radius: 10px;
    background: rgba(0,46,91,.06);
    color: var(--uc-navy);
    border: 1.5px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-captcha:hover { background: rgba(0,46,91,.1); }
.btn-captcha:disabled { color: var(--uc-muted); cursor: not-allowed; background: #f0f2f6; }

/* 主按钮 */
.auth-form .btn-primary,
.auth-form .btn.btn-primary {
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    background: var(--uc-navy);
    border: none;
    border-radius: 10px;
    transition: all .2s;
}
.auth-form .btn-primary:hover,
.auth-form .btn.btn-primary:hover {
    background: var(--uc-navy-dark);
    color: var(--uc-gold-bright);
    box-shadow: 0 6px 18px rgba(0, 46, 91, .28);
}
.auth-form .btn-primary:focus,
.auth-form .btn.btn-primary:focus { background: var(--uc-navy); color: #fff; }

.auth-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 13px; }
.auth-options label { font-weight: 400; color: var(--uc-text-2); margin: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.auth-options input[type="checkbox"] { accent-color: var(--uc-navy); width: 14px; height: 14px; margin: 0; }
.auth-options a, .btn-forgot { color: var(--uc-navy); text-decoration: none; font-weight: 600; }
.auth-options a:hover, .btn-forgot:hover { color: var(--uc-gold); }

.auth-switch {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--uc-border);
    text-align: center;
    font-size: 13.5px;
    color: var(--uc-muted);
}
.auth-switch a { color: var(--uc-navy); font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { color: var(--uc-gold); }

.auth-form .radio label { font-weight: 400; font-size: 14px; color: var(--uc-text-2); margin-right: 24px; cursor: pointer; }
.auth-form .radio input[type="radio"] { accent-color: var(--uc-navy); margin-right: 6px; }

/* 响应式 */
@media (max-width: 920px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-panel { padding: 40px 22px; }
}

/* ============================================================
   二、个人中心 —— 仪表盘布局
   ============================================================ */
.uc-page { padding: 36px 0 56px; width: 100%; }
.uc-layout { display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; }

/* 侧栏 */
.uc-sidebar {
    background: #fff;
    border-radius: var(--uc-radius);
    box-shadow: var(--uc-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 92px;
}
.uc-userhead {
    position: relative;
    padding: 30px 20px 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(150deg, var(--uc-navy-dark), var(--uc-navy) 60%, var(--uc-navy-2));
}
.uc-userhead::after {
    content: "";
    position: absolute;
    right: -40px; top: -50px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,215,0,.08);
}
.uc-avatar {
    position: relative;
    width: 76px; height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--uc-gold-bright), var(--uc-gold));
}
.uc-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #e9edf3;
}
.uc-userhead .uc-name { font-size: 17px; font-weight: 700; position: relative; z-index: 1; }
.uc-userhead .uc-email { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 4px; position: relative; z-index: 1; }

.uc-nav { padding: 12px; }
.uc-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--uc-text-2);
    text-decoration: none;
    transition: all .18s;
}
.uc-nav a i { width: 18px; text-align: center; font-size: 15px; color: var(--uc-muted); transition: color .18s; }
.uc-nav a:hover { background: #f4f7fb; color: var(--uc-navy); }
.uc-nav a:hover i { color: var(--uc-navy); }
.uc-nav a.active {
    background: var(--uc-navy);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0,46,91,.22);
}
.uc-nav a.active i { color: var(--uc-gold-bright); }
.uc-nav a.uc-logout { color: #d9534f; }
.uc-nav a.uc-logout i { color: #d9534f; }
.uc-nav a.uc-logout:hover { background: #fdf1f1; color: #c9302c; }
.uc-nav a.uc-logout:hover i { color: #c9302c; }

/* 右侧内容 */
.uc-content {
    background: #fff;
    border-radius: var(--uc-radius);
    box-shadow: var(--uc-shadow-sm);
    padding: 30px 34px;
    min-height: 480px;
}
.uc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 19px;
    font-weight: 700;
    color: var(--uc-text);
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--uc-border);
}
.uc-title small { font-size: 13px; font-weight: 400; color: var(--uc-muted); margin-left: 10px; }

/* 首页欢迎横幅 */
.uc-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    margin-bottom: 24px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(120deg, var(--uc-navy-dark), var(--uc-navy) 55%, var(--uc-navy-2));
    position: relative;
    overflow: hidden;
}
.uc-welcome::after {
    content: "";
    position: absolute;
    right: -30px; bottom: -70px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 30px solid rgba(255,215,0,.07);
}
.uc-welcome h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; position: relative; z-index: 1; }
.uc-welcome p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.68); position: relative; z-index: 1; }
.uc-welcome .btn-edit {
    position: relative; z-index: 1;
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 9px;
    background: var(--uc-gold-bright);
    color: var(--uc-navy-dark);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.uc-welcome .btn-edit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,215,0,.35); color: var(--uc-navy-dark); }

/* 统计卡片 */
.uc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.uc-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--uc-border);
    border-radius: 12px;
    background: #fff;
    transition: all .2s;
}
.uc-stat:hover { border-color: rgba(0,46,91,.25); box-shadow: var(--uc-shadow-sm); transform: translateY(-2px); }
.uc-stat .si {
    flex: 0 0 48px;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.uc-stat .si.navy { background: rgba(0,46,91,.09); color: var(--uc-navy); }
.uc-stat .si.gold { background: rgba(217,169,46,.13); color: var(--uc-gold); }
.uc-stat .sl { font-size: 13px; color: var(--uc-muted); margin-bottom: 4px; }
.uc-stat .sv { font-size: 19px; font-weight: 700; color: var(--uc-text); }
.uc-stat .sv a { color: inherit; text-decoration: none; }
.uc-stat .sv .text-muted, .uc-stat .sv small { font-size: 13px; font-weight: 400; color: var(--uc-muted); }

/* 信息行 */
.uc-info-list { border: 1px solid var(--uc-border); border-radius: 12px; overflow: hidden; }
.uc-info-row { display: flex; padding: 15px 22px; font-size: 14px; border-bottom: 1px solid var(--uc-border); }
.uc-info-row:last-child { border-bottom: none; }
.uc-info-row .k { width: 110px; flex-shrink: 0; color: var(--uc-muted); }
.uc-info-row .v { color: var(--uc-text); font-weight: 500; }

/* 个人资料 / 修改密码表单 */
.uc-form { max-width: 560px; }
.uc-form .form-group { margin-bottom: 22px; }
.uc-form .control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--uc-text-2);
    margin-bottom: 8px;
    text-align: left;
}
.uc-form .form-control {
    height: 44px;
    padding: 0 15px;
    font-size: 14px;
    border: 1.5px solid var(--uc-border);
    border-radius: 10px;
    background: #fafbfd;
    box-shadow: none;
    transition: all .2s;
}
.uc-form .form-control:focus { border-color: var(--uc-navy); background: #fff; box-shadow: 0 0 0 4px rgba(0,46,91,.07); }
.uc-form .input-group { display: flex; gap: 10px; }
.uc-form .input-group .form-control { flex: 1; }
.uc-form .input-group-btn { padding: 0; }
.uc-form .btn-primary,
.uc-form .btn.btn-primary {
    height: 44px;
    padding: 0 34px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--uc-navy);
    border: none;
    border-radius: 10px;
    transition: all .2s;
}
.uc-form .btn-primary:hover { background: var(--uc-navy-dark); color: var(--uc-gold-bright); box-shadow: 0 6px 16px rgba(0,46,91,.25); }
.uc-form .btn-default,
.uc-form .btn.btn-default {
    height: 44px;
    padding: 0 28px;
    font-size: 14px;
    color: var(--uc-text-2);
    background: #fff;
    border: 1.5px solid var(--uc-border);
    border-radius: 10px;
    margin-left: 10px;
}
.uc-form .btn-default:hover { color: var(--uc-navy); border-color: var(--uc-navy); background: #fff; }
.btn-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--uc-navy) !important;
    background: #fff;
    border: 1.5px solid var(--uc-navy) !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all .2s;
}
.btn-change:hover {
    background: var(--uc-navy);
    color: var(--uc-gold-bright) !important;
    box-shadow: 0 6px 16px rgba(0, 46, 91, .25);
    text-decoration: none !important;
}
.btn-change i { font-size: 12px; }

/* 头像上传 */
.profile-avatar-container { position: relative; width: 96px; }
.profile-avatar-container .profile-user-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--uc-border);
}
.profile-avatar-container .profile-avatar-text { display: none; }
.profile-avatar-container:hover .profile-avatar-text {
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0;
    background: rgba(0,30,62,.55);
    color: #fff; font-size: 12.5px;
    border-radius: 50%; cursor: pointer;
}
.profile-avatar-container button { position: absolute; inset: 0; width: 96px; height: 96px; opacity: 0; cursor: pointer; }

/* 移动端适配 */
.sidebar-toggle { display: none; }
@media (max-width: 900px) {
    .uc-layout { grid-template-columns: 1fr; }
    .uc-sidebar { position: static; }
    .uc-nav { display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
    .uc-nav a { white-space: nowrap; margin-bottom: 0; }
    .uc-content { padding: 22px 18px; }
    .uc-welcome { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .uc-stats { grid-template-columns: 1fr; }
    .uc-info-row .k { width: 84px; }
}

/* FastAdmin 校验提示兼容 */
.help-block, .msg-box { font-size: 12.5px; margin-top: 6px; color: #e05b5b; }
.has-error .form-control { border-color: #e05b5b !important; }

/* ============================================================
   三、Layer 弹窗（修改邮箱 / 修改手机号）
   ============================================================ */
.layui-layer.uc-layer {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 30, 62, .30);
}
.uc-layer .layui-layer-title {
    height: 58px;
    line-height: 58px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--uc-border);
    color: var(--uc-text);
    font-size: 16px;
    font-weight: 700;
}
.uc-layer .layui-layer-setwin { top: 20px; right: 20px; }
.uc-layer .layui-layer-setwin a {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background .2s;
    margin-left: 0;
    font-size: 18px;
}
/* 关闭图标：隐藏原生 sprite 背景，用伪元素画 X */
.uc-layer .layui-layer-setwin .layui-layer-close1 {
    background: none !important;
}
.uc-layer .layui-layer-setwin .layui-layer-close1::before {
    content: "\f00d";
    font-family: "FontAwesome";
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: var(--uc-text-2);
    cursor: pointer;
    line-height: 1;
    position: static;
}
.uc-layer .layui-layer-setwin .layui-layer-close1:hover::before {
    color: var(--uc-navy);
}
/* hover 只加背景色，不复用 background 属性（否则会覆盖 sprite 图） */
.uc-layer .layui-layer-setwin a:hover { background: #f0f3f8; }
.uc-layer .layui-layer-content {
    padding: 26px 26px 28px;
    position: relative;
    background: #fff;
    overflow: visible;
}

/* 弹窗表单 */
.uc-layer-form .uc-layer-field { margin-bottom: 18px; }
.uc-layer-form .uc-layer-field:last-of-type { margin-bottom: 0; }
.uc-layer-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--uc-text-2);
    margin-bottom: 8px;
}
.uc-layer-form .form-control {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--uc-text);
    background: #fafbfd;
    border: 1.5px solid var(--uc-border);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.uc-layer-form .form-control::placeholder { color: #b3bccb; }
.uc-layer-form .form-control:focus {
    border-color: var(--uc-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 46, 91, .07);
}

/* 验证码行 */
.uc-layer-captcha { display: flex; gap: 10px; }
.uc-layer-captcha .form-control { flex: 1 1 auto; min-width: 0; }
.uc-layer-captcha .btn-captcha {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 46, 91, .06);
    color: var(--uc-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s;
}
.uc-layer-captcha .btn-captcha:hover { background: rgba(0, 46, 91, .12); text-decoration: none; }
.uc-layer-captcha .btn-captcha.disabled,
.uc-layer-captcha .btn-captcha[disabled] {
    color: var(--uc-muted);
    background: #f0f2f6;
    cursor: not-allowed;
}
.uc-layer-form .msg-box { display: block; min-height: 18px; line-height: 18px; }
.uc-layer-form .has-error .form-control { border-color: #e05b5b !important; }

/* 提交按钮 */
.uc-layer-submit {
    width: 100%;
    height: 46px;
    margin-top: 24px;
    border: none;
    border-radius: 10px;
    background: var(--uc-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all .2s;
}
.uc-layer-submit:hover {
    background: var(--uc-navy-dark);
    color: var(--uc-gold-bright);
    box-shadow: 0 8px 20px rgba(0, 46, 91, .28);
}

@media (max-width: 480px) {
    .layui-layer.uc-layer { width: 92vw !important; }
    .uc-layer .layui-layer-content { padding: 22px 20px 24px; }
    .uc-layer-captcha { flex-wrap: wrap; }
    .uc-layer-captcha .btn-captcha { flex: 1 1 auto; }
}
