/* EasyDecide H5 注册 */
:root {
  --ed-forest: #174a35;
  --ed-deep: #0f2f22;
  --ed-lime: #c6f04a;
  --ed-mint: #e8f3ec;
  --ed-ink: #0a100d;
  --ed-mute: #4a5c53;
  --ed-line: rgba(10, 16, 13, .12);
  --ed-font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ed-reg {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--ed-font);
  color: var(--ed-ink);
  background:
    radial-gradient(120% 80% at 10% -10%, #d8f0c8 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #b8e0d0 0%, transparent 50%),
    linear-gradient(180deg, #f4faf6 0%, #eef5f1 42%, #e6efe9 100%);
  font-weight: 700;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.ed-reg a { color: inherit; text-decoration: none; }
.ed-reg img { display: block; max-width: 100%; }
.ed-reg button, .ed-reg input, .ed-reg select { font: inherit; font-weight: 800; }

.ed-reg-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ed-line);
}
.ed-reg-top__back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--ed-line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ed-ink);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}
.ed-reg-top__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  /* 给右侧「注册/登录」留位，副标题两行也不挤竖排 */
  max-width: calc(100% - 96px);
}
.ed-reg-top__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(18, 61, 44, .08);
}
.ed-reg-top__name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.ed-reg-top__brand > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  gap: 1px;
}
.ed-reg-top__tag {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 10px;
  font-weight: 700;
  color: #3d5248;
  letter-spacing: -.01em;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.ed-reg-top__login {
  margin-left: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: max-content;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 74, 53, .28);
  background: #fff;
  color: var(--ed-forest);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: keep-all;
  overflow: visible;
}

.ed-reg-main {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.ed-reg-hero {
  text-align: center;
  padding: 8px 8px 20px;
}
.ed-reg-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ed-deep);
}
.ed-reg-hero h1 em {
  font-style: normal;
  color: var(--ed-forest);
}
.ed-reg-hero p {
  margin: 0;
  color: var(--ed-mute);
  font-size: .95rem;
  font-weight: 600;
}

.ed-reg-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--ed-line);
  box-shadow: 0 18px 40px rgba(15, 47, 34, .1);
  padding: 22px 18px 20px;
}

.ed-reg-field { margin-bottom: 14px; }
.ed-reg-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 800;
  color: var(--ed-deep);
}
.ed-reg-field label span {
  color: var(--ed-mute);
  font-weight: 600;
}
.ed-reg-field input,
.ed-reg-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(23, 74, 53, .18);
  background: #f8fbf9;
  color: var(--ed-ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ed-reg-field input:focus,
.ed-reg-field select:focus {
  border-color: var(--ed-forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 74, 53, .12);
}

/* 密码显示/隐藏眼睛 */
.ed-pwd-wrap {
  position: relative;
}
.ed-pwd-wrap input {
  padding-right: 48px;
}
.ed-pwd-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ed-pwd-toggle:hover,
.ed-pwd-toggle:focus {
  color: var(--ed-forest, #174a35);
  outline: none;
  background: rgba(23, 74, 53, .06);
}
.ed-pwd-toggle .ed-eye-off { display: none; }
.ed-pwd-toggle.is-on .ed-eye-on { display: none; }
.ed-pwd-toggle.is-on .ed-eye-off { display: block; }
.ed-reg-field--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 380px) {
  .ed-reg-field--2 { grid-template-columns: 1fr; }
}

.ed-reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ed-mute);
  line-height: 1.4;
}
.ed-reg-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ed-forest);
}
.ed-reg-consent a {
  color: var(--ed-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ed-reg-msg {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: .88rem;
  font-weight: 700;
}
.ed-reg-msg.is-ok { color: #0a7a45; }
.ed-reg-msg.is-err { color: #b42318; }

.ed-reg-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f5c42, var(--ed-forest));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 74, 53, .28);
}
.ed-reg-submit:disabled {
  opacity: .65;
  cursor: wait;
}
.ed-reg-submit:not(:disabled):active { transform: translateY(1px); }

.ed-reg-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ed-mute);
}
.ed-reg-note a {
  color: var(--ed-forest);
  font-weight: 800;
}

.ed-reg-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.ed-reg-perks span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--ed-line);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ed-mute);
}

@media (min-width: 720px) {
  .ed-reg-main { padding-top: 36px; }
  .ed-reg-card { padding: 28px 26px 24px; }
}

/* 登录页深色 hero */
.ed-reg-hero--login {
  text-align: left;
  background: linear-gradient(145deg, var(--ed-deep) 0%, var(--ed-forest) 58%, #1a6b4a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 22px 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 14px 32px rgba(15, 47, 34, .22);
}
.ed-reg-hero--login h1 {
  color: #fff;
  margin-bottom: 10px;
}
.ed-reg-hero--login h1 em {
  color: var(--ed-lime);
}
.ed-reg-hero--login p {
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  line-height: 1.55;
}
.ed-reg-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* 仅会员登录页：底部 App 下载悬浮胶囊（对齐易全球官网 gsc-sticky-dl） */
body.ed-login {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
body.ed-login .ed-float-dock,
body.ed-reg .ed-float-dock {
  z-index: 1100;
}
body.ed-login .ed-float-dock {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}
.ed-login-sticky-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  pointer-events: none;
}
.ed-login-sticky-dl__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
  padding: 11px 14px;
  border-radius: 22px;
  background: var(--ed-forest);
  box-shadow:
    0 4px 20px rgba(23, 74, 53, .36),
    0 10px 36px rgba(15, 47, 34, .16);
}
.ed-login-sticky-dl__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
}
.ed-login-sticky-dl__copy {
  flex: 1;
  min-width: 0;
  color: #fff;
  line-height: 1.3;
}
.ed-login-sticky-dl__copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.ed-login-sticky-dl__copy span,
.ed-login-sticky-dl__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
  color: #f4ffc4;
  opacity: 1;
  -webkit-text-fill-color: #f4ffc4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-login-sticky-dl__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ed-lime);
  color: var(--ed-deep);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  white-space: nowrap;
}
.ed-login-sticky-dl__btn:active {
  transform: scale(.97);
}
body.ed-drawer-open .ed-login-sticky-dl {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
