/* ── 「我的账号」弹窗 — 整合账号 + 打卡 + 续费 + 联系我们 ── */

.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-avatar-icon 的占位小人） */
.acm-avatar-icon img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  display: none;
}
.acm-avatar-icon img.show { display: block; }
.acm-nick { font-size: 14px; font-weight: 600; color: #e8e4d8; }
.acm-auth-btn {
  margin-top: 14px; padding: 7px 20px;
  border-radius: 999px; border: 1px solid rgba(201,164,75,0.45);
  background: rgba(255,255,255,0.06); color: #e2c170;
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.acm-auth-btn:hover { background: rgba(201,164,75,0.18); border-color: rgba(201,164,75,0.7); }

/* 滚动主体 */
.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: 240px; max-width: 100%; padding: 10px 14px; border-radius: 999px;
  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__input:focus { border-color: rgba(201,164,75,0.6); }
.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; }
}

/* ═══ 学习数据大屏（信息图）═══ */
.acm-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.acm-metric {
  background: linear-gradient(160deg, #faf8f5 0%, #ffffff 100%);
  border: 1px solid rgba(201,164,75,0.18);
  border-radius: 14px; padding: 14px 6px 12px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.acm-metric__label { font-size: 12px; font-weight: 700; color: #1a1a2e; margin-top: 6px; }
.acm-metric__sub { font-size: 10px; color: #94a3b8; margin-top: 2px; line-height: 1.4; }
.acm-metric__big { display: flex; align-items: baseline; gap: 3px; height: 40px; }
.acm-metric__big b {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 30px; font-weight: 800; color: #1a1a2e; line-height: 1;
}
.acm-metric__big span { font-size: 11px; color: #94a3b8; font-weight: 600; }
.acm-metric__big--grad b { color: #c9a44b; }
.acm-metric__totalsub { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.acm-metric__bar { width: 82%; height: 5px; border-radius: 3px; background: #f0efe9; overflow: hidden; margin: 8px 0 2px; }
.acm-metric__bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #c9a44b, #e2c170);
  border-radius: 3px; transition: width .8s ease;
}
/* 陪伴天数环形 */
.acm-ring { position: relative; width: 88px; height: 88px; }
.acm-ring svg { width: 88px; height: 88px; }
.acm-ring__bg { fill: none; stroke: rgba(201,164,75,0.15); stroke-width: 6; }
.acm-ring__fg {
  fill: none; stroke: #c9a44b; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 238.76; stroke-dashoffset: 238.76;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s ease;
}
.acm-ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.acm-ring__num b { font-family: 'Source Serif 4', 'Georgia', serif; font-size: 26px; font-weight: 800; color: #1a1a2e; line-height: 1; }
.acm-ring__num span { font-size: 10px; color: #94a3b8; margin-top: 2px; }

/* ═══ PUVIC通行证 · 增加时长（对标首页 .hero-search__btn 黑胶囊）═══ */
.acm-renew__btnrow { display: flex; justify-content: center; margin-top: 12px; }
.acm-pass-btn {
  padding: 0 30px; height: 44px; border: none; border-radius: 9999px;
  background: #1a1a1a; color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; white-space: nowrap; font-family: inherit;
  box-shadow: 0 0 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.acm-pass-btn:hover { transform: scale(1.05); background: #000; box-shadow: 0 0 20px rgba(0,0,0,0.3); }

/* ═══ 宣发合作 ═══ */
.acm-agent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #faf8f5; border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer; transition: background .2s, transform .15s;
}
.acm-agent-row:hover { background: #f3f1ec; transform: translateY(-1px); }
.acm-agent-row__name { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.acm-agent-row__label { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.acm-agent-row__arrow { font-size: 22px; color: #c7c7cc; line-height: 1; }

/* ═══ 更多关注 · 横排微缩导航 ═══ */
.acm-mininav { display: flex; gap: 6px; }
.acm-mininav__item {
  flex: 1 1 0; min-width: 0; padding: 9px 4px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1); background: #fff; color: #555;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s; font-family: inherit;
}
.acm-mininav__item:hover { border-color: rgba(0,0,0,0.3); }
.acm-mininav__item.is-active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; box-shadow: 0 0 12px rgba(0,0,0,0.18); }

/* 漂浮卡（对标首页四卡漂浮） */
.acm-floatcard {
  margin-top: 14px; min-height: 210px; padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #faf8f5 100%);
  border: 1px solid rgba(201,164,75,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  animation: acmFloat 5s ease-in-out infinite;
}
@keyframes acmFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}
.acm-floatcard__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: acmCardIn .4s ease; }
@keyframes acmCardIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.acm-floatcard__img { width: 172px; height: 172px; object-fit: contain; border-radius: 12px; }
.acm-floatcard__text {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 20px; font-weight: 700; color: #1a1a2e;
  text-decoration: none; text-align: center; word-break: break-all; line-height: 1.4;
}
a.acm-floatcard__text:hover { color: #c9a44b; }
.acm-floatcard__cap { font-size: 11px; color: #94a3b8; }

/* ═══ 企业微信引导浮层 ═══ */
.acm-wx-overlay {
  display: none; position: fixed; inset: 0; z-index: 100002;
  background: rgba(10,10,20,0.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.acm-wx-overlay.open { display: flex; }
.acm-wx-box {
  position: relative; background: #fff; border-radius: 20px;
  max-width: 340px; width: 90%; padding: 30px 24px 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.acm-wx-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 50%; background: rgba(0,0,0,0.08); color: #1a1a1a;
  font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s;
}
.acm-wx-close:hover { background: rgba(0,0,0,0.16); }
.acm-wx-title { font-family: 'Source Serif 4', 'Georgia', serif; font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; }
.acm-wx-qr { width: 190px; height: 190px; border-radius: 14px; border: 1px solid rgba(201,164,75,0.25); object-fit: contain; }
.acm-wx-steps { margin-top: 16px; text-align: left; }
.acm-wx-steps p { font-size: 12.5px; color: #555; line-height: 1.9; margin: 0; }

@media (max-width: 400px) {
  .acm-dash { gap: 6px; }
  .acm-metric { padding: 12px 4px 10px; border-radius: 12px; }
  .acm-ring, .acm-ring svg { width: 72px; height: 72px; }
  .acm-ring__bg, .acm-ring__fg { stroke-width: 5; }
  .acm-ring__num b { font-size: 21px; }
  .acm-metric__big b { font-size: 24px; }
  .acm-metric__label { font-size: 11px; }
  .acm-mininav__item { font-size: 11px; padding: 8px 2px; }
  .acm-floatcard__img { width: 150px; height: 150px; }
}
