/* =====================================================
   全局申请加盟底部固定横条（所有页面通用）
   引入：foot.html
   样式对齐参考站 yibomc.com 底部预约横条：
   半透明黑底 rgba(0,0,0,.85)、上下30px内边距、
   左侧logo+标题（白色竖线分隔）、右侧两行表单
   （第一行 称呼/手机/按钮，第二行 省市区）、
   白色输入框 32%宽×35高、藏青色方角按钮 #203470、
   关闭按钮在横条上方右侧（藏青描边圆圈白X）
   ===================================================== */

/* ---------- 底部固定横条 ---------- */
.xj-join-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.85);
  padding: 30px 0;
  transform: translateY(0);
  transition: transform .8s ease;
}
.xj-join-bar.closed { transform: translateY(100%); }

.xj-join-bar-inner {
  width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
}

/* ---------- 左侧品牌区：logo + 竖线 + 标题 ---------- */
.xj-join-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.xj-join-brand img {
  width: 183px;
  height: 58.2px;
  object-fit: contain;
  display: block;
}
.xj-join-title {
  width: auto;
  margin-left: 40px;
  padding-left: 40px;
  border-left: 1px solid #fff;
}
.xj-join-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 31px;
  letter-spacing: normal;
}
.xj-join-title p {
  margin: 0;
  width: 260px;
  font-size: 16px;
  font-weight: 700;
  color: #bdbdbd;
  text-transform: uppercase;
  line-height: 30px;
}

/* ---------- 右侧表单：两行布局 ---------- */
.xj-join-form {
  width: 40%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.xj-join-form input[type=text] {
  width: 32%;
  height: 35px;
  border: 1px solid #fff;
  padding: 0 10px;
  background-color: #fff;
  color: #434144;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
  transition: .2s;
}
.xj-join-form input[type=text]::placeholder { color: #434144; }

/* 立即申请按钮（第一行第三个位置） */
.xj-join-form button[type=submit] {
  width: 32%;
  height: 35px;
  border: 1px solid #203470;
  background-color: #203470;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: .4s;
  white-space: nowrap;
}
.xj-join-form button[type=submit]:hover {
  background-color: #2a4386;
  border-color: #2a4386;
}

/* 第二行：省市区 */
.xj-join-area {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.xj-join-area select {
  width: 32%;
  height: 35px;
  border: 1px solid #fff;
  padding: 0 10px;
  background-color: #fff;
  color: #434144;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
  transition: .2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23434144' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") 95% center no-repeat;
  cursor: pointer;
}
.xj-join-area select::-ms-expand { display: none; }

/* 校验错误态：红框提示 */
.xj-join-form input.err,
.xj-join-form select.err { border-color: #e62129; }

/* ---------- 关闭按钮（横条上方右侧，藏青描边圆圈白X） ---------- */
.xj-join-close {
  position: absolute;
  right: -40px;
  top: -20px;
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid #1e2b69;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.xj-join-close::before,
.xj-join-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
}
.xj-join-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.xj-join-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.xj-join-close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 关闭后的小悬浮按钮（重新展开入口） ---------- */
.xj-join-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  padding: 10px 18px;
  background: #203470;
  border: 1px solid #203470;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.xj-join-mini.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.xj-join-mini:hover { color: #fff; background: #2a4386; }

/* ---------- 提交提示 ---------- */
.xj-join-tip {
  position: fixed;
  left: 50%;
  top: 20%;
  z-index: 999995;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 14px 24px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}
.xj-join-tip h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.xj-join-tip.ok h6 { color: #16a34a; }
.xj-join-tip.err h6 { color: #e62129; }
.xj-join-tip.active { opacity: 1; visibility: visible; }

/* ---------- 断点：≤1500px 内容区全宽留40px边距 ---------- */
@media (max-width: 1500px) {
  .xj-join-bar-inner { width: auto; padding: 0 40px; }
  .xj-join-close { right: 40px; }
}

/* ---------- 断点：≤1024px 表单换行到标题下方 ---------- */
@media (max-width: 1024px) {
  .xj-join-form { width: 100%; }
  .xj-join-bar-inner {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }
  .xj-join-brand { margin-bottom: 4%; }
  .xj-join-close { right: 20px; }
}

/* ---------- 断点：≤768px 移动端隐藏（与参考站一致，移动端走底部导航） ---------- */
@media (max-width: 768px) {
  .xj-join-bar { display: none; }
  .xj-join-mini { display: none; }
}
