/* 我爱真题网 · 全站账号按钮与注册/登录弹窗 */

/* 头部按钮 */
.zt-acc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a63d8;
  border: 1px solid #cfe0fa;
  background: #f4f8ff;
  border-radius: 16px;
  padding: 5px 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: .18s;
  line-height: 1.6;
}
.zt-acc-btn:hover { background: #e8f1ff; border-color: #9dbcf5; color: #1a52b8; }
.zt-acc-btn.on { background: #fff8e8; border-color: #f0d69a; color: #8a5f14; max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
.sign .zt-acc-btn + .zt-acc-btn { margin-left: 8px; }

/* 遮罩与弹窗 */
.zt-mask {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 38, .56);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.zt-mask.on { display: flex; }
.zt-dlg {
  width: 100%;
  max-width: 396px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5);
  animation: ztIn .22s ease-out;
}
@keyframes ztIn { from { transform: translateY(10px); opacity: .6 } to { transform: none; opacity: 1 } }
.zt-hd {
  position: relative;
  padding: 16px 20px 14px;
  background: linear-gradient(135deg, #10357c, #1a63d8);
  color: #fff;
}
.zt-hd b { display: block; font-size: 16px; font-weight: 700; }
.zt-hd span { display: block; margin-top: 4px; font-size: 12.5px; color: #c3d8ff; line-height: 1.5; }
.zt-hd .zt-x {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #c3d8ff;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  text-decoration: none;
}
.zt-bd { padding: 16px 20px 18px; font-size: 13.5px; color: #33415a; }
.zt-tabs { display: flex; gap: 6px; margin: 0 0 14px; background: #f2f5fa; border-radius: 9px; padding: 4px; }
.zt-tabs a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 7px;
  font-size: 13.5px;
  color: #5a6b85;
  text-decoration: none;
}
.zt-tabs a.on { background: #fff; color: #1a52b8; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.zt-field { margin: 0 0 12px; }
.zt-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: #5a6b85;
  margin-bottom: 5px;
}
.zt-field label span { color: #9aa6bb; font-size: 11.5px; }
.zt-field input {
  width: 100%;
  border: 1px solid #e2e8f2;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  color: #22303f;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.zt-field input:focus { outline: 2px solid #dbe6ff; border-color: #9dbcf5; }
.zt-msg { min-height: 17px; font-size: 12.5px; line-height: 1.6; margin: 0 0 6px; }
.zt-msg.bad { color: #c0392b; }
.zt-msg.ok { color: #1a8a4a; }
.zt-main {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1a63d8, #1449a8);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.zt-main:hover { background: linear-gradient(135deg, #1758c2, #103c90); color: #fff; }
.zt-main[disabled] { opacity: .65; cursor: default; }
.zt-tip { margin-top: 11px; font-size: 12px; color: #8b97ab; line-height: 1.7; }
.zt-btns { display: flex; gap: 10px; margin-top: 4px; }
.zt-btns .zt-main { flex: 1; }
.zt-ghost {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: #4a5a72;
  background: #f2f5fa;
  cursor: pointer;
}
.zt-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef2f8; }
.zt-row:last-of-type { border-bottom: 0; }
.zt-row span { width: 52px; color: #8b97ab; flex: none; }
.zt-row b { flex: 1; color: #22303f; word-break: break-all; font-weight: 600; }

/* 轻提示 */
.zt-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 14px);
  background: rgba(20, 30, 46, .95);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 10px;
  opacity: 0;
  transition: .22s;
  z-index: 100000;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
}
.zt-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .zt-dlg { max-width: 100%; }
  .zt-bd { padding: 14px 16px 16px; }
  .zt-acc-btn { padding: 4px 11px; font-size: 12.5px; }
}
