/* ==========================================================================
   account.css — 账号设置页（外壳来自 audit.css）
   ========================================================================== */

body.accountpage .apage {
  max-width: 1080px;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.acc-card {
  padding: 22px 24px 20px;
}

.acc-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.acc-card__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.acc-card .field + .field {
  margin-top: 14px;
}

/* 卡片里的字段统一单列，避免「获取验证码」挤在窄输入框上 */
.acc-card .fields {
  grid-template-columns: 1fr;
}

.acc-card .ctrl-group input {
  min-width: 0;
}

.acc-card .ctrl[readonly] {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}

.acc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.acc-line {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.acc-line b {
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

/* 头像 */
.acc-avatar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.acc-avatar__img {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  font-family: var(--font-black);
  font-size: 32px;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep));
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.acc-avatar__img.has-img {
  color: transparent;
  background-color: #14141a;
}

.acc-avatar__ops {
  display: grid;
  gap: 8px;
}

/* 底部操作 */
.acc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.acc-foot .btn--bad {
  margin-left: auto;
}

/* 提示条 */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: grid;
  gap: 8px;
}

.toast {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(16, 16, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  animation: toast-in 0.24s ease-out;
}

.toast--ok {
  border-left-color: #3fbf7f;
}

.toast.is-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .acc-grid {
    grid-template-columns: 1fr;
  }

  .acc-foot .btn--bad {
    margin-left: 0;
  }
}
