/* =========================================================
   云帆发卡 - 后台管理样式
   ========================================================= */

:root {
    --adm-primary: #1677ff;
    --adm-primary-dark: #0f6af1;
    --adm-bg: #f5f7fb;
    --adm-card: #ffffff;
    --adm-text: #1f2329;
    --adm-text-2: #5a6472;
    --adm-muted: #8a94a6;
    --adm-border: #eceff4;
    --adm-radius: 16px;
    --adm-shadow: 0 10px 30px rgba(82, 63, 105, .06);
    --adm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.admin-body,
body.admin-login-body {
    margin: 0;
    color: var(--adm-text);
    font-family: var(--adm-font);
    font-size: 14px;
    line-height: 1.6;
    background: var(--adm-bg);
}

a { color: inherit; text-decoration: none; }
.ic { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--adm-muted); }
.small { font-size: 12px; }
.price { color: #fe00dc; font-weight: 800; }
.ellipsis { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 布局 ---------------- */
.adm-shell { display: flex; min-height: 100vh; }

.adm-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 232px;
    width: 232px;
    height: 100vh;
    padding: 18px 14px;
    background: #fff;
    border-right: 1px solid var(--adm-border);
}
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; }
.brand-seal { display: block; }
.adm-brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.adm-brand-text strong { color: var(--adm-text); font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-brand-text span { color: var(--adm-muted); font-size: 11px; }

.adm-nav { display: flex; flex-direction: column; gap: 4px; }
.adm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--adm-text-2);
    font-size: 14px;
    font-weight: 600;
    transition: background .16s ease, color .16s ease;
}
.adm-nav-item:hover { background: #f5f8ff; color: var(--adm-primary); }
.adm-nav-item.is-active { background: #eaf2ff; color: var(--adm-primary); font-weight: 800; }
.adm-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff1f0;
    color: #cf3b30;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}
.adm-sidebar-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--adm-border); }

.adm-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--adm-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.adm-topbar-left, .adm-topbar-right { display: flex; align-items: center; gap: 12px; }
.adm-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    background: #fff;
    color: var(--adm-text-2);
    cursor: pointer;
}
.adm-page-title { margin: 0; color: var(--adm-text); font-size: 18px; font-weight: 800; }
.adm-user { display: inline-flex; align-items: center; gap: 5px; color: var(--adm-text-2); font-size: 13px; }
.adm-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 9px;
    color: var(--adm-text-2);
    font-size: 13px;
    font-weight: 600;
}
.adm-logout:hover { border-color: #ffccc7; color: #cf3b30; background: #fff7f6; }

.adm-content { flex: 1 1 auto; padding: 20px 24px 28px; }
.adm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px 20px;
    color: var(--adm-muted);
    font-size: 12px;
}
.adm-footer-muted { color: #b2b9c4; }

/* ---------------- 通用组件 ---------------- */
.adm-page { display: flex; flex-direction: column; gap: 16px; }
.adm-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.adm-grid-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.adm-stack { display: flex; flex-direction: column; gap: 16px; }

.adm-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    padding: 18px 20px;
    overflow: hidden;
}
.adm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.adm-card-head h2 { margin: 0; color: var(--adm-text); font-size: 15px; font-weight: 800; }
.adm-head-left { display: flex; align-items: baseline; gap: 10px; }
.adm-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-link { display: inline-flex; align-items: center; gap: 3px; color: var(--adm-primary); font-weight: 600; }
.adm-link:hover { color: var(--adm-primary-dark); }

.adm-empty {
    padding: 30px 12px;
    border: 1px dashed var(--adm-border);
    border-radius: 12px;
    color: var(--adm-muted);
    font-size: 13px;
    text-align: center;
}
.adm-empty.small { padding: 18px 12px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    box-shadow: var(--adm-shadow);
}
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
.tone-blue { background: #eaf2ff; color: #1677ff; }
.tone-green { background: #e8f9ef; color: #16a34a; }
.tone-purple { background: #f1ecff; color: #7c3aed; }
.tone-amber { background: #fff4e5; color: #d97706; }
.tone-cyan { background: #e6f9fb; color: #0891b2; }
.tone-pink { background: #fdeef7; color: #db2777; }
.stat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.stat-label { color: var(--adm-muted); font-size: 12px; }
.stat-value { color: var(--adm-text); font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value em { margin-left: 2px; color: var(--adm-muted); font-size: 11px; font-style: normal; font-weight: 500; }

/* 表格 */
.table-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
    padding: 10px 10px;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.adm-table td { padding: 11px 10px; border-bottom: 1px solid #f3f5f9; vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: #fafbff; }
.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline-flex; margin: 0; }

.product-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.product-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--adm-border);
    border-radius: 9px;
    background: #fafbfd;
    font-size: 15px;
}
.product-cell > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.product-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.emoji-cell { font-size: 17px; }
.mini-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}
.mini-tag.tag-auto { background: #e8f9ef; color: #15803d; }
.mini-tag.tag-manual { background: #fff4e5; color: #b45309; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all .16s ease;
}
.btn-small { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 44px; font-size: 14px; }
.btn-primary { background: var(--adm-primary); border-color: var(--adm-primary); color: #fff; box-shadow: 0 4px 10px rgba(22, 119, 255, .18); }
.btn-primary:hover { background: var(--adm-primary-dark); border-color: var(--adm-primary-dark); }
.btn-ghost { background: #fff; border-color: var(--adm-border); color: var(--adm-text-2); }
.btn-ghost:hover { border-color: #bcd6ff; color: var(--adm-primary); background: #f7faff; }
.btn-danger { background: #fff6f5; border-color: #ffd6d2; color: #cf3b30; }
.btn-danger:hover { background: #ffebe8; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--adm-muted);
    cursor: pointer;
}
.icon-btn.danger:hover { color: #cf3b30; background: #fff1f0; border-color: #ffd6d2; }

/* 表单 */
.adm-form { display: flex; flex-direction: column; }
.form-row { margin-bottom: 14px; }
.form-row:last-of-type { margin-bottom: 16px; }
.form-row > label { display: block; margin-bottom: 6px; color: var(--adm-text-2); font-size: 13px; font-weight: 600; }
.form-row > label i { color: #ff4d4f; font-style: normal; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-control {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e6ee;
    border-radius: 9px;
    background: #fff;
    color: var(--adm-text);
    font-family: inherit;
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus { outline: none; border-color: #7fb0ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.form-control::placeholder { color: #b3bccb; }
textarea.form-control { height: auto; padding: 9px 12px; line-height: 1.6; resize: vertical; }
select.form-control { padding: 0 8px; }
.form-control.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }
.form-tip { margin: 0 0 12px; color: var(--adm-muted); font-size: 12px; line-height: 1.7; }
.form-tip code, .login-hint code { padding: 1px 5px; border-radius: 5px; background: #f2f5fb; color: #4b5a72; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11.5px; }

.adm-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-filter .form-control { width: 180px; }
.adm-filter select.form-control { width: 130px; }

/* 标签 & 状态 */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.75;
    white-space: nowrap;
}
.st-warn { background: #fff4e5; color: #b45309; }
.st-info { background: #eaf2ff; color: #1d4ed8; }
.st-ok { background: #e8f9ef; color: #15803d; }
.st-danger { background: #ffefed; color: #cf3b30; }
.st-muted { background: #f2f4f7; color: #8a94a6; }

/* 选项卡 */
.adm-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; background: #f5f7fb; border-radius: 10px; width: fit-content; flex-wrap: wrap; }
.adm-tab { padding: 6px 14px; border-radius: 8px; color: var(--adm-text-2); font-size: 13px; font-weight: 600; }
.adm-tab:hover { color: var(--adm-primary); }
.adm-tab.is-active { background: #fff; color: var(--adm-primary); box-shadow: 0 2px 8px rgba(82, 63, 105, .08); }

/* 列表 / 快捷操作 */
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    transition: border-color .16s ease, background .16s ease;
}
.adm-list-item:hover { border-color: #bcd6ff; background: #fafcff; }
.adm-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-list-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border: 1px dashed var(--adm-border);
    border-radius: 12px;
    color: var(--adm-text-2);
    font-size: 13px;
    font-weight: 600;
    transition: all .16s ease;
}
.quick-action:hover { border-color: #bcd6ff; background: #f7faff; color: var(--adm-primary); transform: translateY(-1px); }

/* 详情 */
.adm-info-list { display: flex; flex-direction: column; }
.adm-info-list.compact { margin-bottom: 14px; }
.adm-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #f0f2f7; font-size: 13px; }
.adm-info-row:last-child { border-bottom: none; }
.adm-info-row > span { flex-shrink: 0; color: var(--adm-muted); }
.adm-info-row > strong { color: var(--adm-text); font-weight: 600; text-align: right; word-break: break-all; }
.adm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--adm-border); }
.adm-sub-head { margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--adm-border); color: var(--adm-text); font-size: 13px; font-weight: 800; }
.cards-textarea-admin {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7f0e1;
    border-radius: 10px;
    background: #f7fdf9;
    color: #14532d;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.8;
    resize: vertical;
}
.stock-summary { display: flex; gap: 6px; }
.cards-list-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; color: var(--adm-text-2); font-size: 13px; font-weight: 700; }
.cards-mini-list { display: flex; flex-direction: column; gap: 6px; }
.card-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    font-size: 12.5px;
}
.card-mini-item.is-used { background: #fafbfd; color: #9aa4b2; }
.card-mini-meta { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* 支付方式设置 */
.pay-method-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pay-method-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 90px; align-items: center; gap: 10px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--adm-text-2); font-size: 13px; cursor: pointer; }
.check-inline input { width: 15px; height: 15px; accent-color: var(--adm-primary); }
.pay-method-row code { justify-self: end; }

.danger-zone { border-color: #ffe0dc; }
.danger-zone .adm-card-head h2 { color: #b9382f; }

/* 聊天（工单） */
.chat-thread { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 18px; }
.chat-item { display: flex; gap: 10px; align-items: flex-start; }
.chat-item.is-admin { flex-direction: row-reverse; }
.chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4e5;
    color: #b45309;
    font-size: 11.5px;
    font-weight: 700;
}
.chat-item.is-admin .chat-avatar { background: #eaf2ff; color: #1d4ed8; }
.chat-body { max-width: 74%; }
.chat-bubble { padding: 9px 12px; border: 1px solid var(--adm-border); border-radius: 11px; background: #fff; font-size: 13px; line-height: 1.7; word-break: break-word; }
.chat-item.is-admin .chat-bubble { background: #f0f6ff; border-color: #dbe9ff; }
.chat-time { display: block; margin-top: 3px; color: var(--adm-muted); font-size: 11px; }
.chat-item.is-admin .chat-time { text-align: right; }

/* Toast */
.toast-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 11px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 30px rgba(31, 38, 135, .16);
    color: #404650;
    font-size: 13px;
    line-height: 1.6;
    animation: toastIn .22s var(--ease);
    pointer-events: auto;
}
.toast-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #28d094; }
.toast-error .toast-dot { background: #f04438; }
.toast-warning .toast-dot { background: #f59e0b; }
.toast.is-hide { opacity: 0; transform: translateY(-6px); transition: all .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- 登录页 ---------------- */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 8%, rgba(22, 119, 255, .1) 0%, rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 88% 92%, rgba(217, 130, 32, .1) 0%, rgba(255, 255, 255, 0) 40%),
        #f5f7fb;
}
.login-wrap { width: 100%; padding: 24px; }
.login-card {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 30px 30px 24px;
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(82, 63, 105, .12);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 22px; text-align: center; }
.login-brand h1 { margin: 6px 0 0; color: var(--adm-text); font-size: 20px; font-weight: 800; }
.login-brand p { margin: 0; color: var(--adm-muted); font-size: 12px; letter-spacing: 1px; }
.login-form { display: flex; flex-direction: column; }
.login-hint {
    margin: 14px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: #f7f9fc;
    color: var(--adm-muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}
.login-links { margin-top: 14px; text-align: center; }
.login-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--adm-muted); font-size: 12.5px; }
.login-links a:hover { color: var(--adm-primary); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-grid-side, .adm-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .adm-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .22s var(--ease);
        box-shadow: 20px 0 50px rgba(31, 38, 135, .12);
    }
    .adm-sidebar.is-open { transform: none; }
    .adm-menu-btn { display: inline-flex; }
    .adm-topbar { padding: 0 14px; }
    .adm-content { padding: 14px; }
    .adm-footer { padding: 12px 14px 18px; }
    .adm-body-overlay {
        position: fixed;
        inset: 0;
        z-index: 150;
        background: rgba(24, 30, 44, .35);
    }
}

@media (max-width: 640px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-page-title { font-size: 16px; }
    .adm-topbar-right .adm-user { display: none; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-filter { width: 100%; }
    .adm-filter .form-control { width: 100%; flex: 1 1 100%; }
    .adm-card { padding: 14px; }
    .adm-card-head { margin-bottom: 12px; }
    .adm-table { font-size: 12px; }
    .adm-table th, .adm-table td { padding: 8px 6px; }
    .login-card { padding: 24px 20px 20px; }
    .toast-stack { top: 12px; }
}


/* ---------------- 品牌头像 / 上传器 ---------------- */
.brand-avatar-img {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 6px rgba(240, 209, 212, .9);
}
.adm-avatar-img {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(82, 63, 105, .16);
}
.adm-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--adm-primary);
    font-weight: 800;
}
.adm-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.avatar-upload-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 4px 0 14px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--adm-border);
}
.avatar-preview {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    background: #f8fafc;
}
.avatar-preview img,
.avatar-preview .brand-avatar-img,
.avatar-preview .adm-avatar-img {
    border-radius: 12px;
    box-shadow: none;
}
.avatar-upload-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.avatar-upload-info > label {
    color: var(--adm-text-2);
    font-size: 13px;
    font-weight: 600;
}
.avatar-upload-info .check-inline { font-size: 12px; }
.file-input { height: auto; padding: 7px 10px; font-size: 12px; }
.adm-avatar-preview .adm-avatar-img,
.adm-avatar-preview .adm-avatar-fallback {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
}


/* ---------------- 卡密管理 ---------------- */
.cards-import {
    padding: 14px 16px;
    margin: 4px 0 6px;
    border: 1px dashed var(--adm-border);
    border-radius: 12px;
    background: #fafcff;
}
.card-content-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.adm-page-btn {
    padding: 6px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: #fff;
    color: var(--adm-text-2);
    font-size: 13px;
}
.adm-page-btn:hover { border-color: #bcd6ff; color: var(--adm-primary); }
.pay-method-row-4 { grid-template-columns: 76px minmax(0, 1fr) 130px 90px; }
