h2.page-header {
    margin: 10px 0 25px 0;
    padding-bottom: 15px;
}
.user-baseinfo {
    margin-bottom: 25px;
}
.user-baseinfo table tr td {
    color: #999;
}
.navbar-brand{
    color: #d9534f
}
@media (min-width: 992px) {
    .user-center .avatar-text,
    .user-center .avatar-img {
        height: 150px;
        width: 150px;
        border-radius: 150px;
        line-height: 150px;
        font-size: 70px;
    }
    .user-center .avatar-img {
        font-size: 0;
    }
    .user-center .avatar-img img {
        height: 150px;
        width: 150px;
        border-radius: 150px;
    }
}
.sidebar-toggle {
    display: none;
}
@media (max-width: 991px) {
    .sidenav {
        position: fixed;
        top: 50px;
        z-index: 1029;
        height: calc(100vh - 50px);
        padding: 20px 0 20px 0;
        min-width: 250px;
        overflow-y: auto;
        overflow-x: hidden;
        width: 250px;
        left: -250px;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    .sidebar-toggle {
        display: block;
        position: fixed;
        right: 20px;
        bottom: 70px;
        border-radius: 50%;
        background: #eee;
        font-size: 22px;
        padding: 10px;
        line-height: 30px;
        height: 50px;
        width: 50px;
        text-align: center;
        z-index: 999999;
    }
}
body.sidebar-open .sidenav {
    left: 0;
    width: 250px;
    box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075);
}
body.sidebar-open .sidebar-toggle i:before {
    content: "\f00d";
}

/* ========== 登录页 - 左右分屏设计 ========== */

/* 隐藏布局的导航栏和页脚 */
html.login-page,
html.login-page body {
    height: 100%;
    overflow: hidden;
}

html.login-page .navbar {
    display: none !important;
}

html.login-page .footer {
    display: none !important;
}

html.login-page .content {
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0;
}

html.login-page body {
    background: #080618;
    padding-top: 0 !important;
}

/* 分屏容器 */
.login-split {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ===== 左侧品牌区 ===== */
.login-brand-side {
    position: relative;
    width: 46%;
    min-width: 420px;
    background: linear-gradient(165deg, #1a0800 0%, #3d1a00 45%, #1a0800 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 55px;
    overflow: hidden;
}

.brand-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
}

.orb-1 {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -160px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.5) 0%, transparent 70%);
    animation: orb-float 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 380px;
    height: 380px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.42) 0%, transparent 70%);
    animation: orb-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -15px) scale(1.1); }
}

.brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 140, 66, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 66, 0.04) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse at 70% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 40%, transparent 80%);
}

.brand-ring {
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 60s linear infinite;
}

.brand-ring::before {
    content: '';
    position: absolute;
    inset: 70px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 430px;
}

.brand-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(255, 140, 66, 0.5);
    text-transform: uppercase;
    margin-bottom: 55px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 30px;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: 1px;
}

.brand-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
    margin: 0 0 45px;
}

.brand-sep {
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #FF6A00, rgba(255, 106, 0, 0));
    border-radius: 2px;
    margin-bottom: 45px;
}

.brand-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.point-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF6A00;
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.45);
    flex-shrink: 0;
}

.brand-footer {
    position: absolute;
    bottom: 35px;
    left: 55px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 1px;
}

/* ===== 右侧登录区 ===== */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #120600;
    padding: 40px;
    position: relative;
}

.login-form-side::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 140, 66, 0.1), transparent);
}

.login-form-wrap {
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
}

.login-card-v2 {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 50px 42px 42px;
}

.login-card-head {
    text-align: center;
    margin-bottom: 40px;
}

.login-card-head h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.login-card-head p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 1px;
}

/* 输入框 */
.login-field-v2 {
    position: relative;
    margin-bottom: 22px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-field-v2 .field-icon {
    position: absolute;
    top: 55px;
    left: 18px;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}

.login-field-v2 .form-control {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: none;
}

.login-field-v2 .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-field-v2 .form-control:focus {
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
}

/* 额外选项 */
.login-extra-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.login-keep-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    margin: 0;
}

.login-keep-v2 input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #FF6A00;
}

.login-forgot-v2 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s;
}

.login-forgot-v2:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* 提交按钮 */
.login-submit-v2 {
    display: block;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    background: linear-gradient(135deg, #FF8C42, #FF5E00);
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 8px 28px rgba(255, 94, 0, 0.3);
}

.login-submit-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 94, 0, 0.45);
}

/* 验证码行 */
.login-captcha-field .captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-captcha-field .captcha-input {
    flex: 1;
    height: 54px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: none;
}

.login-captcha-field .captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-captcha-field .captcha-input:focus {
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
}

/* 图片验证码 */
.login-captcha-field .captcha-row img {
    height: 54px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: opacity 0.25s;
}

.login-captcha-field .captcha-row img:hover {
    opacity: 0.85;
}

/* 短信/邮箱验证码按钮 */
.login-captcha-field .captcha-row .btn-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF8C42, #FF5E00);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 94, 0, 0.25);
}

.login-captcha-field .captcha-row .btn-captcha:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255, 94, 0, 0.38);
}

.login-captcha-field .captcha-row .btn-captcha.disabled,
.login-captcha-field .captcha-row .btn-captcha:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 安全提示 */
.login-safe-tip {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.login-safe-tip span {
    margin-right: 4px;
}

/* ===== 表单验证适配 ===== */
.login-split .n-error,
.login-split .n-error .n-msg {
    color: #ff6b6b !important;
}

.login-split .msg-wrap {
    display: block;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    white-space: normal !important;
    word-break: break-all;
    max-width: 100%;
    line-height: 1.5;
    font-size: 13px;
    margin-top: 8px;
    padding-left: 2px;
}

.login-split .nice-validator input.n-invalid,
.login-split .login-field-v2 .form-control.n-invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12) !important;
}

.login-card-v2 {
    overflow: hidden;
}

.login-card-v2 form {
    overflow: visible;
}

/* Layer 弹窗 */
html.login-page .layui-layer-fast-msg {
    background: rgba(40, 10, 0, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 140, 66, 0.15) !important;
    border-radius: 10px !important;
    color: #ffc9a0 !important;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    html.login-page,
    html.login-page body {
        height: auto;
        overflow: visible;
    }
    .login-split {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .login-brand-side {
        display: none;
    }
    .login-form-side {
        width: 100%;
        min-height: 100vh;
        padding: 48px 24px;
    }
    .login-form-side::before {
        display: none;
    }
    .login-card-v2 {
        padding: 40px 28px 34px;
    }
    .login-card-head h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-form-wrap {
        padding: 0;
    }
    .login-card-v2 {
        padding: 36px 22px 30px;
        border-radius: 18px;
    }
    .login-field-v2 .form-control {
        height: 50px;
        font-size: 14px;
    }
    .login-submit-v2 {
        height: 48px;
        font-size: 14px;
    }
}

/* =============================================
   登录页 - 浅色调覆盖（模仿首页暖橙白风格）
   ============================================= */
html.login-page body {
    background: #f8f6f2;
}

.login-brand-side {
    background: linear-gradient(165deg, #fff4ea 0%, #ffe3cc 45%, #fffaf3 100%);
}

.brand-tag {
    color: rgba(214, 105, 30, 0.85);
    border-color: rgba(255, 140, 66, 0.35);
}

.brand-title {
    color: #2a1000;
}

.brand-desc {
    color: rgba(42, 16, 0, 0.45);
}

.brand-points .point {
    color: rgba(42, 16, 0, 0.6);
}

.brand-footer {
    color: rgba(42, 16, 0, 0.35);
}

.login-form-side {
    background: #f8f6f2;
}

.login-card-v2 {
    background: #ffffff;
    border: 1px solid #ffe0c7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.login-card-head h2 {
    color: #2a1000;
}

.login-card-head p {
    color: rgba(42, 16, 0, 0.5);
}

.field-label {
    color: rgba(42, 16, 0, 0.7);
}

.login-field-v2 .field-icon {
    color: rgba(42, 16, 0, 0.4);
}

.login-field-v2 .form-control {
    background: #faf8f5;
    border-color: #f0e0d4;
    color: #2a1000;
}

.login-field-v2 .form-control::placeholder {
    color: rgba(42, 16, 0, 0.4);
}

.login-field-v2 .form-control:focus {
    border-color: rgba(255, 94, 0, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.12);
}

.login-keep-v2 {
    color: rgba(42, 16, 0, 0.55);
}

.login-forgot-v2 {
    color: rgba(42, 16, 0, 0.45);
}

.login-forgot-v2:hover {
    color: rgba(42, 16, 0, 0.8);
}

.login-captcha-field .captcha-input {
    background: #faf8f5;
    border-color: #f0e0d4;
    color: #2a1000;
}

.login-captcha-field .captcha-input::placeholder {
    color: rgba(42, 16, 0, 0.4);
}

.login-captcha-field .captcha-input:focus {
    border-color: rgba(255, 94, 0, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.12);
}

.login-captcha-field .captcha-row img {
    border-color: #f0e0d4;
    background: #ffffff;
}

.login-safe-tip {
    color: rgba(42, 16, 0, 0.5);
}

/* =============================================
   Sidebar Navigation - 现代美化版
   ============================================= */

/* 侧边栏整体容器 */
.sidenav {
    background: #fff;
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 分组容器 */
.sidenav-group {
    margin-bottom: 4px;
}

.sidenav-group:last-child {
    margin-bottom: 0;
}

/* 分组标题 */
.sidenav-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a0a0b0;
    user-select: none;
}

.sidenav-group-title i {
    font-size: 6px;
    color: #d0d0dd;
}

/* 菜单列表 */
.sidenav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 菜单项 */
.sidenav-item {
    position: relative;
    margin: 2px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidenav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

/* 图标容器 */
.sidenav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: #888;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* 标签文字 */
.sidenav-label {
    flex: 1;
    line-height: 1.3;
}

/* Hover 效果 */
.sidenav-item:not(.active):hover a {
    color: #333;
    background: rgba(0, 0, 0, 0.03);
}

.sidenav-item:not(.active):hover .sidenav-icon {
    background: rgba(0, 0, 0, 0.06);
    color: #555;
}

/* 激活状态 - 使用渐变背景 */
.sidenav-item.active {
    background: linear-gradient(135deg, #FF6A00 0%, #FF5E00 100%);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.sidenav-item.active a {
    color: #fff;
}

.sidenav-item.active .sidenav-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* 激活状态左侧指示条 */
.sidenav-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #FF6A00, #FF5E00);
}

/* 退出按钮 - 特殊样式 */
.sidenav-item-danger a {
    color: #e74c5e;
}

.sidenav-item-danger .sidenav-icon {
    background: rgba(231, 76, 94, 0.08);
    color: #e74c5e;
}

.sidenav-item-danger:not(.active):hover a {
    background: rgba(231, 76, 94, 0.06);
    color: #c0392b;
}

.sidenav-item-danger:not(.active):hover .sidenav-icon {
    background: rgba(231, 76, 94, 0.12);
    color: #c0392b;
}

/* 未读消息徽章 */
.sidenav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* 移动端适配 */
@media (max-width: 991px) {
    .sidenav {
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: #f8f9fc;
    }

    .sidenav-item {
        margin: 2px 14px;
    }

    .sidenav-item.active::before {
        left: -14px;
    }

    .sidenav-group-title {
        padding: 14px 26px 8px;
    }
}

/* 桌面端 hover 微动效 */
@media (min-width: 992px) {
    /* 侧边栏固定：滚动页面时保持可见；仅当鼠标悬停其上且内容超高时才滚动自身 */
    .sidenav {
        position: sticky;
        top: 66px;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #ffd2ad transparent;
    }

    .sidenav::-webkit-scrollbar {
        width: 6px;
    }

    .sidenav::-webkit-scrollbar-thumb {
        background: #ffd2ad;
        border-radius: 3px;
    }

    .sidenav-item a {
        transform: translateX(0);
    }

    .sidenav-item:not(.active):hover a {
        transform: translateX(3px);
    }

    .sidenav-item.active a {
        transform: translateX(0);
    }
}

/* =============================================
   站内信 - 移动优先卡片列表
   ============================================= */
.user-message-panel .panel-body {
    padding: 16px;
}

/* 工具栏：筛选 + 刷新 */
.user-msg-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.msg-filter-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.msg-filter-scroll .btn-filter {
    border-radius: 18px;
    padding: 6px 15px;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid #ffe0c7;
    background: #fff8f0;
    color: #b5651d;
    transition: all .2s ease;
    white-space: nowrap;
}

.msg-filter-scroll .btn-filter.active {
    background: linear-gradient(135deg, #FF6A00, #FF5E00);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 106, 0, .3);
}

.msg-refresh {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffe0c7;
    background: #fff8f0;
    color: #b5651d;
    font-size: 15px;
    transition: all .2s ease;
}

.msg-refresh:hover {
    background: #ffe9d6;
    color: #d2691e;
}

/* 卡片列表 */
.user-msg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-card {
    position: relative;
    background: #fff;
    border: 1px solid #f0e9e0;
    border-radius: 14px;
    padding: 14px 16px 14px 20px;
    cursor: pointer;
    transition: all .2s ease;
}

.msg-card:hover {
    box-shadow: 0 6px 18px rgba(255, 140, 66, .12);
    border-color: #ffd2ad;
}

/* 未读状态：左侧小圆点，不额外占用一行 */
.msg-card .msg-dot {
    position: absolute;
    left: 7px;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, .15);
}

.msg-card.read .msg-dot {
    display: none;
}

.msg-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.msg-type-pill {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #fff3ea;
    color: #d2691e;
    font-weight: 600;
    white-space: nowrap;
}

.msg-time {
    margin-left: auto;
    font-size: 11px;
    color: #b0a89f;
    white-space: nowrap;
}

.msg-title {
    font-size: 15px;
    font-weight: 600;
    color: #2a1000;
    line-height: 1.45;
    margin-bottom: 5px;
}

.msg-card.read .msg-title {
    font-weight: 500;
    color: #7a7066;
}

.msg-content {
    font-size: 13px;
    color: #9a9088;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-empty,
.msg-loading {
    text-align: center;
    color: #b0a89f;
    padding: 44px 0;
    font-size: 14px;
}

.msg-load-more {
    display: block;
    width: 100%;
    margin: 18px 0 4px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #ffe0c7;
    background: #fff8f0;
    color: #d2691e;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.msg-load-more:hover {
    background: #ffe9d6;
}

/* 移动端：去掉时间独立一行，保持卡片间距，整体更紧凑 */
@media (max-width: 576px) {
    .user-message-panel .panel-body {
        padding: 12px;
    }
    .user-msg-list {
        gap: 10px;
    }
    .msg-card {
        padding: 13px 14px 13px 18px;
        border-radius: 12px;
    }
    .msg-time {
        display: none;
    }
    .msg-title {
        font-size: 15px;
    }
    .msg-filter-scroll .btn-filter {
        padding: 6px 13px;
    }
}

/* =============================================
   资金 / 收益明细 - 移动优先卡片列表
   ============================================= */
.user-rec-panel .panel-body {
    padding: 16px;
}

.user-rec-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.panel-default > .panel-heading
{
    display: flex;
    align-items: center;
}
.user-rec-toolbar .rec-refresh {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffe0c7;
    background: #fff8f0;
    color: #b5651d;
    font-size: 15px;
    transition: all .2s ease;
}

.user-rec-toolbar .rec-refresh:hover {
    background: #ffe9d6;
    color: #d2691e;
}

/* 工具栏跳转按钮（提现 / 提现列表） */
.user-rec-toolbar .rec-action {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #ffe0c7;
    background: #fff8f0;
    color: #b5651d;
    transition: all .2s ease;
}

.user-rec-toolbar .rec-action:hover {
    background: #ffe9d6;
    color: #d2691e;
    text-decoration: none;
}

.user-rec-toolbar .rec-action-primary {
    background: linear-gradient(135deg, #FF6A00, #FF5E00);
    border-color: transparent;
    color: #fff;
}

.user-rec-toolbar .rec-action-primary:hover {
    background: linear-gradient(135deg, #ff7d1f, #ff6e1a);
    color: #fff;
}

@media (max-width: 576px) {
    .panel-default > .panel-heading {
        flex-wrap: wrap;
        gap: 8px;
    }
    .user-rec-toolbar {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

.user-rec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-card {
    background: #fff;
    border: 1px solid #f0e9e0;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all .2s ease;
}

.rec-card:hover {
    box-shadow: 0 6px 18px rgba(255, 140, 66, .12);
    border-color: #ffd2ad;
}

.rec-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rec-memo {
    font-size: 15px;
    font-weight: 600;
    color: #2a1000;
    line-height: 1.4;
    word-break: break-all;
}

.rec-amount {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.rec-amount.pos {
    color: #2e9e5b;
}

.rec-amount.neg {
    color: #e74c3c;
}

.rec-card-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.rec-balance {
    font-size: 12px;
    color: #9a9088;
}

.rec-time {
    font-size: 11px;
    color: #b0a89f;
    white-space: nowrap;
}

/* 提现卡片：收款人 / 银行 / 卡号等明细 */
.rec-wd-detail {
    flex-wrap: wrap;
    align-items: flex-start;
}

.rec-wd-info {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
    font-size: 12px;
    color: #9a9088;
    line-height: 1.7;
}

.rec-wd-remark {
    margin-top: 8px;
    font-size: 12px;
    color: #9a9088;
    line-height: 1.6;
    word-break: break-all;
}

/* 提现申请表单（余额 / 收益） */
.user-form-panel {
    max-width: 640px;
    margin: 0 auto;
}

.balance-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.balance-info .balance-item {
    flex: 1 1 0;
    min-width: 150px;
    background: linear-gradient(135deg, #FF6A00, #FF5E00);
    color: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(255, 106, 0, .18);
}

.balance-info .balance-item.secondary {
    background: #fff;
    color: #2a1000;
    border: 1px solid #ffe0c7;
    box-shadow: none;
}

.balance-info .balance-label {
    font-size: 12px;
    margin-bottom: 6px;
    opacity: .9;
}

.balance-info .balance-item.secondary .balance-label {
    opacity: .65;
}

.balance-info .balance-value {
    font-size: 18px;
    font-weight: 700;
}

.withdraw-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.withdraw-tip.available {
    background: #eafaf0;
    color: #1c8a4d;
}

.withdraw-tip.locked {
    background: #fff1ec;
    color: #d2691e;
}

.user-form-panel .form-group {
    margin-bottom: 18px;
}

.user-form-panel .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b5a4d;
    margin-bottom: 7px;
}

.user-form-panel .form-control {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #eee1d4;
    background: #faf8f5;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.user-form-panel .form-control:focus {
    border-color: #FF6A00;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
    outline: none;
}

.user-form-panel .input-money {
    font-size: 18px;
    font-weight: 600;
}

.user-form-panel .input-group {
    display: flex;
}

.user-form-panel .input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #eee1d4;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #FF6A00;
    font-weight: 700;
}

.user-form-panel .input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.user-form-panel .withdraw-type {
    display: flex;
    gap: 12px;
}

.user-form-panel .withdraw-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-form-panel .withdraw-type label {
    flex: 1;
    border: 1px solid #eee1d4;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #6b5a4d;
    transition: all .2s ease;
}

.user-form-panel .withdraw-type input:checked + label {
    border-color: #FF6A00;
    background: #fff6ee;
    color: #FF5E00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .1);
}

.user-form-panel .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.user-form-panel .btn-submit {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #FF6A00, #FF5E00);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 106, 0, .25);
    transition: filter .2s ease, transform .1s ease;
}

.user-form-panel .btn-submit:hover {
    filter: brightness(1.05);
}

.user-form-panel .btn-submit:active {
    transform: translateY(1px);
}

.user-form-panel .btn-submit:disabled {
    background: #f0c9a8;
    box-shadow: none;
    cursor: not-allowed;
}

.user-form-panel .btn-ghost {
    height: 48px;
    padding: 0 22px;
    border-radius: 24px;
    border: 1px solid #ffe0c7;
    background: #fff;
    color: #b5651d;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.user-form-panel .btn-ghost:hover {
    background: #fff6ee;
    text-decoration: none;
}

@media (max-width: 576px) {
    .balance-info .balance-item {
        min-width: 130px;
    }
    .user-form-panel .form-actions {
        flex-direction: column-reverse;
    }
    .user-form-panel .btn-ghost {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .user-rec-panel .panel-body {
        padding: 12px;
    }
    .user-rec-list {
        gap: 10px;
    }
    .rec-card {
        padding: 13px 14px;
        border-radius: 12px;
    }
    .rec-memo {
        font-size: 15px;
    }
    .profile-avatar-wrap {
        width: 100px;
        height: 100px;
    }
    .btn-edit {
        padding: 0 12px;
        font-size: 12px;
    }
}

/* 个人资料 - 头像 */
.avatar-row {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .25s ease;
    border-radius: 50%;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
    opacity: 1;
}

.faupload-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* 编辑按钮（邮箱/手机修改） */
.btn-edit {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 16px;
    border-radius: 0 12px 12px 0;
    border: 1px solid #FF6A00;
    border-left: none;
    background: #fff6ee;
    color: #FF5E00;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.btn-edit:hover {
    background: #ffe9d6;
    text-decoration: none;
    color: #d2691e;
}

/* =============================================
   通用信息卡片 - 转化 / 经销商 / 订单
   ============================================= */
.user-info-panel .panel-body {
    padding: 16px;
}

.user-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    position: relative;
    background: #fff;
    border: 1px solid #f0e9e0;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all .2s ease;
}

.info-card:hover {
    box-shadow: 0 6px 18px rgba(255, 140, 66, .12);
    border-color: #ffd2ad;
}

/* 未读（新数据）标记：左侧小红点，不额外占用一行 */
.info-card .info-new-dot {
    position: absolute;
    left: 7px;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, .15);
}

.info-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.info-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2a1000;
    line-height: 1.4;
    word-break: break-all;
}

.info-card-pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.info-pill-success {
    background: #e8f7ee;
    color: #2e9e5b;
}

.info-pill-warning {
    background: #fff5e0;
    color: #d98e00;
}

.info-pill-default {
    background: #f1ede8;
    color: #9a9088;
}

.info-card-meta {
    font-size: 12px;
    color: #9a9088;
    margin-bottom: 10px;
}

.info-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

.info-metric-label {
    font-size: 11px;
    color: #b0a89f;
    margin-bottom: 2px;
}

.info-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #5a4a3a;
    word-break: break-all;
}

.info-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.info-card-actions .btn {
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
}

@media (max-width: 576px) {
    .user-info-panel .panel-body {
        padding: 12px;
    }
    .user-info-list {
        gap: 10px;
    }
    .info-card {
        padding: 13px 14px;
        border-radius: 12px;
    }
    .info-card-title {
        font-size: 15px;
    }
    .info-card-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }
}
