/* ===== 账号管理页（account.html） ===== */
.ac-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e8e8ef);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ac-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ac-head > b { font-size: 15px; }
.ac-hint { font-size: 12px; color: var(--faint, #98a2b3); }
.ac-link { font-size: 13px; color: var(--brand, #635bff); text-decoration: none; }
.ac-link:hover { text-decoration: underline; }

/* 账号概览 */
.ac-profile { display: flex; align-items: center; gap: 14px; }
.ac-av {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, #635bff, #8b5cf6);
  overflow: hidden;
}
.ac-av img { width: 100%; height: 100%; object-fit: cover; }
.ac-idbox { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ac-idbox b { font-size: 16px; }
.ac-idbox span { font-size: 12px; color: var(--faint, #98a2b3); }
.ac-credit {
  display: flex; align-items: baseline; gap: 4px;
  padding: 6px 12px; border-radius: 10px;
  background: var(--soft, #f6f6fb);
}
.ac-credit > span { font-size: 14px; }
/* 2026-10-02 晚：💎 emoji → 线条「图豆」图标（与顶栏胶囊同款） */
.ac-credit > span.ac-credit-ico { display: inline-flex; align-self: center; color: var(--brand, #635bff); }
.ac-credit b { font-size: 18px; color: var(--brand, #635bff); }
.ac-credit small { font-size: 12px; color: var(--faint, #98a2b3); }

/* 登录方式行 */
.ac-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #eef0f4);
}
/* 🔴 必须显式声明：本类自带 display:flex，会盖掉 [hidden] 的浏览器默认 display:none */
.ac-row[hidden] { display: none !important; }
.ac-row:last-of-type { border-bottom: none; }
.ac-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.ac-ico-phone { background: #eef2ff; color: #4f46e5; }
.ac-ico-wx { background: #e8f8ee; color: #07c160; }
.ac-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ac-info b { font-size: 14px; }
.ac-info span { font-size: 12.5px; color: var(--faint, #98a2b3); }
.ac-info span.bound { color: var(--text, #1f2430); font-weight: 500; }

.ac-act { flex: 0 0 auto; }
/* 「当前登录」小标签（账号类型行右侧，无操作按钮） */
.ac-tag {
  display: inline-block; height: 26px; line-height: 26px; padding: 0 11px;
  border-radius: 8px; font-size: 12px; white-space: nowrap;
  background: #eef2ff; color: #4f46e5;
}
/* 历史手机号账号标签（手机号登录已下线，老账号显示「待迁移」） */
.ac-tag-warn { background: #fff4e5; color: #b25e09; }

.ac-tip {
  margin-top: 12px; padding: 10px 12px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.6;
  background: #fff8e6; color: #8a6d1f; border: 1px solid #f5e3b3;
}
/* 中性说明（非警告） */
.ac-tip-info {
  background: var(--soft, #f6f6fb); color: var(--faint, #6b7280);
  border-color: var(--line, #e8e8ef);
}
.ac-tip-info strong { color: var(--text, #1f2430); font-weight: 600; }

/* 图豆流水 */
.ac-ledger { display: flex; flex-direction: column; }
.ac-led {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line, #eef0f4);
}
.ac-led:last-child { border-bottom: none; }
.ac-led-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-led-main b { font-size: 13.5px; font-weight: 500; }
.ac-led-main small { font-size: 11.5px; color: var(--faint, #98a2b3); }
.ac-led-num { font-size: 14px; font-weight: 600; color: #12a150; }
.ac-led-num.minus { color: #e5484d; }
.ac-empty { padding: 22px 0; text-align: center; font-size: 13px; color: var(--faint, #98a2b3); }

/* ===== 企业号 / 子账号（2026-09-30 新增） ===== */

/* 本页此前只在窄屏媒体查询里引用 .ac-btn，并没有定义基础样式 → 这里补上 */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--line, #e8e8ef); border-radius: 9px;
  background: var(--card, #fff); color: var(--text, #1f2430);
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: border-color .16s, color .16s, background .16s, filter .16s;
}
.ac-btn:hover { border-color: var(--brand, #635bff); color: var(--brand, #635bff); }
.ac-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ac-btn[disabled]:hover { border-color: var(--line, #e8e8ef); color: var(--text, #1f2430); }
.ac-btn-primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(120deg, #635bff, #8b5cf6);
}
.ac-btn-primary:hover { color: #fff; filter: brightness(1.06); }
.ent-danger:hover { border-color: #e5484d; color: #e5484d; }

/* 企业用户ID + 复制 */
.ent-hero {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px;
  background: var(--soft, #f6f6fb);
}
.ent-hero-l { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ent-hero-l span { font-size: 12.5px; color: var(--faint, #98a2b3); }
.ent-hero-l b {
  font-size: 24px; font-weight: 700; letter-spacing: 4px;
  color: var(--brand, #635bff); font-variant-numeric: tabular-nums;
}

/* 档位 / 上限 / 状态 / 用量 */
.ent-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-top: 12px;
}
.ent-meta > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line, #eef0f4);
}
.ent-meta span { font-size: 12px; color: var(--faint, #98a2b3); }
.ent-meta b { font-size: 14px; }
.ent-meta b.ok { color: #12a150; }
.ent-meta b.off { color: #e5484d; }

.ent-subhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 20px 0 10px;
}
.ent-subhead > b { font-size: 14px; }

.ent-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ent-form[hidden] { display: none; }
.ent-form input {
  height: 32px; padding: 0 11px; box-sizing: border-box;
  border: 1px solid var(--line, #e8e8ef); border-radius: 9px;
  background: var(--card, #fff); color: var(--text, #1f2430);
  font-family: inherit; font-size: 12.5px; outline: none;
}
.ent-form input:focus { border-color: var(--brand, #635bff); }
.ent-form input#entFormName { flex: 1; min-width: 150px; }
.ent-form input#entFormQuota { width: 190px; }

.ent-list { display: flex; flex-direction: column; }
.ent-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line, #eef0f4);
}
.ent-item:last-child { border-bottom: none; }
.ent-item-main { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 3px; }
.ent-item-main > b { font-size: 13.5px; }
.ent-item-main > span { font-size: 12px; color: var(--faint, #98a2b3); }
.ent-subid b { color: var(--text, #1f2430); letter-spacing: 1.5px; font-weight: 600; }
.ent-item-act { display: flex; gap: 6px; flex-wrap: wrap; }
.ent-item-act .ac-btn { height: 28px; padding: 0 10px; font-size: 12px; }
.ent-tag-off { background: #ffecec; color: #e5484d; height: 22px; line-height: 22px; padding: 0 9px; font-size: 11.5px; }

@media (max-width: 720px) {
  .ent-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-hero-l b { font-size: 20px; letter-spacing: 3px; }
  .ent-item-act .ac-btn { flex: 1; }
}

@media (max-width: 720px) {
  .ac-card { padding: 15px 14px; }
  .ac-profile { gap: 11px; }
  .ac-av { width: 46px; height: 46px; flex-basis: 46px; font-size: 19px; }
  .ac-row { gap: 10px; }
  .ac-ico { width: 36px; height: 36px; flex-basis: 36px; }
  .ac-btn { padding: 0 12px; font-size: 12.5px; }
}
