/* 账号体系页面共用样式（注册 / 登录 / 账号中心 / 管理后台） */

/* ── 卡片容器 ── */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
}
.auth-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 700;
}
.auth-card .sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ── 表单字段 ── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .hint {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-left: 6px;
}
.field input {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: .18s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, .1);
}
.field input::placeholder { color: #b6bdc9; }
.field input:disabled { background: var(--bg-soft); color: var(--ink-mute); }

.btn-full {
  width: 100%;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: .18s;
  font-family: inherit;
}
.btn-full:hover:not(:disabled) { background: #28603f; }
.btn-full:disabled { background: #c9d3cd; cursor: not-allowed; }

/* ── 消息 ── */
.msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid;
  display: none;
}
.msg.show { display: block; }
.msg.err { background: #fdf0ef; border-color: #f0c4bf; color: #8a2f26; }
.msg.ok { background: var(--accent-soft); border-color: #b9d6c4; color: #22603f; }
.msg.info { background: #eef4f8; border-color: #c9dce8; color: #2d5d78; }

.alt-link {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}
.alt-link a { color: var(--accent); font-weight: 600; }

/* ── 账号中心 ── */
.ac-wrap { max-width: 880px; margin: 0 auto; }

.ac-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.ac-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  flex: 0 0 56px;
}
.ac-ident { flex: 1; min-width: 180px; }
.ac-ident .name { font-size: 17px; font-weight: 700; word-break: break-all; }
.ac-ident .meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }

.ac-balance { text-align: right; }
.ac-balance .num {
  font-size: 30px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ac-balance .lbl { font-size: 12px; color: var(--ink-mute); }

/* 分栏 */
.ac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.panel h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel .desc { font-size: 12.5px; color: var(--ink-mute); line-height: 1.65; margin-bottom: 14px; }

/* 充值 */
.redeem-row { display: flex; gap: 10px; }
.redeem-row input {
  flex: 1;
  padding: 11px 13px;
  font-size: 14px;
  font-family: ui-monospace, Consolas, monospace;
  border: 1px solid var(--line);
  border-radius: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.redeem-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, .1);
}
.btn-sm {
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-sm:hover:not(:disabled) { background: #28603f; }
.btn-sm:disabled { background: #c9d3cd; cursor: not-allowed; }

/* 邀请 */
.invite-code-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.invite-code-box .lbl { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 5px; }
.invite-code-box .code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  word-break: break-all;
}
.invite-link-row { display: flex; gap: 8px; margin-top: 10px; }
.invite-link-row input {
  flex: 1;
  padding: 9px 11px;
  font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
}
.btn-copy-sm {
  padding: 9px 16px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-copy-sm:hover { border-color: var(--accent); color: var(--accent); }

.invite-stat-row {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.invite-stat-row .k { color: var(--ink-mute); font-size: 12px; }
.invite-stat-row .v { font-weight: 700; color: var(--ink); font-size: 15px; }

/* 流水表 */
.ledger-box { overflow-x: auto; }
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ledger th {
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ledger td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f2f6;
  color: var(--ink-soft);
  vertical-align: top;
}
.ledger td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td.plus { color: var(--accent); font-weight: 600; }
.ledger td.minus { color: #8a2f26; font-weight: 600; }
.ledger tr:last-child td { border-bottom: none; }
.ledger .empty-row td { color: var(--ink-mute); text-align: center; padding: 22px 10px; }

/* 徽标 */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-mute);
  border: 1px solid var(--line);
}
.pill.ok { background: var(--accent-soft); color: var(--accent); border-color: #b9d6c4; }

/* 退出 */
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ── 管理后台 ── */
.adm-wrap { max-width: 1000px; margin: 0 auto; }
.adm-codes {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.9;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 12px;
  display: none;
}
.adm-codes.show { display: block; }

/* 导航里的账号入口 */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-bottom: none !important;
}
.nav-account:hover { background: #dcece3; }


/* 生成记录全文查看 */
.gen-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gen-tabs button { font-family: inherit; }

/* 响应式 */
@media (max-width: 760px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-hero { flex-direction: column; align-items: flex-start; }
  .ac-balance { text-align: left; }
  .redeem-row { flex-direction: column; }
  .auth-card { padding: 24px 20px; }
}
