/* 优信商城 V6 · 公众端门户 */

/* —— 登录弹窗 —— */
.ux-auth-dialog .el-dialog__header {
  margin-right: 0;
  padding-bottom: 4px;
}
.ux-auth-head {
  padding-right: 24px;
}
.ux-auth-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ux-text, #2B3D41);
  letter-spacing: 0.02em;
}
.ux-auth-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ux-text-secondary, #4C5B61);
  line-height: 1.45;
}
.ux-auth-oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.ux-auth-oauth:has(> :only-child) {
  grid-template-columns: 1fr;
}
.ux-auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ux-border, #B8E4E8);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--ux-text, #2B3D41);
}
.ux-auth-oauth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 128, 144, 0.12);
}
.ux-auth-oauth-btn--wechat {
  border-color: #95d5a5;
  color: #07c160;
}
.ux-auth-oauth-btn--wechat:hover {
  border-color: #07c160;
  background: #f3fbf6;
}
.ux-auth-oauth-btn--alipay {
  border-color: #9ec9ff;
  color: #1677ff;
}
.ux-auth-oauth-btn--alipay:hover {
  border-color: #1677ff;
  background: #f3f8ff;
}
.ux-auth-oauth-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.ux-auth-oauth-btn--wechat .ux-auth-oauth-icon { background: #07c160; }
.ux-auth-oauth-btn--alipay .ux-auth-oauth-icon { background: #1677ff; }
.ux-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: #9aa7ad;
  font-size: 12px;
}
.ux-auth-divider::before,
.ux-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6eef0;
}
.ux-auth-tabs .el-tabs__header {
  margin-bottom: 14px;
}
.ux-auth-tabs .el-tabs__item {
  font-size: 14px;
  font-weight: 600;
}
.ux-auth-form .el-form-item {
  margin-bottom: 14px;
}
.ux-auth-form .el-form-item__label {
  font-weight: 600;
  color: var(--ux-text, #2B3D41);
  padding-bottom: 4px !important;
}
.ux-auth-form .el-input-group__append {
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.ux-sms-send-btn {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: 100%;
  min-width: 118px;
  padding: 0 14px !important;
  color: var(--ux-teal, #028090) !important;
  font-weight: 600;
  background: #f3fafb !important;
}
.ux-sms-send-btn:hover:not(.is-disabled) {
  background: #e6f7f8 !important;
  color: #026f7d !important;
}
.ux-sms-demo-hint {
  font-size: 12px;
  color: var(--ux-teal, #028090);
  margin-top: 6px;
}
.ux-auth-tip {
  font-size: 12px;
  color: var(--ux-text-secondary, #4C5B61);
  margin: 0;
  line-height: 1.5;
}
.ux-auth-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.ux-auth-footer .el-button--primary {
  min-width: 132px;
}
.ux-oauth-qr-body {
  text-align: center;
  padding: 4px 0 8px;
}
.ux-oauth-qr-frame {
  display: inline-flex;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #e6f7f8 0%, #ffffff 55%, #f4f7f9 100%);
  border: 1px solid var(--ux-border, #B8E4E8);
  box-shadow: 0 8px 24px rgba(2, 128, 144, 0.1);
}
.ux-oauth-qr-frame canvas {
  width: 220px;
  height: 220px;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.ux-oauth-qr-hint {
  font-size: 13px;
  color: var(--ux-text-secondary, #4C5B61);
  margin: 16px 0 0;
  line-height: 1.5;
}
.ux-oauth-qr-status {
  font-size: 13px;
  margin: 8px 0 0;
  color: var(--ux-teal, #028090);
  font-weight: 600;
}
.ux-oauth-mock-btn {
  margin-top: 14px;
}

.public-portal-pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  padding: 16px;
  background: var(--ux-sky, #E6F7F8);
  border-radius: 12px;
  border: 1px solid var(--ux-border, #B8E4E8);
}
.public-portal-pay-qr canvas,
.public-portal-pay-qr img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(2, 128, 144, 0.12);
}
.public-portal-pay-qr-hint {
  font-size: 13px;
  color: var(--ux-text-secondary, #4C5B61);
  text-align: center;
  line-height: 1.5;
}
.public-portal-pay-polling {
  font-size: 12px;
  color: var(--ux-teal, #028090);
  display: flex;
  align-items: center;
  gap: 6px;
}
.public-portal-pay-polling::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ux-teal, #028090);
  animation: public-pay-pulse 1.2s ease-in-out infinite;
}
@keyframes public-pay-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
.public-portal-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.public-portal-module-card {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ux-border, #B8E4E8);
  font-size: 12px;
  color: var(--ux-text-secondary);
}
.public-portal-module-card strong {
  display: block;
  font-size: 13px;
  color: var(--ux-teal, #028090);
  margin-bottom: 4px;
}
.public-portal-module-card.is-planned {
  opacity: 0.55;
}
