﻿/* ============================================================
   TotalPDF 用户中心样式
   由 App/Home/View/User/base_user.html 全站用户页引用
   ============================================================ */

body.ui-body {
    background: #f6f8fb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.uc-wrap {
    padding-bottom: 12px;
}

/* ---------- 顶部标签导航（user_profile_menu） ---------- */
.um-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 18px;
    padding: 0;
    list-style: none;
}

.um-tabs > li {
    position: relative;
}

.um-tabs > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 15px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4a5a70;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.um-tabs > li > a .fa {
    font-size: 12px;
    opacity: .8;
}

.um-tabs > li > a:hover,
.um-tabs > li > a:focus {
    color: #0b1220;
    text-decoration: none;
    background: #eef2f8;
}

.um-tabs > li.active > a {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d74 0%, #c026d3 100%);
    box-shadow: 0 10px 20px -12px rgba(192, 38, 211, .95);
}

.um-tabs > li.active > a .fa {
    opacity: 1;
}

.um-tabs > li > a .caret {
    margin-left: 2px;
    border-top-color: currentColor;
}

.um-tabs .dropdown-menu {
    top: calc(100% + 6px);
    left: 0;
    min-width: 150px;
    margin: 0;
    padding: 6px;
    border: 1px solid #eef1f6;
    border-radius: 12px;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45);
}

.um-tabs .dropdown-menu > li > a {
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    border-radius: 8px;
}

.um-tabs .dropdown-menu > li > a:hover,
.um-tabs .dropdown-menu > li > a:focus {
    color: #c2185b;
    background-color: #fff5f8;
}

/* ---------- 个人信息头部 ---------- */
.uc-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px;
    background:
        radial-gradient(420px 200px at 6% -10%, rgba(219, 39, 119, .10), rgba(255, 255, 255, 0) 70%),
        radial-gradient(420px 200px at 94% 10%, rgba(124, 58, 237, .09), rgba(255, 255, 255, 0) 70%),
        #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    box-shadow: 0 16px 40px -34px rgba(15, 23, 42, .55);
}

.uc-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.uc-avatar {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d74 0%, #c026d3 100%);
    border-radius: 50%;
    box-shadow: 0 14px 26px -16px rgba(192, 38, 211, .9);
}

.uc-identity h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0b1220;
}

.uc-identity p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #7b8a9d;
    overflow-wrap: break-word;
}

.uc-identity p strong {
    font-weight: 600;
    color: #334155;
}

.uc-sep {
    margin: 0 7px;
    color: #c3ccd9;
}

.uc-nowrap {
    white-space: nowrap;
}

.uc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- 按钮 ---------- */
.uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 11px;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.uc-btn:hover,
.uc-btn:focus {
    color: #c2185b;
    text-decoration: none;
    background: #fff7fa;
    border-color: #f7c6da;
    transform: translateY(-1px);
}

.uc-btn .fa {
    font-size: 12px;
}

.uc-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d74 0%, #c026d3 100%);
    border-color: transparent;
    box-shadow: 0 12px 22px -14px rgba(192, 38, 211, .9);
}

.uc-btn-primary:hover,
.uc-btn-primary:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #d11763 0%, #b01fbf 100%);
    border-color: transparent;
    box-shadow: 0 14px 26px -14px rgba(192, 38, 211, 1);
}

/* ---------- 数据卡片 ---------- */
.uc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.uc-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.uc-stat:hover {
    transform: translateY(-2px);
    border-color: #f6c9dc;
    box-shadow: 0 18px 32px -22px rgba(190, 24, 93, .45);
}

.uc-stat-ico {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 17px;
    color: #db2777;
    background: #fff0f6;
    border: 1px solid #ffdcea;
    border-radius: 12px;
}

.uc-stats .uc-stat:nth-child(1) .uc-stat-ico {
    color: #7c3aed;
    background: #f6f1ff;
    border-color: #e9dcff;
}

.uc-stats .uc-stat:nth-child(2) .uc-stat-ico {
    color: #0d9488;
    background: #eefbf8;
    border-color: #c9f2ea;
}

.uc-stats .uc-stat:nth-child(3) .uc-stat-ico {
    color: #db2777;
    background: #fff0f6;
    border-color: #ffdcea;
}

.uc-stats .uc-stat:nth-child(4) .uc-stat-ico {
    color: #2563eb;
    background: #eff5ff;
    border-color: #d8e7ff;
}

.uc-stat-body {
    min-width: 0;
}

.uc-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    color: #8b98ab;
}

.uc-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #0b1220;
}

.uc-stat-value--sm {
    font-size: 15px;
    letter-spacing: 0;
}

.uc-stat-value small {
    margin-left: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #8b98ab;
    letter-spacing: 0;
}

.uc-stat-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #93a3b8;
}

/* ---------- 内容卡片 ---------- */
.uc-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.uc-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
}

.uc-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0b1220;
}

.uc-bar {
    display: inline-block;
    width: 5px;
    height: 16px;
    background: linear-gradient(180deg, #f472b6, #db2777);
    border-radius: 3px;
}

.uc-dl {
    margin: 0;
}

.uc-dl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed #eef1f6;
}

.uc-dl-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.uc-dl-row dt {
    font-weight: 400;
    color: #77869a;
    white-space: nowrap;
}

.uc-dl-row dd {
    margin: 0;
    font-weight: 500;
    color: #0b1220;
    text-align: right;
    word-break: break-all;
}

.uc-sec-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.uc-sec-actions .uc-btn {
    width: 100%;
}

.uc-hint {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: #93a3b8;
}

.uc-card h2 + .uc-hint {
    margin-top: 0;
}

/* ---------- 其他用户页：面板 / 表格 / 表单 / 按钮 ---------- */
body.ui-body .panel {
    margin-bottom: 18px;
    border-color: #e9edf3;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

body.ui-body .panel > .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #eef1f6;
    border-radius: 14px 14px 0 0;
}

body.ui-body .panel > .panel-heading strong {
    font-size: 15px;
    font-weight: 600;
    color: #0b1220;
}

body.ui-body .panel-body {
    padding: 16px 18px;
}

body.ui-body .panel-footer {
    padding: 14px 18px;
    background: #fbfcfe;
    border-top: 1px solid #eef1f6;
    border-radius: 0 0 14px 14px;
}

/* 表格 */
body.ui-body .table {
    margin-bottom: 14px;
    border-color: #eef1f6;
}

body.ui-body .table > thead > tr > th {
    padding: 11px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #eef1f6;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

body.ui-body .table > tbody > tr > td,
body.ui-body .table > tbody > tr > th {
    padding: 12px;
    border-color: #eef1f6;
    vertical-align: middle;
    font-size: 13px;
    color: #334155;
}

body.ui-body .table > tbody > tr > th[scope="row"] {
    font-weight: 600;
    color: #0b1220;
}

body.ui-body .table-bordered {
    border-color: #e9edf3;
}

body.ui-body .table-bordered > thead > tr > th,
body.ui-body .table-bordered > tbody > tr > td,
body.ui-body .table-bordered > tbody > tr > th {
    border-color: #eef1f6;
}

body.ui-body .table-hover > tbody > tr:hover {
    background: #fbfcfe;
}

body.ui-body .table > caption {
    padding: 0 0 12px;
    font-size: 12.5px;
    color: #93a3b8;
    caption-side: top;
}

.uc-empty {
    padding: 40px 10px !important;
    color: #93a3b8 !important;
    text-align: center;
    font-size: 13px;
}

/* 按钮 */
body.ui-body .btn {
    padding: 8px 15px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    border-color: #e3e8f0;
    border-radius: 10px;
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.ui-body .btn:hover,
body.ui-body .btn:focus {
    color: #c2185b;
    background-color: #fff7fa;
    border-color: #f7c6da;
}

body.ui-body .btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 8px;
}

body.ui-body .btn-lg {
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 12px;
}

body.ui-body .btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d74 0%, #c026d3 100%);
    border-color: transparent;
    box-shadow: 0 10px 20px -16px rgba(192, 38, 211, .95);
}

body.ui-body .btn-primary:hover,
body.ui-body .btn-primary:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #d11763 0%, #b01fbf 100%);
    border-color: transparent;
}

body.ui-body .btn-success {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #0ea472 100%);
    border-color: transparent;
    box-shadow: 0 10px 20px -16px rgba(14, 164, 114, .95);
}

body.ui-body .btn-success:hover,
body.ui-body .btn-success:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea472 0%, #0b8f63 100%);
    border-color: transparent;
}

body.ui-body .btn-danger {
    color: #e11d48;
    background-color: #ffffff;
    border-color: #fbd0d9;
}

body.ui-body .btn-danger:hover,
body.ui-body .btn-danger:focus {
    color: #ffffff;
    background-color: #e11d48;
    border-color: #e11d48;
}

body.ui-body .btn-warning {
    color: #b45309;
    background-color: #ffffff;
    border-color: #fde3c2;
}

body.ui-body .btn-warning:hover,
body.ui-body .btn-warning:focus {
    color: #ffffff;
    background-color: #d97706;
    border-color: #d97706;
}

body.ui-body .btn-default.disabled,
body.ui-body .btn.disabled,
body.ui-body .btn[disabled] {
    opacity: .6;
    box-shadow: none;
}

/* 表单 */
body.ui-body .form-group {
    margin-bottom: 16px;
}

body.ui-body .form-control {
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0b1220;
    background-color: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body.ui-body textarea.form-control {
    height: auto;
    padding: 10px 12px;
    line-height: 1.7;
}

body.ui-body .form-control:focus {
    border-color: #f2a9c6;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, .10);
}

body.ui-body span.form-control {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    color: #64748b;
}

body.ui-body .form-horizontal .control-label {
    padding-top: 11px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
}

body.ui-body .help-block {
    font-size: 12.5px;
    color: #8b98ab;
}

/* 表单里的主操作按钮稍大一些，便于点击 */
body.ui-body .form-horizontal .btn-primary {
    padding: 10px 26px;
    font-size: 14px;
}

/* 充值选项：单选框做成可点击卡片 */
body.ui-body .form-horizontal .radio,
body.ui-body .form-horizontal .checkbox {
    margin: 0 0 8px;
}

body.ui-body .form-horizontal .radio > label {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 400;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body.ui-body .form-horizontal .radio > label > input[type="radio"] {
    position: static;
    margin: 0 9px 0 0;
}

body.ui-body .form-horizontal .radio > label:hover {
    border-color: #f6c9dc;
    background: #fffafc;
}

body.ui-body .form-horizontal .radio > label:has(input:checked) {
    border-color: #ec4899;
    background: #fff5f9;
    box-shadow: 0 0 0 3px rgba(225, 29, 116, .07);
}

body.ui-body .radio-inline {
    margin: 0 10px 8px 0;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

body.ui-body .radio-inline input[type="radio"] {
    position: static;
    margin: 0 6px 0 0;
}

body.ui-body .radio-inline:has(input:checked) {
    border-color: #ec4899;
    background: #fff5f9;
}

/* 徽标 / 分页 */
body.ui-body .label {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    border-radius: 7px;
}

body.ui-body .label-info {
    color: #2563eb;
    background: #eef4ff;
}

body.ui-body .pagination {
    margin: 6px 0 0;
}

body.ui-body .pagination > li > a,
body.ui-body .pagination > li > span {
    margin-right: 5px;
    padding: 6px 12px;
    font-size: 13px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 9px;
}

body.ui-body .pagination > li > a:hover {
    color: #c2185b;
    background: #fff7fa;
    border-color: #f7c6da;
}

body.ui-body .pagination > .active > a,
body.ui-body .pagination > .active > a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d74 0%, #c026d3 100%);
    border-color: transparent;
}

.uc-link-danger {
    font-size: 12.5px;
    color: #e11d48;
    text-decoration: none;
    cursor: pointer;
    padding: 3px 0;
}

.uc-link-danger:hover,
.uc-link-danger:focus {
    color: #be123c;
    text-decoration: none;
}

/* 短消息气泡 */
.uc-msg {
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 12px;
}

.uc-msg-out {
    background: #fff6fa;
    border-color: #fbe3ec;
}

.uc-msg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: #93a3b8;
}

.uc-msg-head .fa {
    font-size: 12px;
    color: #c2185b;
}

.uc-msg-head a {
    color: #c2185b;
    text-decoration: none;
}

.uc-msg-body {
    font-size: 13.5px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

.uc-msg-ops {
    margin-left: auto;
    font-size: 12.5px;
}

.uc-msg-ops a {
    color: #c2185b;
    text-decoration: none;
}

.uc-msg-sep {
    margin: 0 4px;
    color: #d6dde8;
}

/* 登录 / 注册 / 找回密码卡片 */
.uc-auth {
    margin-top: 28px;
    margin-bottom: 10px;
}

.uc-page {
    padding-top: 24px;
}

.uc-auth .panel {
    border-radius: 18px;
    box-shadow: 0 24px 60px -48px rgba(15, 23, 42, .65);
}

body.ui-body .uc-auth .panel > .panel-heading {
    display: block;
    padding: 24px 22px 8px;
    text-align: center;
    border-bottom: 0;
}

body.ui-body .uc-auth .panel > .panel-heading strong {
    font-size: 19px;
}

.uc-auth .panel-body {
    padding: 12px 24px 24px;
}

.uc-auth .form-horizontal .control-label {
    padding-top: 11px;
}

.uc-auth .panel-footer {
    border-radius: 0 0 18px 18px;
    padding: 14px 22px;
}

.uc-auth .panel-footer .list-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.uc-auth .panel-footer .list-inline > li {
    padding: 0;
}

.uc-auth .panel-footer img {
    height: 34px;
    width: auto;
    border-radius: 8px;
}

/* 操作工具条 */
.uc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.uc-toolbar .uc-toolbar-note {
    margin-left: auto;
    font-size: 12.5px;
    color: #93a3b8;
}

/* 金额概览 */
.uc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
    margin: 0 0 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff7fb 0%, #fdf5ff 100%);
    border: 1px solid #fbe3ec;
    border-radius: 12px;
}

.uc-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uc-summary span {
    font-size: 12.5px;
    color: #8b7d8a;
}

.uc-summary strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #c2185b;
}

.uc-note {
    margin: 0 0 14px;
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a6d3b;
    background: #fffbf2;
    border: 1px solid #fdeccb;
    border-radius: 10px;
}

body.ui-body .dl-horizontal dt {
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: 400;
    line-height: 1.7;
    color: #77869a;
}

body.ui-body .dl-horizontal dd {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.7;
    color: #0b1220;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) and (min-width: 576px) {
    .uc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .uc-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .uc-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .um-tabs {
        flex-wrap: nowrap;
        margin: 18px 0 14px;
        padding-bottom: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .um-tabs::-webkit-scrollbar {
        display: none;
    }

    .um-tabs > li > a {
        height: 34px;
        padding: 0 13px;
        font-size: 13px;
    }

    .uc-hero {
        padding: 20px;
        border-radius: 16px;
    }

    .uc-avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .uc-identity h1 {
        font-size: 18px;
    }

    .uc-hero-actions {
        width: 100%;
    }

    .uc-hero-actions .uc-btn {
        flex: 1 1 0;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .uc-stat {
        padding: 16px;
    }

    .uc-stat-value {
        font-size: 20px;
    }

    .uc-card {
        padding: 18px;
        border-radius: 14px;
    }

    .uc-dl-row {
        font-size: 13px;
    }
}

