/* 会员注册页：PC 左右分栏，移动端纵向堆叠 */

.reg-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 8% -8%, #e8ecff 0%, transparent 62%),
    radial-gradient(900px 560px at 100% 100%, #eef4ff 0%, transparent 58%),
    #f7f9fc;
}
.reg-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部导航 ---------- */
.site-header {
  width: 100%; max-width: 1280px; margin: 0 auto;
  height: 74px; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(79, 70, 229, .3);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: .2px; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  border: 0; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; padding: 6px 0;
}
.nav-link:hover { color: var(--brand); }
.nav-admin {
  color: var(--brand); font-weight: 600;
  border: 1.5px solid var(--brand-100); border-radius: 8px; padding: 6px 14px;
  background: rgba(255, 255, 255, .7);
}
.nav-admin:hover { background: var(--brand-50); }

/* ---------- 主体布局 ---------- */
.reg-main {
  flex: 1; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 18px 36px 46px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 58px; align-items: stretch;
}

/* ---------- 左侧品牌区 ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 590px; height: 100%; border-radius: 26px;
  background: linear-gradient(145deg, #4338ca 0%, #4f46e5 44%, #6d5ce7 100%);
  box-shadow: 0 26px 60px rgba(67, 56, 202, .28);
  color: #fff; padding: 54px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(520px 400px at 88% 12%, rgba(255, 255, 255, .17), transparent 70%),
    radial-gradient(460px 420px at 5% 95%, rgba(129, 140, 248, .45), transparent 72%);
}
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); z-index: -1; }
.orb-1 { width: 460px; height: 460px; right: -190px; top: -170px; }
.orb-2 { width: 320px; height: 320px; left: -160px; bottom: -140px; }
.hero-inner { position: relative; z-index: 1; max-width: 470px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; font-weight: 600; letter-spacing: .4px; margin-bottom: 28px;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 4px rgba(167, 243, 208, .2); }
.hero-title { font-size: 38px; line-height: 1.36; font-weight: 750; letter-spacing: -.5px; }
.hero-title em { font-style: normal; color: #c7d2fe; }
.hero-desc { font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .78); margin-top: 18px; max-width: 420px; }
.feature-list { margin-top: 42px; display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-list b { display: block; font-size: 14px; font-weight: 650; margin-bottom: 2px; }
.feature-list small { display: block; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .68); }
.hero-contact {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12.5px; color: rgba(255, 255, 255, .66); display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}
.hero-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-contact .sep { opacity: .5; }

/* 装饰卡片 */
.hero-deco { position: absolute; right: 40px; bottom: 44px; z-index: 0; opacity: .92; }
.deco-card {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); border-radius: 14px;
}
.deco-main { width: 190px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.deco-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #a5b4fc, #f0abfc); flex: none; }
.deco-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.deco-lines i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.deco-lines i:nth-child(2) { width: 70%; opacity: .7; }
.deco-lines i:nth-child(3) { width: 45%; opacity: .5; }
.deco-check { width: 24px; height: 24px; border-radius: 50%; background: #34d399; display: grid; place-items: center; color: #065f46; flex: none; }
.deco-check svg { width: 14px; height: 14px; }
.deco-float {
  position: absolute; right: -18px; top: -34px; padding: 8px 12px;
  font-size: 11.5px; color: #fff; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 20px rgba(20, 20, 60, .2);
}
.deco-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; }

/* ---------- 右侧表单 ---------- */
.form-panel { display: flex; justify-content: center; align-items: center; }
.form-card {
  width: 100%; max-width: 470px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 34px 36px 26px;
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 24px; border-radius: 11px;
  background: var(--surface-soft); border: 1px solid var(--border);
}
.auth-tab {
  min-height: 40px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
.auth-tab:hover { color: var(--brand); }
.auth-tab.active {
  background: var(--surface); color: var(--brand);
  box-shadow: 0 2px 8px rgba(31, 41, 55, .08);
}
.auth-tab:focus-visible { outline: 3px solid rgba(79, 70, 229, .18); outline-offset: 1px; }
.form-head { margin-bottom: 20px; }
.business-notice { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-dark); }
.business-notice b { font-weight: 700; }
.form-head-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.form-head-icon svg { width: 23px; height: 23px; }
.form-head h2 { font-size: 23px; font-weight: 750; color: var(--text-strong); letter-spacing: -.3px; }
.form-head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* 验证码按钮 */
#sendCodeBtn { height: 32px; min-width: 96px; }
.dev-code {
  margin-top: 8px; padding: 9px 12px; border-radius: 8px;
  background: var(--warn-bg); border: 1px dashed #fcd34d;
  font-size: 12.5px; color: #92400e;
}
.dev-code b { font-size: 15px; letter-spacing: 2px; color: #b45309; }

/* 密码强度 */
.pwd-strength { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.pwd-bars { display: flex; gap: 4px; flex: 1; }
.pwd-bars i { flex: 1; height: 4px; border-radius: 3px; background: var(--border); transition: background .2s; }
.pwd-text { font-size: 11.5px; color: var(--muted); min-width: 52px; text-align: right; }
.pwd-strength[data-level="1"] .pwd-bars i:nth-child(1) { background: #ef4444; }
.pwd-strength[data-level="1"] .pwd-text { color: #ef4444; }
.pwd-strength[data-level="2"] .pwd-bars i:nth-child(-n+2) { background: #f59e0b; }
.pwd-strength[data-level="2"] .pwd-text { color: #d97706; }
.pwd-strength[data-level="3"] .pwd-bars i:nth-child(-n+3) { background: #3b82f6; }
.pwd-strength[data-level="3"] .pwd-text { color: #2563eb; }
.pwd-strength[data-level="4"] .pwd-bars i { background: #16a34a; }
.pwd-strength[data-level="4"] .pwd-text { color: #16a34a; }

/* 协议勾选 */
.agreement { margin: 4px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.check-row { position: relative; display: flex; align-items: flex-start; gap: 9px; font-size: 12.8px; color: #4b5563; cursor: pointer; line-height: 1.7; }
.check-row input { position: absolute; left: 0; top: 3px; opacity: 0; width: 16px; height: 16px; margin: 0; z-index: 2; cursor: pointer; }
.checkmark {
  flex: none; width: 16px; height: 16px; margin-top: 3px;
  border: 1.5px solid var(--border-strong); border-radius: 4px;
  background: #fff; position: relative; transition: all .16s;
}
.check-row input:checked + .checkmark { background: var(--brand); border-color: var(--brand); }
.check-row input:checked + .checkmark::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.check-row input:focus-visible + .checkmark { box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.link-btn { border: 0; background: transparent; padding: 0; color: var(--brand); font-size: inherit; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.form-tip { font-size: 11.5px; color: var(--muted-light); text-align: center; margin-top: 12px; }
.form-links {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12.5px; color: var(--muted-light);
}
.form-links .link-btn { font-size: 12.5px; font-weight: 500; }

/* 成功视图 */
.success-view { text-align: center; padding: 12px 0 6px; }
.success-secondary { margin-top: 10px; }
.success-icon {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--success-bg); color: var(--success); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(22, 163, 74, .06);
}
.success-icon svg { width: 34px; height: 34px; }
.success-view h3 { font-size: 22px; font-weight: 750; color: var(--text-strong); }
.success-view > p { font-size: 13.5px; color: var(--muted); margin: 7px 0 24px; }
.success-meta {
  text-align: left; background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 16px; margin-bottom: 22px;
}
.success-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.success-meta div:last-child { border-bottom: 0; }
.success-meta span { color: var(--muted); }
.success-meta b { color: var(--text-strong); font-weight: 600; word-break: break-all; text-align: right; }

/* ---------- 页脚 ---------- */
.site-footer {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 18px 36px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-light);
}
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-links .link-btn { font-size: 12px; font-weight: 400; }
.footer-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .reg-main { gap: 34px; padding-left: 24px; padding-right: 24px; }
  .hero { padding: 42px 34px; min-height: 560px; }
  .hero-title { font-size: 32px; }
  .hero-deco { right: 22px; bottom: 22px; transform: scale(.86); transform-origin: right bottom; }
  .form-card { padding: 30px 28px 24px; }
}

@media (max-width: 1023px) {
  .site-header { height: 64px; padding: 0 20px; }
  .header-nav { gap: 16px; }
  .nav-feature { display: none; }
  .reg-main {
    grid-template-columns: 1fr; gap: 0; max-width: 620px;
    padding: 0 18px 30px; align-items: start;
  }
  .hero {
    min-height: 0; height: auto; margin: 0 -18px 22px; border-radius: 0 0 22px 22px;
    padding: 26px 24px 28px; box-shadow: 0 10px 24px rgba(67, 56, 202, .14);
  }
  .hero-tag { margin-bottom: 14px; }
  .hero-title { font-size: 23px; line-height: 1.45; }
  .hero-desc { font-size: 13px; margin-top: 9px; max-width: none; }
  .feature-list, .hero-contact, .hero-deco, .orb-2 { display: none; }
  .form-card { max-width: none; border: 0; box-shadow: none; background: transparent; padding: 4px 0 0; }
  .form-head { margin-bottom: 20px; }
  .form-head-icon { display: none; }
  .form-head h2 { font-size: 20px; }
  .site-footer { max-width: 620px; padding: 16px 18px 26px; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .header-nav { gap: 12px; }
  .nav-link { font-size: 12.5px; }
  #navPrivacy { display: none; }
  .nav-admin { padding: 5px 11px; font-size: 12.5px; }
  .hero { padding: 22px 20px 24px; }
  .hero-title { font-size: 21px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .input { height: 48px; }
  .btn-lg { height: 50px; }
  .form-tip { font-size: 11px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta { gap: 10px; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 18px; }
  .modal-head, .modal-foot { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
