/* SeqKan 账号组件：官网与在线体验版共用 */
.ska-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 24, 40, .46);
  backdrop-filter: blur(2px);
}
.ska-mask[hidden] { display: none; }
.ska-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow: auto;
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(14, 24, 40, .24);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1c2a3d;
  box-sizing: border-box;
}
.ska-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8496ad;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ska-close:hover { background: #f1f5fb; color: #33455f; }
.ska-card h3 { margin: 0 0 4px; font-size: 19px; color: #12233d; }
.ska-sub { margin: 0 0 16px; font-size: 12.5px; color: #8496ad; }
.ska-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 10px;
  background: #f2f6fc;
}
.ska-tabs button {
  flex: 1;
  padding: 7px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #5b7290;
  font: 13px/1.4 inherit;
  cursor: pointer;
}
.ska-tabs button.on {
  background: #fff;
  color: #1554c1;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(21, 84, 193, .12);
}
.ska-tabs.mini { max-width: 220px; margin-bottom: 12px; }
.ska-form { display: flex; flex-direction: column; gap: 10px; }
.ska-form label.ska-label { display: block; font-size: 12px; color: #5b7290; }
.ska-form input[type="text"],
.ska-form input[type="password"],
.ska-form input[type="tel"],
.ska-form input[type="email"],
.ska-field input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #fff;
  color: #1c2a3d;
  font: 13.5px/1 inherit;
  outline: none;
  box-sizing: border-box;
}
.ska-form input:focus,
.ska-field input:focus {
  border-color: #1554c1;
  box-shadow: 0 0 0 3px rgba(21, 84, 193, .12);
}
.ska-code-row { display: flex; gap: 8px; }
.ska-code-row input { flex: 1; min-width: 0; }
.ska-cap-row { display: flex; gap: 8px; align-items: center; }
.ska-cap-row input { flex: 1; min-width: 0; }
.ska-cap-img {
  flex: none;
  width: 108px;
  height: 38px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #f2f7ff;
  cursor: pointer;
  object-fit: cover;
}
.ska-code-row button {
  flex: none;
  min-width: 108px;
  padding: 0 12px;
  border: 1px solid #b9caea;
  border-radius: 9px;
  background: #f4f8ff;
  color: #1554c1;
  font: 12.5px/1 inherit;
  cursor: pointer;
}
.ska-code-row button:disabled {
  border-color: #dde5f1;
  background: #f7f9fd;
  color: #a3b1c4;
  cursor: default;
}
.ska-nick-row { display: flex; gap: 8px; }
.ska-nick-row input { flex: 1; min-width: 0; }
.ska-nick-row button {
  flex: none;
  padding: 0 12px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #fff;
  color: #33455f;
  font: 12.5px/1 inherit;
  cursor: pointer;
}
.ska-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #8496ad;
}
.ska-check input { margin-top: 2px; }
.ska-check a { color: #1554c1; text-decoration: none; }
.ska-primary {
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #1554c1;
  color: #fff;
  font: 700 14px/1 inherit;
  cursor: pointer;
}
.ska-primary:hover { background: #0d3b8c; }
.ska-primary:disabled { background: #9db4d6; cursor: default; }
.ska-err {
  min-height: 18px;
  font-size: 12px;
  color: #d03050;
}
.ska-ok { color: #1a9b62; }
.ska-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #c2ccda;
}
.ska-links button {
  border: none;
  background: transparent;
  padding: 0;
  color: #1554c1;
  font: inherit;
  cursor: pointer;
}
.ska-links button:hover { text-decoration: underline; }

/* 个人中心 */
.ska-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff, #f7fbff);
}
.ska-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1554c1;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.ska-profile-head b { display: block; font-size: 15px; color: #12233d; }
.ska-profile-head span { display: block; font-size: 12px; color: #8496ad; }
.ska-field {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e6edf7;
}
.ska-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ska-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5b7290;
}
.ska-field .ska-inline { display: flex; gap: 8px; }
.ska-field .ska-inline input { flex: 1; min-width: 0; }
.ska-field .ska-inline button,
.ska-mini {
  flex: none;
  padding: 0 12px;
  height: 34px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #fff;
  color: #33455f;
  font: 12.5px/1 inherit;
  cursor: pointer;
}
.ska-field .ska-inline button.ska-primary,
.ska-mini.ska-primary {
  border: none;
  background: #1554c1;
  color: #fff;
  font-weight: 700;
}
.ska-field .ska-inline button:disabled,
.ska-mini:disabled { opacity: .55; cursor: default; }
.ska-field input { height: 34px; }
.ska-hint { margin-top: 6px; font-size: 11.5px; color: #8496ad; }
.ska-hint.is-bad { color: #d03050; }
.ska-hint.is-good { color: #1a9b62; }
.ska-actions { max-height: 280px; overflow: auto; }
.ska-action-row {
  display: flex;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #f0f4fa;
  font-size: 12.5px;
}
.ska-action-row:last-child { border-bottom: none; }
.ska-action-row b { flex: none; width: 76px; color: #1c2a3d; }
.ska-action-row span { flex: 1; min-width: 0; color: #6b7f99; word-break: break-all; }
.ska-action-row time { flex: none; color: #a3b1c4; font-size: 11.5px; }
.ska-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.ska-foot button {
  flex: 1;
  height: 36px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #fff;
  color: #33455f;
  font: 13px/1 inherit;
  cursor: pointer;
}
.ska-foot button.ska-danger { border-color: #f0c4cc; color: #c8324f; }
.ska-foot button.ska-danger:hover { background: #fff5f7; }
.ska-foot a.ska-admin-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 9px;
  background: #1554c1;
  color: #fff;
  font: 700 13px/1 inherit;
  text-decoration: none;
}
.ska-foot a.ska-admin-link:hover { background: #0d3b8c; }
.ska-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 320;
  transform: translate(-50%, 10px);
  max-width: 78vw;
  padding: 9px 16px;
  border-radius: 9px;
  background: rgba(20, 34, 56, .94);
  color: #fff;
  font: 12.5px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.ska-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 二次确认弹窗（退出登录等） */
.ska-mask-top { z-index: 310; }
.ska-confirm { max-width: 340px; padding: 22px 22px 18px; }
.ska-confirm .ska-sub { margin: 6px 0 0; font-size: 13px; color: #5b7290; }
.ska-confirm .ska-foot { justify-content: flex-end; margin-top: 18px; }
.ska-confirm .ska-foot button { flex: 0 0 96px; }
.ska-confirm .ska-foot button.ska-danger {
  border-color: #c8324f;
  background: #c8324f;
  color: #fff;
}
.ska-confirm .ska-foot button.ska-danger:hover { background: #b02b45; }

/* ============ 账号下拉菜单 ============ */
.ska-user-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 52, 96, .14);
  z-index: 9999;
}
.ska-user-menu a,
.ska-user-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #2a3f5a;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ska-user-menu a:hover,
.ska-user-menu button:hover { background: #f2f7ff; color: #2f6fed; }
.ska-user-menu .is-danger { color: #c0392b; }
.ska-user-menu .is-danger:hover { background: #fdf1f0; color: #b12b2b; }

@media (max-width: 480px) {
  .ska-card { padding: 20px 16px 16px; border-radius: 14px; }
  .ska-code-row { flex-wrap: wrap; }
  .ska-code-row button { width: 100%; height: 34px; }
}
