/* 7MGO-REGISTER-CURRENT-PAGE-RESPONSIVE-FIT-FIX: 注册页响应式适配修复（仅尺寸/布局/高度）。
   视觉方案保持不变：7mgo Logo / ACCESS REQUEST / 标题 / 表单内容 / 配色体系 / 右侧数据图 /
   3 条说明 / Footer 文案，一律不改。本文件只负责：
   1) 页面高度结构（html/body/.page-shell flex，Main flex:1，Footer 落底）；
   2) Desktop 主容器/面板随视口放大（clamp 尺寸，禁止 transform:scale/zoom）；
   3) Mobile 独立单栏布局（<=768px 右视觉隐藏），无横向溢出。 */

/* ================= 高度结构：Footer 自然落底 ================= */
html { min-height: 100%; }

body.register-page {
  margin: 0;
  min-height: 100vh;              /* 旧浏览器 fallback */
  min-height: 100dvh;             /* iOS Safari 动态视口 */
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 70% 10%, rgba(59,130,246,.10), transparent 34%), #08101d;
}

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ================= 页面容器：Desktop 居中自适应 ================= */
.register-main {
  flex: 1;
  width: min(1240px, calc(100vw - 64px));
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vh, 56px) clamp(20px, 3vw, 32px) clamp(40px, 6vh, 64px);
}

/* ================= Header（与首页同风格，高度 64-72px）================= */
.register-nav .nav { min-height: 68px; }
.register-nav .nav-links a { color: #bdc9d8; text-decoration: none; font-size: 14px; }
.register-nav .nav-links a:hover { color: #fff; }

/* ================= 主面板：左右双栏，随视口自适应 ================= */
.register-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 4vw, 64px);
  min-height: clamp(620px, 68vh, 760px);
  padding: clamp(28px, 3vw, 52px);
  background: linear-gradient(160deg, #0e1a2c 0%, #0b1424 100%);
  border: 1px solid rgba(38,54,74,.85);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
  position: relative;
  overflow: hidden;
}
.register-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

/* ================= 左侧：表单 ================= */
.register-left { position: relative; display: flex; flex-direction: column; }
.register-left .section-kicker { margin: 0 0 10px; }
.register-title { font-size: clamp(30px, 2.5vw, 46px); line-height: 1.22; letter-spacing: -.02em; margin: 0 0 14px; }
.register-lead { max-width: 520px; line-height: 1.7; color: #aab8c9; font-size: clamp(14px, 1vw, 16px); margin: 0 0 clamp(20px, 3vh, 28px); }
.register-lead strong { color: #79a8ff; font-weight: 600; }

/* ================= 表单：纵向单列 ================= */
.register-form { display: flex; flex-direction: column; gap: 0; }
.register-form .field { margin-bottom: clamp(14px, 2vh, 18px); }
.register-form label { display: block; font-size: 13px; color: #c6d2e0; margin-bottom: 7px; }
.register-form .req { color: #f87171; }
.register-form input[type=email],
.register-form input[type=text] {
  width: 100%;
  min-height: 46px;
  height: 48px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #26364a;
  background: #0c1524;
  color: #eef3f9;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.register-form input:focus,
.register-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* textarea + 字数 */
.textarea-wrap { position: relative; }
.register-form textarea {
  width: 100%;
  height: clamp(100px, 13vh, 150px);
  padding: 12px 14px 26px;
  border-radius: 9px;
  border: 1px solid #26364a;
  background: #0c1524;
  color: #eef3f9;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
}
.register-form .counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

/* checkbox：单独一行，垂直居中 */
.agree {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 13px;
  color: #bdc9d8;
  line-height: 1.5;
  cursor: pointer;
}
.agree input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #3b82f6; margin: 0; cursor: pointer; }

/* CTA */
.register-submit {
  width: 100%;
  height: 50px;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
}
.register-submit .btn-icon { transition: transform .15s ease; }
.register-submit:hover .btn-icon { transform: translate(2px,-2px); }
.register-submit.loading { opacity: .75; cursor: wait; }

/* 状态区 */
.register-status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; color: #aab8c9; }
.register-status.ok { color: #4ade80; }
.register-status.error { color: #f87171; }

/* 底部辅助 */
.register-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.6; }
.register-note a { color: #79a8ff; text-decoration: none; }
.register-note a:hover { text-decoration: underline; }

/* ================= 右侧：研究视觉（尺寸跟随容器）================= */
.register-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 30px);
}
.research-visual { position: relative; height: clamp(150px, 22vh, 220px); }
.research-visual .network { position: absolute; inset: 0; width: 100%; height: 100%; }
.research-visual .bars {
  position: absolute;
  left: 26px; right: 26px; bottom: 6px;
  display: flex; align-items: flex-end; gap: 8px;
  height: 86px;
  opacity: .8;
}
.research-visual .bars .b {
  flex: 1;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 3px 3px 0 0;
  opacity: .75;
}
.b1{height:34%}.b2{height:58%}.b3{height:42%}.b4{height:74%}
.b5{height:52%}.b6{height:86%}.b7{height:64%}.b8{height:46%}

.value-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(16px, 2.5vh, 22px); }
.value-points li { display: flex; gap: 14px; align-items: flex-start; }
.vp-icon {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.28);
  color: #79a8ff;
}
.value-points strong { display: block; color: #e6edf6; font-size: 15px; margin-bottom: 3px; }
.value-points p { margin: 0; font-size: 13px; color: #8fa1b5; line-height: 1.55; }

/* ================= Footer：文档流落底（Main flex:1 已撑开）================= */
.register-footer {
  width: min(1240px, calc(100vw - 64px));
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}
.register-footer .sep { color: #3d4c60; }

/* ================= Mobile（<= 768px 独立单栏布局） ================= */
@media (max-width: 768px) {
  body.register-page {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .register-main { width: 100%; padding: clamp(24px, 6vw, 32px) 20px 40px; }
  .register-nav .nav-links a:not(.nav-login) { display: none; } /* 只留返回首页 */
  .register-panel {
    display: block;
    width: 100%;
    padding: clamp(24px, 6vw, 34px) clamp(18px, 5vw, 22px);
    min-height: 0;
    border-radius: 14px;
  }
  .register-title { font-size: clamp(28px, 8vw, 36px); }
  .register-lead { font-size: 15px; }
  .register-form .field { margin-bottom: 18px; }
  .register-form input[type=email],
  .register-form input[type=text] { height: 48px; }
  .register-form textarea { height: clamp(110px, 30vw, 140px); }
  .register-submit { height: 50px; }
  .register-right { display: none; } /* 右侧视觉区隐藏 */
  .register-footer { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); }
  .register-footer .sep { display: none; } /* 竖线分隔符移动端隐藏 */
}

@media (max-width: 480px) {
  .register-main { padding: 22px 16px 36px; }
  .register-panel { padding: 26px 16px; }
  .agree { font-size: 12px; }
}
