/* ── 「我的账号」弹窗 — 整合账号 + 打卡 + 续费 + 联系我们 ── */

.acm-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 100001;
  background: rgba(10,10,20,.78);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.acm-overlay.open { display: flex; }

.acm-box {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  overflow: hidden;
  max-width: 460px; width: 94%;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.1), 0 32px 80px rgba(0,0,0,0.08);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  user-select: none; cursor: default;
}

/* 关闭按钮 */
.acm-close {
  position: absolute; top: 14px; right: 14px; z-index: 20;
  width: 28px; height: 28px; padding: 0; margin: 0;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.25); color: #fff;
  font-size: 18px; font-weight: 500; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.acm-close:hover { background: rgba(0,0,0,0.45); transform: scale(1.08); }

/* 头部：账号信息 */
.acm-header {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f172a 100%);
  padding: 30px 24px 24px;
  display: flex; flex-direction: column; align-items: center;
  border-bottom: 1px solid rgba(201,164,75,0.15);
}
.acm-avatar-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(201,164,75,0.55);
  position: relative; overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.acm-avatar-icon::before {
  content: '';
  position: absolute; left: 50%; top: 17px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #e8e4d8; transform: translateX(-50%);
}
.acm-avatar-icon::after {
  content: '';
  position: absolute; left: 50%; bottom: -12px;
  width: 42px; height: 26px; border-radius: 21px 21px 0 0;
  background: #e8e4d8; transform: translateX(-50%);
}
.acm-id {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #d4a853, #f0d68a 30%, #c9a44b 50%, #e8cc7a 70%, #b8922e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.acm-stars { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
.acm-star { font-size: 18px; }
.acm-expiry { font-size: 12px; margin-top: 8px; color: #94a3b8; }
.acm-rank { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.acm-rank b { color: #e2c170; font-size: 15px; }

/* 滚动主体 */
.acm-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.acm-scroll::-webkit-scrollbar { display: none; }

/* 区块 */
.acm-sec { padding: 18px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.acm-sec--last { border-bottom: none; }
.acm-sec__title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  color: #94a3b8; margin-bottom: 14px; text-transform: uppercase;
}

/* 打卡区 */
.acm-streak {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(22,33,62,0.02));
  margin-bottom: 14px;
}
.acm-streak__cal { position: relative; width: 56px; height: 62px; flex-shrink: 0; }
.acm-streak__cal-top {
  position: absolute; top: 0; left: 6px; right: 6px; height: 10px;
  background: #c9a44b; border-radius: 4px 4px 0 0;
}
.acm-streak__cal-body {
  position: absolute; top: 10px; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 0 0 10px 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.acm-streak__num {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 30px; font-weight: 800; color: #1a1a1a; line-height: 1;
}
.acm-streak__text { flex: 1; min-width: 0; }
.acm-streak__title {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px;
}
.acm-streak__sub { font-size: 12px; color: #94a3b8; line-height: 1.5; }

/* 今日学习 4 格 */
.acm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.acm-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px; border-radius: 10px;
  background: #faf8f5; border: 1px solid rgba(0,0,0,0.04);
}
.acm-stat__icon { font-size: 18px; margin-bottom: 4px; }
.acm-stat__val {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.2;
}
.acm-stat__label { font-size: 10px; color: #94a3b8; margin-top: 2px; }

/* 积分明细 */
.acm-pts { margin-bottom: 4px; }
.acm-pts__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13px; color: #555;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.acm-pts__row span:last-child {
  font-weight: 600; color: #1a1a1a;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.acm-pts__row--total {
  margin-top: 4px; padding-top: 10px;
  border-top: 2px solid rgba(0,0,0,0.08); border-bottom: none;
}
.acm-pts__row--total span { font-size: 14px; font-weight: 700; color: #c9a44b; }
.acm-pts__row--total span:last-child { font-size: 16px; color: #c9a44b; }

/* 里程碑 */
.acm-milestone {
  margin-top: 10px; padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,164,75,0.12), rgba(245,158,11,0.08));
  border: 1px solid rgba(201,164,75,0.25);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #b45309; font-weight: 600;
}

/* 续费区 */
.acm-progress { margin-bottom: 14px; }
.acm-progress__track {
  height: 6px; background: #f0efe9; border-radius: 3px;
  overflow: hidden; border: 1px solid rgba(201,164,75,0.1);
}
.acm-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a44b, #e2c170, #c9a44b);
  border-radius: 3px; width: 0%; transition: width .6s;
}
.acm-progress__text { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 8px; }
.acm-progress__text b { color: #b8922e; font-size: 16px; }

.acm-renew__label { text-align: center; font-size: 12px; color: #94a3b8; margin-bottom: 10px; }
.acm-renew__qr {
  width: 120px; height: 120px; border-radius: 12px;
  border: 1px solid rgba(201,164,75,0.2);
}
.acm-renew__promo { text-align: center; font-size: 11px; color: #94a3b8; margin-top: 8px; }
.acm-renew__row { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; }
.acm-renew__input {
  width: 160px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(201,164,75,0.25);
  background: #faf8f5; color: #1a1a1a;
  font-size: 13px; text-align: center; outline: none; font-family: inherit;
}
.acm-renew__btn {
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid rgba(201,164,75,0.35);
  background: linear-gradient(135deg, #c9a44b, #e2c170);
  color: #1a1a1a; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.acm-renew__msg { font-size: 11px; margin-top: 6px; min-height: 15px; text-align: center; }
.acm-renew__expiry { font-size: 11px; margin-top: 2px; min-height: 16px; text-align: center; font-weight: 500; }

/* 推广代理 */
.acm-agent {
  padding: 14px 16px; border-radius: 10px;
  background: #faf8f5; border: 1px solid rgba(0,0,0,0.04);
  font-size: 13px; color: #666; line-height: 1.6;
}

/* 联系我们 */
.acm-ch { display: grid; grid-template-columns: 1fr 1fr; }
.acm-ch__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.acm-ch__item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.04); }
.acm-ch__item:nth-last-child(-n+2) { border-bottom: none; }
.acm-ch__icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: #f8f7f4;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.acm-ch__body { flex: 1; min-width: 0; }
.acm-ch__name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.acm-ch__label { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* 响应式 */
@media (max-width: 400px) {
  .acm-header { padding: 24px 18px 20px; }
  .acm-avatar-icon { width: 60px; height: 60px; }
  .acm-avatar-icon::before { top: 14px; width: 18px; height: 18px; }
  .acm-avatar-icon::after { bottom: -10px; width: 34px; height: 22px; }
  .acm-id { font-size: 20px; }
  .acm-sec { padding: 14px 18px; }
  .acm-streak__cal { width: 48px; height: 52px; }
  .acm-streak__num { font-size: 24px; }
  .acm-ch__item { padding: 10px 10px; gap: 10px; }
  .acm-ch__icon { width: 34px; height: 34px; font-size: 17px; }
}
