* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: #f4f6fb;
  color: #1f2937;
}

.register-page {
  padding: 32px 20px 48px;
}

.register-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.register-shell-single {
  grid-template-columns: 1fr 320px;
}

.register-main {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.register-title h1 {
  margin: 0;
  font-size: 28px;
}

.register-title p {
  margin: 10px 0 0;
  color: #64748b;
}

.register-steps {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.register-steps li {
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  color: #64748b;
  background: #f8fbff;
}

.register-steps li.is-active {
  border-color: #2b7cff;
  color: #2b7cff;
  background: #eaf2ff;
  font-weight: 700;
}

.register-form {
  display: grid;
  gap: 14px;
}

.error-box {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
}

.register-form-group {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 8px;
}

.register-form-group h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.register-form-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.register-form-row label {
  /* flex: 0 0 130px; */
  min-width: 150px;
  color: #475569;
  font-size: 14px;
  line-height: 40px;
  text-align: right;
}

.register-form-row label .required {
  color: #dc2626;
}

.register-form-row .register-input,
.register-form-row select.register-input {
  flex: 1;
  min-width: 0;
}

/* 多行内容行（textarea、checkbox组等）label 顶部对齐 */
.register-form-row-block {
  align-items: flex-start;
}

.register-form-row-block label {
  line-height: 1.5;
  padding-top: 8px;
  min-width: 60px;
}

.layui-form .ql-toolbar [lay-ignore],
.ql-toolbar [lay-ignore] {
  display: none !important;
}

.register-checkbox-group {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

/* 富文本编辑器容器 */
.register-rich-editor-wrap {
  flex: 1;
  min-width: 0;
}

.register-rich-editor-wrap .release-description-textarea {
  display: none;
}

.register-rich-editor-wrap .ql-toolbar.ql-snow {
  border: 1px solid #d0d8e6;
  border-radius: 8px 8px 0 0;
}

.register-rich-editor-wrap .ql-container.ql-snow {
  border: 1px solid #d0d8e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 140px;
}

.register-rich-editor-wrap .ql-editor {
  min-height: 140px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}

.register-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d8e6;
  border-radius: 8px;
  font-size: 14px;
}

.register-textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}

.register-captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}

#registerCaptchaImage {
  width: 120px;
  height: 40px;
  border: 1px solid #d0d8e6;
  border-radius: 8px;
  background: #eef4ff;
}

.upload-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.upload-panel label {
  flex: 0 0 130px;
  min-width: 130px;
  color: #475569;
  font-size: 14px;
  text-align: right;
}

.upload-panel .register-input {
  flex: 1;
  min-width: 0;
}

.layui-form [lay-ignore]{
  /* display: none; */
}

/* 申请流程 */
.process-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  margin-top: 20px;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e8e8e8;
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.process-step.active .step-number {
  background-color: #1890ff;
  color: #fff;
}

.process-step.active::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #1890ff;
  z-index: -1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e8e8e8;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 600;
}

.step-title {
  font-size: 0.9rem;
  color: #666;
}

.step-title.active {
  color: #1890ff;
  font-weight: 500;
}

.register-file-input {
  display: none;
}

.register-submit {
  height: 42px;
  border-radius: 8px;
}

.register-login-entry {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.register-login-entry a {
  color: #2b7cff;
}

.register-result {
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.register-result h1 {
  margin: 0;
  font-size: 32px;
  color: #1d4ed8;
}

.register-result p {
  margin: 12px 0 24px;
  color: #475569;
}

.register-notice {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.register-notice h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.register-notice ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.8;
}

.wechat-qrcode {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.wechat-qrcode img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
}

.register-input[readonly] {
  cursor: pointer;
}

.release-dropdown-panel {
  min-width: 220px;
}

.release-dropdown-panel > .layui-menu {
  max-height: min(56vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
}

.release-dropdown-panel .layui-menu-body-title {
  display: block;
  max-width: 188px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 行内组合（如注册资金+单位） */
.register-inline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.register-inline-group .register-input {
  flex: 1;
  min-width: 0;
}

.register-inline-select {
  width: 90px;
  height: 40px;
  border: 1px solid #d0d8e6;
  border-radius: 8px;
  font-size: 14px;
  padding: 0 8px;
}

.register-inline-text {
  white-space: nowrap;
  color: #475569;
  font-size: 14px;
}


.release-dropdown-panel .layui-dropdown-child {
  max-height: min(56vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .register-shell,
  .register-shell-single {
    grid-template-columns: 1fr;
  }
}
