/* ============================================================
   智觅 · 登录 / 账号 / 站点页脚
   ============================================================ */
.site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  height: 30px;
  color: var(--faint);
  font-size: 12px;
  background: rgba(245, 247, 252, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(230, 235, 245, 0.6);
}
.site-foot a { color: var(--faint); transition: color var(--fast); }
.site-foot a:hover { color: var(--blue); }
.foot-company { position: relative; cursor: default; }
.foot-company::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}
.foot-contact {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 5;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #31456f;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow-pop);
}
.foot-company:hover .foot-contact,
.foot-company:focus-within .foot-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.scan-contact {
  position: relative;
  color: #31456f;
  cursor: default;
}
.scan-contact::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 100%;
  height: 12px;
}
.scan-pop {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 6;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.scan-contact:hover .scan-pop,
.scan-contact:focus-within .scan-pop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.scan-pop img {
  display: block;
  width: 168px;
  height: auto;
  border-radius: 8px;
}
.contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.copy-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #31456f;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.copy-mail:hover,
.copy-mail:focus,
.copy-mail:active {
  color: var(--blue);
  text-decoration: none;
}
.copy-mail-tip { color: #98a2b3; font-size: 12px; }
.copy-mail.is-copied .copy-mail-tip { color: #12a15f; }

/* ---------- 导航账号 ---------- */
.nav-login.is-account {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav { z-index: 20; }
.nav-account { position: relative; display: inline-flex; z-index: 30; }
.nav-account::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.nav-logout {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 112px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #31456f;
  font-size: 13px;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: color var(--fast);
}
.nav-logout:hover { color: var(--danger); }
.nav-account:hover .nav-logout,
.nav-account:focus-within .nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 登录弹层 ---------- */
.login-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 52, 0.48);
  backdrop-filter: blur(4px);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #1d2433;
}
.login-mask[hidden] { display: none; }
.login-dialog {
  position: relative;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 290px 1fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(16, 24, 40, 0.26);
}
.login-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a0b0;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.login-x:hover { background: rgba(27, 43, 77, 0.06); color: #1d2433; }
.login-scan {
  position: relative;
  background:
    radial-gradient(320px 200px at 30% 0%, rgba(122, 156, 255, 0.24), transparent 70%),
    linear-gradient(180deg, #f3f6ff 0%, #e7edfb 100%);
  padding: 44px 26px 30px;
  text-align: center;
}
.login-mark {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.login-scan h2 {
  margin: 28px 0 16px;
  font-size: 16px;
  font-weight: 500;
}
.qr-frame {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  background:
    linear-gradient(#dde3ef 1px, transparent 1px),
    linear-gradient(90deg, #dde3ef 1px, transparent 1px),
    #fff;
  background-size: 14px 14px;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(27, 43, 77, 0.08);
}
.qr-frame.is-live {
  width: 220px;
  height: 220px;
  border: 0;
  background: #fff;
  overflow: hidden;
}
.qr-frame.is-live iframe {
  width: 220px;
  height: 220px;
  border: 0;
  /* 微信把码画在方框上沿，下移后才落在白框正中 */
  transform: translate(2px, 30px);
}
.qr-frame span {
  width: 132px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #5d6b86;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.login-scan p {
  margin: 16px 0 0;
  color: #5d6b86;
  font-size: 13px;
  line-height: 1.7;
}
.login-main { padding: 44px 38px 30px; }
.login-tabs[hidden],
.login-pane[hidden] { display: none !important; }
.login-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0 0 28px;
}
.login-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 9px;
  color: #8b93a3;
  font-size: 16px;
  cursor: pointer;
  transition: color var(--fast);
}
.login-tabs button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width var(--med);
}
.login-tabs button:hover { color: #3a4763; }
.login-tabs button.is-on { color: var(--blue); font-weight: 500; }
.login-tabs button.is-on::after { width: 100%; }
.login-pane label {
  display: block;
  margin-bottom: 16px;
  color: #4a5670;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.login-pane input[type="email"],
.login-pane input[type="text"],
.login-pane input[type="password"] {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #e3e8f2;
  border-radius: var(--radius-md);
  background: #f7f9fd;
  color: #1d2433;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.login-pane input::placeholder { color: #a5aec2; font-weight: 400; }
.login-pane input:hover { border-color: #cbd6ee; background: #fff; }
.login-pane input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: var(--ring);
}
.code-line { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 20px; }
.code-line label { flex: 1; margin: 0; }
.code-send {
  flex: none;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d9e2fb;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--fast);
}
.code-send:hover:not(:disabled) { background: #e2e9ff; border-color: #c3d0f5; }
.code-send:disabled { background: #f3f5f9; border-color: #e8ecf4; color: #b0b6c4; cursor: default; }
.remember {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 18px;
  color: #5c6578;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.remember input { margin-top: 2px; accent-color: var(--blue); }
.login-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4a6cf7 0%, var(--blue-deep) 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(60, 91, 240, 0.3);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(60, 91, 240, 0.38);
  filter: brightness(1.03);
}
.login-submit:active { transform: translateY(0); }
.login-alt {
  margin: 14px 0 0;
  color: #8b96ac;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.login-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}
.login-note.is-ok { color: var(--ok); }
.login-hint {
  margin: 0 0 16px;
  color: #6b7690;
  font-size: 13px;
  line-height: 1.6;
}
.account-mail {
  margin: 8px 0 18px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .login-dialog { grid-template-columns: 1fr; }
  .login-scan { padding: 30px 20px 18px; }
  .login-main { padding: 24px 20px 22px; }
}
