/* OrderHub — 通用样式（前台 + 后台共用） */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Helvetica Neue", "Segoe UI", "Microsoft YaHei",
                 system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f4f6fb;
    color: #1f2937;
}
.topbar {
    background: linear-gradient(90deg, #ff2d55, #fe2c55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.nav a, .admin-menu a {
    color: #fff;
    text-decoration: none;
    margin-left: 14px;
    font-size: 14px;
    opacity: .92;
}
.nav a:hover { opacity: 1; text-decoration: underline; }
.container { max-width: 960px; margin: 22px auto; padding: 0 16px; }
.footer { text-align: center; color: #9ca3af; padding: 24px; font-size: 13px; }

.card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -18px rgba(15,23,42,.18);
    margin-bottom: 18px;
}
.card h2 { margin-top: 0; font-size: 18px; color: #111827; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(37,99,235,.25);
    transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: #1d4ed8; border-color: #1d4ed8; box-shadow: 0 2px 6px rgba(37,99,235,.3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.btn-secondary { background: #64748b; border-color: #64748b; box-shadow: none; }
.btn-secondary:hover { background: #475569; border-color: #475569; }
.btn-danger { background: #dc2626; border-color: #dc2626; box-shadow: none; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn:disabled, .btn[disabled] { background: #cbd5e1; border-color: #cbd5e1; color: #f8fafc; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { background: #cbd5e1; border-color: #cbd5e1; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.stat {
    background: #fff; border-radius: 12px; padding: 16px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.stat .num { font-size: 22px; font-weight: 800; color: #2563eb; }
.stat .lbl { font-size: 12px; color: #6b7280; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; border: 1px solid #e8edf3; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f7; font-size: 13px; }
th { background: #0f172a; color: #fff; font-weight: 600; letter-spacing: .2px; }
th:first-child { border-top-left-radius: 12px; }
th:last-child { border-top-right-radius: 12px; }
tr:nth-child(even) td { background: #fafbfe; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash-ok { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-wait { background: #fef9c3; color: #854d0e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.badge-fail { background: #fee2e2; color: #991b1b; }

/* 后台（上：顶部栏 + 左：侧边栏 + 右：内容区） */
body.admin { background: #eef1f6; margin: 0; }
.admin-topbar {
    background: #1f2937; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px;
}
.admin-topbar .brand { font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.admin-topbar .who { color: #cbd5e1; font-size: 13px; }
.admin-topbar .admin-topbar-right {
    display: inline-flex; align-items: center; gap: 14px;
}
.admin-topbar .admin-lang-switcher {
    display: inline-flex; align-items: center;
}
.admin-topbar .admin-lang-switcher form {
    display: inline-flex; align-items: center; gap: 4px; margin: 0;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    transition: background .15s, border-color .15s;
}
.admin-topbar .admin-lang-switcher form:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.admin-topbar .admin-lang-switcher .ls-icon {
    font-size: 13px; line-height: 1; color: #e5e7eb; cursor: default;
}
.admin-topbar .admin-lang-switcher select {
    appearance: none; -webkit-appearance: none;
    background: transparent; border: 0; outline: 0;
    color: #f3f4f6; font-size: 12px; line-height: 1.4;
    padding: 2px 14px 2px 2px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path fill='%23ffffff' d='M0 2l4 4 4-4z'/></svg>");
    background-repeat: no-repeat; background-position: right 2px center;
    max-width: 130px;
}
.admin-topbar .admin-lang-switcher select:focus { color: #fff; }
.admin-topbar .admin-lang-switcher select option { color: #111827; background: #fff; }

.admin-wrap { display: flex; min-height: calc(100vh - 54px); }

/* 左侧菜单 */
.admin-side {
    width: 200px; flex-shrink: 0;
    background: #374151;
    padding: 12px 0;
    display: flex; flex-direction: column;
}
.admin-side a {
    color: #d1d5db; text-decoration: none;
    padding: 11px 18px; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}
.admin-side a:hover { background: #4b5563; color: #fff; }
.admin-side a.active {
    background: #4b5563; color: #fff; font-weight: 600;
    border-left-color: #fe2c55;
}
.admin-side a .ic { font-size: 16px; width: 20px; text-align: center; }
.admin-side a .lbl { flex: 1; }
.admin-submenu {
    margin: -4px 0 8px;
    padding: 3px 0 5px 30px;
    border-left: 1px solid #4b5563;
}
.admin-submenu a {
    display: block;
    color: #cbd5e1;
    padding: 7px 10px;
    font-size: 12px;
    border-left: 2px solid transparent;
}
.admin-submenu a:hover,
.admin-submenu a.active {
    color: #fff;
    background: #4b5563;
    border-left-color: #60a5fa;
}
.settings-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}
.settings-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #4b5563;
    background: #f3f4f6;
    text-decoration: none;
    font-size: 13px;
}
.settings-subnav a:hover,
.settings-subnav a.active {
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 600;
}

/* 右侧内容区 */
.admin-main {
    flex: 1; padding: 22px 24px; min-width: 0;
    max-width: 100%; box-sizing: border-box;
}
.admin-main .container { max-width: none; margin: 0; padding: 0; }
.admin-footer { text-align: center; color: #9ca3af; padding: 16px; font-size: 12px; background: #eef1f6; }

/* 侧边栏窄屏自适应 */
@media (max-width: 720px) {
    .admin-side { width: 60px; }
    .admin-side a .lbl { display: none; }
    .admin-side a { justify-content: center; padding: 12px 0; }
    .admin-main { padding: 16px; }
}

/* ============================================================
   会员端移动版（仅作用于 body.member，不影响后台桌面端）
   ============================================================ */
body.member { background: #f2f3f7; }
.member-topbar {
    position: sticky; top: 0; z-index: 20;
    /* 3 槽布局：左槽(客服)贴左、brand 真正居中、右槽(空)与左槽等宽保对称 */
    display: flex; align-items: center;
    padding: 13px 16px;
    background: linear-gradient(90deg, var(--member-primary-dark), var(--member-primary));
}
.member-topbar .mtb-side { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.member-topbar .mtb-left  { justify-content: flex-start; }
.member-topbar .mtb-right { justify-content: flex-end; }
.member-topbar .brand { flex: 0 0 auto; font-size: 18px; }
.member-footer { display: none; }
.member .container {
    max-width: 560px; margin: 0 auto; padding: 14px 14px 0;
}
.member--tab .container { padding-bottom: 86px; } /* 给底部 Tab 留白 */

/* 卡片：移动端更紧凑、圆角更大 */
.member .card { padding: 16px; border-radius: 14px; margin-bottom: 14px; }
.member .card h2 { font-size: 16px; margin-bottom: 12px; }

/* 表单：触控友好，输入框 16px 避免 iOS 聚焦缩放 */
.member input[type=text], .member input[type=password],
.member input[type=number], .member select, .member textarea {
    padding: 13px 14px; font-size: 16px;
}
.member .form-group { margin-bottom: 16px; }
.member .form-group label { font-size: 14px; margin-bottom: 7px; }

/* 按钮：移动端默认整行大按钮 */
.member .btn {
    display: block; width: 100%; padding: 14px; font-size: 16px;
    text-align: center; border-radius: 10px;
}
.member .btn-secondary { display: block; width: 100%; box-sizing: border-box; }
.member .row { flex-direction: column; gap: 10px; }

/* 统计卡片：两列网格 */
.member .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.member .stat { padding: 14px 10px; border-radius: 12px; }
.member .stat .num { font-size: 19px; }
.member .stat .lbl { font-size: 11px; }

/* 登录/注册卡片居中 */
.member .auth-wrap, .member .card.auth { max-width: 420px; margin: 8vh auto 0; }

/* 表格：窄屏横向滚动，表头固定底色 */
.member .table-wrap {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}
.member table { font-size: 12px; white-space: nowrap; min-width: 100%; }
.member th, .member td { padding: 9px 10px; }
.member th { background: #fe2c55; } /* 会员端表头用品牌红，区别于后台蓝 */
.member tr:nth-child(even) td { background: #fafbfe; }

/* 底部固定 Tab 栏（App 风格） */
.bottom-tab {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-tab a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: #6b7280; font-size: 11px; padding: 5px 2px;
}
.bottom-tab a .ic { font-size: 20px; line-height: 1; }
.bottom-tab a.active { color: #fe2c55; font-weight: 700; }
.bottom-tab a.active .ic { transform: scale(1.12); }
.member-global-tools {
    position: fixed; right: 12px; top: 8px; z-index: 40;
    display: flex; gap: 6px;
}
.member-global-tools a {
    color: #fff; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px; padding: 4px 9px; font-size: 11px; text-decoration: none;
}
.online-dot { font-size: 12px; white-space: nowrap; }
.online-dot:before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: #9ca3af; }
.online-dot.online { color: #059669; }
.online-dot.online:before { background: #10b981; }
.online-dot.offline { color: #6b7280; }

/* 我的：顶部用户头像卡 */
.me-profile {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #ff2d55, #fe2c55);
    color: #fff; padding: 18px 16px; border-radius: 14px;
    margin-bottom: 14px;
}
.me-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255,255,255,.22); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    border: 2px solid rgba(255,255,255,.45);
}
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 18px; font-weight: 700; }
.me-sub { font-size: 12px; opacity: .88; margin-top: 4px; }

/* 我的：余额大卡 */
.me-balance {
    background: #fff; border-radius: 14px; padding: 18px 16px;
    text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 14px;
}
.me-balance-lbl { font-size: 12px; color: #6b7280; }
.me-balance-num { font-size: 30px; font-weight: 800; color: #fe2c55; margin: 6px 0 12px; }
.me-balance-btn { width: 100%; }

/* 我的：三格统计 */
.me-stats {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px;
}
.me-stat {
    background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.me-stat .num { font-size: 15px; font-weight: 800; color: #fe2c55; }
.me-stat .lbl { font-size: 11px; color: #6b7280; margin-top: 3px; }

/* 我的：功能菜单列表（仿微信"我"的入口） */
.me-menu {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
}
.me-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; text-decoration: none; color: #1f2937;
    border-bottom: 1px solid #f1f2f6; font-size: 15px;
}
.me-item:last-child { border-bottom: none; }
.me-item:active { background: #f7f8fb; }
.me-item .me-ic { font-size: 20px; width: 24px; text-align: center; }
.me-item .me-lbl { flex: 1; }
.me-item .me-arr { color: #c0c4cc; font-size: 18px; }
.me-item.me-disabled { color: #9ca3af; }
.me-item.me-logout { color: #fe2c55; font-weight: 600; }
.me-item.me-lang-status .me-ic { color: var(--member-primary, #fe2c55); }

/* 修改4-b：会员端「界面语言」设置页 */
.me-lang-select {
  width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
  appearance: auto;
}
.me-lang-select:focus { outline: 2px solid var(--member-primary, #fe2c55); outline-offset: 1px; }

/* 我的：银行卡信息键值对 */
.kv {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #f1f2f6; font-size: 14px;
}
.kv:last-of-type { border-bottom: none; }
.kv span { color: #6b7280; }
.kv b { color: #1f2937; font-weight: 600; word-break: break-all; }

/* 桌面端（宽屏）也保持清爽：限制容器宽度，Tab 不变 */
@media (min-width: 600px) {
    .member .container { max-width: 560px; }
}

/* 后台派单：多行订单表 */
.dispatch-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.dispatch-tbl th, .dispatch-tbl td { padding: 6px 8px; border-bottom: 1px solid #eee; font-size: 13px; }
.dispatch-tbl input, .dispatch-tbl select { width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.row-del { background: #fee2e2; color: #b91c1c; border: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; }

/* 会员端：按阶段分组订单 */
.stage-block { margin-bottom: 16px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.stage-head { background: #fff1f3; color: #be123c; padding: 8px 12px; font-weight: 700; display: flex; justify-content: space-between; }
.stage-head .stage-prog { font-weight: 400; color: #9ca3af; font-size: 12px; }
.stage-locked { padding: 14px 12px; color: #9ca3af; font-size: 13px; background: #fafafa; }
.order-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: 1px solid #f1f1f1; }
.order-row .o-meta { font-size: 13px; }
.order-row .o-meta b { color: #111827; }
.order-row .o-act a { color: #fe2c55; font-weight: 600; }
.order-row.done { opacity: .6; }
.order-row.done .o-act { color: #16a34a; }

/* 会员列表三点菜单 */
.ops-cell { width: 200px; text-align: right; }
.member-actions-wrap { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }

/* 分页器 */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; font-size: 13px; }
.pager a.pg-link, .pager span.pg-dis, .pager span.pg-cur, .pager span.pg-ell {
  display: inline-flex; align-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #334155; text-decoration: none;
}
.pager a.pg-link:hover { border-color: #94a3b8; background: #f8fafc; }
.pager span.pg-cur { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 700; }
.pager span.pg-dis { color: #cbd5e1; cursor: not-allowed; }
.pager span.pg-ell { border: none; background: transparent; }
.pager .pg-info { margin-left: auto; color: #64748b; }
.pager .pg-size { height: 30px; border: 1px solid #e2e8f0; border-radius: 7px; padding: 0 6px; background: #fff; }

/* 列设置弹层 */
.col-settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 12px 0 16px; }
.col-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.col-set-all { font-size: 13px; align-self: center; cursor: pointer; }
.form-actions { display: flex; align-items: center; gap: 10px; }
.member-lucky-shortcut {
  display: inline-flex; align-items: center; gap: 3px;
  color: #dc2626; background: #fff1f2; border: 1px solid #fecdd3;
  border-radius: 6px; padding: 5px 7px; font-size: 12px;
  font-weight: 700; white-space: nowrap; text-decoration: none;
}
.member-lucky-shortcut:hover, .member-lucky-shortcut:focus {
  color: #b91c1c; background: #ffe4e6; border-color: #fb7185; outline: none;
}
.member-menu { position: relative; display: inline-block; }
.member-menu:focus-within, .member-menu:hover { z-index: 9999; }
.member-menu-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.4;
  color: #374151;
  font-weight: 700;
  letter-spacing: 1px;
}
.member-menu-btn:hover, .member-menu-btn:focus { background: #f3f4f6; border-color: #9ca3af; outline: none; }
.member-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 120px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  padding: 4px 0;
  margin: 0;
  list-style: none;
  z-index: 9999;
  display: none;
}
.member-menu:focus-within .member-menu-list,
.member-menu:hover .member-menu-list,
.member-menu.open .member-menu-list { display: block; }
/* 点击态提升层级，避免被表格/其他元素遮挡 */
.member-menu.open { z-index: 10001; }
/* 桥接「⋮」按钮与下拉菜单之间的 6px 间隙：鼠标下移时不丢 hover */
.member-menu-list::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.member-menu-list li a {
  display: block;
  padding: 8px 14px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.member-menu-list li a:hover { background: #fff1f3; color: #be123c; }
.member-menu-list li a.menu-lucky-order {
  color: #dc2626;
  background: #fff1f2;
  font-weight: 700;
  border-left: 3px solid #ef4444;
  padding-left: 11px;
}
.member-menu-list li a.menu-lucky-order:hover,
.member-menu-list li a.menu-lucky-order:focus {
  color: #b91c1c;
  background: #ffe4e6;
  outline: none;
}
.menu-lucky-dot { color: #ef4444; font-size: 10px; vertical-align: 1px; }

/* 会员行「开标签」红色按钮 */
.member-open-tab-btn {
  background: #dc2626; color: #fff; border: 1px solid #b91c1c;
  border-radius: 6px; padding: 5px 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.member-open-tab-btn:hover, .member-open-tab-btn:focus {
  background: #b91c1c; border-color: #991b1b; outline: none;
}

/* 会员行「派单」绿色按钮（紧贴「幸运」右边，一键打开批量派单弹层） */
.member-dispatch-shortcut {
  display: inline-flex; align-items: center; gap: 3px;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 6px; padding: 5px 7px; font-size: 12px;
  font-weight: 700; white-space: nowrap; cursor: pointer;
  font-family: inherit; line-height: 1.4;
}
.member-dispatch-shortcut:hover, .member-dispatch-shortcut:focus {
  color: #065f46; background: #d1fae5; border-color: #6ee7b7; outline: none;
}
.menu-dispatch-dot { color: #10b981; font-size: 10px; vertical-align: 1px; }

/* 会员行「上分 / 下分」单字快捷按钮（操作区常驻，菜单内同时保留上分/下分） */
.member-credit-short {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; padding: 0;
  font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.member-credit-up { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.member-credit-up:hover, .member-credit-up:focus { color: #065f46; background: #d1fae5; border-color: #6ee7b7; outline: none; }
.member-credit-down { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.member-credit-down:hover, .member-credit-down:focus { color: #92400e; background: #fef3c7; border-color: #fcd34d; outline: none; }

/* 会员专属标签页栏（顶部标签条，「会员列表」固定为第一个标签） */
.member-tabs-bar {
  display: flex; align-items: center; gap: 8px; margin: 0 0 0;
  padding: 0 10px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px 10px 0 0;
  position: sticky; top: 0; z-index: 5;   /* 跟随滚动：标签条始终可见 */
}
.member-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; padding: 8px 0; }
.member-tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #d1d5db; border-bottom: none;
  border-radius: 8px 8px 0 0; padding: 7px 8px 7px 12px; font-size: 13px;
  cursor: pointer; color: #374151; max-width: 220px;
  user-select: none;
}
.member-tab:hover { background: #f3f4f6; }
.member-tab.active { background: #fff; border-color: #ef4444; color: #b91c1c; font-weight: 700; box-shadow: 0 -2px 0 #ef4444 inset; }
.member-tab .mt-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-tab .mt-close {
  border: none; background: #f3f4f6; color: #6b7280; border-radius: 50%;
  width: 18px; height: 18px; line-height: 16px; font-size: 14px; cursor: pointer; padding: 0;
}
.member-tab .mt-close:hover { background: #fee2e2; color: #dc2626; }
.member-tabs-closeall {
  background: #dc2626; color: #fff; border: 1px solid #b91c1c; border-radius: 6px;
  padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.member-tabs-closeall:hover { background: #b91c1c; }

/* 会员标签面板：标签条下方所有面板容器；激活的展示，其他的隐藏 */
.member-panels { margin-bottom: 18px; }
.member-panel { display: none; }
.member-panel.active { display: block; }
/* 列表面板（uid=list）里的 card 跟 tabs 视觉上连接，去掉 card 的上圆角和上 border */
.member-panel[data-uid="list"] > .card {
  border-top-left-radius: 0; border-top-right-radius: 0;
  border-top: 0; margin-top: 0;
}
.member-panel-empty, .member-panel-loading { color: #888; padding: 18px; text-align: center; }
.mp-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mp-progress { color: #dc2626; font-weight: 700; font-size: 16px; }
.mp-meta { color: #6b7280; font-size: 13px; }
.mp-orders { width: 100%; border-collapse: collapse; }
.mp-orders th, .mp-orders td { border: 1px solid #e5e7eb; padding: 7px 10px; text-align: left; font-size: 13px; }
.mp-orders th { background: #f8fafc; color: #374151; }
.tag-lucky { color: #dc2626; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 5px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
/* 「幸运」按钮（操作列里，把普通单升级为幸运单） */
.mp-act { text-align: center; white-space: nowrap; }
.mp-lucky-btn {
  background: #2563eb; color: #fff; border: 1px solid #1d4ed8;
  border-radius: 5px; padding: 3px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.mp-lucky-btn:hover { background: #1d4ed8; }
/* 「设为幸运单」弹层 */
.mp-lucky-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; box-sizing: border-box;
}
.mp-lucky-modal .modal { background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.2); max-width: 460px; width: 100%; padding: 18px 20px; }
.mp-lucky-modal .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-lucky-modal .modal-head h3 { margin: 0; font-size: 16px; color: #111827; }
.mp-lucky-modal .modal-x { background: none; border: none; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; }
.mp-lucky-modal .modal-hint { color: #6b7280; font-size: 13px; line-height: 1.6; margin: 6px 0 12px; }
.mp-lucky-info {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; color: #374151; margin-bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
}
.mp-lucky-info b { color: #111827; }
.mp-lucky-preview {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; color: #9a3412; margin: 8px 0;
  min-height: 18px;
}
.tag-normal { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 5px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.st-done { color: #16a34a; font-weight: 700; }
.st-pending { color: #d97706; font-weight: 700; }
.st-exp { color: #9ca3af; }

/* 订单列表「幸运」红色按钮 */
.row-lucky-btn {
  background: #dc2626; color: #fff; border: 1px solid #b91c1c; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; margin-left: 4px;
}
.row-lucky-btn:hover, .row-lucky-btn:focus { background: #b91c1c; outline: none; }
.btn-lucky { background: #dc2626; color: #fff; border-color: #b91c1c; }
.btn-lucky:hover { background: #b91c1c; }

/* 修改4：订单详情/评论页三栏金额 + 弹窗三栏 */
.od-bal-box, .rc-balance-box {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.od-bal-row, .rc-bal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: #374151;
}
.od-bal-row b, .rc-bal-row b {
  font-variant-numeric: tabular-nums;
  color: #111827;
  font-weight: 600;
}
.od-bal-row.od-bal-short, .rc-bal-row.rc-bal-short {
  border-top: 1px dashed #fca5a5; padding-top: 6px; margin-top: 2px;
}
.od-bal-row.od-bal-short b, .rc-bal-row.rc-bal-short b { color: #dc2626; font-size: 15px; }

/* 修改4：会员首页上下级关系区块 */
.home-hierarchy { margin-top: 16px; }
.hierarchy-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px;
}
.hierarchy-lbl {
  flex: 0 0 90px; color: #6b7280; font-weight: 600;
}
.hierarchy-val { color: #111827; }
.hierarchy-children { border-top: 1px solid #e5e7eb; padding-top: 12px; }
.hierarchy-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hierarchy-table th, .hierarchy-table td {
  border: 1px solid #e5e7eb; padding: 6px 10px; font-size: 13px; text-align: left;
}
.hierarchy-table th { background: #f8fafc; color: #374151; }
.hierarchy-table .muted { color: #9ca3af; }

/* 修改4：商品管理 */
.prod-list { width: 100%; border-collapse: collapse; }
.prod-list th, .prod-list td {
  border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; font-size: 13px;
}
.prod-list th { background: #f8fafc; color: #374151; }
.prod-thumb { width: 60px; height: 60px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 6px; background: #f8fafc; }
.prod-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod-form .form-group { margin-bottom: 0; }
.prod-form .form-group:first-child { grid-column: 1 / -1; }
.prod-form .btn { grid-column: 1 / -1; }
@media (max-width: 720px) { .prod-form { grid-template-columns: 1fr; } }

/* 2026-08-29：商品库分页 + 批量操作 + 编辑表单样式 */
.prod-filter { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.prod-filter select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; min-width: 110px; }
.prod-filter input[type='text'] { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.prod-list .prod-name { word-break: break-word; }
.prod-list .prod-actions { white-space: nowrap; }
.prod-list .prod-actions .btn { margin-right: 4px; }
.btn-sm { padding: 4px 8px; font-size: 12px; }
.prod-bulk-bar { margin: 8px 0 4px; display: flex; gap: 8px; align-items: center; }
.prod-bulk-bar .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; padding: 8px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e5e7eb; }
.pagination-info { margin-right: auto; color: #475569; font-size: 13px; }
.page-link { display: inline-block; padding: 5px 10px; min-width: 32px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #1d4ed8; text-decoration: none; font-size: 13px; }
.page-link:hover { background: #eef2ff; border-color: #1d4ed8; }
.page-link.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; font-weight: 600; }
.page-link.disabled { color: #94a3b8; background: #f1f5f9; cursor: not-allowed; }
.page-ellipsis { color: #64748b; padding: 0 4px; }

.form-group-inline { display: flex; align-items: center; gap: 8px; }
.form-group-inline label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.form-actions .btn { margin: 0; }

/* 2026-08-29：Plan C 会员代理 — 代理标记 + 角色徽章 */
.agent-badge { display: inline-block; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; letter-spacing: 0.5px; }
.perm-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.perm-toggle input[type='checkbox'] { width: 16px; height: 16px; cursor: pointer; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.perm-grid .perm-toggle { background: #f5f6f8; border: 1px solid #e3e6ea; padding: 6px 10px; border-radius: 6px; }

/* 批量派单弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: flex-start;  /* 2026-08-29 改为左对齐：避免被右侧停靠的 DevTools 完全遮住 */
  z-index: 1000;
  padding: 48px 24px;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 20px 22px 24px;
  border-top: 4px solid #2563eb;  /* 2026-08-29 新增：顶部蓝色高亮条，即使被部分遮挡也能看到 */
  position: relative;
  transform: translateY(0);  /* 2026-08-29：基线位置，无动画时也在屏幕内（headless 浏览器不跑动画也能看见） */
  animation: modalSlideIn 0.22s ease-out;
}
@keyframes modalSlideIn {
  from { transform: translateY(-12px); }
  to   { transform: translateY(0); }
}
/* 2026-08-29 新增：左下角浮动 toast，提示用户弹层已打开，避免被右侧停靠 DevTools 遮住 */
.modal-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 10px;
  background: #2563eb;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  user-select: none;
  transform: translateY(0);  /* 2026-08-29：基线位置（headless 浏览器不跑动画也能看见） */
  animation: modalToastIn 0.25s ease-out;
}
.modal-toast.show { display: inline-flex; }
.modal-toast:hover { background: #1d4ed8; }
.modal-toast-ic { font-size: 16px; }
.modal-toast-act {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.modal-toast-x {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.modal-toast-x:hover { background: rgba(255, 255, 255, 0.32); }
@keyframes modalToastIn {
  from { transform: translateY(20px); }
  to   { transform: translateY(0); }
}
/* 2026-08-29 新增：弹层焦点闪烁（toast 点击触发） */
@keyframes modalFocusFlash {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7), 0 20px 50px rgba(0, 0, 0, 0.25); }
  60%  { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0), 0 20px 50px rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 20px 50px rgba(0, 0, 0, 0.25); }
}
.modal.flash { animation: modalFocusFlash 0.8s ease-out; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 12px;
}
.modal-head h3 { margin: 0; font-size: 17px; color: #111827; }
.modal-bal {
  display: inline-block;
  margin-left: 10px;
  background: #fff1f3;
  color: #be123c;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.modal-x {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
}
.modal-x:hover { color: #374151; }
.modal-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 0 0 12px;
}

/* ============================================================
   会员端：单订单顺序流程（预订页 / 详情 / 评论）
   ============================================================ */

/* ---- 预订页 hero（暗色，TikTok 风格） ---- */
.book-hero {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #1f1f23 0%, #2a2a30 100%);
  color: #f3f4f6;
  border-radius: 14px;
  padding: 16px 14px;
  margin: 12px 0 14px;
}
.book-hero-l { flex: 1; min-width: 0; }
.book-h2 { font-size: 22px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.book-h2 .book-ic { color: #fe2c55; font-size: 22px; }
.book-desc { font-size: 12px; line-height: 1.65; color: #d1d5db; margin: 0; }
.book-logo { width: 76px; height: 76px; flex-shrink: 0; align-self: center; }

/* ---- 统计 ---- */
.book-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.book-stat { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.book-stat-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.book-stat-h .book-ic { color: #fe2c55; font-size: 16px; }
.book-stat-h .book-q { margin-left: auto; color: #9ca3af; font-size: 12px; cursor: help; }
.book-stat-v { font-size: 20px; font-weight: 700; color: #111827; }

/* ---- CTA 按钮 ---- */
.book-cta-wrap { text-align: center; margin: 18px 0; }
.book-cta {
  display: inline-block;
  background: linear-gradient(90deg, #fe2c55 0%, #ff4d77 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(254,44,85,.35);
  min-width: 260px;
}
.book-cta--off { background: #d1d5db; box-shadow: none; color: #6b7280; cursor: not-allowed; }
.book-empty { font-size: 12px; color: #6b7280; margin-top: 12px; }

/* ---- 规则 ---- */
.book-rules { background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #4b5563; line-height: 1.7; }
.book-rules p { margin: 0 0 6px; }
.book-rules p:last-child { margin-bottom: 0; }

/* ---- 详情/评论页：顶部 ---- */
.od-top { display: flex; align-items: center; gap: 8px; padding: 8px 4px 12px; }
.od-back { color: #6b7280; text-decoration: none; font-size: 26px; line-height: 1; padding: 2px 10px; }
.od-title { font-size: 17px; font-weight: 600; margin: 0; flex: 1; text-align: center; padding-right: 36px; }

/* ---- 详情/评论页：卡片 ---- */
.od-card { background: #fff; border-radius: 14px; padding: 0 0 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.od-img { display: block; width: 240px; height: 240px; margin: 8px auto 14px; object-fit: contain; }
.od-name { font-size: 13px; color: #6b7280; line-height: 1.55; padding: 0 16px; margin: 0 0 14px; text-align: center; }
.od-rows { border-top: 1px solid #f3f4f6; }
.od-row { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.od-row span { color: #9ca3af; }
.od-row b { color: #111827; font-weight: 500; }
.od-row b.ok { color: #10b981; }
.od-submit {
  display: block; width: calc(100% - 32px); margin: 18px auto 4px;
  background: linear-gradient(90deg,#fe2c55,#ff4d77);
  color: #fff; text-align: center; font-size: 16px; font-weight: 700;
  padding: 13px 0; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(254,44,85,.3); text-decoration: none;
  font-family: inherit;
}

/* ---- 待完成订单提示 ---- */
.pending-order-panel { padding: 30px 20px 24px; text-align: center; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
.pending-order-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff1f3; color: #fe2c55; font-size: 30px; }
.pending-order-title { margin: 0; color: #111827; font-size: 19px; font-weight: 700; }
.pending-order-note { margin: 8px 0 0; color: #6b7280; font-size: 13px; }

/* ---- 评论页 ---- */
.rv-form { padding: 16px 16px 4px; }
.rv-stars { display: flex; justify-content: center; gap: 8px; font-size: 38px; color: #d1d5db; margin: 6px 0 10px; cursor: pointer; user-select: none; }
.rv-stars .rv-star.on { color: #fbbf24; }
.rv-comment { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.rv-quick { display: block; margin: 8px auto 0; background: #fff7ed; color: #f97316; border: 1px solid #fed7aa; padding: 8px 18px; border-radius: 999px; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ---- loading 蒙层 ---- */
.loading-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; align-items: center; justify-content: center; }
.loading-mask.show { display: flex; }
.loading-box { background: #1f1f23; color: #fff; padding: 24px 32px; border-radius: 12px; text-align: center; min-width: 160px; }
.spinner { width: 36px; height: 36px; border: 3px solid #fe2c55; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt { font-size: 14px; color: #f3f4f6; }

/* ---- 后台订单管理（搜索 + 行内编辑） ---- */
.order-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.order-search input[type=text] { flex: 1; min-width: 220px; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font-size: 14px; font-family: inherit; }
.order-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-list th, .order-list td { padding: 8px 10px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.order-list th { background: #f8fafc; color: #475569; font-weight: 600; }
.order-list tr:hover { background: #fafbff; }
.row-edit-btn { background: #2563eb; color: #fff; border: 0; padding: 4px 10px; border-radius: 5px; font-size: 12px; cursor: pointer; font-family: inherit; }
.row-edit-btn:hover { background: #1d4ed8; }
.order-select { width: 42px; text-align: center !important; }
.order-select input { width: 16px; height: 16px; cursor: pointer; }
.batch-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; }
.batch-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.batch-toolbar span { color: #6b7280; }
.batch-toolbar .btn { margin-left: auto; background: #2563eb; }
.batch-toolbar .btn:hover { background: #1d4ed8; }
.order-search select { min-width: 150px; width: auto; padding: 8px 10px; }
@media (max-width: 720px) {
  .batch-toolbar .btn { margin-left: 0; width: 100%; }
  .order-search select { min-width: 100%; width: 100%; }
}

/* ---- 余额不足充值弹窗 ---- */
.rc-modal-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1100; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.rc-modal-mask.show { display: flex; }
.rc-modal { background: #fff; width: 100%; max-width: 340px; border-radius: 16px; padding: 26px 22px 18px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: rcpop .22s ease; }
@keyframes rcpop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-modal-ic { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.rc-modal-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.rc-modal-sub { font-size: 13px; color: #6b7280; margin: 0 0 18px; }
.rc-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rc-amt { display: block; background: #fe2c55; color: #fff; text-decoration: none; padding: 14px 0; border-radius: 12px; font-size: 17px; font-weight: 700; }
.rc-amt:active { transform: scale(.97); }
.rc-other { display: inline-block; font-size: 13px; color: #2563eb; text-decoration: none; margin-bottom: 14px; }
.rc-close { width: 100%; background: #f3f4f6; color: #374151; border: 0; padding: 12px 0; border-radius: 12px; font-size: 14px; cursor: pointer; font-family: inherit; }
.rc-close:hover { background: #e5e7eb; }
/* 余额不足弹窗：联系客服 / 去充值 双按钮行动区 */
.rc-actions { display: flex; gap: 12px; margin-bottom: 14px; }
.rc-act { flex: 1; box-sizing: border-box; display: block; text-decoration: none; padding: 13px 0; border-radius: 12px; font-size: 15px; font-weight: 700; text-align: center; }
.rc-act:active { transform: scale(.97); }
.rc-act.cs { background: #fff1f3; color: #fe2c55; border: 1px solid #ffd0d8; }
.rc-act.recharge { background: #fe2c55; color: #fff; }

/* ---- 会员充值申请页 ---- */
.rc-quick-row { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.rc-quick { flex: 1; min-width: 60px; text-align: center; background: #fff1f3; color: #fe2c55; border: 1px solid #ffd0d8; border-radius: 8px; padding: 9px 0; font-size: 13px; font-weight: 600; text-decoration: none; }
.rc-quick:hover { background: #ffe1e6; }
.rc-preset { font-size: 13px; color: #fe2c55; margin: 6px 0 0; }
.rc-note { font-size: 12px; color: #6b7280; margin-top: 12px; line-height: 1.5; }

/* ---- 幸运订单支付摘要 ---- */
.rc-summary { margin: 12px 0 10px; padding: 10px 12px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; text-align: left; }
.rc-summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #6b7280; line-height: 1.9; }
.rc-summary b { color: #374151; font-weight: 600; }
.rc-summary-total { border-top: 1px solid #fed7aa; margin-top: 4px; padding-top: 4px; color: #111827 !important; }
.rc-summary-total b { color: #fe2c55; font-size: 16px; }
.rc-modal-sub strong { color: #fe2c55; font-size: 16px; }
.rc-pay-note { font-size: 12px; color: #6b7280; margin: 0 0 10px; }
.od-row--total { border-top: 1px solid #f1f5f9; padding-top: 8px; margin-top: 4px; }
.od-row--total b { color: #fe2c55; }

/* 会员等级、首页内容与银行卡绑定 */
.vip-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #fff1f3; color: #be123c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vip-badge--light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.home-vip { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; color: #6b7280; font-size: 13px; }
.home-welcome h2, .home-withdraw h2, .home-rules h2, .home-certificates h2 { margin-bottom: 8px; }
.home-welcome p, .home-rules p, .home-certificates p { color: #4b5563; line-height: 1.7; font-size: 13px; white-space: pre-wrap; }
.home-partner-images { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }
.home-partner-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.home-scroll { max-height: 190px; overflow: hidden; position: relative; }
.home-scroll ul { list-style: none; padding: 0; margin: 0; animation: homeScroll 18s linear infinite; }
.home-scroll li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f1f2f6; color: #4b5563; font-size: 13px; }
.home-scroll li small { color: #9ca3af; white-space: nowrap; }
.home-data-note { color: #9ca3af; font-size: 11px; margin: 10px 0 0; }
@keyframes homeScroll { from { transform: translateY(0); } to { transform: translateY(-45%); } }
.bank-bind-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.bank-bound-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; margin-bottom: 8px; }
.menu-action { display: block; width: 100%; border: 0; background: transparent; color: #374151; text-align: left; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.menu-action:hover { background: #fff1f3; color: #be123c; }

/* 2026-08-30 会员删除：批量勾选列 + 批量操作条 + 危险菜单项 */
.member-check-cell { width: 34px; text-align: center; }
.member-check-cell input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; }
.member-bulk-bar { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.member-bulk-bar .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.member-bulk-hint { color: #6b7280; font-size: 12.5px; line-height: 1.5; }
.menu-action-danger { color: #b91c1c; font-weight: 600; border-top: 1px solid #f1f5f9; }
.menu-action-danger:hover { background: #fef2f2; color: #991b1b; }

.modal-small { max-width: 380px; }
.modal-small .btn { margin-right: 8px; }
/* 会员编辑 / 派单 大弹层 */
.modal-large { max-width: 760px; }
.modal-large .card { box-shadow: none; border: none; margin: 0; padding: 0; }
.modal-large .card h2 { margin-top: 0; }

/* 最新会员端整改：左上角客服图标、任务进度、上下级与余额说明 */
.member-global-tools {
    left: 12px; right: auto; top: 8px;
    align-items: center;
}
.member-global-tools a.member-logout-link {
    position: fixed; right: 12px; top: 8px;
    padding: 4px 9px; font-size: 11px;
}
.member-global-tools .member-cs-disabled { opacity:.65; cursor:not-allowed; }
/* 客服入口（me 页 + login/frozen 页）现在统一渲染为 <a target="_blank"> 链接，不再有 button 状态。 */
.me-item.me-cs-status,
.me-item.me-cs-status:hover,
.me-item.me-cs-status:focus {
    text-decoration: none; color: inherit;
}
.me-item.me-cs-status:hover,
.me-item.me-cs-status:focus { background: var(--member-primary-soft, #f3f4f6); outline: none; }
.task-progress-card {
    background: #fff; border-radius: 14px; padding: 16px; margin: 10px 0 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.task-progress-card > div:first-child { display:flex; align-items:center; justify-content:space-between; }
.task-progress-label { color:#6b7280; font-size:13px; }
.task-progress-card b { color:#fe2c55; font-size:26px; }
.task-progress-track { height:8px; background:#f1f2f6; border-radius:99px; overflow:hidden; margin:10px 0 6px; }
.task-progress-track i { display:block; height:100%; background:linear-gradient(90deg,#fe2c55,#ff7a9a); border-radius:99px; }
.task-progress-card small { color:#9ca3af; font-size:12px; }
.hierarchy-card h2 { margin-bottom: 4px; }
.hierarchy-row { display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #f1f2f6; font-size:13px; }
.hierarchy-row:last-child { border-bottom:0; }
.hierarchy-row > span { color:#6b7280; flex-shrink:0; }
.hierarchy-row b { text-align:right; word-break:break-all; }
.hierarchy-list { margin:0; padding-left:18px; text-align:right; list-style:none; }
.hierarchy-list li { margin-bottom:4px; }
.muted, .phone-preview-hint, .me-balance-note { color:#9ca3af; font-size:12px; }
.phone-preview-hint { margin:-8px 0 14px; }
.me-balance-note { margin:0; }
.reject-form { margin-top:8px; min-width:170px; }
.reject-form textarea { width:100%; font-size:12px; padding:6px 8px; margin-bottom:5px; }
.reject-form .btn { padding:6px 10px; font-size:12px; }

/* 充值拒绝原因展示（管理端/会员端共用） */
.rc-reject-reason { color: #b91c1c; font-size: 12px; margin-top: 4px; }
.admin .rc-reject-reason { font-size: 13px; }

/* 钱包 */
.wallet-head { display:flex; gap:12px; margin:14px 0; }
.wallet-head > div { flex:1; background:linear-gradient(135deg,#fe2c55,#ff5c7c); color:#fff; border-radius:14px; padding:16px; }
.wallet-bal-lbl, .wallet-commission .wallet-bal-lbl { color:rgba(255,255,255,.85); font-size:12px; }
.wallet-bal-num { font-size:26px; font-weight:700; margin-top:4px; }
.wallet-commission-num { font-size:22px; font-weight:700; margin-top:4px; }
.wallet-actions { display:flex; flex-direction:column; gap:12px; margin-bottom:14px; }
.wallet-form { background:#fff; border-radius:14px; padding:14px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.wallet-form .btn { margin-top:4px; }
.chg-tag { display:inline-block; padding:2px 8px; border-radius:8px; font-size:12px; background:#f1f5f9; color:#475569; }
.chg-balance { background:#e0f2fe; color:#0369a1; }
.chg-recharge { background:#dcfce7; color:#15803d; }
.chg-withdraw { background:#fee2e2; color:#b91c1c; }
.chg-commission { background:#fef9c3; color:#a16207; }
.chg-in { color:#15803d; font-weight:600; }
.chg-out { color:#b91c1c; font-weight:600; }

/* 冻结提示 */
.frozen-card { text-align:center; padding:30px 18px; }
.frozen-ic { font-size:46px; }
.frozen-card h2 { color:#b91c1c; }
.frozen-card p { color:#6b7280; margin:10px 0; }

/* 代理权限 */
.perm-toggle { display:inline-flex; align-items:center; gap:4px; font-size:13px; }
.perm-toggle input { vertical-align:middle; }

/* 登录/注册页语言切换器：放在底部操作区，和联系客服入口并列 */
.login-bottom-tools {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; min-height: 34px;
}
.login-bottom-tools .login-cs-link { margin: 0; flex: 1; text-align: center; }
.login-bottom-tools .login-lang {
  position: static; display: inline-flex; flex: 0 0 auto;
}
.login-bottom-tools .login-lang form {
  display: inline-flex; align-items: center; gap: 4px; margin: 0;
  padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 999px;
  background: #f8fafc; font-size: 12px;
}
.login-bottom-tools .login-lang .ls-icon { font-size: 12px; color: #6b7280; }
.login-bottom-tools .login-lang select {
  max-width: 112px; padding: 1px 13px 1px 1px; border: 0; outline: 0;
  background: transparent; color: #374151; font-size: 12px; cursor: pointer;
}
.login-bottom-tools--register { justify-content: flex-end; }
/* 兼容旧版页面中仍使用的右上角语言切换器 */
.card-with-ls { position: relative; }
.card-with-ls > h2 { padding-right: 130px; }
.card-with-ls .lang-switcher-top {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
}
.card-with-ls .lang-switcher-top form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
}
.card-with-ls .lang-switcher-top .ls-icon {
  font-size: 12px;
  color: #6b7280;
  cursor: default;
}
.card-with-ls .lang-switcher-top select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 1px 14px 1px 2px;
  font-size: 12px;
  color: #374151;
  max-width: 92px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path fill='%239ca3af' d='M0 2l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.card-with-ls .lang-switcher-top select:focus { color: #fe2c55; }

/* ============================================================
   TikTok-style member refinements（层叠在 base member CSS 之上）
   - 仅作用于 body.member；后台 / admin / landing 完全不受影响
   - 全部取用 var(--member-primary) 等主题变量，5 套主题照样兼容
   ============================================================ */

/* 卡片：扁平 + 1px 细发丝边 + 16 圆角（替代原来的 0 2px 10px 软阴影） */
body.member .card,
body.member .stat,
body.member .me-balance,
body.member .me-stat,
body.member .me-menu,
body.member .wallet-form,
body.member .book-stat,
body.member .book-rules,
body.member .od-card,
body.member .pending-order-panel {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
}
body.member.member-theme-black .card,
body.member.member-theme-black .stat,
body.member.member-theme-black .me-balance,
body.member.member-theme-black .me-stat,
body.member.member-theme-black .me-menu,
body.member.member-theme-black .wallet-form,
body.member.member-theme-black .book-stat,
body.member.member-theme-black .book-rules,
body.member.member-theme-black .od-card,
body.member.member-theme-black .pending-order-panel {
    border-color: var(--member-border);
}

/* 主按钮：胶囊 + 主色渐变 + 按压反馈 */
body.member .btn {
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    letter-spacing: .3px;
    background-color: transparent;
    background-image: linear-gradient(90deg, var(--member-primary-dark), var(--member-primary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
body.member .btn:hover {
    background-image: linear-gradient(90deg, var(--member-primary), var(--member-primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
body.member .btn:active { transform: scale(.97); }
body.member .btn-secondary {
    background: #f1f2f6;
    background-image: none;
    color: #374151;
    box-shadow: none;
    border: 1px solid transparent;
}
body.member.member-theme-black .btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: var(--member-text);
}

/* CTA / 提交按钮：原有胶囊样式强化 */
body.member .book-cta,
body.member .od-submit,
body.member .rc-amt {
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
body.member .book-cta:hover,
body.member .od-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
body.member .book-cta:active,
body.member .od-submit:active,
body.member .rc-amt:active { transform: scale(.97); }

/* 关键数字：更大更粗 + 微调字距 */
body.member .me-balance-num { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
body.member .wallet-bal-num  { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
body.member .wallet-commission-num { font-size: 24px; font-weight: 800; }
body.member .stat .num      { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--member-primary); }
body.member .me-stat .num   { font-size: 18px; font-weight: 800; color: var(--member-primary); }

/* 顶部条：略高、字重加重、加底部投影 */
body.member .member-topbar {
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}
body.member .member-topbar .brand {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .6px;
}

/* 底部 Tab：玻璃感 + 激活底部短色条 */
body.member .bottom-tab {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding-top: 8px;
}
body.member.member-theme-black .bottom-tab {
    background: rgba(24, 27, 33, .92);
    border-top-color: var(--member-border);
}
body.member .bottom-tab a { position: relative; transition: color .2s ease; }
body.member .bottom-tab a.active { color: var(--member-primary); }
body.member .bottom-tab a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px; height: 3px;
    border-radius: 3px;
    background: var(--member-primary);
}
body.member .bottom-tab a.active .ic { transform: scale(1.08); }

/* 输入框：通透底色、聚焦时变白 + 主题色 3px 光晕 */
body.member input[type=text],
body.member input[type=password],
body.member input[type=number],
body.member select,
body.member textarea {
    border-radius: 12px;
    background: rgba(0, 0, 0, .025);
    border-color: transparent;
    padding: 14px 14px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.member.member-theme-black input[type=text],
body.member.member-theme-black input[type=password],
body.member.member-theme-black input[type=number],
body.member.member-theme-black select,
body.member.member-theme-black textarea {
    background: rgba(255, 255, 255, .05);
}
body.member input:focus,
body.member select:focus,
body.member textarea:focus {
    background: #fff;
    border-color: var(--member-primary);
    box-shadow: 0 0 0 3px rgba(254, 44, 85, .12);
}
body.member.member-theme-black input:focus,
body.member.member-theme-black select:focus,
body.member.member-theme-black textarea:focus {
    background: var(--member-surface);
    border-color: var(--member-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

/* Modal / Loading 蒙层：背景模糊 */
body.member .modal-mask,
body.member .rc-modal-mask,
body.member .loading-mask {
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 用户头像卡：稍大 + 投影 */
body.member .me-profile {
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}
body.member .me-avatar { width: 60px; height: 60px; font-size: 26px; }

/* 我的：余额大卡再舒展些 */
body.member .me-balance { padding: 22px 18px; }
/* 我的：钱包卡投影 */
body.member .wallet-head > div { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
/* 我的：菜单项按下态更明显 */
body.member .me-item {
    padding: 16px;
    transition: background .15s ease;
}
body.member .me-item:active { background: rgba(0, 0, 0, .04); }
body.member.member-theme-black .me-item:active { background: rgba(255, 255, 255, .05); }

/* 任务进度条：稍粗 + 渐变 + 发光 */
body.member .task-progress-track {
    height: 10px;
    background: rgba(0, 0, 0, .06);
}
body.member.member-theme-black .task-progress-track { background: rgba(255, 255, 255, .06); }
body.member .task-progress-track i {
    background-color: transparent;
    background-image: linear-gradient(90deg, var(--member-primary-dark), var(--member-primary));
    box-shadow: 0 0 8px rgba(254, 44, 85, .30);
}

/* Hero：稍圆 + 投影 */
body.member .book-hero {
    padding: 18px 16px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
body.member .book-h2 { font-size: 24px; }

/* 订单详情卡 / 行 */
body.member .od-card { padding-bottom: 22px; }
body.member .od-row { padding: 12px 16px; }

/* 充值弹窗 */
body.member .rc-modal { border-radius: 20px; padding: 28px 22px 20px; }
body.member .rc-amt  { border-radius: 14px; }

/* VIP 徽章 */
body.member .vip-badge { padding: 4px 10px; font-weight: 800; }

/* 底 Tab 给容器多留点空间 */
body.member--tab .container { padding-bottom: 92px; }

/* ============================================================
   登录 / 注册页：商务风三段式
   - 暗色 Hero（带主题色光晕）→ 表单卡（顶部主题色描边）→ 信任行
   - 仅作用于登录与注册页（依靠 .login-shell 容器）
   ============================================================ */
.login-shell { max-width: 480px; margin: 0 auto; }

/* 顶部深色商务 Hero：品牌字 + tagline + 两团主题色光晕 */
.login-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #15192b 0%, #232842 60%, #2a2f57 100%);
    border-radius: 18px;
    padding: 32px 24px 28px;
    margin: 12px 0 22px;
    box-shadow: 0 12px 32px rgba(20, 25, 50, .25);
}
.login-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}
.login-hero-glow--a {
    top: -50%; right: -25%;
    width: 220px; height: 220px;
    background: var(--member-primary);
    opacity: .22;
}
.login-hero-glow--b {
    bottom: -55%; left: -20%;
    width: 240px; height: 240px;
    background: #2563eb;
    opacity: .20;
}
.login-hero-mark {
    position: relative;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.login-hero-mark::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-right: 10px;
    vertical-align: 2px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--member-primary), var(--member-primary-dark));
    box-shadow: 0 4px 12px rgba(254, 44, 85, .45);
}
.login-hero-tag {
    position: relative;
    margin-top: 8px;
    font-size: 12.5px;
    letter-spacing: 2.4px;
    opacity: .82;
    text-transform: uppercase;
    font-weight: 600;
}

/* 表单卡：顶部 4px 主题色描边 + 大气 padding + 标题居中 */
.login-card {
    border-top: 4px solid var(--member-primary);
    padding: 26px 24px 22px;
}
.login-card-head {
    text-align: center;
    margin: 0 0 20px;
}
.login-card-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
}
.login-card-sub {
    margin: 0;
    color: var(--member-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* 信任行：3 个属性 1 行显示，自带分隔点 */
.login-trust-line {
    margin: 22px 0 4px;
    text-align: center;
    font-size: 12.5px;
    color: var(--member-muted);
    letter-spacing: .2px;
    line-height: 1.6;
}

/* 暗色主题：把 hero 里 brand-mark 的文字阴影、card 描边同步改 */
body.member.member-theme-black .login-card {
    border-top: 4px solid var(--member-primary);
}
body.member.member-theme-black .login-trust-line { color: var(--member-muted); }

/* 窄屏：Hero 内边距压缩，trust 行允许换行 */
@media (max-width: 480px) {
    .login-hero { padding: 26px 18px 22px; border-radius: 16px; }
    .login-hero-mark { font-size: 24px; letter-spacing: 1.6px; }
    .login-hero-tag { font-size: 11.5px; letter-spacing: 2px; }
    .login-card { padding: 22px 18px 18px; }
}

/* ============================================================
   会员端可切换色彩风格（由后台系统设置控制）
   ============================================================ */
body.member {
  --member-primary: #2563eb;
  --member-primary-dark: #1d4ed8;
  --member-primary-soft: #eff6ff;
  --member-primary-border: #bfdbfe;
  --member-bg: #f2f3f7;
  --member-surface: #fff;
  --member-text: #1f2937;
  --member-muted: #6b7280;
  --member-border: #f1f2f6;
  --font-num: 'Roboto', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--member-bg);
  color: var(--member-text);
}
body.member.member-theme-blue {
  --member-primary: #2563eb;
  --member-primary-dark: #1d4ed8;
  --member-primary-soft: #eff6ff;
  --member-primary-border: #bfdbfe;
}
body.member.member-theme-black {
  --member-primary: #111827;
  --member-primary-dark: #030712;
  --member-primary-soft: #272b33;
  --member-primary-border: #4b5563;
  --member-bg: #0f1115;
  --member-surface: #181b21;
  --member-text: #f3f4f6;
  --member-muted: #a1a1aa;
  --member-border: #2b3039;
}
body.member.member-theme-yellow {
  --member-primary: #ca8a04;
  --member-primary-dark: #a16207;
  --member-primary-soft: #fefce8;
  --member-primary-border: #fde68a;
}
body.member.member-theme-cyan {
  --member-primary: #0891b2;
  --member-primary-dark: #0e7490;
  --member-primary-soft: #ecfeff;
  --member-primary-border: #a5f3fc;
}
body.member.member-theme-green {
  --member-primary: #16a34a;
  --member-primary-dark: #15803d;
  --member-primary-soft: #f0fdf4;
  --member-primary-border: #bbf7d0;
}
body.member .member-topbar {
  background: linear-gradient(90deg, var(--member-primary-dark), var(--member-primary));
}
body.member .card,
body.member .stat,
body.member .me-balance,
body.member .me-stat,
body.member .me-menu,
body.member .wallet-form,
body.member .book-stat,
body.member .book-rules,
body.member .od-card,
body.member .bottom-tab {
  background: var(--member-surface);
  color: var(--member-text);
}
body.member .card h2,
body.member .me-item,
body.member .kv b,
body.member .book-stat-v,
body.member .od-row b,
body.member .pending-order-title,
body.member .rc-modal-title {
  color: var(--member-text);
}
body.member .form-group label,
body.member .me-balance-lbl,
body.member .me-stat .lbl,
body.member .book-stat-h,
body.member .book-rules,
body.member .od-row span,
body.member .pending-order-note {
  color: var(--member-muted);
}
body.member input[type=text],
body.member input[type=password],
body.member input[type=number],
body.member select,
body.member textarea {
  background: var(--member-surface);
  color: var(--member-text);
  border-color: var(--member-border);
}
body.member input:focus,
body.member select:focus,
body.member textarea:focus {
  border-color: var(--member-primary);
}
body.member .btn,
body.member .rc-amt {
  background: var(--member-primary);
}
body.member .btn:hover,
body.member .rc-amt:hover {
  background: var(--member-primary-dark);
}
body.member .btn-secondary { background: #6b7280; }
body.member .stat .num,
body.member .me-balance-num,
body.member .me-stat .num,
body.member .task-progress-card b,
body.member .order-row .o-act a,
body.member .rc-preset,
body.member .rc-modal-sub strong,
body.member .rc-summary-total b,
body.member .od-row--total b {
  color: var(--member-primary);
}
body.member .member-global-tools a.member-logout-link {
  background: rgba(0,0,0,.18);
}
.member-global-tools .member-header-lang {
  position: fixed; right: 78px; top: 8px; z-index: 41;
  display: inline-flex; align-items: center;
}
.member-global-tools .member-header-lang form {
  display: inline-flex; align-items: center; gap: 3px; margin: 0;
  padding: 3px 7px; border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px; background: rgba(0,0,0,.18);
}
.member-global-tools .member-header-lang .ls-icon {
  font-size: 12px; line-height: 1; cursor: default;
}
.member-global-tools .member-header-lang select {
  width: 78px; padding: 1px 11px 1px 1px; border: 0; outline: 0;
  color: #fff; background: transparent; font-size: 11px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path fill='%23ffffff' d='M0 2l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 1px center;
}
.member-global-tools .member-header-lang option { color: #111827; background: #fff; }

/* 客服入口：放在 topbar 头部左侧（与 brand 并列） */
.member-topbar { gap: 10px; }
/* 客服入口：与右上角「退」按钮（.member-global-tools a）完全一致的款式/高度/大小
   —— 深色半透明胶囊、白边、白字、11px、padding 4px 9px、圆角 999px。 */
.member-topbar .member-cs-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    color: #fff; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px; padding: 4px 9px;
    font-size: 11px; line-height: 1; font-family: inherit; font-weight: 400;
    text-decoration: none;
    cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.member-topbar .member-cs-trigger .cs-ic { font-size: 11px; line-height: 1; }
.member-topbar .member-cs-trigger:hover { background: rgba(0,0,0,.30); border-color: rgba(255,255,255,.6); }
.member-topbar .member-cs-trigger:active { transform: scale(.97); }
.member-topbar .member-cs-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 客服系统已切换为「链接模式」：不再注入 VChat tracking.js，不再需要隐藏 #vnp_chat / #vnp_eyeChat / #vnp_check。
   会员端点击 topbar 客服入口直接跳转到后台配置的 URL（新窗口打开）。 */

body.member .bottom-tab a.active { color: var(--member-primary); }
body.member .member th { background: var(--member-primary); }
body.member .me-profile,
body.member .wallet-head > div {
  background: linear-gradient(135deg, var(--member-primary-dark), var(--member-primary));
}
body.member .me-balance .me-balance-num { color: var(--member-primary); }
body.member .task-progress-track i {
  background: linear-gradient(90deg, var(--member-primary), var(--member-primary-dark));
}
body.member .book-stat-h .book-ic,
body.member .book-h2 .book-ic { color: var(--member-primary); }
body.member .book-cta,
body.member .od-submit {
  background: linear-gradient(90deg, var(--member-primary-dark), var(--member-primary));
  box-shadow: 0 4px 14px rgba(0,0,0,.20);
}
body.member .pending-order-icon,
body.member .vip-badge,
body.member .rc-quick {
  background: var(--member-primary-soft);
  color: var(--member-primary);
  border-color: var(--member-primary-border);
}
body.member .stage-head {
  background: var(--member-primary-soft);
  color: var(--member-primary-dark);
}
body.member .me-item.me-logout { color: var(--member-primary); }
body.member .me-item,
body.member .kv,
body.member .od-row,
body.member .home-scroll li {
  border-color: var(--member-border);
}
body.member .rc-summary {
  background: var(--member-primary-soft);
  border-color: var(--member-primary-border);
}
body.member .rc-summary-total { border-color: var(--member-primary-border); }

/* 黑色质感：同时调整主要内容面的对比度，避免深色主题出现黑底黑字。 */
body.member.member-theme-black .topbar,
body.member.member-theme-black .member-topbar { color: #fff; }
body.member.member-theme-black .card,
body.member.member-theme-black .book-stat,
body.member.member-theme-black .book-rules,
body.member.member-theme-black .od-card,
body.member.member-theme-black .pending-order-panel,
body.member.member-theme-black .me-menu,
body.member.member-theme-black .wallet-form {
  border: 1px solid var(--member-border);
}
body.member.member-theme-black tr:nth-child(even) td,
body.member.member-theme-black table,
body.member.member-theme-black th,
body.member.member-theme-black td {
  background-color: var(--member-surface);
  color: var(--member-text);
}
body.member.member-theme-black .member th { background: var(--member-primary); }
body.member.member-theme-black .book-hero { background: linear-gradient(135deg, #050608 0%, #20242c 100%); }
body.member.member-theme-black .rc-modal,
body.member.member-theme-black .rc-close { background: var(--member-surface); color: var(--member-text); }
body.member.member-theme-black .rc-close { border: 1px solid var(--member-border); }
body.member.member-theme-black .me-item:active { background: #22262e; }

/* ---------------- Landing Page ---------------- */
body.landing { background: #f8fafc; }
.landing-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-radius: 14px;
  padding: 36px 22px 28px;
  margin: 16px 0 20px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(30,58,138,.18);
}
.landing-brand { font-size: 14px; letter-spacing: .25em; opacity: .85; }
.landing-h1 { font-size: 22px; font-weight: 700; margin: 8px 0 6px; }
.landing-sub { font-size: 14px; line-height: 1.6; opacity: .95; max-width: 560px; margin: 0 auto 18px; }
.landing-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.landing-btn-primary { background: #fff !important; color: #1e3a8a !important; font-weight: 600; }
.landing-btn-ghost { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important; }
.landing-tip { font-size: 12px; opacity: .8; margin: 0; }
.landing-section {
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px;
  margin: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.landing-h2 { font-size: 16px; font-weight: 600; color: #0f172a; margin: 0 0 10px; }
.landing-rules { color: #334155; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.landing-muted { color: #64748b; font-size: 14px; line-height: 1.7; margin: 0; }
.landing-footer-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.landing-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
  flex-wrap: wrap;
}
.landing-meta-row a { color: #64748b; text-decoration: none; }
.landing-meta-row a:hover { color: #2563eb; text-decoration: underline; }

/* ===== 语言管理：前台 / 后台隔离（admin） ===== */
.lang-manage > .modal-hint { margin-top: -4px; }

.lang-ctx-switch {
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin: 4px 0 16px;
}
.lang-ctx-switch a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.lang-ctx-switch a:hover { color: #0f172a; }
.lang-ctx-switch a.active {
  background: #fff;
  color: #0f172a;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15,23,42,.10);
}

.lang-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lang-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-stat .ls-label { font-size: 12px; color: #64748b; }
.lang-stat .ls-value { font-size: 15px; color: #0f172a; font-weight: 500; }
.lang-stat .ls-value em { font-style: normal; font-size: 12px; color: #94a3b8; font-weight: 400; }
.ls-tag {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
}
.ls-tag-on { background: #dbeafe; color: #1d4ed8; }

.lang-force-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.lang-force-form .lf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 10px;
  cursor: pointer;
}
.lang-force-form .lf-check input { width: 16px; height: 16px; margin: 0; }
.lang-force-form .modal-hint { margin: 10px 0 0; }

table.lang-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lang-table th {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
table.lang-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
table.lang-table tbody tr:hover { background: #f8fafc; }
table.lang-table tr.row-default { background: #eff6ff; }
table.lang-table tr.row-default:hover { background: #dbeafe; }
table.lang-table .lc-lang b { color: #0f172a; font-weight: 500; }
table.lang-table .lc-lang em {
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  margin-left: 4px;
}
table.lang-table .lc-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
table.lang-table .lc-actions .btn { padding: 5px 10px; font-size: 12px; }

.lang-sort-btns { display: inline-flex; gap: 4px; font-size: 14px; line-height: 1; }
.lang-sort-btns a {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  background: #fff;
}
.lang-sort-btns a:hover { border-color: #94a3b8; color: #0f172a; background: #f8fafc; }
.lang-sort-btns .ls-off {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 6px;
  color: #cbd5e1;
  border: 1px solid #f1f5f9;
}

.lang-add-card { margin-top: 18px; margin-bottom: 0; background: #f8fafc; }
.lang-add-card .modal-hint { margin-bottom: 0; }

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* ============================================================
   后台「商务大气」主题增强（Request Q）
   - 仅作用于 body.admin；会员端 / 落地页 / 登录页不受影响
   - 设计语言：深蓝壳（ink）+ 靛蓝主色（accent）+ 挺括白卡 + 发丝边
   ============================================================ */
body.admin {
  --admin-ink: #0f172a;
  --admin-ink-2: #1e293b;
  --admin-line: #e8edf3;
  --admin-accent: #2563eb;
  --admin-accent-d: #1d4ed8;
  --admin-muted: #64748b;
}

/* —— 顶栏：深蓝商务渐变 + 投影 + 品牌方块 —— */
body.admin .admin-topbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 2px 14px rgba(15,23,42,.22);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 24px;
  height: 58px;
  box-sizing: border-box;
}
body.admin .admin-topbar .brand { position: relative; }
body.admin .admin-topbar .brand::before {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 9px;
  vertical-align: -1px; border-radius: 4px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 2px 8px rgba(37,99,235,.5);
}
body.admin .admin-topbar .who { color: #cbd5e1; }

/* —— 侧边栏：深蓝渐变 + 精致的激活态 —— */
body.admin .admin-side {
  background: linear-gradient(180deg, #0f172a 0%, #141b2e 100%);
  padding: 14px 0;
  border-right: 1px solid rgba(0,0,0,.25);
}
body.admin .admin-side a {
  color: #cbd5e1;
  padding: 11px 18px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  margin: 2px 10px 2px 0;
  transition: background .15s, color .15s, border-color .15s;
}
body.admin .admin-side a:hover { background: #1e293b; color: #fff; }
body.admin .admin-side a.active {
  background: #1e293b;
  color: #fff;
  font-weight: 600;
  border-left-color: #3b82f6;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.15);
}
body.admin .admin-side a .ic {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 7px; font-size: 14px;
}
body.admin .admin-side a.active .ic { background: rgba(59,130,246,.20); }
body.admin .admin-submenu { border-left: 1px solid #334155; margin: -2px 0 8px; padding-left: 28px; }
body.admin .admin-submenu a { border-left-color: transparent; margin: 1px 10px 1px 0; }
body.admin .admin-submenu a:hover,
body.admin .admin-submenu a.active { background: #1e293b; color: #fff; border-left-color: #60a5fa; }

/* —— 内容区底色更干净 —— */
body.admin { background: #f1f5f9; }
body.admin .admin-main { padding: 26px 28px; }

/* —— 卡片标题带左侧强调条 —— */
body.admin .card h2 {
  position: relative;
  padding-left: 13px;
  margin: 0 0 16px;
  font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -.2px;
  border-left: 4px solid var(--admin-accent);
}
body.admin .card h3 { font-size: 15px; color: #1e293b; font-weight: 600; margin: 18px 0 10px; }

/* —— 通用表格：悬停高亮 + 更淡的斑马 —— */
body.admin tr:nth-child(even) td { background: #f8fafc; }
body.admin table tbody tr:hover td { background: #eef2f9; }
body.admin td, body.admin th { border-bottom: 1px solid #eef2f7; }

/* —— 统计卡：更商务 —— */
body.admin .stat {
  border: 1px solid var(--admin-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 30px -18px rgba(15,23,42,.20);
  padding: 18px;
}
body.admin .stat .num { color: var(--admin-accent); font-size: 24px; }
body.admin .stat .lbl { color: var(--admin-muted); letter-spacing: .3px; }

/* —— 弹层标题强调色 + 表单控件统一 —— */
body.admin .modal-head { border-bottom: 1px solid #eef2f7; }
body.admin .modal-head h3 { color: #0f172a; }
body.admin .modal-large .card h2 { border-left: none; padding-left: 0; }

/* —— 设置子导航更精致 —— */
body.admin .settings-subnav { border-bottom: 1px solid var(--admin-line); }
body.admin .settings-subnav a { background: #f1f5f9; border: 1px solid transparent; }
body.admin .settings-subnav a:hover,
body.admin .settings-subnav a.active {
  background: #fff; border-color: #dbeafe; color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

/* —— 会员面板 / 派单等子表格也用浅底（不与顶栏深蓝冲突） —— */
body.admin .mp-orders th,
body.admin .dispatch-tbl th,
body.admin .hierarchy-table th,
body.admin .prod-list th,
body.admin .order-list th { background: #f8fafc; color: #475569; }

/* —— flash 提示更精致 —— */
body.admin .flash { border-radius: 10px; border: 1px solid transparent; }
body.admin .flash-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
body.admin .flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* —— 窄屏：侧栏收起后顶栏高度保持 —— */
@media (max-width: 720px) {
  body.admin .admin-topbar { height: 52px; padding: 0 14px; }
  body.admin .admin-main { padding: 16px; }
}

/* —— 批量派单弹层：表单分组更紧凑、关键字段加底色突出 —— */
body.admin #batchDispatchForm .form-group { margin-bottom: 12px; }
body.admin #batchDispatchForm .modal-hint { color: #64748b; font-size: 12.5px; line-height: 1.6; padding: 10px 12px; background: #f8fafc; border-left: 3px solid #cbd5e1; border-radius: 6px; margin: 0 0 14px; }
body.admin #batchDispatchForm input[type='date'] { font-family: inherit; }
body.admin #batchDispatchForm input[name='total_count'],
body.admin #batchDispatchForm input[name='min_amount'],
body.admin #batchDispatchForm input[name='withdraw_limit'],
body.admin #batchDispatchForm input[name='normal_rate'],
body.admin #batchDispatchForm input[name='lucky_rate'] { font-variant-numeric: tabular-nums; }

/* ============================================================
   会员首页区块（home_blocks 模块化）— umzs.cc 风格
   卡片：白底 / 18px 圆角 / 柔和阴影；强调色跟随会员主题变量
   仅作用于 body.member，不影响后台与 landing
   ============================================================ */
body.member .hb-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: rgba(15,23,42,0.05) 0 12px 30px 0;
  padding: 16px;
  margin: 12px 0;
}
body.member .hb-card.hb-banner { padding: 0; overflow: hidden; }
body.member .hb-sec-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }

/* 欢迎头部（B方案已弃用，保留样式以防后台误启用） */
body.member .hb-welcome {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px;
  box-shadow: rgba(15,23,42,0.05) 0 12px 30px 0;
  padding: 14px 16px; margin: 12px 0;
}
body.member .hb-welcome-title { font-size: 17px; font-weight: 700; color: #0f172a; }

/* 任务进度 */
body.member .hb-progress-row { display: flex; align-items: center; justify-content: space-between; }
body.member .hb-progress-label { color: #6b7280; font-size: 13px; }
body.member .hb-progress b { color: var(--member-primary, #fe2c55); font-size: 22px; }
body.member .hb-progress-track { height: 8px; background: #f1f2f6; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
body.member .hb-progress-track i { display: block; height: 100%; background: var(--member-primary, #fe2c55); border-radius: 99px; transition: width .4s ease; }
body.member .hb-progress small { color: #9ca3af; font-size: 12px; }

/* 轮播 Banner */
body.member .hb-banner-track { display: flex; transition: transform .5s ease; }
body.member .hb-banner-slide { flex: 0 0 100%; }
body.member .hb-banner-img { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: 18px; }
body.member .hb-banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
body.member .hb-dot { width: 7px; height: 7px; border-radius: 50%; background: #d1d5db; transition: all .3s ease; }
body.member .hb-dot.active { background: var(--member-primary, #fe2c55); width: 16px; border-radius: 99px; }

/* 滚动公告 */
body.member .hb-notice {
  display: flex; align-items: center; gap: 8px;
  background: #fff5f5; border: 1px solid #ffd6d6; border-radius: 14px;
  padding: 10px 14px; margin: 12px 0;
}
body.member .hb-notice-ic { font-size: 16px; }
body.member .hb-notice-view { overflow: hidden; flex: 1; }
body.member .hb-notice-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: #ee5253; }

/* 快捷入口 */
body.member .hb-gridmenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
body.member .hb-grid-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #374151; }
body.member .hb-grid-ic { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: rgba(15,23,42,0.08) 0 6px 14px; }
body.member .hb-grid-label { font-size: 12px; }

/* 数据统计 */
body.member .hb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
body.member .hb-stat .num { font-size: 16px; font-weight: 800; color: var(--member-primary, #fe2c55); word-break: break-all; }
body.member .hb-stat .lbl { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* 热门任务 */
body.member .hb-task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.member .hb-task-card { display: block; text-decoration: none; background: #f8fafc; border-radius: 12px; overflow: hidden; }
body.member .hb-task-card img { width: 100%; height: 84px; object-fit: cover; display: block; }
body.member .hb-task-card span { display: block; padding: 6px 8px; font-size: 12px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.member .hb-empty { color: #9ca3af; font-size: 13px; padding: 8px 0; }

/* 账户信息 */
body.member .hb-account p { margin: 6px 0; font-size: 13px; color: #4b5563; }
body.member .hb-account p b { color: #0f172a; }

/* 平台介绍 */
body.member .hb-info p { margin: 6px 0; font-size: 13px; color: #4b5563; line-height: 1.6; }

/* 合作方 */
body.member .hb-partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.member .hb-partner { background: #f8fafc; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; min-height: 52px; }
body.member .hb-partner img { max-width: 100%; max-height: 40px; object-fit: contain; }

/* 窄屏适配 */
@media (max-width: 480px) {
  body.member .hb-task-grid,
  body.member .hb-partner-grid { grid-template-columns: repeat(2, 1fr); }
  body.member .hb-banner-img { height: 132px; }
}

/* —— 后台「首页装修」列表辅助样式 —— */
body.admin .tag-ok { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #ecfdf5; color: #065f46; font-size: 12px; font-weight: 600; }
body.admin .tag-off { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 600; }
body.admin .nowrap { white-space: nowrap; }

/* —— 后台「首页装修」图片上传控件 —— */
body.admin .hb-up { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
body.admin .hb-up-file { max-width: 240px; }
body.admin .hb-up-status { font-size: 12px; color: #2563eb; }
body.admin .hb-up-textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
body.admin .hb-up-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.admin .hb-up-thumb { position: relative; display: inline-block; width: 72px; height: 72px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #f8fafc; }
body.admin .hb-up-thumb img { width: 100%; height: 100%; object-fit: contain; }
body.admin .hb-up-del { position: absolute; top: 0; right: 0; width: 18px; height: 18px; line-height: 16px; text-align: center; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px; border-radius: 0 0 0 6px; padding: 0; }
body.admin .hb-sync-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }

/* ============================================================
   2026-08-30 新增
   1) 后台右上角「修改密码」按钮
   2) 系统设置 → 重新启用系统（清空数据）
   ============================================================ */
.admin-topbar .topbar-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.34);
    color: #f3f4f6;
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.admin-topbar .topbar-btn:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); color: #fff; }

.reset-warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.7;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 0 14px;
}
.reset-groups { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.reset-group { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.reset-group-hd {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.reset-opt {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}
.reset-opt:last-child { border-bottom: none; }
.reset-opt:hover { background: #f8fafc; }
.reset-chk { padding-top: 2px; }
.reset-chk input[type='checkbox'] { width: 16px; height: 16px; cursor: pointer; }
.reset-body { display: flex; flex-direction: column; gap: 3px; }
.reset-body b { font-size: 14px; color: #111827; }
.reset-count { font-size: 12px; color: #64748b; }
.reset-note { font-size: 12px; color: #92400e; line-height: 1.6; }
.reset-confirm {
    border: 1px solid #fecaca;
    background: #fffbeb;
    border-radius: 10px;
    padding: 14px 16px 16px;
}
.reset-confirm-hd { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 10px; }
.reset-confirm .form-group { margin-bottom: 10px; }
.reset-confirm .form-group label { font-size: 13px; color: #78350f; }
.reset-h3 { font-size: 15px; margin: 26px 0 10px; color: #111827; }

/* ============================================================
   2026-08-30 后台顶栏语言下拉选择器（替代原来的 <select>）
   ============================================================ */
.admin-lang-dropdown { position: relative; display: inline-flex; align-items: center; }
.admin-lang-dropdown .ald-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.34);
    color: #f3f4f6;
    font-size: 12px; line-height: 1.4;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.admin-lang-dropdown .ald-btn:hover {
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
.admin-lang-dropdown .ald-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.admin-lang-dropdown .ald-cur-flag { font-size: 14px; line-height: 1; }
.admin-lang-dropdown .ald-cur-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-lang-dropdown .ald-caret {
    width: 10px;
    height: 10px;
    opacity: .85;
    transition: transform .18s ease;
}
.admin-lang-dropdown.open .ald-caret { transform: rotate(180deg); }

.admin-lang-dropdown .ald-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0,0,0,.22), 0 4px 10px rgba(0,0,0,.10);
    padding: 6px;
    display: none;
    z-index: 1200;
}
.admin-lang-dropdown.open .ald-menu { display: block; }
.admin-lang-dropdown .ald-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: background .12s, color .12s;
    cursor: pointer;
    user-select: none;
}
.admin-lang-dropdown .ald-item:hover { background: #f1f5f9; }
.admin-lang-dropdown .ald-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.admin-lang-dropdown .ald-flag {
    font-size: 16px;
    line-height: 1;
    width: 22px;
    text-align: center;
}
.admin-lang-dropdown .ald-name { flex: 1; }
.admin-lang-dropdown .ald-check {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
}
