/* ===== EDR 记账本 · 全局样式 ===== */
:root {
  --green: #2FBF6B;
  --green-lt: #88E9B4;
  --green-dk: #73CF88;
  --text: #2B2B2B;
  --text2: #5A5A5A;
  --muted: #8E9491;
  --ph: #ADB8B3;
  --line: rgba(0, 0, 0, .055);
  --cream: #F3F0E7;
  --blue: #4A7DFF;
  --orange: #FF9F43;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #E9EDF0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; }

/* 手机外壳（桌面端居中显示） */
.phone {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  background: #fff; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, .07);
}

/* ---------- 注册 / 登录 ---------- */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
  background: linear-gradient(180deg, #8EF0C2 0%, #A2F2CD 25%, #C0F4DD 50%, #D4F5E8 74%, #F4F7F9 100%);
}
.auth-card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 16px; margin: 0 15px; padding: 8px 17px 24px;
  box-shadow: 0 10px 30px rgba(60, 140, 100, .12);
}
.field { padding: 19px 0 15px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.field label { display: block; font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 11px; letter-spacing: .3px; }
.field input {
  width: 100%; border: 0; background: transparent; outline: none;
  font-size: 16.5px; color: var(--text); padding: 0; height: 24px; line-height: 24px;
}
.field input::placeholder { color: var(--ph); }
.field.err { border-bottom-color: #F08A8A; }
.field .tip { display: none; font-size: 13.5px; color: #E45C5C; margin-top: 7px; }
.field.err .tip { display: block; }
.auth-btn {
  display: block; width: 100%; border: 0; height: 56px; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-lt), var(--green-dk));
  color: #fff; font-size: 19px; font-weight: 600; margin-top: 22px;
  box-shadow: 0 6px 16px rgba(115, 207, 136, .45); cursor: pointer;
}
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-link { text-align: center; color: #6B7370; font-size: 17.5px; padding: 18px 0 2px; cursor: pointer; }
.auth-brand { text-align: center; font-size: 22px; font-weight: 700; color: #17603A; letter-spacing: 1px; margin-bottom: 18px; }
.auth-tipbar { margin: 14px 15px 0; background: #fff; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #5A5A5A; line-height: 1.75; }
.auth-tipbar b { color: #17603A; }

/* ---------- 页面骨架 ---------- */
.page { flex: 1; display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.page.cream { background: var(--cream); }
.topbar {
  height: 50px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 16.5px; font-weight: 700; color: var(--text); background: inherit;
  position: sticky; top: 0; z-index: 10;
}
.topbar .back { position: absolute; left: 8px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #4A4A4A; }
.content { flex: 1; padding-bottom: 78px; }
.content.no-nav { padding-bottom: 20px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 430px;
  height: 62px; background: #fff; border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: #8A8F8D; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--green); }

/* 空状态 / 加载 */
.empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.loading { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- AI 页面 ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 9px 9px 0; }
.ai-card { background: #fff; border-radius: 11px; padding: 5px 5px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .09); overflow: hidden; cursor: pointer; }
.ai-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; background: #F2F5F4; }
.ai-card .cap { font-size: 13px; color: #3A3A3A; padding: 9px 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card:active { transform: scale(.985); }

/* ---------- 资讯页面 ---------- */
.news-banner { width: 100%; aspect-ratio: 344 / 174; object-fit: cover; background: #111; }
.news-list { padding-bottom: 10px; }
.news-item { display: flex; gap: 13px; padding: 15px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.news-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 78px; }
.news-item .t { font-size: 16px; color: var(--text); line-height: 1.42; }
.news-item .d { font-size: 15px; color: var(--muted); margin-top: auto; padding-top: 14px; }
.news-item img { width: 78px; height: 78px; border-radius: 7px; object-fit: cover; flex: none; background: #F2F5F4; }

/* 文章详情 */
.article h1 { font-size: 21px; line-height: 1.45; margin: 16px 16px 8px; }
.article .meta { font-size: 14px; color: var(--muted); margin: 0 16px 14px; }
.article .cover { width: 100%; object-fit: cover; background: #F2F5F4; }
.article .body { padding: 16px 16px 30px; font-size: 16.5px; line-height: 1.9; color: #3A3A3A; white-space: pre-wrap; word-break: break-word; }

/* ---------- 我的页面 ---------- */
.topbar.mine-title { height: 44px; font-size: 16px; }
.mine-head { display: flex; align-items: center; gap: 14px; padding: 6px 22px 18px; }
.mine-head img { width: 58px; height: 58px; border-radius: 50%; flex: none; }
.mine-head .nick { font-size: 18px; font-weight: 600; }
.mine-head .uid { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.stat-card { background: #fff; border-radius: 12px; margin: 0 15px 15px; padding: 15px 4px 4px; }
.stat-row { display: flex; }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 6px 0 16px; }
.stat .v { font-size: 24px; font-weight: 600; color: var(--green); line-height: 1; }
.stat .k { font-size: 15px; color: var(--text2); }
/* 图标盒高度 = 数字行高，保证三列文字基线对齐 */
.stat .ico { height: 24px; display: flex; align-items: center; justify-content: center; }
.stat .ico svg { width: 33px; height: 33px; display: block; }
.stat.act .ico { height: 33px; }
.stat.clickable { cursor: pointer; }
.service-card { background: #fff; border-radius: 12px; margin: 0 15px 18px; padding: 2px 16px 4px; }
.service-card .stitle { font-size: 16px; font-weight: 600; padding: 17px 0 2px; }
.srow { display: flex; align-items: center; gap: 13px; height: 58px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); cursor: pointer; }
.srow .si { width: 22px; height: 22px; color: #4A4A4A; flex: none; }
.srow .si svg { width: 22px; height: 22px; }
.srow .chev { margin-left: auto; color: #C2C7C5; font-size: 18px; line-height: 1; }
.logout-btn {
  display: block; width: 64%; margin: 6px auto 34px; height: 46px; border-radius: 6px;
  background: #4C4C4C; color: #fff; font-size: 16px; border: 0; cursor: pointer;
}
.logout-btn:active { opacity: .85; }

/* ---------- 通用小页 ---------- */
.panel { background: #fff; border-radius: 12px; margin: 14px 15px; padding: 18px 16px 4px; }
.panel h3 { font-size: 16px; margin: 0 0 12px; }
.kv { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.kv .k { color: var(--text2); }
.kv .v { color: var(--text); font-weight: 500; }
.copy-btn {
  display: block; width: 100%; height: 48px; border: 0; border-radius: 999px; margin: 4px 0 16px;
  background: linear-gradient(90deg, var(--green-lt), var(--green-dk)); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
}
.qr-box { background: #fff; border-radius: 12px; margin: 14px 15px; padding: 20px; text-align: center; }
.qr-box canvas, .qr-box svg { margin: 0 auto; }
.qr-tip { font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.75; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-top: 1px solid var(--line); font-size: 15.5px; }
.list-item .r { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.art-body { padding: 4px 15px 30px; font-size: 16.5px; line-height: 1.9; color: #3A3A3A; white-space: pre-wrap; }

/* ---------- 账户明细 ---------- */
.ledger-summary {
  background: #fff; border-radius: 12px; margin: 14px 15px 16px; padding: 20px 16px;
  display: flex; align-items: center;
}
.ledger-summary .ls-item { flex: 1; text-align: center; }
.ledger-summary .ls-v { font-size: 24px; font-weight: 600; color: var(--green); line-height: 1.1; }
.ledger-summary .ls-k { font-size: 13.5px; color: var(--text2); margin-top: 7px; }
.ledger-summary .ls-div { width: 1px; height: 40px; background: var(--line); }
.ledger-card { background: #fff; border-radius: 12px; margin: 0 15px; }
.ledger-card .ledger-title { font-size: 16px; font-weight: 600; padding: 16px 16px 0; }
.ledger-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ledger-item .li-main { flex: 1; min-width: 0; }
.ledger-item .li-note { font-size: 15px; color: var(--text); }
.ledger-item .li-time { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.ledger-item .li-amt { font-size: 17px; font-weight: 600; flex: none; }
.ledger-item .li-amt.up { color: #D64545; }
.ledger-item .li-amt.down { color: #0F6E56; }

/* ---------- 提示条 ---------- */
#toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 999;
  background: rgba(0, 0, 0, .82); color: #fff; font-size: 14.5px; line-height: 1.5;
  padding: 12px 20px; border-radius: 10px; max-width: 78%; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s; white-space: pre-wrap;
}
#toast.show { opacity: 1; }

/* ================= 后台管理（电脑端） ================= */
.admin-body { background: #F1F3F5; min-height: 100vh; padding: 0 0 60px; }
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 18px 16px; }
.admin-head { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.admin-head h1 { font-size: 17px; margin: 0; flex: 1; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-tabs button {
  border: 0; background: #fff; color: var(--text2); font-size: 14px; padding: 9px 18px; border-radius: 8px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.admin-tabs button.on { background: var(--green); color: #fff; font-weight: 600; }
.admin-card { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.admin-card h2 { font-size: 15px; margin: 0 0 14px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.form-row > div { flex: 1; min-width: 180px; }
.form-row label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.inp, .ta {
  width: 100%; border: 1px solid #DDE1E4; border-radius: 8px; padding: 9px 11px;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
}
.inp:focus, .ta:focus { border-color: var(--green); }
.ta { min-height: 130px; resize: vertical; line-height: 1.7; }
.btn { border: 0; border-radius: 8px; padding: 10px 20px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--green); color: #fff; }
.btn.ghost { background: #EEF1F3; color: var(--text2); }
.btn.danger { background: #FDECEC; color: #D34545; }
.btn.sm { padding: 6px 12px; font-size: 13px; font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #EEF1F3; vertical-align: middle; }
.admin-table th { color: var(--text2); font-weight: 500; font-size: 13px; }
.thumb { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: #F2F5F4; }
.row-actions { display: flex; gap: 8px; }
.admin-login { max-width: 380px; margin: 12vh auto; }
.admin-login .admin-card { padding: 26px 24px; }
.admin-login h1 { font-size: 20px; text-align: center; margin: 0 0 6px; }
.admin-login p.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.7; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 20px; background: #EAF7EF; color: #2F9E5C; }
.tag.off { background: #F1F3F5; color: #8E9491; }
.preview-img { width: 200px; height: auto; max-height: 220px; object-fit: contain; border-radius: 8px; margin-top: 8px; }

/* ===== 积分系统：跟投 / 明细 / 推荐列表 / 转账 ===== */
/* 顶部资产条 */
.asset-bar { display: flex; margin: 12px 14px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.asset-bar .ab-item { flex: 1; padding: 13px 4px 11px; text-align: center; }
.asset-bar .ab-v { font-size: 19px; font-weight: 600; color: var(--green); line-height: 1.1; }
.asset-bar .ab-k { font-size: 12.5px; color: var(--text2); margin-top: 5px; }
.asset-bar .ab-split { width: 1px; background: var(--line); margin: 12px 0; }

/* 表单卡 */
.pt-card { background: #fff; border-radius: 12px; margin: 12px 14px 0; padding: 4px 16px 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 15px 0 14px; border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-row label { font-size: 14.5px; color: var(--text2); width: 76px; flex: none; }
.pt-row input { flex: 1; border: 0; outline: none; font-size: 14.5px; color: var(--text); background: transparent; min-width: 0; }
.pt-row input::placeholder { color: var(--ph); }
.pt-row .unit { font-size: 13px; color: var(--muted); flex: none; }

/* 按钮行 */
.pt-actions { display: flex; align-items: center; gap: 10px; margin: 20px 14px 0; }
.pt-actions.sub { margin-top: 10px; }
.pt-btn {
  flex: 1; height: 42px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--green); background: #fff; color: var(--green); cursor: pointer;
}
.pt-btn:active { opacity: .8; }
.pt-btn.solid {
  flex: 1.35; border: 0; background: linear-gradient(90deg, var(--green-lt), var(--green-dk));
  color: #fff; box-shadow: 0 5px 14px rgba(115, 207, 136, .42);
}
.pt-btn:disabled { opacity: .55; cursor: default; }

.pt-note { margin: 16px 18px 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.pt-note b { color: var(--text2); font-weight: 500; }

/* 跟投 / 转出 切换 */
[hidden] { display: none !important; }
.seg {
  display: flex; margin: 12px 14px 0; padding: 4px; gap: 4px;
  background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.seg-item {
  flex: 1; height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14.5px; font-weight: 500; color: var(--text2); cursor: pointer;
  transition: background .18s, color .18s;
}
.seg-item.active {
  background: linear-gradient(90deg, var(--green-lt), var(--green-dk));
  color: #fff; font-weight: 600;
}
.pills { flex: 1; display: flex; justify-content: flex-end; gap: 8px; }
.pill {
  padding: 7px 15px; border-radius: 999px; border: 1px solid #E3E7E5;
  background: #fff; color: var(--text2); font-size: 13px; cursor: pointer;
}
.pill.active { border-color: var(--green); background: #F1FBF5; color: var(--green); font-weight: 600; }


/* 跟投明细 */
/* ===== 跟投明细（按参考图重做） ===== */
.content.pl-page { padding: 15px 0 78px; background: #F8F9FA; }
.pl-row {
  width: 345px; max-width: calc(100% - 20px); min-height: 75px;
  margin: 0 0 15px 10px; padding: 0 13px 0 20px;
  background: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pl-row .pl-name {
  min-width: 0; font-size: 14px; line-height: 1.3; color: #222;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pl-right .pl-amt { font-size: 14px; font-weight: 700; line-height: 20px; color: #222; }
.pl-right .pl-time { font-size: 10px; line-height: 13px; color: #A6A3A3; }
.pl-empty { padding: 40px 20px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* 申请记录（充提审批状态卡，与 .pl-row 视觉一致） */
.fr-row {
  width: 345px; max-width: calc(100% - 20px);
  margin: 0 0 15px 10px; padding: 12px 13px 12px 20px;
  background: #fff; border-radius: 6px;
  display: flex; flex-direction: column; gap: 6px;
}
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fr-name { font-size: 14px; line-height: 1.3; font-weight: 600; color: #222; }
.fr-amt { font-size: 14px; font-weight: 700; line-height: 20px; color: #222; }
.fr-time { font-size: 10px; line-height: 13px; color: #A6A3A3; }
.fr-pill {
  font-size: 11px; line-height: 16px; padding: 1px 9px; border-radius: 999px;
  white-space: nowrap; flex: none;
}
.fr-pill.pending  { color: #B9760A; background: #FFF1DC; }
.fr-pill.approved { color: #1E9E5A; background: #E4F7EC; }
.fr-pill.rejected { color: #D14343; background: #FDE6E6; }
.fr-reason {
  font-size: 12px; line-height: 17px; color: #D14343;
  background: #FDE6E6; padding: 6px 9px; border-radius: 5px; margin-top: 2px;
}

/* 推荐列表 */
/* ===== 推荐列表（按参考图：白面板 + 头像/昵称/业绩） ===== */
.page.tm-bg { background: #F2F2F2; }
.tm-panel { width: 210px; background: #fff; border-radius: 6px; margin: 12px 0 0 12px; overflow: hidden; }
.tm-row { display: flex; align-items: center; height: 66px; padding: 0 10px; }
.tm-row + .tm-row { border-top: 1px solid #F5F5F5; }
.tm-ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none; background: #F7B970;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tm-ava svg { width: 27px; height: 27px; display: block; }
.tm-info { margin-left: 10px; min-width: 0; }
.tm-nick { font-size: 15px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-perf { font-size: 12px; color: #999; margin-top: 4px; white-space: nowrap; }

@media (max-width: 430px) {
  body { background: #fff; }
  .phone { box-shadow: none; }
}

/* ===== 跟投页（按参考图重做，勿与其他页面样式混用） ===== */
.page.gray { background: #F8F9FA; }
.topbar.tk-bar { height: 42px; font-size: 17px; font-weight: 500; background: #fff; }
.topbar.tk-bar .back { left: 2px; color: #333; }

.content.tk { padding: 26px 8px 78px; background: #F8F9FA; }

.tk-field {
  display: flex; align-items: center; width: 345px; max-width: 100%;
  height: 47px; padding: 0 13px; background: #fff; border-radius: 8px;
}
.tk-field + .tk-field { margin-top: 26px; }
.tk-field label { flex: none; font-size: 16px; color: #1F1F1F; line-height: 1; }
.tk-field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 0 0 0 4px; font-size: 16px; line-height: 1.2; color: #1F1F1F; font-family: inherit;
}
.tk-field input::placeholder { color: #9E9E9E; }

.tk-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 66px; }
.tk-pill {
  width: 165px; height: 55px; padding: 0; border: 5px solid #38B64D; border-radius: 28px;
  background: #fff; color: #111; font-size: 17px; font-weight: 400; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tk-pill:active { background: #F2FCF6; }
.tk-pill:disabled { opacity: .55; cursor: default; }

.tk-submit-row { display: flex; justify-content: center; margin-top: 71px; }
.tk-submit {
  width: 275px; max-width: 100%; height: 50px; border: 0; border-radius: 25px;
  background: linear-gradient(90deg, #63EBA9 0%, #39B74F 100%);
  color: #fff; font-size: 17px; font-weight: 500; letter-spacing: 2px; font-family: inherit;
  box-shadow: 0 4px 12px rgba(56, 183, 79, .26); cursor: pointer;
}
.tk-submit:active { filter: brightness(.97); }
.tk-submit:disabled { opacity: .6; cursor: default; }

/* 转出页：确定在左、转出明细在右（同一行） */
.tk-actions2 { display: flex; align-items: center; justify-content: space-between; margin-top: 39px; }
.tk-actions2 .tk-submit { width: 218px; }
.tk-actions2 .tk-pill { width: 122px; }

/* ===== 充值 / 提现页 ===== */
.rc-card { width: 345px; max-width: 100%; background: #fff; border-radius: 8px; padding: 13px 14px 15px; }
.rc-label { font-size: 13px; color: #222; }

.rc-qr-wrap { margin-top: 9px; }
.rc-qr { width: 150px; height: 150px; object-fit: contain; display: block; border: 1px solid #eeeeee; border-radius: 6px; background: #fff; }
.rc-qr-empty {
  width: 150px; height: 150px; border: 1px dashed #dcdcdc; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #aaaaaa;
}
.rc-line { display: flex; align-items: center; margin-top: 8px; font-size: 12.5px; line-height: 1.4; }
.rc-line .rc-k { flex: none; color: #222; }
.rc-line .rc-v { flex: 1; min-width: 0; color: #9E9E9E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-copy {
  flex: none; width: 22px; height: 22px; padding: 0; border: 0; background: transparent;
  color: #8a8f8d; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.rc-copy svg { width: 15px; height: 15px; }

.rc-field { display: flex; align-items: center; height: 36px; }
.rc-field + .rc-field { margin-top: 4px; }
.rc-field label { flex: none; font-size: 14px; color: #222; }
.rc-field input {
  flex: 1; min-width: 0; padding: 0 0 0 2px; border: 0; outline: none; background: transparent;
  font-size: 14px; color: #222; font-family: inherit;
}
.rc-field input::placeholder { color: #9E9E9E; }

.rc-sub { margin-top: 10px; font-size: 12.5px; color: #9E9E9E; }
.rc-upload {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-top: 8px; border: 1px solid #dcdcdc; border-radius: 4px;
  background: #fff; cursor: pointer; overflow: hidden;
}
.rc-plus { font-size: 24px; font-weight: 300; line-height: 1; color: #8a8f8d; }
.rc-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 邀请好友（按参考图） ===== */
.iv-tip { text-align: center; font-size: 13px; color: #9A9A9A; margin: 16px 0 14px; }
.iv-card {
  width: 196px; background: #fff; border-radius: 8px; margin-left: 12px;
  padding: 12px 42px 26px; box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}
.iv-avatar {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  background: #F7B970; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.iv-avatar svg { width: 52px; height: 52px; display: block; }
.iv-nick { margin-top: 14px; text-align: center; font-size: 17px; font-weight: 600; color: #444; }
.iv-sub { margin-top: 8px; text-align: center; font-size: 12.5px; color: #9A9A9A; white-space: nowrap; }
.iv-qr { position: relative; width: 70px; height: 70px; margin: 16px auto 0; }
.iv-qr svg { display: block; width: 70px; height: 70px; }
.iv-qr-fail { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #bbb; border: 1px dashed #ddd; }
.iv-qr .qc { position: absolute; width: 13px; height: 13px; border: 3px solid #FF7F2E; }
.iv-qr .qc-tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.iv-qr .qc-tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; border-top-right-radius: 5px; }
.iv-qr .qc-bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.iv-qr .qc-br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }
.iv-btns { display: flex; gap: 6px; width: 196px; margin: 16px 0 0 12px; }
.iv-btn {
  height: 34px; border: 0; border-radius: 17px; font-size: 13px; font-family: inherit;
  cursor: pointer; padding: 0; text-align: center;
}
.iv-btn:active { opacity: .85; }
.iv-save { flex: 41; background: #DEDEE0; color: #999; }
.iv-copy { flex: 57; background: #FF7F2E; color: #fff; }

/* ===== 客服中心（按参考图） ===== */
.page.cs-bg { background: #F6F6F6; }
.cs-card {
  width: 210px; background: #fff; border-radius: 8px; margin: 12px 0 0 12px;
  padding: 0 14px 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}
.cs-illus { margin: -12px -14px 0; }
.cs-illus svg { display: block; width: 100%; height: auto; }
.cs-title { margin-top: 14px; font-size: 17px; font-weight: 600; color: #333; }
.cs-contact { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cs-cava {
  width: 20px; height: 20px; border-radius: 50%; flex: none; background: #5B8FF9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cs-cava svg { width: 14px; height: 14px; display: block; }
.cs-cname { font-size: 12px; color: #666; }
.cs-qr { margin-top: 14px; text-align: center; }
.cs-qr-img { width: 100px; height: 100px; object-fit: contain; display: inline-block; }
.cs-qr-empty {
  width: 100px; height: 100px; margin: 0 auto; border: 1px dashed #ddd; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #bbb;
}

/* ===== 通知公告（按参考图） ===== */
.page.nt-bg { background: #F7F7F7; }
.nt-panel { width: 210px; background: #fff; border-radius: 6px; margin: 12px 0 0 12px; overflow: hidden; }
.nt-row { display: block; padding: 13px 14px; text-decoration: none; }
.nt-row:active { background: #FAFAFA; }
.nt-t { font-size: 14px; font-weight: 500; color: #333; }
.nt-d { font-size: 11px; color: #9A9A9A; margin-top: 5px; }
.nt-empty { padding: 34px 14px; text-align: center; font-size: 13px; color: #9A9A9A; }
.nt-detail { padding: 18px 14px 22px; }
.nt-dt { font-size: 17px; font-weight: 600; color: #333; line-height: 1.45; }
.nt-dd { font-size: 11px; color: #9A9A9A; margin-top: 8px; }
.nt-dc { font-size: 14px; color: #444; line-height: 1.85; margin-top: 16px; }

/* ===== 后台富文本编辑器（加粗 / 字号） ===== */
.re-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.re-bar { display: flex; gap: 6px; padding: 6px 8px; background: #F7F9F8; border-bottom: 1px solid var(--line); }
.re-btn { min-width: 36px; height: 26px; padding: 0 9px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 12px; color: #444; cursor: pointer; line-height: 1; }
.re-btn:hover { background: #EDF3EF; }
.re-edit { min-height: 130px; max-height: 430px; overflow-y: auto; padding: 10px 12px; font-size: 14px; line-height: 1.85; color: var(--text); outline: none; word-break: break-word; }
.re-edit:empty::before { content: attr(data-ph); color: var(--ph); }

/* ===== 后台：充值 / 提现管理 ===== */
.admin-qr { width: 150px; height: 150px; object-fit: contain; display: block; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; }
.admin-qr-empty { width: 150px; height: 150px; border: 1px dashed #d9d9d9; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 13px; }
.img-modal { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.img-modal-box { max-width: 92vw; max-height: 90vh; background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.img-modal-box img { max-width: 86vw; max-height: 74vh; object-fit: contain; border-radius: 8px; }

/* ===== 在线客服聊天（用户端 + 后台工作台共用） ===== */
.chat-row { display: flex; margin: 6px 0; }
.chat-row.me { justify-content: flex-end; }
.chat-row.cs { justify-content: flex-start; }
.chat-bubble {
  max-width: 74%; padding: 9px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap;
}
.chat-row.cs .chat-bubble { background: #fff; color: #232323; border-top-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.chat-row.me .chat-bubble { background: #95EC69; color: #1B1B1B; border-top-right-radius: 4px; }
.chat-time { text-align: center; font-size: 11px; color: #9C9C9C; margin: 12px 0 6px; }

/* 用户端聊天页 */
.page.chat-bg { background: #F2F3F5; }
.content.no-nav.chat-page { padding: 0 0 74px; display: flex; flex-direction: column; min-height: 0; }
.chat-tip {
  margin: 10px 12px 0; padding: 8px 12px; background: #FFF8E1;
  border: 1px solid #F2E4B8; border-radius: 10px;
  font-size: 12px; color: #8A6D1F; line-height: 1.6;
}
.chat-box { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 16px; }
.chat-empty { text-align: center; font-size: 13px; color: #A8A8A8; padding: 44px 0; }
.chat-input {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 12px; background: #fff; border-top: 1px solid rgba(0, 0, 0, .06);
}
.chat-input textarea {
  flex: 1; height: 38px; max-height: 110px; resize: none; overflow-y: auto;
  padding: 8px 12px; border: 1px solid rgba(0, 0, 0, .09); border-radius: 19px;
  font-size: 14px; line-height: 20px; outline: none; background: #F7F8F7; color: var(--text);
}
.chat-send {
  height: 38px; padding: 0 18px; border: 0; border-radius: 19px;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chat-send:disabled { background: #B9CFC2; }

/* 「我的」页未读红点 */
.badge {
  display: inline-block; min-width: 17px; height: 17px; padding: 0 5px;
  margin-left: 6px; border-radius: 9px; background: #E74C3C; color: #fff;
  font-size: 11px; line-height: 17px; text-align: center; vertical-align: middle;
}

/* 后台客服工作台 */
.chat-wb {
  display: flex; height: 470px; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #fff;
}
.chat-list { flex: 0 0 236px; width: 236px; overflow-y: auto; border-right: 1px solid var(--line); background: #FAFBFA; }
.chat-item { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-item:hover { background: #F1F4F2; }
.chat-item.on { background: #E7F5EC; }
.chat-item-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-item-name { font-size: 14px; font-weight: 600; color: #232323; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-sub { font-size: 11px; color: #9A9A9A; margin-top: 3px; }
.chat-item-msg { font-size: 12px; color: #787878; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: #F6F7F6; }
.chat-reply { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-reply textarea {
  flex: 1; height: 66px; max-height: 150px; resize: none;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; line-height: 1.6; outline: none; color: var(--text);
}
.chat-reply textarea:disabled { background: #FAFAFA; color: #B0B0B0; }
.chat-badge {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #E74C3C; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
}

/* ===== 数量 / 余额明细（「我的」页点数字进来） ===== */
.chev-s { font-size: 14px; color: #B9B4B4; margin-left: 3px; }
.fd-head {
  width: 345px; max-width: calc(100% - 20px);
  margin: 0 0 15px 10px; padding: 16px 18px 14px;
  background: #fff; border-radius: 6px;
}
.fd-label { font-size: 13px; color: #8E9491; }
.fd-value { font-size: 27px; font-weight: 700; color: var(--green); line-height: 1.2; margin-top: 4px; }
.fd-sub { font-size: 11.5px; line-height: 1.6; color: #A6A3A3; margin-top: 6px; }
.pl-left { min-width: 0; }
.pl-row .pl-sub { font-size: 11px; line-height: 15px; color: #A6A3A3; margin-top: 4px; }
.pl-right .pl-amt.up { color: var(--green); }
.pl-right .pl-amt.down { color: #E2574C; }
