/* 个人中心（/account.html）—— 与兑换/商城页同一套卡片质感，内容按本站功能自写 */
.ac-main { padding: 48px 0 80px; }
.ac-wrap { max-width: 920px; }
.ac-wrap > h1 { margin: 8px 0 6px; font-size: 32px; font-weight: 800; color: #20252c; }
.ac-lead { margin: 0 0 26px; font-size: 13px; color: #7b8494; }
.ac-card {
  box-sizing: border-box; margin-bottom: 16px; padding: 20px 22px;
  background: #fff; border: 1px solid #e8eaf0; border-radius: 14px;
  box-shadow: 0 6px 22px rgba(24, 32, 72, .04);
}
.ac-card h2 { margin: 0; font-size: 15px; font-weight: 800; color: #20252c; }
.ac-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ac-ghost {
  border: 0; background: transparent; color: #2f5cff;
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.ac-ghost:hover { text-decoration: underline; }

/* 未登录 */
.ac-login { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 46px 22px; }
.ac-login-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #f5f7ff; color: #2f5cff;
}
.ac-login h2 { font-size: 18px; }
.ac-login p { margin: 0 0 8px; font-size: 12px; line-height: 1.8; color: #7b8494; }
.ac-link { font-size: 11.5px; color: #9aa3b2; }

/* 账户资料 */
.ac-profile { display: flex; align-items: center; gap: 16px; }
.ac-ava {
  flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f5cff, #7c5cff); color: #fff;
  font-size: 22px; font-weight: 800;
}
.ac-profile-main { flex: 1; min-width: 0; }
.ac-email { font-size: 16px; font-weight: 800; color: #20252c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sub { margin-top: 4px; font-size: 11.5px; color: #7b8494; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ac-chip { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f5f7ff; color: #2f5cff; }
.ac-chip.ok { background: #eafaf1; color: #0a8a5b; }
.ac-chip.warn { background: #fff4e5; color: #b45309; }
.ac-profile-side { flex: none; text-align: right; display: grid; gap: 4px; }
.ac-profile-side span { font-size: 10.5px; color: #9aa3b2; }
.ac-profile-side b { font-size: 12px; color: #4b5563; }

/* 积分三栏 */
.ac-credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ac-credit-item {
  padding: 14px 16px; border-radius: 11px; border: 1px solid #e8eaf0; background: #fafbff;
}
.ac-credit-item span { display: block; font-size: 11px; color: #7b8494; }
.ac-credit-item b { display: block; margin-top: 5px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: #20252c; }
.ac-credit-item.total b { color: #2f5cff; }
.ac-credit-item.perm b { color: #0a8a5b; }
.ac-credit-item.act b { color: #e07b1a; }
.ac-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 页内积分库存明细 */
.ac-stock { margin-top: 16px; padding-top: 6px; border-top: 1px solid #eef0f7; }
.ac-stock[hidden] { display: none; }
.ac-stock-group { padding: 13px 0; border-bottom: 1px solid #eef0f7; }
.ac-stock-group:last-child { border-bottom: 0; }
.ac-stock-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: #20252c; }
.ac-stock-top span { font-size: 10.5px; font-weight: 400; color: #7b8494; }
.ac-stock-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 8px; font-size: 10.5px; color: #9aa3b2; }
.ac-stock-bar { height: 6px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.ac-stock-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f5cff, #6b8cff); }
.ac-stock-group.bonus .ac-stock-bar i { background: linear-gradient(90deg, #0a8a5b, #34c98a); }
.ac-stock-group.activity .ac-stock-bar i { background: linear-gradient(90deg, #e07b1a, #ffb13d); }
.ac-stock-bks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ac-stock-bk { font-size: 10px; padding: 3px 7px; border: 1px solid #e8eaf0; border-radius: 5px; color: #6b7691; background: #fafbff; }

/* 兑换码 / 订单列表 */
.ac-list { display: grid; gap: 8px; }
.ac-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid #eef0f7; border-radius: 10px; background: #fafbff;
}
.ac-row-main { min-width: 0; }
.ac-row-main b { display: block; font-size: 12.5px; color: #20252c; }
.ac-row-main span { display: block; margin-top: 3px; font-size: 10.5px; color: #9aa3b2; }
.ac-row-side { flex: none; text-align: right; }
.ac-row-side b { display: block; font-size: 13px; color: #2f5cff; }
.ac-row-side span { display: block; margin-top: 3px; font-size: 10px; color: #9aa3b2; }
.ac-empty { padding: 22px; text-align: center; font-size: 12px; color: #9aa3b2; border: 1px dashed #e3e8f5; border-radius: 10px; }
.ac-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }
.ac-badge.ok { background: #eafaf1; color: #0a8a5b; }
.ac-badge.wait { background: #fff4e5; color: #b45309; }
.ac-badge.mute { background: #f1f3f8; color: #7b8494; }

/* 扫码登录弹窗 */
.ac-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.ac-modal[hidden] { display: none !important; }
.ac-modal-mask { position: absolute; inset: 0; background: rgba(18, 22, 40, .5); backdrop-filter: blur(2px); }
.ac-modal-card {
  position: relative; z-index: 1; box-sizing: border-box;
  width: min(390px, calc(100vw - 32px)); padding: 26px 26px 20px;
  background: #fff; border-radius: 16px; text-align: center;
  box-shadow: 0 24px 64px rgba(18, 22, 40, .24);
}
.ac-modal-x {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 7px; background: transparent; color: #9aa3b2;
  font-size: 21px; line-height: 1; cursor: pointer;
}
.ac-modal-x:hover { background: #fef2f2; color: #ef4444; }
.ac-modal-kicker { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: #2f5cff; }
.ac-modal-card h3 { margin: 8px 0; font-size: 20px; font-weight: 800; color: #20252c; }
.ac-modal-sub { margin: 0 0 16px; font-size: 12px; line-height: 1.8; color: #7b8494; }
.ac-qr-box {
  width: 210px; height: 210px; margin: 0 auto; box-sizing: border-box;
  display: grid; place-items: center; gap: 8px; align-content: center;
  border: 1px solid #e8eaf0; border-radius: 12px; background: #fafbff; overflow: hidden;
}
.ac-qr-box img { width: 200px; height: 200px; object-fit: contain; }
.ac-qr-loading { font-size: 12px; line-height: 1.7; color: #9aa3b2; padding: 0 10px; }
.ac-qr-retry {
  border: 0; border-radius: 7px; padding: 6px 14px; cursor: pointer;
  background: #2f5cff; color: #fff; font: inherit; font-size: 11px; font-weight: 700;
}
.ac-qr-tip { margin: 12px 0 0; font-size: 11.5px; color: #7b8494; }
.ac-qr-err { margin: 6px 0 0; min-height: 16px; font-size: 11.5px; color: #d64545; }
.ac-modal-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

@media (max-width: 700px) {
  .ac-main { padding: 32px 0 60px; }
  .ac-wrap > h1 { font-size: 26px; }
  .ac-profile { flex-wrap: wrap; }
  .ac-profile-side { width: 100%; text-align: left; }
  .ac-credit-grid { grid-template-columns: 1fr 1fr; }
  .ac-credit-item.total { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .ac-card { padding: 16px 14px; }
  .ac-modal-card { padding: 22px 18px 16px; }
  .ac-qr-box { width: 190px; height: 190px; }
  .ac-qr-box img { width: 180px; height: 180px; }
}
