/* ── 帐号及安全设置弹层 ── */
#account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  cursor: pointer;
  display: none;
}
#account-modal-inner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 弹层容器 */
.account-modal-container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 768px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 顶部栏 */
.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f8f8f8;
  font-size: 16px;
  color: #333;
}
.account-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8f8f8;
  color: #888;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.account-modal-close:hover { background: #e8e8e8; }

/* 弹层内容区 */
.account-modal-body {
  padding: 32px;
}

/* 两列布局 */
.am-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 左列：帐号信息+密码设置 */
.am-col-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 12px;
}

/* 右列：基本信息 */
.am-col-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px;
}

/* ── 帐号信息区块 ── */
.account-info-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-info-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f8f9ff;
  border-radius: 12px;
}
.account-info-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f0fe;
}
.account-info-nickname {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  word-break: break-all;
}
.account-info-role {
  font-size: 12px;
  color: #4078FF;
  background: #f0f4ff;
  padding: 2px 8px;
  border-radius: 10px;
}
/* 等级 + 到期时间 容器（横向排布，窄屏可换行） */
.account-info-role-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
/* 到期时间：次要色小字，不抢等级视觉焦点 */
.account-info-role-expire {
  font-size: 11px;
  color: #909399;
  white-space: nowrap;
}
.account-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  padding: 18px;
  background: #f8f8f888;
  border-radius: 12px;
}
.account-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-info-row .lbl { color: #888; width: 56px; flex-shrink: 0; }
.account-info-row .val { color: #444; }

/* ── 密码输入框 ── */
.pwd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-input-wrap input {
  border-right-radius: 0;
  flex: 1;
}
.pwd-eye-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 14px;
  padding: 4px 6px;
  transition: color 0.2s;
}
.pwd-eye-btn:hover { color: #555; }

/* ── 密码设置折叠区块 ── */
#am-pwd-section {
  border: 1px solid #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
}
#am-pwd-section summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: #f8f8f888;
}
#am-pwd-section summary::-webkit-details-marker { display: none; }
#am-pwd-arrow {
  font-size: 12px;
  color: #888;
  transition: transform 0.2s;
  display: inline-block;
}
#am-pwd-section[open] #am-pwd-arrow {
  transform: rotate(180deg);
}
#am-pwd-section summary:focus { outline: none; }
.pwd-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pwd-panel {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 基本信息区块 ── */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8f8f8;
}

/* 表单网格 */
.am-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.am-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 6px;
}
.am-form-field label {
  font-size: 12px;
  color: #888;
}
.am-form-field input,
.am-form-field select {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s;
  color: #666;
}
.am-form-field input:focus,
.am-form-field select:focus { border-color: #4078FF; }

/* 消息提示 */
.am-form-msg { font-size: 13px; display: none; }
.am-pwd-msg { font-size: 13px; display: none; }

/* 按钮 */
.am-btn-primary {
  background: #4078FF;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin: 18px 0 0;
}
.am-btn-primary:hover { background: #3060e0; }
.am-btn-primary-sm {
  background: #4078FF;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.am-btn-primary-sm:hover { background: #3060e0; }

/* ── 响应式：移动端 < 768px ── */
@media (max-width: 768px) {
  .am-row { flex-direction: column; }
  .am-col-left,
  .am-col-right {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .am-form-grid { grid-template-columns: 1fr !important; }
}
