/* ===== 用户系统：登录 / 注册 / 我的账户 ===== */
.au-wrap { max-width: 1000px; margin: 0 auto; padding: 24px 0 56px; }
.au-crumbs { font-size: .78rem; color: var(--text-3); margin-bottom: 16px; }
.au-crumbs a { color: var(--text-3); text-decoration: none; }
.au-crumbs a:hover { color: var(--primary); }
.au-crumbs i { margin: 0 7px; font-size: .6rem; }

/* 左右两栏等高：说明栏与表单卡撑满同一行高度（原来是 align-items:start，一长一短很难看）；
   说明栏内部改为纵向 flex，「免验证」徽章贴到底部，拉高后也不会显得空。 */
.au-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (min-width: 861px) {
  .au-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
  .au-card { order: 2; }
  .au-side { order: 1; }
}
@media (max-width: 860px) { .au-grid { grid-template-columns: 1fr; } }

.au-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px 24px; }
.au-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.au-lead { font-size: .84rem; color: var(--text-2); line-height: 1.75; margin: 0 0 20px; }

.au-field { margin-bottom: 15px; }
.au-field > label { display: block; font-size: .79rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.au-field input[type="text"],
.au-field input[type="email"],
.au-field input[type="password"] {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: .9rem; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.au-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.au-field input::placeholder { color: var(--text-4); }
.au-hint { font-size: .72rem; color: var(--text-3); margin-top: 6px; }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.au-check { display: flex; align-items: center; gap: 7px; font-size: .81rem; color: var(--text-2); cursor: pointer; user-select: none; }
.au-check input { width: 15px; height: 15px; accent-color: var(--primary); }

.au-btn {
  width: 100%; border: 0; border-radius: 10px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: .93rem; padding: 12px; cursor: pointer;
  transition: background .15s;
}
.au-btn:hover { background: var(--primary-600); }
.au-btn.ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); font-weight: 600; }
.au-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

.au-switch { text-align: center; font-size: .82rem; color: var(--text-2); margin-top: 18px; }
.au-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }
.au-switch a:hover { text-decoration: underline; }

.au-err { background: #fdecea; border: 1px solid #f6c9c3; color: #a5281b; border-radius: 10px; padding: 10px 13px; font-size: .8rem; line-height: 1.6; margin-bottom: 16px; }
.au-err ul { margin: 0; padding-left: 16px; }
.au-ok { background: var(--primary-50); border: 1px solid var(--primary-200); color: var(--accent-600); border-radius: 10px; padding: 10px 13px; font-size: .8rem; margin-bottom: 16px; }

.au-side { background: linear-gradient(180deg, var(--primary-50), #fff 62%); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.au-side h2 { font-size: .96rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.au-why { list-style: none; margin: 0; padding: 0; }
.au-why li { display: flex; gap: 11px; font-size: .84rem; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.au-why li i { color: var(--primary); margin-top: 4px; font-size: .8rem; }
.au-badge-free { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--accent-600); background: var(--primary-100); border-radius: 999px; padding: 5px 12px; margin-top: auto; align-self: flex-start; }

/* ===== 我的账户 ===== */
.ac-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.ac-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 58px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ac-head h1 { font-size: 1.34rem; font-weight: 800; color: var(--text); margin: 0 0 5px; }
.ac-meta { font-size: .79rem; color: var(--text-3); }
.ac-meta b { color: var(--text-2); font-weight: 600; }
.ac-actions { margin-left: auto; display: flex; gap: 10px; }
.ac-actions form { margin: 0; }
.ac-mini { border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: 9px; padding: 8px 15px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ac-mini:hover { border-color: var(--primary); color: var(--primary); }
.ac-mini.link { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }

.ac-sec { margin-top: 26px; }
.ac-sechead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.ac-sechead h2 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0; }
.ac-sechead span { font-size: .78rem; color: var(--text-3); }
.ac-empty { border: 1px dashed var(--border); border-radius: 14px; padding: 26px 20px; text-align: center; color: var(--text-3); font-size: .84rem; line-height: 1.8; background: #fcfefe; }
.ac-empty a { color: var(--primary); font-weight: 700; text-decoration: none; }
.ac-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ac-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; text-decoration: none; transition: border-color .15s, transform .15s; }
.ac-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.ac-item .ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.ac-item .tx { min-width: 0; }
.ac-item .tx b { display: block; font-size: .84rem; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item .tx small { font-size: .72rem; color: var(--text-3); }

/* ===== 等级徽章与权限表 ===== */
.lv-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 4px 12px; }
.lv-user   { background: var(--ice);         color: var(--text-2); }
.lv-member { background: var(--amber-100);   color: #92400e; }
.lv-admin  { background: var(--rose-100);    color: #c23b64; }
.lv-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lv-table th { text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-4); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.lv-table td { padding: 9px 10px; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.lv-table td:first-child { color: var(--text); font-weight: 600; }
.lv-table .is-now { background: var(--primary-50); }
.lv-table th.is-now { color: var(--accent-600); }
.lv-table tbody tr:last-child td { border-bottom: none; }
