/* ===== 乐豆说 登录注册弹窗样式 ===== */

/* 遮罩层 */
.ld-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-animation: ldFadeIn 0.3s ease;
  animation: ldFadeIn 0.3s ease;
}

/* 弹窗卡片 */
.ld-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  -webkit-animation: ldSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ldSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

/* 关闭按钮 */
.ld-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.ld-close:active {
  background: rgba(0, 0, 0, 0.12);
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}

/* 头部区域 */
.ld-header {
  padding: 32px 24px 20px;
  text-align: center;
}
.ld-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: -webkit-linear-gradient(135deg, #FF7A45, #FF5722);
  background: linear-gradient(135deg, #FF7A45, #FF5722);
  border-radius: 18px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: bold;
  -webkit-box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.ld-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 6px;
  background: -webkit-linear-gradient(135deg, #FF7A45, #FF5722);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FF5722;
}
.ld-subtitle {
  font-size: 13px;
  color: #999;
  margin: 0;
}

/* 内容区域 */
.ld-body {
  padding: 8px 24px 28px;
}

/* Tab 切换 */
.ld-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.ld-tab {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  border: none;
  background: none;
}
.ld-tab.ld-tab-active {
  color: #FF5722;
  font-weight: 600;
}
.ld-tab.ld-tab-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: -webkit-linear-gradient(135deg, #FF7A45, #FF5722);
  background: linear-gradient(135deg, #FF7A45, #FF5722);
  border-radius: 2px;
}
.ld-tab.ld-tab-disabled {
  color: #ccc;
  cursor: not-allowed;
}
.ld-tab.ld-tab-disabled::after {
  display: none;
}

/* "即将开放" 提示气泡 */
.ld-toast-wrap {
  position: relative;
  display: inline-block;
}
.ld-toast {
  position: absolute;
  bottom: 120%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  z-index: 10;
}
.ld-toast::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.75);
}
.ld-toast.ld-toast-show {
  opacity: 1;
}

/* 表单 */
.ld-form {
  display: none;
}
.ld-form.ld-form-active {
  display: block;
}
.ld-form-group {
  margin-bottom: 14px;
}
.ld-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: #333;
  outline: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background: #fafafa;
}
.ld-input:focus {
  border-color: #FF8C42;
  background: #fff;
}
.ld-input::-webkit-input-placeholder {
  color: #bbb;
}
.ld-input::-moz-placeholder {
  color: #bbb;
}
.ld-input:-ms-input-placeholder {
  color: #bbb;
}

/* 密码输入框包裹层 */
.ld-input-wrap {
  position: relative;
}
.ld-input-wrap .ld-input {
  padding-right: 44px;
}
.ld-pwd-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  line-height: 1;
}
.ld-pwd-toggle:active {
  background: rgba(0, 0, 0, 0.06);
}

/* 按钮通用 */
.ld-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.ld-btn:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}

/* 主按钮 - 橙色渐变 */
.ld-btn-primary {
  background: -webkit-linear-gradient(135deg, #FF7A45, #FF5722);
  background: linear-gradient(135deg, #FF7A45, #FF5722);
  color: #fff;
  -webkit-box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.ld-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* 次按钮 - 白底橙边 */
.ld-btn-outline {
  background: #fff;
  color: #FF5722;
  border: 1.5px solid #FF8C42;
}
.ld-btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 选择模式按钮间距 */
.ld-select-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

/* 错误提示 */
.ld-error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
}
.ld-error.ld-error-show {
  display: block;
}

/* 切换链接 */
.ld-switch-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #999;
}
.ld-switch-link a {
  color: #FF5722;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.ld-switch-link a:active {
  opacity: 0.7;
}

/* Loading 旋转器 */
.ld-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: ldSpin 0.7s linear infinite;
  animation: ldSpin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
.ld-btn-outline .ld-spinner {
  border-color: rgba(255, 87, 34, 0.25);
  border-top-color: #FF5722;
}

/* 动画关键帧 */
@-webkit-keyframes ldFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ldFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@-webkit-keyframes ldSlideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@keyframes ldSlideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@-webkit-keyframes ldSpin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes ldSpin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* 隐藏类 */
.ld-hidden {
  display: none !important;
}

/* ===== 手机端适配 ===== */
@media screen and (max-width: 480px) {
  .ld-overlay {
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
  }
  .ld-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    -webkit-animation: ldSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: ldSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ld-header {
    padding: 28px 20px 16px;
  }
  .ld-body {
    padding: 8px 20px 32px;
  }
  .ld-title {
    font-size: 20px;
  }
  .ld-btn {
    height: 48px;
  }
}

/* 超小屏适配 */
@media screen and (max-width: 360px) {
  .ld-header {
    padding: 24px 16px 14px;
  }
  .ld-body {
    padding: 8px 16px 28px;
  }
}
/* [2026-09-05] 微信一键登录主按钮（登录首屏居中醒目） */
.ld-btn-wx {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: -webkit-linear-gradient(135deg, #2DC100, #07C160);
  background: linear-gradient(135deg, #2DC100, #07C160);
  -webkit-box-shadow: 0 6px 18px rgba(7, 193, 96, 0.35);
  box-shadow: 0 6px 18px rgba(7, 193, 96, 0.35);
  cursor: pointer;
}
.ld-btn-wx:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
.ld-btn-wx .ld-wx-icon { width: 24px; height: 24px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.ld-wx-tip { text-align: center; font-size: 12px; color: #999; margin: -2px 0 4px; }
.ld-select-sub {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}
.ld-select-sub .ld-btn-sub {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: #fff;
  color: #999;
  border: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
}
