/* ===== 攒股收息 · 全站登录墙 ===== */
.xj-gate {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: #eef2f8;
  background-image: radial-gradient(#d9e0ec 1px, transparent 1px);
  background-size: 18px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xj-gate-card {
  display: flex; width: min(900px, 94vw); max-height: 92vh;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(31,41,55,.20);
}
/* 左侧品牌区 */
.xj-gate-left {
  flex: 0 0 46%; padding: 34px 30px; color: #fff;
  background: linear-gradient(160deg, #e2571d 0%, #d63031 100%);
  display: flex; flex-direction: column;
}
.xj-brand-row { display: flex; align-items: center; gap: 10px; }
.xj-brand-logo {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.xj-brand-name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.xj-brand-en { font-size: 10px; letter-spacing: 2px; opacity: .8; }
.xj-badge {
  align-self: flex-start; margin-top: 26px; padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.16); font-size: 11px; letter-spacing: 1px; font-weight: 600;
}
.xj-headline { margin-top: 18px; font-size: 26px; font-weight: 800; line-height: 1.35; }
.xj-headline .hl { color: #ffe08a; }
.xj-sub { margin-top: 14px; font-size: 13px; line-height: 1.7; opacity: .92; }
.xj-feats { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.xj-feat {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,.12); border-radius: 12px;
}
.xj-feat .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 34px; }
.xj-feat .ft { font-size: 13px; font-weight: 700; }
.xj-feat .fd { font-size: 11px; opacity: .85; margin-top: 2px; line-height: 1.4; }
/* 右侧表单区 */
.xj-gate-right { flex: 1; padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.xj-eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: #ec5a82; }
.xj-form-title { margin: 6px 0 4px; font-size: 22px; font-weight: 800; color: #1f2937; }
.xj-form-sub { font-size: 13px; color: #8a94a6; margin-bottom: 22px; }
.xj-field { margin-bottom: 14px; }
.xj-field label { display: block; font-size: 12px; color: #455062; font-weight: 600; margin-bottom: 6px; }
.xj-input-wrap { position: relative; }
.xj-input-wrap .lead { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aab2c0; font-size: 15px; }
.xj-input {
  width: 100%; box-sizing: border-box; border: 1px solid #dfe4ee; border-radius: 10px;
  padding: 11px 12px 11px 36px; font-size: 14px; color: #1f2937; background: #f7f9fc; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.xj-input:focus { border-color: #d63031; box-shadow: 0 0 0 3px rgba(214,48,49,.12); background: #fff; }
.xj-input.no-lead { padding-left: 12px; }
.xj-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: #eef1f6; color: #6b7585; width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.xj-eye:hover { background: #e3e8f0; }
.xj-btn-primary {
  width: 100%; margin-top: 8px; border: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: 11px; background: linear-gradient(135deg, #e2571d, #d63031);
  box-shadow: 0 8px 18px rgba(214,48,49,.28); transition: filter .15s, transform .05s;
}
.xj-btn-primary:hover { filter: brightness(1.05); }
.xj-btn-primary:active { transform: translateY(1px); }
.xj-btn-primary:disabled { opacity: .6; cursor: default; }
.xj-line { margin-top: 16px; font-size: 13px; color: #8a94a6; text-align: center; }
.xj-link { color: #ec5a82; font-weight: 700; cursor: pointer; }
.xj-link:hover { text-decoration: underline; }
.xj-foot { margin-top: 18px; font-size: 11px; color: #aab2c0; text-align: center; }
.xj-msg { margin-top: 12px; font-size: 13px; padding: 9px 12px; border-radius: 9px; display: none; }
.xj-msg.err { display: block; background: #fdecec; color: #d63031; }
.xj-msg.ok  { display: block; background: #eafaf0; color: #1a9c54; }
.xj-back { font-size: 12px; color: #8a94a6; cursor: pointer; margin-bottom: 10px; display: inline-block; }
.xj-back:hover { color: #d63031; }

/* 账号设置浮窗（已登录时右上角入口） */
/* 账号入口：默认挂在左侧导航栏最底部（原来 .side-foot 的位置），margin-top:auto 推到栏底 */
.xj-acct-btn {
  display: none; align-items: center; gap: 6px; cursor: pointer;
  margin-top: auto; box-sizing: border-box; width: 100%; min-width: 0;
  background: #f7f9fc; border: 1px solid #e8ecf3; border-radius: 10px;
  padding: 6px; font-size: 11.5px; color: #455062; font-weight: 600; letter-spacing: -.2px;
  transition: background .15s, border-color .15s;
}
.xj-acct-btn #xjUName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xj-acct-btn .av { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: linear-gradient(135deg,#e2571d,#d63031);
  color:#fff; font-size: 12px; line-height: 1; letter-spacing: 0; font-weight: 800;
  display:flex; align-items:center; justify-content:center; }
.xj-acct-btn:hover { background: #fff3e9; border-color: #f0c8b4; }
/* 没有侧栏的页面回退成右上角悬浮胶囊 */
.xj-acct-btn.floating {
  position: fixed; top: 12px; right: 14px; z-index: 9998;
  margin-top: 0; width: auto; border-radius: 99px; background: #fff;
  padding: 6px 12px 6px 8px; box-shadow: 0 4px 12px rgba(31,41,55,.10); font-size: 13px;
}
.xj-acct-btn.floating .av { width: 24px; height: 24px; flex: 0 0 24px; font-size: 12px; }
.xj-acct-btn.floating:hover { border-color: #d63031; }
.xj-modal-mask {
  position: fixed; inset: 0; z-index: 99999; background: rgba(15,23,42,.45);
  display: none; align-items: center; justify-content: center;
}
.xj-modal-mask.show { display: flex; }
.xj-modal { width: min(420px, 92vw); background: #fff; border-radius: 16px; padding: 24px 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.xj-modal h3 { margin: 0 0 4px; font-size: 17px; color: #1f2937; }
.xj-modal .xj-sub { margin-bottom: 16px; }
.xj-modal .xj-btn-ghost { width: 100%; margin-top: 10px; border: 1px solid #dfe4ee; background: #f7f9fc;
  color: #d63031; font-weight: 700; font-size: 14px; padding: 11px; border-radius: 10px; cursor: pointer; }
.xj-modal .xj-btn-ghost:hover { background: #fdecec; }
.xj-tab { display: flex; gap: 8px; margin-bottom: 14px; }
.xj-tab span { flex: 1; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; border-radius: 9px;
  cursor: pointer; color: #8a94a6; background: #f2f5fa; }
.xj-tab span.on { color: #fff; background: linear-gradient(135deg,#e2571d,#d63031); }

@media (max-width: 760px) {
  /* 移动端侧栏变成横向滚动条，账号入口只留头像圆点，固定在右边缘 */
  .xj-acct-btn { width: auto; margin-top: 0; margin-left: auto; padding: 5px 6px; flex: 0 0 auto;
    position: sticky; right: 0; z-index: 5; background: #f7f9fc; box-shadow: -8px 0 10px -6px rgba(31,41,55,.18); }
  .xj-acct-btn #xjUName { display: none; }
}

@media (max-width: 720px) {
  .xj-gate-card { flex-direction: column; max-height: 94vh; overflow-y: auto; }
  .xj-gate-left { flex: none; }
  .xj-feats { display: none; }
  .xj-gate-right { padding: 28px 22px; }
}
