/* wechat-login-modal.css — 共享「微信登录」中央弹窗 */

.wlm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.wlm-overlay.show { opacity: 1; }

.wlm-box {
  position: fixed;
  z-index: 10001;
  left: 50%;
  top: 50%;
  width: min(340px, calc(100vw - 48px));
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  background: var(--c-bg, #fff);
  border-radius: 18px;
  padding: 28px 22px 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: center;
}
.wlm-box.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wlm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--c-hint, #999);
  font-size: 18px;
  cursor: pointer;
}
.wlm-close:active { opacity: 0.6; }

.wlm-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2dc100 0%, #07c160 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wlm-logo i { font-size: 32px; color: #fff; line-height: 1; }

.wlm-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text, #1a1a1a);
}
.wlm-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-hint, #999);
}

.wlm-account-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.wlm-account {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border, #ececec);
  border-radius: 12px;
  background: var(--c-surface, #f7f7f7);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.wlm-account:active {
  background: var(--c-border, #ececec);
  transform: scale(0.99);
}

.wlm-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-surface, #eee);
}
.wlm-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wlm-account-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07c160;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.wlm-account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wlm-account-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text, #1a1a1a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wlm-account-id {
  font-size: 12px;
  color: var(--c-hint, #999);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wlm-account-arrow {
  color: var(--c-hint, #ccc);
  font-size: 14px;
  flex-shrink: 0;
}

.wlm-empty {
  padding: 30px 0;
  font-size: 14px;
  color: var(--c-hint, #999);
}
