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9sRhieIpEHz3dGSTFHWCyJitR0YMjpWiBcIxp8XZRZ09XW5UnBNVoF3X0SiVfoBQOUSWchdfxmPrKLptPYh4ePXn8btMtGrVAm2mMeu91h8ZfyZfPHEG2LIZ8CIn+gdlLsqZnraVHQtzhLCmYxzF4n0eF9lGCyhPHSJ1hFkApSILw7iCX+/bUBsLX7YUu8lnv2v//jfk/UZiOQADAWyAFYoU6WCURhVtbCah6uosVrnlunpvn5rl5Xj9v0IboZnF5naeRgOiaqwGAebksYgjGMfyEKCkQ+WnPBFPqk0fAhvOyQmhrDiC5EArQcbSqU/QiqgIRbvHZEEGcQkcqERSUmHy1L5qIpNn++cctUzkv68hNXG33W81w6369KzcbECIq3ypyedi5GfO+auP/pcXi7wDw8ZqSzy3y+OGfPmpKWoGIeVXawY4/Hxt8noijZZpqtKJvKt/NTXU0Wd0IYDGAAKCsVUBUXgAAC8CkCD1ZUiK0symx+X5TEoOjfYq0OqY+B+obNrVUhhpsiFEGuMcONZzKFAwdhYV628mJY4a1QeaY/r4tYGdfsIIKTPbRn4ogVoKgsVTBTnVaPAWGx0wcGjKJFiIr0tZ09rLMBxc16OqGgewkmo2sCFS0cd0ijuk8daImFYxxNQyOaxtmnCnOnHi0aZBwyjFX35O8Kh5pP85bX49U+vDDpqKOb+4g7PR0O2g/PCJDRGr5OPuQZCwGLodA8UYURzZmr3qhuSAq2HrEUFOJASBefzqTXqSttUzND4DoBlQjsKuLPgA=) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

/* ============================================================
   浦城百晓书 · 认证页 / 用户中心 共用样式
   依赖：assets/theme.css
   ============================================================ */

/* ---------- 布局：左品牌沉浸区 + 右操作区 ---------- */
.auth {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: 100vh; min-height: 100dvh;
}

/* ---------- 左侧品牌区 ---------- */
.auth-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-6) var(--s-6) var(--s-6);
  background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-600) 52%, var(--brand-700) 100%);
  color: #fff;
}
/* ---------- 品牌区：动态云雾场景（程序化水墨远山 + 漂移云层） ---------- */
.auth-brand > .auth-scene {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
/* 山与雾共用的比例容器：宽高比与山图一致、底部对齐。
   雾的 bottom 百分比因此永远落在山的同一坐标系里 —— 任何屏幕尺寸下雾都贴着山腰走，
   不会再飘到没有山衬托的天空区（那正是之前"灰蒙蒙一片"的成因）。 */
.auth-scene > .scene-stack {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 130%;                  /* 略放大裁两侧，山更有体量 */
  aspect-ratio: 1400 / 1200;    /* = 山图比例 */
}
.scene-stack > div { position: absolute; left: 0; }

/* 三层山：静止。stack 与山图同比例 -> 100% 100% 不变形 */
.sc-ridge {
  top: 0; right: 0; bottom: 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}
.sc-ridge-far  { background-image: url(/assets/ridge_far.png); }
.sc-ridge-mid  { background-image: url(/assets/ridge_mid.png); }
.sc-ridge-near { background-image: url(/assets/ridge_near.png); }

/* 三层雾：横向无缝漂移。
   元素宽 = 容器宽 + 一个图案周期，按周期重复平铺，
   位移正好一个周期 → 与容器宽度无关，永远无缝。
   定位基准是 scene-stack 的高度（= 山图高度），山脊距底分别为 64% / 46% / 28%，
   三条雾带正好压在对应山脊上。
   透明度刻意压到 .32/.36/.42 —— 雾是薄纱，不是白墙。 */
.sc-fog {
  width: calc(100% + var(--fog-w));
  background-repeat: repeat-x;
  background-position: left center;
  background-size: var(--fog-w) 100%;
  will-change: transform;
}
.sc-fog-far {
  --fog-w: 520px; bottom: 56%; height: 12%;
  background-image: url(/assets/fog_far.png); opacity: .32;
  animation: fogDriftA 64s linear infinite;
}
.sc-fog-mid {
  --fog-w: 620px; bottom: 38%; height: 13%;
  background-image: url(/assets/fog_mid.png); opacity: .36;
  animation: fogDriftB 44s linear infinite;   /* 反向，与上下层交错 */
}
.sc-fog-near {
  --fog-w: 720px; bottom: 18%; height: 15%;
  background-image: url(/assets/fog_near.png); opacity: .42;
  animation: fogDriftA 30s linear infinite;
}
@keyframes fogDriftA { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-1 * var(--fog-w)), 0, 0); } }
@keyframes fogDriftB { from { transform: translate3d(calc(-1 * var(--fog-w)), 0, 0); } to { transform: translate3d(0,0,0); } }

/* 文字可读性遮罩：只压顶部文案区，中段完全放开让山雾层次透出来。
   之前中段也压暗，结果把山雾一起压掉了，层次全糊。 */
.sc-veil {
  top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(16,40,35,.24) 0%, rgba(16,40,35,.06) 30%,
    rgba(16,40,35,0) 55%, rgba(16,40,35,.10) 100%);
}

/* 降低动效偏好：关闭漂移，保留静态山雾 */
@media (prefers-reduced-motion: reduce) {
  .sc-fog { animation: none !important; }
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 10%, rgba(192, 138, 74, .16) 0%, transparent 60%);
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-top { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.auth-top img { width: 46px; height: 46px; flex: none; }
.auth-top-name {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  letter-spacing: .08em; color: #fff;
}
.auth-top-sub { font-size: 11px; letter-spacing: .3em; color: rgba(255, 255, 255, .55); }

.auth-pitch { max-width: 420px; }
.auth-pitch .kicker {
  font-size: 12px; letter-spacing: .3em; color: var(--accent-500);
  font-weight: 600; margin-bottom: var(--s-3);
}
.auth-pitch h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600; line-height: 1.45; letter-spacing: .01em; margin: 0 0 var(--s-4);
}
.auth-pitch h2 em {
  font-style: normal; color: var(--accent-500);
  background: linear-gradient(transparent 70%, rgba(192, 138, 74, .22) 70%);
}
.auth-pitch p { margin: 0; font-size: 14.5px; line-height: 2; color: rgba(255, 255, 255, .72); }

.auth-points { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.auth-points li {
  display: flex; align-items: flex-start; gap: var(--s-2);
  list-style: none; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .66);
}
.auth-points li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 999px; background: var(--accent-500);
}
.auth-foot { font-size: 12px; color: rgba(255, 255, 255, .42); line-height: 1.9; }
.auth-panel .auth-beian {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center;
  font-size: 12px; color: var(--ink-300); line-height: 1.6;
}
.auth-panel .auth-beian a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.auth-panel .auth-beian a:hover { text-decoration: underline; }

/* ---------- 右侧操作区 ---------- */
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-6) var(--s-5); background: var(--bg);
}
.auth-panel { width: 100%; max-width: 420px; }
.auth-panel.head-center { text-align: center; }

.auth-title {
  font-family: var(--font-serif); font-size: 27px; font-weight: 600;
  letter-spacing: .01em; color: var(--ink-900); margin: 0 0 var(--s-2);
}
.auth-desc { margin: 0 0 var(--s-5); font-size: 14px; color: var(--ink-500); line-height: 1.8; }

/* ---------- 表单通用 ---------- */
.f { display: block; margin-bottom: var(--s-4); }
.f > .lb {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-600); margin-bottom: var(--s-2);
}
.f > .lb .opt { font-size: 12px; color: var(--ink-300); }
.f input, .f select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-900); font-size: 15px;
  outline: none; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.f input::placeholder { color: var(--ink-300); }
.f input:focus, .f select:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-050);
}
.f .hint { margin-top: var(--s-2); font-size: 12px; color: var(--ink-300); line-height: 1.7; }
.f.error input { border-color: #C0392B; }

.f-inline { display: flex; gap: var(--s-2); }
.f-inline input { flex: 1; min-width: 0; }
.btn-code {
  flex: none; height: 46px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--brand-500); background: var(--brand-050);
  color: var(--brand-600); font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease);
}
.btn-code:hover { background: var(--brand-100); }
.btn-code:disabled { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink-300); cursor: default; }

.btn-block { width: 100%; height: 48px; font-size: 16px; border-radius: var(--r-lg); }

/* 微信按钮 */
.btn-wx {
  width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  border: none; border-radius: var(--r-lg); background: #07C160; color: #fff;
  font-size: 15.5px; cursor: pointer; transition: filter var(--dur-fast) var(--ease);
}
.btn-wx:hover { filter: brightness(1.05); }
.btn-wx:disabled { background: var(--line-strong); cursor: not-allowed; filter: none; }
.btn-wx svg { width: 20px; height: 20px; }

.divider {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-5) 0; font-size: 12px; color: var(--ink-300);
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* tab */
.tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.tab {
  appearance: none; background: none; border: none; padding: 0 0 var(--s-3);
  font-size: 15px; color: var(--ink-500); cursor: pointer; position: relative;
}
.tab.active { color: var(--brand-600); font-weight: 600; }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand-600);
}
.pane { display: none; }
.pane.active { display: block; }

/* 提示条 */
.msg {
  display: none; margin-bottom: var(--s-4); padding: 10px 14px;
  border-radius: var(--r-md); font-size: 13px; line-height: 1.7;
}
.msg.show { display: block; }
.msg.err { background: #FDECEA; color: #A32E22; border: 1px solid #F5C6C0; }
.msg.ok { background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100); }

.agreement {
  display: flex; align-items: flex-start; gap: var(--s-2);
  font-size: 13px; color: var(--ink-500); line-height: 1.7; margin: var(--s-2) 0 var(--s-4);
}
.agreement input { margin-top: 3px; accent-color: var(--brand-600); }
.agreement a { color: var(--brand-600); text-decoration: none; }
.agreement a:hover { text-decoration: underline; }

.auth-switch { margin-top: var(--s-5); font-size: 14px; color: var(--ink-500); text-align: center; }
.auth-switch a { color: var(--brand-600); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-guest {
  margin-top: var(--s-4); text-align: center;
}
.auth-guest a { font-size: 13px; color: var(--ink-300); text-decoration: none; }
.auth-guest a:hover { color: var(--brand-600); }

/* ---------- 头像选择 ---------- */
.picker-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-600); margin-bottom: var(--s-2);
}
.picker-label .opt { font-size: 12px; color: var(--ink-300); }
.avatar-pick {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4); margin-bottom: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.avatar-pick .cur {
  width: 66px; height: 66px; flex: none; border-radius: 999px; overflow: hidden;
  border: 2px solid var(--accent-500); background: var(--surface-2);
}
.avatar-pick .cur img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-pick .txt { flex: 1; min-width: 0; }
.avatar-pick .txt b { display: block; font-size: 14.5px; color: var(--ink-900); margin-bottom: 4px; }
.avatar-pick .txt span { font-size: 12.5px; color: var(--ink-500); line-height: 1.7; }

.avatar-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2);
  max-height: 208px; overflow-y: auto; padding: 2px;
}
.avatar-cell {
  appearance: none; padding: 0; border: 2px solid transparent; border-radius: 999px;
  background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.avatar-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-cell:hover { transform: translateY(-2px); }
.avatar-cell.sel { border-color: var(--brand-600); }
.avatar-tip {
  margin-top: var(--s-2); font-size: 12px; color: var(--ink-300); line-height: 1.7;
}

/* ---------- 用户中心 ---------- */
.acct-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 244, .9);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.acct-top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.acct-top .back { font-size: 14px; color: var(--ink-500); text-decoration: none; }
.acct-top .back:hover { color: var(--brand-600); }
.acct-top .me { display: flex; align-items: center; gap: var(--s-2); }
.acct-top .me img { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-strong); }
.acct-top .me span { font-size: 14px; color: var(--ink-700); }

.acct-wrap { max-width: 1080px; margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-7); }
.acct-grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--s-5); align-items: start; }

.acct-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-1); overflow: hidden;
}
.acct-card + .acct-card { margin-top: var(--s-5); }
.acct-card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line);
}
.acct-card-h h3 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 600;
  margin: 0; color: var(--ink-900); letter-spacing: .01em;
}
.acct-card-b { padding: var(--s-5); }

/* 侧栏名片 */
.prof { padding: var(--s-5); text-align: center; }
.prof-av {
  position: relative; width: 96px; height: 96px; margin: 0 auto var(--s-3);
}
.prof-av img {
  width: 96px; height: 96px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--accent-500); box-shadow: 0 0 0 5px rgba(192, 138, 74, .12);
}
.prof-av .edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px;
  border-radius: 999px; border: 2px solid var(--surface); background: var(--brand-600);
  color: #fff; font-size: 13px; cursor: pointer;
}
.prof-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink-900); }
.prof-id { margin-top: 4px; font-size: 12px; color: var(--ink-300); }
.prof-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: var(--s-3);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: linear-gradient(90deg, var(--accent-500) 0%, #DDB26B 100%); color: #4A3413;
}
.prof-coin {
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: center; gap: var(--s-2);
}
.prof-coin b { font-family: var(--font-serif); font-size: 26px; color: var(--accent-600); }
.prof-coin span { font-size: 12.5px; color: var(--ink-500); }

.acct-nav { display: grid; gap: 2px; padding: var(--s-2); }
.acct-nav button {
  appearance: none; border: none; background: none; cursor: pointer; text-align: left;
  padding: 11px var(--s-3); border-radius: var(--r-md); font-size: 14.5px; color: var(--ink-600);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.acct-nav button:hover { background: var(--surface-2); color: var(--ink-900); }
.acct-nav button.on { background: var(--brand-050); color: var(--brand-700); font-weight: 600; }

/* 资料行 */
.row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--s-4); align-items: center; padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row .k { font-size: 14px; color: var(--ink-500); }
.row .v { font-size: 14.5px; color: var(--ink-900); min-width: 0; word-break: break-all; }
.row .v.muted { color: var(--ink-300); }
.row .act { font-size: 13px; color: var(--brand-600); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); }
.row .act:hover { background: var(--brand-050); }
.row .act[disabled] { color: var(--ink-300); cursor: not-allowed; background: none; }

.tag-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brand-600); }
.tag-done::before { content: "✓"; }
.tag-soon { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-300); }

/* 会员 / 桂花币 */
.member-hero {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-800) 0%, var(--brand-600) 100%);
  color: #fff; margin-bottom: var(--s-5);
}
.member-hero .lv { font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.member-hero .sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.member-hero .price { text-align: right; font-size: 13px; color: rgba(255, 255, 255, .8); }
.member-hero .price b { display: block; font-family: var(--font-serif); font-size: 24px; color: var(--accent-500); }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.perk {
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2);
}
.perk b { display: block; font-size: 14.5px; color: var(--ink-900); margin-bottom: 4px; }
.perk span { font-size: 12.5px; color: var(--ink-500); line-height: 1.7; }
.perk.lock { opacity: .62; }

.coin-ledger { display: grid; gap: 0; }
.led {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: var(--s-4); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.led:last-child { border-bottom: none; }
.led .t { font-size: 14px; color: var(--ink-700); }
.led .d { font-size: 12px; color: var(--ink-300); margin-top: 2px; }
.led .n { font-size: 15px; font-weight: 600; color: var(--accent-600); }
.led .n.minus { color: var(--ink-500); }
.empty { padding: var(--s-6) 0; text-align: center; font-size: 13.5px; color: var(--ink-300); }

.btn-sm {
  height: 36px; padding: 0 16px; border-radius: var(--r-md); font-size: 14px;
  border: 1px solid var(--brand-500); background: var(--brand-050); color: var(--brand-600); cursor: pointer;
}
.btn-sm:hover { background: var(--brand-100); }
.btn-sm.ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink-600); }
.btn-sm.ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }

/* 弹窗（换头像 / 改密码等） */
.mask {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: var(--s-4);
  background: rgba(20, 28, 25, .48); backdrop-filter: blur(3px);
}
.mask.show { display: flex; }
.dlg {
  width: 100%; max-width: 440px; max-height: 88vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  padding: var(--s-5);
}
.dlg h4 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  margin: 0 0 var(--s-2); color: var(--ink-900);
}
.dlg p.sub { margin: 0 0 var(--s-4); font-size: 13px; color: var(--ink-500); }
.dlg-foot { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-4); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: var(--s-5) var(--s-5); min-height: auto;
  }
  .auth-pitch, .auth-points, .auth-foot { display: none; }
  .auth-main { padding: var(--s-6) var(--s-4) var(--s-7); align-items: flex-start; }
  .acct-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .avatar-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 84px minmax(0, 1fr); }
  .row .act { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== 底部单行（去竖排） ===== */
.auth-foot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line, rgba(47,107,94,.14));
}
.auth-foot-row .auth-switch, .auth-foot-row .auth-guest { margin-top: 0; text-align: left; }
.auth-foot-row .auth-guest { text-align: right; }
@media (max-width: 460px) {
  .auth-foot-row { flex-direction: column; gap: 10px; text-align: center; }
  .auth-foot-row .auth-switch, .auth-foot-row .auth-guest { text-align: center; }
}
/* ===== 顶部工具条 ===== */
.auth-brand { position: relative; }
.auth-brand > .auth-tools { position: absolute; top: 20px; right: 24px; z-index: 2; display: flex; gap: 8px; }
.auth-tool {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.auth-tool:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.auth-tool svg { width: 18px; height: 18px; }
