/* ============================================================================
 * 星河陪玩 · 登录 / 注册 / 会员中心 (account.css)
 * 依赖 companion.css 的设计变量（--brand / --ink / --card 等）
 * ========================================================================== */

/* ---------- 账号页通用 ---------- */
.ac-page { min-height: calc(100vh - var(--head-h)); display: flex; align-items: center; justify-content: center;
  padding: 48px 20px; background: linear-gradient(160deg, #f5f6fb 0%, #eef0fb 100%); }
.ac-split { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; max-width: 1000px;
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-l);
  border: 1px solid var(--line); }
.ac-brand { position: relative; color: #fff; background: var(--grad-hero); padding: 48px 42px; overflow: hidden; }
.ac-brand::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 80% 0%, rgba(124,92,252,.55), transparent 60%),
              radial-gradient(360px 220px at 0% 100%, rgba(63,140,255,.42), transparent 60%); }
.ac-brand .ac-binner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.ac-brand .ac-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.ac-brand .ac-logo i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); font-size: 18px; }
.ac-brand h2 { font-size: 30px; line-height: 1.25; margin: 30px 0 14px; }
.ac-brand p { color: rgba(255,255,255,.82); margin: 0 0 8px; }
.ac-brand .ac-perks { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.ac-brand .ac-perks li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); list-style: none; }
.ac-brand .ac-perks i { color: var(--gold); }
.ac-formwrap { padding: 48px 42px; display: flex; flex-direction: column; justify-content: center; }
.ac-title { font-size: 24px; margin-bottom: 4px; }
.ac-sub { color: var(--muted); margin-bottom: 26px; }
.ac-sub a { color: var(--brand-ink); font-weight: 600; }

.ac-fld { margin-bottom: 16px; }
.ac-fld > label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.ac-input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 15px;
  font-family: inherit; outline: none; background: #fbfbfe; transition: border-color .15s, box-shadow .15s; }
.ac-input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(109,94,252,.12); }
.ac-eye { position: relative; }
.ac-eye .ac-eyebtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); cursor: pointer; }
.ac-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ac-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.ac-row a { color: var(--brand-ink); font-weight: 600; font-size: 14px; }
.ac-submit { width: 100%; padding: 14px; font-size: 16px; }
.ac-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.ac-divider::before, .ac-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ac-wechat { width: 100%; background: #07c160; color: #fff; border: 0; border-radius: 12px; padding: 13px; font-weight: 700;
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.ac-wechat:hover { background: #06ad56; }
.ac-msg { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.ac-msg.err { background: rgba(224,83,59,.1); color: #c33; }
.ac-msg.ok { background: rgba(33,192,139,.12); color: #178a63; }
.ac-errlist { background: rgba(224,83,59,.08); color: #c33; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.ac-errlist ul { margin: 6px 0 0; padding-left: 20px; }
.ac-tip { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 会员中心布局 ---------- */
.mc-wrap { max-width: var(--maxw); margin: 28px auto 0; padding: 0 20px; }
.mc-head { background: var(--grad-hero); color: #fff; border-radius: var(--radius); padding: 28px 30px; position: relative; overflow: hidden; }
.mc-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 88% 0%, rgba(124,92,252,.5), transparent 60%); }
.mc-head .mc-hinner { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; }
.mc-ava { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; flex: none; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px; border: 3px solid rgba(255,255,255,.25); }
.mc-ava img { width: 100%; height: 100%; object-fit: cover; }
.mc-head .mc-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mc-head .mc-meta { color: rgba(255,255,255,.82); margin-top: 4px; font-size: 14px; }
.mc-grade { font-size: 12px; font-weight: 800; color: #8a6d00; background: var(--grad-gold); padding: 3px 10px; border-radius: 999px; }
.mc-stats { display: flex; gap: 30px; margin-left: auto; flex-wrap: wrap; }
.mc-stats .s { text-align: center; }
.mc-stats .s .n { font-size: 22px; font-weight: 800; }
.mc-stats .s .l { font-size: 13px; color: rgba(255,255,255,.78); }

.mc-body { display: grid; grid-template-columns: 232px 1fr; gap: 22px; margin: 22px 0 30px; align-items: start; }
.mc-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 86px; }
.mc-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px; color: var(--ink-2);
  font-weight: 600; font-size: 14px; transition: .15s; }
.mc-nav a i { width: 20px; text-align: center; color: var(--muted); }
.mc-nav a:hover { background: #f5f6fb; color: var(--brand-ink); }
.mc-nav a.on { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 20px rgba(109,94,252,.28); }
.mc-nav a.on i { color: #fff; }
.mc-nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.mc-nav a.mc-out i { color: var(--accent); }

.mc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mc-card h3.mc-ct { font-size: 19px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.mc-card h3.mc-ct i { color: var(--brand); }
.mc-card .mc-ct-sub { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: auto; }

/* 会员中心通用组件 */
.mc-grid { display: grid; gap: 16px; }
.mc-row2 { grid-template-columns: 1fr 1fr; }
.mc-kpi { background: #f7f8fc; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; }
.mc-kpi .t { color: var(--muted); font-size: 13px; }
.mc-kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; }
.mc-kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.mc-fld { margin-bottom: 14px; }
.mc-fld > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--ink-2); }
.mc-input, .mc-textarea, .mc-select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  font-family: inherit; font-size: 14px; outline: none; background: #fbfbfe; color: var(--ink); }
.mc-textarea { resize: vertical; min-height: 84px; }
.mc-input:focus, .mc-textarea:focus, .mc-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(109,94,252,.12); }
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px;
  padding: 11px 20px; font-weight: 700; font-size: 14px; background: var(--grad-brand); color: #fff; transition: .18s; cursor: pointer; }
.mc-btn:hover { box-shadow: 0 12px 22px rgba(109,94,252,.3); }
.mc-btn--ghost { background: #fff; color: var(--brand-ink); border: 1px solid var(--line); }
.mc-btn--ghost:hover { border-color: var(--brand-2); }
.mc-btn--green { background: var(--green); }
.mc-btn--rose { background: var(--accent); }
.mc-btn--block { width: 100%; }
.mc-btn[disabled] { opacity: .55; cursor: not-allowed; }

.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.mc-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mc-table tr:hover td { background: #fafbff; }

.mc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mc-badge.emerald { background: rgba(33,192,139,.12); color: #16855f; }
.mc-badge.blue { background: rgba(63,140,255,.12); color: #2f6fd6; }
.mc-badge.rose { background: rgba(224,83,59,.12); color: #c33; }
.mc-badge.slate { background: #eef0f6; color: #6b7187; }
.mc-badge.accent { background: rgba(244,183,64,.16); color: #a9760b; }
.mc-badge.gold { background: var(--grad-gold); color: #8a6d00; }

.mc-empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.mc-empty .ic { font-size: 44px; color: #cfd3e2; margin-bottom: 12px; }
.mc-empty a.mc-btn { margin-top: 16px; }

.mc-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.mc-pager a, .mc-pager span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.mc-pager a:hover { border-color: var(--brand-2); color: var(--brand-ink); }
.mc-pager a.on { background: var(--grad-brand); color: #fff; border-color: transparent; }
.mc-pager span { opacity: .5; }

.mc-fav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mc-fav .mc-favit { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; align-items: center; }
.mc-fav .mc-favit .th { width: 64px; height: 64px; border-radius: 14px; flex: none; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; }
.mc-fav .mc-favit .th img { width: 100%; height: 100%; object-fit: cover; }
.mc-fav .mc-favit .t { font-weight: 700; }
.mc-fav .mc-favit .d { color: var(--muted); font-size: 13px; margin-top: 3px; }

.mc-coupon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mc-coupon .cpn { position: relative; display: flex; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.mc-coupon .cpn .amt { width: 116px; flex: none; background: var(--grad-brand); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px 8px; }
.mc-coupon .cpn .amt .v { font-size: 28px; font-weight: 800; }
.mc-coupon .cpn .amt .c { font-size: 12px; opacity: .9; }
.mc-coupon .cpn .info { flex: 1; padding: 14px 16px; }
.mc-coupon .cpn .info .tt { font-weight: 700; }
.mc-coupon .cpn .info .cd { color: var(--muted); font-size: 13px; margin-top: 4px; }

.mc-notif { border-bottom: 1px solid var(--line); padding: 16px 0; }
.mc-notif:last-child { border-bottom: 0; }
.mc-notif .nt-hd { display: flex; align-items: center; gap: 10px; }
.mc-notif .nt-hd .nm { font-weight: 700; }
.mc-notif .nt-hd .tm { color: var(--muted); font-size: 12px; margin-left: auto; }
.mc-notif .nt-ct { color: var(--ink-2); margin-top: 6px; }

.mc-pts { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mc-pts:last-child { border-bottom: 0; }
.mc-pts .rs { color: var(--ink-2); }
.mc-pts .tm { color: var(--muted); font-size: 12px; }
.mc-pts .am { font-weight: 800; }

.mc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 460px; }
.mc-cal .dow { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; padding-bottom: 4px; }
.mc-cal .day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent; background: #f7f8fc; position: relative; }
.mc-cal .day.empty { background: transparent; }
.mc-cal .day.checked { background: rgba(109,94,252,.14); color: var(--brand-ink); font-weight: 800; }
.mc-cal .day.today { border-color: var(--brand-2); }
.mc-cal .day.future { color: #c3c7d4; background: #fbfbfe; }
.mc-cal .day.checked::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.mc-recharge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mc-recharge .rc { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 16px; text-align: center; cursor: pointer; transition: .15s; }
.mc-recharge .rc:hover { border-color: var(--brand-2); }
.mc-recharge .rc.on { border-color: var(--brand); background: rgba(109,94,252,.06); }
.mc-recharge .rc .pv { font-size: 22px; font-weight: 800; }
.mc-recharge .rc .pp { color: var(--accent); font-weight: 700; margin-top: 4px; }

/* 轻提示 toast（会员中心子页通用） */
.cp-toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%) translateY(-12px); z-index: 9999;
  background: rgba(20,22,34,.92); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: .28s; box-shadow: 0 12px 30px rgba(0,0,0,.25); pointer-events: none; }
.cp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cp-toast.err { background: rgba(224,83,59,.95); }
.cp-toast.ok  { background: rgba(33,192,139,.95); }

@media (max-width: 860px) {
  .ac-split { grid-template-columns: 1fr; }
  .ac-brand { display: none; }
  .mc-body { grid-template-columns: 1fr; }
  .mc-side { position: static; }
  .mc-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .mc-nav a { flex: 1 1 auto; }
  .mc-nav .sep { display: none; }
  .mc-row2, .mc-fav, .mc-coupon, .mc-recharge { grid-template-columns: 1fr; }
  .mc-stats { width: 100%; margin-left: 0; margin-top: 16px; gap: 22px; }
}
