.member-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.points-balance {
  font-size: 48px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.points-balance .unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.expiry-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.expiry-placeholder {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.ledger li .delta.positive {
  color: var(--fc-success);
  font-weight: 600;
}

.ledger li .delta.negative {
  color: var(--text);
  font-weight: 600;
}

.points-table-wrap {
  overflow-x: auto;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.points-table th,
.points-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.points-table .cell-nowrap {
  white-space: nowrap;
  display: inline-block;
}

.points-table td.cell-free .cell-nowrap {
  font-weight: 600;
}

.billing-rules-member-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.billing-rules-list.member-billing-rules {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.referral-commission-summary {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--fc-surface-2);
  border-radius: var(--radius-sm);
}

.referral-commission-summary p {
  margin: 0 0 6px;
}

.referral-commission-summary p:last-child {
  margin-bottom: 0;
}

.ops-rule-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 13px;
  color: var(--text-muted);
}

.points-table th {
  font-weight: 600;
  background: var(--fc-surface-2);
  text-align: center;
}

.points-table th:first-child,
.points-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 480px) {
  .invite-stats {
    grid-template-columns: 1fr;
  }
}

.invite-stats .num {
  font-size: 28px;
  font-weight: 700;
}

.invite-stats .lbl {
  font-size: 13px;
  color: var(--text-muted);
}

.invite-code-box {
  background: var(--fc-surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.invite-code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.commission-reserved {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.ops-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.ops-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ops-buttons button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--navy);
  background: var(--fc-surface);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ops-buttons button:hover {
  background: var(--fc-surface-2);
}

.ops-dialog {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: var(--fc-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
}

.ops-dialog.visible {
  display: block;
}

.ops-dialog .ops-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.ops-dialog .ops-detail {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.ops-dialog .ops-actions {
  display: flex;
  gap: 10px;
}

.ops-dialog .ops-actions button {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ops-confirm {
  background: var(--navy);
  color: var(--fc-on-dark);
}

.ops-cancel {
  background: var(--fc-surface-2);
  color: var(--text);
}

.size-rule-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  padding: 12px;
  background: var(--fc-surface-2);
  border-radius: var(--radius-sm);
}

/* 小程序里不出「佣金和提现」（分享推广赚佣金，审核常追问资质；总指挥 11-21），网页照旧 */
html.hh-mp #commission { display: none; }

/* ===== 官网 v37 会员中心手机版（老板 11-21 参考稿「照着这个感觉，会更有身份标识，每个身份的颜色不同」）=====
   只改 900 宽以下，电脑不变（.m-only 电脑上藏）。身份色：免费＝白、VIP 专业版＝深蓝 #14294E、SVIP 尊享版＝黑金。
   字号：板块标题 20、卡片 15–16、正文 13–14、注释 12，最小 12；去斜体；中文不断字 */
/* 官网 v39：身份色大卡、皇冠、三格积分、标题图标、功能表图标电脑也用（老板 11-21「小程序的可以用到官网上」）；手机专属的只剩边距和页头 */
@media (max-width: 900px) { .d-only { display: none; } }
.m-only { display: revert !important; }
.m-only[hidden] { display: none !important; }
body { background: #F3F6FB; }
@media (max-width: 900px) {
  .main.member-grid { gap: 14px; padding: 0 12px 32px; }
}
@media (min-width: 901px) {
  .main.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 8px; }
  .member-grid > .points-card { grid-column: 1; grid-row: 1; }
  .member-grid > #member { grid-column: 1; grid-row: 2; }
  .member-grid > #commission { grid-column: 1; grid-row: 3; }
  .member-grid > section:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .member-grid > #invite { grid-column: 2; grid-row: 2 / span 2; }
  .card { padding: 22px 22px !important; }
  .points-card { padding: 0 !important; }
  .hero-top { padding: 22px 22px 24px !important; }
  .tier-img { width: 92px !important; height: 92px !important; right: 22px !important; top: 40px !important; }
  .points-balance { font-size: 46px !important; }
  .points-card > .footnote { padding: 0 22px 16px !important; }
}
  .card { padding: 18px 16px; border-radius: 16px; box-shadow: 0 4px 16px rgba(20,41,78,.06); }
.card-title { font-size: 20px; display: flex; align-items: center; gap: 8px; color: #14294E; }
.m-ic { display: inline-flex !important; color: #14294E; }
.m-ic svg { width: 22px; height: 22px; }
.m-ic.gold, .tier-vip .hero-top .m-ic, .tier-svip .hero-top .m-ic { color: #D4A955; }
.expiry-placeholder { font-style: normal; font-size: 12px; line-height: 1.6; }
.footnote { word-break: keep-all; overflow-wrap: break-word; }

/* 顶部身份大卡 */
.points-card { padding: 0; overflow: hidden; background: #fff; }
.hero-top { position: relative; padding: 18px 16px 20px; min-height: 0; }
.hero-top .card-header-row { margin: 0; padding-right: 0; }
.hero-top .card-title { font-size: 16px; }
.hero-top .fixture-label { font-size: 13px; position: relative; z-index: 2; }
.points-balance { font-size: 40px; margin: 8px 0 10px; line-height: 1.1; position: relative; z-index: 2; }
.points-balance .unit { font-size: 16px; font-weight: 600; }
.hero-exp { display: block !important; font-size: 13px; padding: 0; margin-top: 28px; position: relative; z-index: 2; white-space: nowrap; }  /* 老板 11-21「会员那里不要背景，挡住标志了，直接是文字」 */
.hero-exp[hidden] { display: none !important; }
.hero-exp b { font-weight: 700; }
.tier-img { display: block !important; position: absolute; right: 14px; top: 46px; width: 74px; height: 74px; object-fit: contain; z-index: 1; }
.tier-img[hidden] { display: none !important; }
/* 免费：白底浅蓝渐变、深蓝字 */
.tier-free .hero-top { background: linear-gradient(135deg, #FFFFFF 0%, #EEF2F8 100%); color: #14294E; }
.tier-free .hero-top .card-title, .tier-free .points-balance { color: #14294E; }
.tier-free .hero-exp { color: #4b5468; }
.tier-free .hero-exp b { color: #14294E; }
/* VIP 专业版：品牌深蓝 */
.tier-vip .hero-top { background: radial-gradient(420px 220px at 85% 30%, #2D5596 0%, rgba(45,85,150,0) 70%), linear-gradient(135deg, #1D3A6B 0%, #14294E 100%); color: #fff; }
.tier-vip .hero-top .card-title, .tier-vip .points-balance, .tier-vip .hero-top .fixture-label { color: #fff; }
.tier-vip .points-balance .unit { color: rgba(255,255,255,.8); }
.tier-vip .hero-exp { color: rgba(255,255,255,.85); }
.tier-vip .hero-exp b { color: #E2C188; }
/* SVIP 尊享版：黑金 */
.tier-svip .hero-top { background: radial-gradient(420px 220px at 85% 30%, #5a4520 0%, rgba(90,69,32,0) 70%), linear-gradient(135deg, #2a2112 0%, #120e08 100%); color: #F3DCA8; }
.tier-svip .hero-top .card-title, .tier-svip .hero-top .fixture-label { color: #F3DCA8; }
.tier-svip .points-balance { color: #fff; }
.tier-svip .points-balance .unit { color: #E2C188; }
.tier-svip .hero-exp { color: #F3DCA8; }
.tier-svip .hero-exp b { color: #E2C188; }
/* 大卡下一排格子：各笔积分剩余 + 30 天内到期 */
.grant-strip { display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 14px 6px; background: #fff; }
.gs { display: flex; gap: 6px; align-items: flex-start; padding: 0 8px; border-left: 1px solid #E5E9F0; min-width: 0; }
.gs:nth-child(3n+1) { border-left: 0; }
.gs:nth-child(n+4) { margin-top: 12px; }
.gs-ic { color: #14294E; flex: none; margin-top: 1px; }
.gs-ic svg { width: 20px; height: 20px; }
.gs-k { font-size: 12px; color: #4b5468; white-space: nowrap; }
.gs-v { font-family: var(--fc-font-num); font-size: 18px; font-weight: 700; color: #14294E; line-height: 1.3; }
.gs-s { font-size: 12px; color: #8a93a5; }
.points-card > .expiry-row, .points-card > .expiry-placeholder, .points-card > #grants { display: none; }
.points-card > .footnote { margin: 0 !important; padding: 0 16px 14px; text-align: right !important; font-size: 13px; }

/* 功能积分表：表头盒型小图标、每行功能图标和括号说明、免费高亮 */
.points-table-wrap { border: 1px solid #E5E9F0; border-radius: 12px; margin-top: 12px; }
.points-table { font-size: 14px; }
.points-table th, .points-table td { padding: 10px 4px; }
.points-table th { background: #F1F4F9; color: #14294E; font-size: 13px; vertical-align: bottom; }
.points-table th:first-child, .points-table td:first-child { padding-left: 10px; border-right: 1px solid #E5E9F0; }
.th-ic { display: block !important; color: #14294E; margin-bottom: 2px; }
.th-ic svg { width: 20px; height: 20px; }
.points-table td:first-child { font-size: 13px; color: #1d2433; word-break: keep-all; }
.fn-ic { display: inline-flex !important; vertical-align: -4px; margin-right: 6px; color: #14294E; }
.fn-ic svg { width: 18px; height: 18px; }
.fn-note { display: inline !important; color: #4b5468; font-weight: 400; }
.points-table tbody tr:last-child td { border-bottom: 0; }
.points-table td.cell-free { color: #1D4FA3; font-weight: 700; }
.billing-rules-member-wrap { margin-top: 10px; padding-top: 0; border-top: 0; }
.billing-rules-list.member-billing-rules { list-style: none; padding-left: 0; font-size: 12px; }
.billing-rules-list.member-billing-rules li { padding-left: 20px; background: no-repeat 0 3px / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6678' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }

/* 我邀请的人：三个数一排带分隔线、浅金底奖励提示、链接框 + 复制 + 二维码海报一行 */
.invite-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 0; margin: 4px 0 14px; }
.invite-stats > div + div { border-left: 1px solid #E5E9F0; }
.invite-stats .num { font-size: 24px; color: #14294E; }
.invite-stats .lbl { font-size: 13px; color: #4b5468; white-space: nowrap; }
.referral-commission-summary { background: #FBF3E3; border: 1px solid #F1E0BC; font-size: 13px; padding: 10px 12px 10px 44px; position: relative; word-break: keep-all; overflow-wrap: break-word; }
.referral-commission-summary::before { content: ""; position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8893A' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='5' rx='1'/%3E%3Cpath d='M5 13v8h14v-8M12 8v13M12 8c-1.5-3-5-3.5-5-1s5 1 5 1zM12 8c1.5-3 5-3.5 5-1s-5 1-5 1z'/%3E%3C/svg%3E"); }
.referral-commission-summary strong { color: #B8893A; font-size: 17px; }
.invite-code-box { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; background: none; padding: 0; align-items: center; }
.invite-code-box > div:first-child, .invite-code-box .hh-inline { display: contents !important; }
.invite-code-box .lbl { grid-column: 1 / -1; font-size: 15px; font-weight: 700; color: #14294E; white-space: nowrap; }
.invite-code { grid-column: 1; font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #D9DEE8; border-radius: 10px; padding: 9px 10px 9px 32px; background: #fff no-repeat 10px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314294E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.invite-code-box .btn { width: auto; padding: 9px 12px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
#copy-invite { grid-column: 2; background: #fff; color: #14294E; box-shadow: inset 0 0 0 1px #14294E; }
#poster-btn { grid-column: 3; background: #14294E; color: #fff; box-shadow: none; }
.invite-code-box .footnote { grid-column: 1 / -1; grid-row: 3; font-size: 12px; margin: 0 !important; }
.hh-form label { font-size: 14px; color: #1d2433; font-weight: 600; word-break: keep-all; overflow-wrap: break-word; }
#invitees-btn { font-weight: 600; }
#invitees-btn::after, #member-tag::after { content: " ›"; }

/* 我的会员：标题带皇冠，大按钮 */
#member .btn-navy { padding: 14px 0; font-size: 16px; border-radius: 12px; gap: 8px; background: linear-gradient(180deg, #1D3A6B, #14294E); }
#member .btn-navy .m-ic { color: #D4A955; }
#member .expiry-placeholder { font-size: 13px; color: #4b5468; }

@media (max-width: 900px) {
  /* 页头：一行小的 */
  .site-header { flex-direction: row !important; align-items: center !important; flex-wrap: wrap; gap: 8px 12px !important; padding: 12px 16px 8px !important; }
  .site-header .brand img.emblem { height: 30px; }
  .site-header .brand img.wordmark { height: 22px; }
  .site-nav { width: 100%; flex-wrap: nowrap !important; gap: 20px !important; font-size: 14px; }
  .site-nav a { white-space: nowrap; }
}
/* 小程序里不要官网导航：去标志和「官网首页」，「会员方案 | 会员中心」两格切换（跟参考稿一样） */
html.hh-mp .site-header .brand, html.hh-mp .site-nav a[href="/"] { display: none !important; }
html.hh-mp .site-header { padding: 10px 12px 12px !important; }
html.hh-mp .site-nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; background: #E6ECF5; border-radius: 999px; padding: 3px; }
html.hh-mp .site-nav a { text-align: center; padding: 8px 0 !important; border-radius: 999px; font-size: 15px; color: #14294E !important; font-weight: 600; }
html.hh-mp .site-nav a.active { background: #14294E; color: #fff !important; }

/* 工作后台入口（官网 v48，只管理员在小程序里看得到） */
.admin-entry .ae-row{display:flex;align-items:center;gap:12px}
.admin-entry .ae-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#EEF1F7;color:#14294E}
.admin-entry .ae-txt{flex:1;min-width:0}
.admin-entry .card-title{margin:0;font-size:17px}
.admin-entry p{margin:2px 0 0;font-size:13px;line-height:1.5;color:#6E7586}
.admin-entry .ae-row .btn{flex:none;width:auto!important;min-width:0;margin:0;padding:8px 20px;white-space:nowrap}

/* 小程序里邀请两个原生按钮（l40 分享推广）：整宽、上下排、点按 ≥ 46 */
.invite-code-box.invite-mp { display: block; }
.invite-code-box.invite-mp > .invite-mp-btns { display: flex !important; flex-direction: column; gap: 12px; } /* 手机排法里 .invite-code-box > div:first-child 是 display: contents !important，这里要压过 */
.invite-mp-btns .btn { width: 100%; min-height: 46px; font-size: 16px; }
.invite-code-box.invite-mp .footnote { font-size: 14px; line-height: 1.5; }
