/*
 * 入驻申请页样式（复刻 lmgw 门户 PartnerJoinView）
 * 视觉对齐：Element Plus（primary #c91d39 / success #29a35c）+ 门户卡片 / 角色卡墙
 */

body.lm-join-page {
  margin: 0;
  padding: 0;
  background: #f5f7f9;
  color: #151d28;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft Yahei", "Tahoma", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.lm-join-page #fd,
body.lm-join-page #toTop { display: none; }

/* 内容区撑满，页脚贴底 */
.p-main { flex: 1 0 auto; }

/* ---------- 页面容器 ---------- */
.join-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}
.join-wrap { max-width: 920px; margin: 0 auto; }
.card {
  background: #fff;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
}
.join-card { padding: 28px 40px 34px; }
.steps { margin-bottom: 26px; }

/* ---------- 步骤条（对齐 Element Plus 默认外观） ---------- */
.el-steps { display: flex; align-items: flex-start; }
.el-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.el-step__head {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.el-step__line {
  position: absolute;
  top: 11px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #a8abb2;
}
.el-step:last-child .el-step__line { display: none; }
.el-step__icon {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  line-height: 20px;
  border: 2px solid #a8abb2;
  border-radius: 50%;
  background: #fff;
  color: #a8abb2;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  transition: all 0.2s;
}
.el-step.is-process .el-step__icon {
  border-color: #303133;
  color: #303133;
}
.el-step.is-finish .el-step__icon {
  border-color: #29a35c;
  background: #29a35c;
  color: #fff;
}
.el-step__title {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #a8abb2;
}
.el-step.is-process .el-step__title { color: #303133; font-weight: 700; }
.el-step.is-finish .el-step__title { color: #303133; }

/* ---------- 第一步：角色卡墙 ---------- */
.role-step { min-height: 380px; }
.role-tip { margin: 0 0 20px; color: #5a6b85; font-size: 15px; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.role-card {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.role-card:hover {
  border-color: #c9d3e3;
  box-shadow: 0 8px 20px rgba(24, 49, 90, 0.08);
}
.role-card.on {
  border: 2px solid #c91d39;
  background: linear-gradient(160deg, #fff6f7 0%, #ffe9ed 100%);
  padding: 21px 19px 19px;
}
.role-ico {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.role-ico svg { width: 24px; height: 24px; fill: currentColor; }
.role-name { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #1b2f4e; }
.role-card.on .role-name { color: #c91d39; }
.role-desc { margin: 0; font-size: 13px; color: #8b96a8; line-height: 1.5; }
.role-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 1px 10px;
  border: 1px solid #f2b9c4;
  border-radius: 11px;
  background: #fff;
  color: #c91d39;
  font-size: 12px;
}
.tone-blue .role-ico { background: linear-gradient(160deg, #c91d39, #c91d39); }
.tone-orange .role-ico { background: linear-gradient(160deg, #f7ad3a, #ef8b1a); }
.tone-green .role-ico { background: linear-gradient(160deg, #22c08c, #0fa872); }
.tone-purple .role-ico { background: linear-gradient(160deg, #bf6cf5, #a544e8); }
.tone-rose .role-ico { background: linear-gradient(160deg, #f75a9c, #e13c82); }
.tone-teal .role-ico { background: linear-gradient(160deg, #c91d39, #c91d39); }

/* ---------- 表单 ---------- */
.sec-title {
  font-size: 16px;
  color: #1b2f4e;
  margin: 0 0 18px;
  padding-left: 10px;
  border-left: 4px solid #c91d39;
  line-height: 1.4;
  font-weight: 700;
}
.sub-title {
  margin: 6px 0 16px;
  padding-left: 10px;
  border-left: 3px solid #c9d3e3;
  font-size: 14px;
  font-weight: 600;
  color: #5a6b85;
  line-height: 1.4;
}
.join-form .el-form-item { margin-bottom: 20px; }
.el-form-item__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a52;
  line-height: 1.5;
}
.el-form-item.other-item { margin-top: -12px; }
.el-form-item.other-item .el-form-item__label { display: none; }
.el-form-item__content { position: relative; }
.el-form-item__error {
  display: none;
  padding-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #f56c6c;
}
.el-form-item.is-error .el-form-item__error { display: block; }
.el-form-item.is-error .j-input,
.el-form-item.is-error .j-select,
.el-form-item.is-error .rc-trigger { border-color: #f56c6c; }

.j-input,
.j-select,
.j-textarea {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  line-height: 30px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}
.j-textarea { height: auto; padding: 6px 11px; line-height: 1.6; resize: vertical; }
.j-input::placeholder, .j-textarea::placeholder { color: #c0c4cc; }
.j-input:hover, .j-select:hover, .j-textarea:hover { border-color: #c0c4cc; }
.j-input:focus, .j-select:focus, .j-textarea:focus { border-color: #c91d39; }
.j-select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23909399' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* 必填星号 */
.req { color: #f56c6c; font-style: normal; margin-right: 4px; }

/* 微信号输入 + 获取信息 */
.wx-row { display: flex; align-items: center; }
.wx-row .j-input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fetch-wx {
  height: 32px;
  line-height: 30px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #f5f7fa;
  color: #c91d39;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.fetch-wx:hover { background: #fdf3f5; }

/* 提交成功 */
.join-success { padding: 64px 20px; text-align: center; }
.join-success .ok-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #29a35c;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
}
.join-success h3 { margin: 0 0 12px; font-size: 20px; color: #1b2f4e; }
.join-success p { margin: 0 0 8px; font-size: 14px; color: #5a6b85; }
.join-success p.sub { color: #8b96a8; font-size: 13px; margin-bottom: 22px; }

/* 单选 / 多选（纵向排列） */
.col-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
.col-opts .j-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #606266;
  cursor: pointer;
}
.col-opts .j-check input { margin: 5px 0 0; accent-color: #c91d39; flex-shrink: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* 上传 */
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-note { color: #98a1b3; font-size: 12px; }
.file-selected { margin-top: 6px; font-size: 12px; color: #3e9c4f; }
.j-upload-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  cursor: pointer;
}
.j-upload-btn:hover { border-color: #c91d39; color: #c91d39; background: #fdf3f5; }

/* 按钮 */
.el-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.el-button:hover { border-color: #c91d39; color: #c91d39; background: #fdf3f5; }
.el-button--primary {
  border-color: #c91d39;
  background: #c91d39;
  color: #fff;
}
.el-button--primary:hover { border-color: #d94460; background: #d94460; color: #fff; }
.el-button.is-large { height: 40px; padding: 0 20px; font-size: 14px; }
.el-button[disabled] { opacity: 0.6; cursor: not-allowed; }

.join-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed #e3e8f0;
}
.submit-btn { min-width: 180px; letter-spacing: 2px; }

/* ---------- 区域选择（RegionCascader） ---------- */
.rc { position: relative; width: 100%; }
.rc-trigger {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.rc-trigger.is-open, .rc-trigger:hover { border-color: #c62f2f; }
.rc-value { flex: 1; font-size: 13px; color: #333; line-height: 20px; word-break: break-all; }
.rc-ph { flex: 1; font-size: 13px; color: #b4b4b4; }
.rc-clear { color: #c0c4cc; margin-right: 6px; font-size: 14px; font-style: normal; }
.rc-clear:hover { color: #c62f2f; }
.rc-arrow {
  width: 12px;
  height: 12px;
  color: #9aa0a6;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.rc-arrow.is-rev { transform: rotate(180deg); }
.rc-panel {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 30;
  width: 100%;
  min-width: 320px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 8px;
  box-sizing: border-box;
}
.rc-search { width: 100%; height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; outline: none; box-sizing: border-box; }
.rc-search:focus { border-color: #c62f2f; }
.rc-cols {
  display: flex;
  margin-top: 6px;
  max-height: 240px;
  overflow-x: auto;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.rc-col { min-width: 130px; max-width: 200px; border-right: 1px solid #f0f0f0; overflow-y: auto; max-height: 240px; }
.rc-col:last-child { border-right: none; }
.rc-it {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  white-space: nowrap;
}
.rc-it:hover { background: #f5f7fa; }
.rc-it.is-on { background: #fdecec; color: #c62f2f; font-weight: 600; }
.rc-it-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rc-it-pick {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  color: #c62f2f;
  background: #fdecec;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.rc-it:hover .rc-it-pick { opacity: 1; }
.rc-it-pick:hover { background: #f7d4d4; }
.rc-it-arrow { font-size: 12px; color: #c0c4cc; margin-left: 8px; flex-shrink: 0; }
.rc-sug { margin: 6px 0 0; padding: 0; list-style: none; max-height: 240px; overflow-y: auto; }
.rc-sug-it { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-size: 13px; color: #303133; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.rc-sug-it:hover { background: #f5f7fa; }
.rc-sug-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sug-tag { flex-shrink: 0; margin-left: 10px; padding: 0 6px; font-size: 11px; color: #c62f2f; background: #fdecec; border-radius: 3px; }
.rc-sug-more { padding: 8px 0; text-align: center; font-size: 12px; color: #c62f2f; cursor: pointer; }
.rc-sug-more:hover { background: #f5f7fa; }
.rc-tip { padding: 14px 0; text-align: center; font-size: 12px; color: #a0a6ad; }

/* ---------- 轻提示 ---------- */
.lj-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 9999;
  transform: translateX(-50%);
  max-width: 70vw;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  animation: lj-toast-in 0.2s ease;
}
.lj-toast.is-success { background: #f0f9eb; border: 1px solid #e1f3d8; color: #42905b; }
.lj-toast.is-warning { background: #fdf6ec; border: 1px solid #faecd8; color: #b88230; }
.lj-toast.is-error { background: #fef0f0; border: 1px solid #fde2e2; color: #c45656; }
@keyframes lj-toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 门户页头（复刻 lmgw AppHeader） ---------- */
.p-hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #233b5c 0%, #233b5c 55%, rgba(35, 59, 92, 0.95));
  border-bottom: 1px solid rgba(215, 170, 66, 0.18);
}
.p-hd-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.p-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  user-select: none;
  text-decoration: none;
}
.p-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c91d39, rgba(201, 29, 57, 0.8));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.p-brandtext { display: flex; flex-direction: column; line-height: 1.25; }
.p-brandrow { display: flex; align-items: center; gap: 8px; }
.p-brandtext b { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.p-slogan {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.p-branch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(215, 170, 66, 0.18);
  border: 1px solid rgba(215, 170, 66, 0.45);
  color: #e7c67c;
  transition: all 0.15s;
}
.p-branch-pin { width: 12px; height: 12px; }
.p-caret { width: 10px; height: 10px; }
.p-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.p-navitem {
  padding: 7px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}
.p-navitem:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.p-navitem.p-on { background: rgba(201, 29, 57, 0.92); color: #fff; }
.p-navitem .p-caret { opacity: 0.7; }
.p-right { flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.p-msg { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.85); transition: color 0.15s; }
.p-msg svg { width: 19px; height: 19px; }
.p-msg:hover { color: #fff; }
.p-btn { border-radius: 8px; padding: 6px 18px; font-size: 14px; transition: all 0.15s; text-decoration: none; }
.p-btn-reg { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.p-btn-reg:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.p-btn-login { border: 1px solid #c91d39; color: #fff; background: #c91d39; }
.p-btn-login:hover { background: #e0354f; border-color: #e0354f; }

/* ---------- 门户页脚（复刻 lmgw AppFooter 版权条） ---------- */
.p-ft {
  flex-shrink: 0;
  background: linear-gradient(180deg, #233b5c, #16233b);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.p-ft-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.p-ft-copy {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 右侧快捷工具条（复刻 lmgw SideToolbar） ---------- */
.p-side {
  position: fixed;
  right: 14px;
  top: 150px;
  z-index: 60;
  width: 68px;
  padding: 6px 0 2px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(10, 40, 90, 0.22);
  transition: width 0.25s;
}
.p-side.is-off { width: 26px; padding: 4px 0; border-radius: 13px; }
.p-side.is-off .p-sitem:not(.p-fold) { display: none; }
.p-sitem {
  display: block;
  padding: 8px 2px 7px;
  text-align: center;
  color: #41556e;
  border-bottom: 1px solid #f1f4f8;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.p-sitem:last-child { border-bottom: none; }
.p-sitem:hover { color: #e8452f; }
.p-si { display: block; font-size: 18px; line-height: 1.3; }
.p-si.p-up { font-size: 14px; }
.p-sl { display: block; font-size: 11px; line-height: 1.5; }
.p-fold { padding-bottom: 10px; }
.p-side.is-off .p-fold { padding: 12px 0; border-bottom: none; border-radius: 13px; }
.p-side.is-off .p-fold .p-sl { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 12px; }

/* ---------- 右下角「专家留言」气泡（复刻 lmgw ExpertMessageWidget） ---------- */
.p-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 23px;
  background: #c91d39;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(201, 29, 57, 0.32);
  transition: transform 0.18s, box-shadow 0.18s;
}
.p-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(201, 29, 57, 0.38); }
.p-fab svg { width: 18px; height: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .p-nav { display: none; }
  .p-hd-inner { justify-content: space-between; }
}
@media (max-width: 900px) {
  .p-side { display: none; }
}
@media (max-width: 720px) {
  .p-hd-inner { padding: 0 16px; }
  .p-slogan { display: none; }
  .p-fab { right: 12px; bottom: 12px; width: 46px; padding: 0; justify-content: center; }
  .p-fab span { display: none; }
  .p-ft-copy { justify-content: center; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .join-page { padding: 16px 12px 32px; }
  .join-card { padding: 20px 18px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .el-step__title { font-size: 12px; }
}
