/* ============================================================
   member.css  会员中心样式
   与全站导航 / 登录弹窗同一设计语言：
   蓝 #2563eb、白底卡片、线性图标、圆角 12/16px、克制阴影。
   版本 20260909-4
   ============================================================ */

:root {
    --uc-primary: #2563eb;
    --uc-primary-dark: #1d4ed8;
    --uc-primary-soft: #eff6ff;
    --uc-green: #059669;
    --uc-green-soft: #ecfdf5;
    --uc-red: #dc2626;
    --uc-red-soft: #fef2f2;
    --uc-amber: #d97706;
    --uc-amber-soft: #fffbeb;
    --uc-ink: #0f172a;
    --uc-text: #475569;
    --uc-muted: #94a3b8;
    --uc-line: #dbe2ec;
    --uc-line-soft: #edf1f6;
    --uc-bg: #f7f8fa;
    --uc-panel: #ffffff;
    --uc-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

body.member-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--uc-bg);
    color: var(--uc-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.member-body a { text-decoration: none; }
body.member-body a:not(.uc-btn):not(.uc-link) { color: inherit; }
body.member-body button,
body.member-body input,
body.member-body select,
body.member-body textarea { font: inherit; }
body.member-body button { cursor: pointer; }
body.member-body [hidden] { display: none !important; }

/* 会员中心不再自绘顶栏（复用全站 .header），旧顶栏类名静默不渲染 */

/* ---------------- 布局 ---------------- */
.uc-shell {
    max-width: 1400px;
    margin: 26px auto 56px;
    padding: 0 28px;
}

.uc-layout {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.uc-layout,
.uc-sidebar,
.uc-main,
.uc-card,
.uc-empty-state,
.uc-loading {
    min-width: 0;
}

/* ---------------- 侧边栏 ---------------- */
.uc-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--uc-line-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--uc-shadow);
}

.uc-side-head {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--uc-line-soft);
}

.uc-side-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uc-side-user-info { min-width: 0; }
.uc-side-name {
    overflow: hidden;
    color: var(--uc-ink);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-side-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    border-radius: 6px;
    background: var(--uc-primary-soft);
    padding: 2px 9px;
    color: var(--uc-primary-dark);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.uc-side-meta svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.uc-side-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.uc-side-stat {
    min-width: 0;
    border: 1px solid var(--uc-line-soft);
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 4px;
    text-align: center;
}

.uc-side-stat strong {
    display: block;
    overflow: hidden;
    color: var(--uc-ink);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.uc-side-stat span {
    color: var(--uc-muted);
    font-size: 11px;
}

.uc-side-nav {
    display: grid;
    gap: 3px;
    padding: 12px;
}

.uc-side-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    padding: 0 12px;
    color: var(--uc-text);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.uc-side-link:hover {
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
}

.uc-side-link.is-active {
    position: relative;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark) !important;
    font-weight: 600;
}

.uc-side-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--uc-primary);
}

.uc-side-link.is-active svg {
    color: var(--uc-primary);
}

.uc-side-link.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.uc-nav-icon,
.uc-icon,
.uc-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.uc-nav-icon {
    width: 22px;
    height: 22px;
}

.uc-side-foot {
    padding: 12px;
    border-top: 1px solid var(--uc-line-soft);
}

.uc-sidebar.is-guest .uc-side-stats,
.uc-sidebar.is-guest .uc-side-foot {
    display: none;
}

.uc-sidebar.is-guest .uc-side-head {
    cursor: pointer;
}

.uc-sidebar.is-guest .uc-side-name {
    color: var(--uc-primary);
}

.uc-logout {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--uc-muted);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.uc-logout:hover {
    background: var(--uc-red-soft);
    color: var(--uc-red);
}

.uc-logout svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.uc-main { min-width: 0; }

/* ---------------- 面包屑 / 页头 ---------------- */
.uc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--uc-muted);
    font-size: 13px;
}

.uc-breadcrumb a:hover { color: var(--uc-primary-dark); }
.uc-breadcrumb svg { width: 13px; height: 13px; }

.uc-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

/* 英文小眉题过于花哨，隐藏 */
.uc-kicker { display: none; }

.uc-title {
    margin: 0;
    color: var(--uc-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.uc-subtitle {
    margin: 6px 0 0;
    color: var(--uc-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.uc-alert {
    display: none;
    margin-bottom: 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    padding: 11px 14px;
    color: var(--uc-red);
    font-size: 13.5px;
}

.uc-alert.is-visible { display: block; }

/* ---------------- 加载 / 空状态 ---------------- */
.uc-loading,
.uc-empty-state {
    min-height: 340px;
    border: 1px solid var(--uc-line-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--uc-shadow);
}

.uc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--uc-muted);
    font-size: 14px;
}

.uc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #cfe0f8;
    border-top-color: var(--uc-primary);
    border-radius: 50%;
    animation: uc-spin .8s linear infinite;
}

@keyframes uc-spin { to { transform: rotate(360deg); } }

.uc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.uc-empty-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--uc-primary-soft);
    color: var(--uc-primary);
}

.uc-empty-icon svg { width: 26px; height: 26px; }

.uc-empty-title {
    margin-top: 16px;
    color: var(--uc-ink);
    font-size: 18px;
    font-weight: 700;
}

.uc-empty-copy {
    max-width: 440px;
    margin: 8px auto 20px;
    color: var(--uc-muted);
    font-size: 13.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* ---------------- 按钮 ---------------- */
.uc-btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--uc-line);
    border-radius: 10px;
    background: #fff;
    padding: 0 16px;
    color: var(--uc-text);
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.uc-btn:hover {
    border-color: #bfdbfe;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
}

.uc-btn-primary,
.uc-btn-accent {
    border-color: transparent;
    background: linear-gradient(135deg, #3b6fee 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .18);
    transition: filter .15s ease, box-shadow .15s ease;
}

.uc-btn-primary:hover,
.uc-btn-accent:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #3b6fee 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .22);
}

.uc-btn-primary:active,
.uc-btn-accent:active {
    filter: brightness(.97);
    box-shadow: 0 1px 3px rgba(37, 99, 235, .18);
}

.uc-btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--uc-text);
}

.uc-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.uc-icon svg,
.uc-nav-icon svg,
.uc-action-icon svg,
.uc-card-title svg,
.uc-btn svg,
.uc-tool-btn svg,
.uc-empty-icon svg,
.uc-pay-method svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ---------------- 卡片 ---------------- */
.uc-hero-card,
.uc-card,
.uc-stat-card,
.uc-action-card,
.uc-plan-card,
.uc-form-panel {
    border: 1px solid var(--uc-line-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--uc-shadow);
}

.uc-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: #fff;
    border-color: #e2e8f0;
    border-left: 3px solid var(--uc-primary);
}

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

.uc-profile-name-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.uc-profile-name {
    overflow: hidden;
    color: var(--uc-ink);
    font-size: 18px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-profile-meta {
    margin-top: 5px;
    color: var(--uc-muted);
    font-size: 13px;
}

.uc-tag,
.uc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.uc-tag { background: var(--uc-primary-soft); color: var(--uc-primary-dark); }
.uc-pill.ok { background: var(--uc-green-soft); color: var(--uc-green); }
.uc-pill.warn { background: var(--uc-amber-soft); color: var(--uc-amber); }
.uc-pill.danger { background: var(--uc-red-soft); color: var(--uc-red); }
.uc-pill.info { background: var(--uc-primary-soft); color: var(--uc-primary-dark); }
.uc-pill.muted { background: #f1f5f9; color: var(--uc-text); }

/* 头像：与全站品牌标同一蓝色渐变 */
.nav-avatar,
.uc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #4f8dff, #2563eb 55%, #1d4ed8);
    color: #fff;
    font-weight: 700;
}

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

.nav-avatar { width: 28px; height: 28px; font-size: 12px; }
.uc-avatar { width: 52px; height: 52px; font-size: 20px; }

/* ---------------- 统计卡 ---------------- */
.uc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.uc-stat-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-from), var(--stat-to));
}

.uc-stat-card:hover {
    border-color: var(--stat-from);
    box-shadow: 0 4px 16px var(--stat-glow);
}

.uc-stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--uc-muted);
    font-size: 13px;
    font-weight: 500;
}

.uc-stat-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--stat-from), var(--stat-to));
    color: #fff;
}

.uc-stat-card.balance {
    --stat-from: #60a5fa;
    --stat-to: #2563eb;
    --stat-soft: #eff6ff;
    --stat-glow: rgba(37, 99, 235, .22);
}
.uc-stat-card.vip {
    --stat-from: #a78bfa;
    --stat-to: #7c3aed;
    --stat-soft: #f5f3ff;
    --stat-glow: rgba(124, 58, 237, .22);
}
.uc-stat-card.query {
    --stat-from: #22d3ee;
    --stat-to: #0891b2;
    --stat-soft: #ecfeff;
    --stat-glow: rgba(8, 145, 178, .2);
}
.uc-stat-card.order {
    --stat-from: #fb923c;
    --stat-to: #ea580c;
    --stat-soft: #fff7ed;
    --stat-glow: rgba(234, 88, 12, .2);
}

.uc-stat-value {
    margin-top: 14px;
    color: var(--uc-ink);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.uc-stat-note {
    margin-top: 6px;
    color: var(--uc-muted);
    font-size: 12.5px;
}

/* ---------------- 双栏 / 卡片 ---------------- */
.uc-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
    gap: 18px;
}

.uc-card { overflow: hidden; margin-bottom: 18px; }
.uc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid var(--uc-line-soft);
    padding: 16px 20px;
}

.uc-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--uc-ink);
    font-size: 15.5px;
    font-weight: 700;
}

.uc-card-title .sub {
    color: var(--uc-muted);
    font-size: 12.5px;
    font-weight: 400;
}

.uc-card-body { padding: 18px 20px; }

.uc-link { color: var(--uc-primary); font-weight: 600; font-size: 13.5px; }
.uc-link:hover { color: var(--uc-primary-dark); text-decoration: underline; }

/* ---------------- 快捷操作 ---------------- */
.uc-action-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.uc-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px;
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
}

.uc-action-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: var(--uc-primary-dark);
}

.uc-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--uc-primary-soft);
    color: var(--uc-primary);
}

.uc-action-card:nth-child(2) .uc-action-icon,
.uc-action-card:nth-child(3) .uc-action-icon,
.uc-action-card:nth-child(4) .uc-action-icon {
    background: var(--uc-primary-soft);
    color: var(--uc-primary);
}

.uc-action-title {
    display: block;
    color: var(--uc-ink);
    font-size: 14px;
    font-weight: 600;
}

.uc-action-desc {
    display: block;
    margin-top: 3px;
    color: var(--uc-muted);
    font-size: 12.5px;
}

/* 窄栏内的快捷操作纵向堆叠 */
.uc-action-list-stack { grid-template-columns: 1fr; }
.uc-action-card > span:last-child { min-width: 0; }

/* ---------------- 图表条 ---------------- */
.uc-chart-list { display: grid; gap: 12px; }
.uc-bar-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    color: var(--uc-text);
    font-size: 13px;
}

.uc-bar {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
}

.uc-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--uc-primary);
}

.uc-bar-row strong {
    color: var(--uc-ink);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 13px;
    text-align: right;
}

/* ---------------- 筛选 / 表格 ---------------- */
.uc-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.uc-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.uc-input,
.uc-select {
    min-height: 40px;
    border: 1px solid var(--uc-line);
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    color: var(--uc-ink);
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-input { width: min(260px, 100%); }
.uc-select { min-width: 136px; }
.uc-input:focus,
.uc-select:focus {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.uc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
}

.uc-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
}

.uc-table th {
    background: #f8fafc;
    color: var(--uc-text);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.uc-table th,
.uc-table td {
    border-bottom: 1px solid var(--uc-line-soft);
    padding: 13px 16px;
}

.uc-table td {
    color: var(--uc-text);
    font-size: 13.5px;
    vertical-align: middle;
}

.uc-table tbody tr:last-child td { border-bottom: 0; }
.uc-table tbody tr:hover { background: #f8fbff; }

.uc-mono {
    color: var(--uc-ink);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 12.5px;
}

.uc-strong { color: var(--uc-ink); font-weight: 600; }
.uc-muted { color: var(--uc-muted); }

.uc-empty-table {
    padding: 40px 12px;
    color: var(--uc-muted);
    font-size: 14px;
    text-align: center;
}

.uc-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ---------------- 分页 ---------------- */
.uc-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.uc-pager-total {
    color: var(--uc-muted);
    font-size: 13px;
}

.uc-pager-total b { color: var(--uc-ink); font-weight: 600; }

.uc-pager-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.uc-page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--uc-line);
    border-radius: 9px;
    background: #fff;
    padding: 0 12px;
    color: var(--uc-text);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.uc-page-btn:hover {
    border-color: #bfdbfe;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
}

.uc-page-btn.is-active {
    border-color: var(--uc-primary);
    background: var(--uc-primary);
    color: #fff;
}

.uc-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ---------------- 充值 / 表单 ---------------- */
.uc-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
    gap: 18px;
}

.uc-form-panel {
    padding: 22px;
}

.uc-section-title {
    color: var(--uc-ink);
    font-size: 16px;
    font-weight: 700;
}

.uc-section-copy {
    margin-top: 5px;
    color: var(--uc-muted);
    font-size: 13px;
}

.uc-amount-display {
    margin-top: 22px;
    color: var(--uc-ink);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.uc-amount-display small {
    color: var(--uc-muted);
    font-size: 14px;
    font-weight: 500;
}

.uc-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.uc-field label {
    color: var(--uc-text);
    font-size: 13px;
    font-weight: 600;
}

.uc-field input {
    height: 44px;
    border: 1px solid var(--uc-line);
    border-radius: 10px;
    padding: 0 14px;
    color: var(--uc-ink);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-field input:focus {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.uc-preset-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.uc-preset {
    height: 42px;
    border: 1px solid var(--uc-line);
    border-radius: 10px;
    background: #fff;
    color: var(--uc-text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.uc-preset:hover,
.uc-preset.is-active {
    border-color: var(--uc-primary);
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
}

.uc-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--uc-line-soft);
    padding-top: 18px;
}

.uc-check-list {
    display: grid;
    gap: 12px;
}

.uc-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}

.uc-check-index {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.uc-check-title { color: var(--uc-ink); font-size: 14px; font-weight: 600; }
.uc-check-title,
.uc-check-desc { display: block; }
.uc-check-desc { color: var(--uc-muted); font-size: 12.5px; }

/* ---------------- VIP 套餐 ---------------- */
.uc-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.uc-plan-card {
    position: relative;
    display: flex;
    min-height: 240px;
    flex-direction: column;
    padding: 22px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-plan-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--uc-shadow);
}

.uc-plan-card.is-featured {
    border-color: #c4b5fd;
    background: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .1);
}

.uc-plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    padding: 4px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(124, 58, 237, .2);
}

.uc-plan-name {
    padding-right: 66px;
    color: var(--uc-ink);
    font-size: 16px;
    font-weight: 700;
}

.uc-plan-price {
    margin-top: 16px;
    color: var(--uc-primary-dark);
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 32px;
    font-weight: 700;
}

.uc-plan-price small {
    color: var(--uc-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

.uc-plan-specs {
    display: grid;
    gap: 8px;
    margin: 16px 0 18px;
    color: var(--uc-text);
    font-size: 13px;
}

.uc-plan-specs span::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--uc-primary);
    vertical-align: 2px;
}

.uc-plan-card .uc-btn {
    width: 100%;
    margin-top: auto;
}

.uc-vip-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    padding: 18px 22px;
}

.uc-pay-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px;
}

.uc-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uc-pay-method {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--uc-line);
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    color: var(--uc-text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.uc-pay-method.is-active {
    border-color: var(--uc-primary);
    background: var(--uc-primary-soft);
    color: var(--uc-primary-dark);
}

/* ---------------- 明细抽屉 ---------------- */
.uc-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.uc-drawer.is-open { display: block; }
.uc-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .4);
}

.uc-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 100%);
    height: 100%;
    overflow: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, .16);
}

.uc-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--uc-line-soft);
    padding: 18px 22px;
}

.uc-drawer-title {
    color: var(--uc-ink);
    font-size: 16px;
    font-weight: 700;
}

.uc-drawer-body { padding: 22px; }

.uc-json {
    overflow: auto;
    max-height: 520px;
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
    background: #0f172a;
    padding: 16px;
    color: #dbeafe;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.uc-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.uc-info-item {
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
}

.uc-info-label {
    color: var(--uc-muted);
    font-size: 12.5px;
}

.uc-info-value {
    margin-top: 6px;
    color: var(--uc-ink);
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.uc-security-list { display: grid; gap: 12px; }
.uc-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--uc-line-soft);
    border-radius: 12px;
    padding: 16px 18px;
}

.uc-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    z-index: 300;
    max-width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(-8px);
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .22);
    padding: 11px 18px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.uc-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------- 响应式（断点与全站 920px 对齐） ---------------- */
@media (max-width: 920px) {
    .uc-layout { grid-template-columns: 1fr; }
    .uc-sidebar { position: static; }
    .uc-side-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }
    .uc-side-stats { width: 220px; margin-top: 0; }
    .uc-side-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }
    .uc-side-link {
        min-height: 56px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 4px;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
    }
    .uc-side-foot {
        border-top: 0;
        padding: 2px 10px 12px;
    }
    .uc-grid-2,
    .uc-form-grid { grid-template-columns: 1fr; }
    .uc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uc-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .uc-shell { width: 100%; margin-top: 16px; padding: 0 14px 36px; }
    .uc-layout { display: block; }
    .uc-main { margin-top: 14px; }
    .uc-page-head,
    .uc-hero-card,
    .uc-vip-current,
    .uc-pay-box,
    .uc-table-toolbar,
    .uc-pager,
    .uc-form-footer { align-items: stretch; flex-direction: column; }
    .uc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uc-action-list,
    .uc-plan-grid,
    .uc-profile-grid { grid-template-columns: 1fr; }
    .uc-card-head { align-items: flex-start; flex-direction: column; }
    .uc-side-head { display: block; padding: 16px; }
    .uc-side-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin-top: 14px;
        gap: 8px;
    }
    .uc-side-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        gap: 8px;
        padding: 10px;
    }
    .uc-side-link {
        min-height: 56px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 4px;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
    }
    .uc-nav-icon { width: 20px; height: 20px; }
    .uc-title { font-size: 21px; }
    .uc-stat-value { font-size: 22px; }
    .uc-preset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uc-input,
    .uc-select { width: 100%; }
    .uc-filter-row { width: 100%; }
    .uc-table th,
    .uc-table td { padding: 11px 14px; }
    .uc-empty-copy { max-width: 100%; }
    .uc-bar-row { grid-template-columns: 86px minmax(0, 1fr) 44px; }
}

@media (max-width: 520px) {
    .uc-side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .uc-side-link { min-height: 54px; }
}
