/* ==== 演示站补充样式（真站 CSS 之外，只加不改） ================================
   真站样式全部来自 assets/ 下的原文件；这里只补三处备案演示需要、真站没有的东西：
   1) 首页 header 右侧「邀请注册」按钮
   2) 登录页表单下方「还没有账号？邀请注册」
   3) 注册页/占位页（独立页面，自带样式，不依赖 Element Plus）
   主色取真站 --el-color-primary: #385EB2
   ========================================================================== */

.demo-invite {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  margin-left: 18px;
  border: 1px solid rgba(56, 94, 178, .45);
  border-radius: 999px;
  background: rgba(56, 94, 178, .06);
  color: #385EB2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}

.demo-invite:hover {
  background: #385EB2;
  border-color: #385EB2;
  color: #fff;
}

.demo-login-extra {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #7b8ca6;
}

.demo-login-extra a {
  color: #385EB2;
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
}

.demo-login-extra a:hover {
  text-decoration: underline;
}

/* 登录页首次登录的协议勾选（备案材料项目 58 要求「勾选后方可使用」） */
.demo-agree {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7b8ca6;
  cursor: pointer;
}

.demo-agree input {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: #385EB2;
  flex: 0 0 auto;
}

.demo-agree a {
  color: #385EB2;
  text-decoration: none;
}

.demo-agree a:hover {
  text-decoration: underline;
}

/* 首页 header：加了「邀请注册」后，把步骤条重新压到右侧（真站是 logo 左 / 步骤右） */
.brand-row .entry-steps {
  margin-left: auto;
}

.demo-badge {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 50;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 94, 178, .10);
  color: #5a739a;
  font-size: 12px;
  letter-spacing: .3px;
  pointer-events: none;
}

/* ==== 协议弹层（用户服务协议 / 隐私政策）=====================================
   注册页与登录页点协议链接时在页内打开，右上角「关闭」退回原界面。
   协议页本身可用 ?embed=1 去掉自己的头部与页脚，避免弹层里套两层。
   ========================================================================== */
.doc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.doc-modal.show {
  display: block;
}

.doc-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 52, .45);
}

.doc-modal-box {
  position: relative;
  width: min(920px, 92vw);
  height: min(84vh, 860px);
  margin: 6vh auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(20, 32, 52, .35);
}

.doc-modal-head {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #eef2f8;
  flex: 0 0 auto;
}

.doc-modal-head b {
  font-size: 15px;
  font-weight: 600;
  color: #1f3350;
}

.doc-modal-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(56, 94, 178, .32);
  border-radius: 999px;
  background: #fff;
  color: #385EB2;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}

.doc-modal-close:hover {
  background: #385EB2;
  border-color: #385EB2;
  color: #fff;
}

.doc-modal-box iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 720px) {
  .doc-modal-box {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}
