/* ============================================================
 * company-sub.css — 前台「收录公司」自助开通弹窗（独立模块）
 * 用途：会员在线提交公司资料 → 单选一枚章体主文字 + 选月/季/年套餐
 *       → 微信/支付宝/余额支付 → 支付成功后由后端按所选章体建章并授权。
 * ============================================================ */
.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.cs-overlay.cs-open { display: flex; }

.cs-box {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  animation: csPop .18s ease-out;
}
@keyframes csPop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.cs-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1f2d3d;
  color: #fff;
  border-radius: 14px 14px 0 0;
}
.cs-head b { font-size: 16px; }
.cs-head .cs-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cs-head .cs-close:hover { background: rgba(255, 255, 255, .26); }

.cs-body { padding: 18px; }
.cs-sub { font-size: 12px; color: #7a8699; line-height: 1.7; margin-bottom: 14px; }
.cs-sub b { color: #334155; }

/* 登录墙 */
.cs-login-wall { text-align: center; padding: 26px 8px 18px; }
.cs-login-wall .cs-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eff4ff;
  border: 2px solid #93b4f2;
  color: #2563eb;
  font-size: 30px;
  font-weight: 700;
  line-height: 60px;
}
.cs-login-wall h3 { margin: 10px 0 6px; font-size: 16px; color: #1f2937; }
.cs-login-wall p { color: #64748b; font-size: 13px; margin: 0 0 18px; line-height: 1.8; }
.cs-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cs-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity .15s;
}
.cs-btn-pri { background: #2563eb; color: #fff; }
.cs-btn-ghost { background: #eef2f7; color: #334155; }
.cs-btn:hover { opacity: .86; }
.cs-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 表单 */
.cs-field { margin-bottom: 13px; }
.cs-field label { display: block; font-size: 13px; color: #334155; margin-bottom: 5px; }
.cs-field label i { font-style: normal; color: #b7a97f; font-size: 11px; margin-left: 4px; }
.cs-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  outline: none;
}
.cs-field input[type="text"]:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.cs-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 6px; }
.cs-plan {
  border: 1.5px solid #dbe2ec;
  border-radius: 10px;
  padding: 11px 8px 9px;
  text-align: center;
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.cs-plan:hover { border-color: #93b4f2; }
.cs-plan.cs-on { border-color: #2563eb; background: #eff4ff; }
.cs-plan .cs-p-name { font-size: 13px; color: #1f2937; }
.cs-plan .cs-p-price { margin-top: 6px; font-size: 16px; font-weight: 700; color: #dc2626; }
.cs-plan .cs-p-price small { font-size: 11px; font-weight: 400; color: #7a8699; margin-left: 2px; }
.cs-plan .cs-p-off { margin-top: 4px; font-size: 11px; color: #9aa3b2; min-height: 14px; }
.cs-plan.cs-disabled { opacity: .55; cursor: not-allowed; }
.cs-plan.cs-disabled:hover { border-color: #dbe2ec; }

.cs-note {
  font-size: 12px;
  color: #6b7280;
  background: #f8fafc;
  border: 1px dashed #dbe2ec;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.75;
  margin: 8px 0 14px;
}
.cs-note b { color: #92400e; }

.cs-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
  border-top: 1px dashed #e2e8f0;
  font-size: 13px;
  color: #334155;
}
.cs-total-row .cs-amt { font-size: 18px; font-weight: 700; color: #dc2626; }

.cs-confirm { width: 100%; margin-top: 12px; padding: 11px; font-size: 15px; }
.cs-err { color: #dc2626; font-size: 12px; margin-top: 8px; line-height: 1.7; }
.cs-ok-tip { color: #059669; font-size: 12px; margin-top: 8px; }

/* 支付阶段 */
.cs-pay-tip { font-size: 12px; color: #64748b; margin: 2px 0 10px; line-height: 1.7; }
.cs-pay-tip b { color: #1f2937; font-size: 15px; margin-right: 2px; }
.cs-pay-tip .cs-ord { color: #7a8699; }

.cs-methods { display: grid; gap: 9px; }
.cs-method {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #dbe2ec;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.cs-method.cs-on { border-color: #2563eb; background: #eff4ff; }
.cs-method.cs-off { opacity: .55; cursor: not-allowed; }
.cs-method .cs-m-ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex: 0 0 34px; }
.cs-method.cs-m-balance .cs-m-ic { background: #f59e0b; }
.cs-method.cs-m-alipay .cs-m-ic { background: #1677ff; }
.cs-method.cs-m-wechat .cs-m-ic { background: #07c160; }
.cs-method .cs-m-body { flex: 1; }
.cs-method .cs-m-title { font-size: 13.5px; color: #1f2937; }
.cs-method .cs-m-hint { font-size: 11.5px; color: #7a8699; margin-top: 2px; line-height: 1.5; }
.cs-method .cs-m-mark { font-size: 18px; color: #2563eb; }

.cs-act { margin-top: 12px; display: flex; gap: 10px; }
.cs-act .cs-btn { flex: 1; }
.cs-pay-load { font-size: 12px; color: #64748b; margin-top: 10px; line-height: 1.8; }

/* 成功 */
.cs-success { text-align: center; padding: 16px 6px; }
.cs-success .cs-s-ic { width: 62px; height: 62px; margin: 6px auto 12px; border-radius: 50%; background: #ecfdf5; border: 2px solid #34d399; color: #059669; font-size: 32px; line-height: 58px; }
.cs-success h3 { margin: 0 0 8px; font-size: 17px; color: #065f46; }
.cs-success p { color: #475569; font-size: 13px; line-height: 1.9; margin: 0 0 14px; }
.cs-success .cs-titles {
  display: inline-block;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.9;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .cs-plans { grid-template-columns: 1fr; }
}

/* 登录墙诊断信息（开发排障用） */
.cs-debug {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #334155;
  max-height: 220px;
  overflow: auto;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
}
/* 微信扫码支付二维码区 */
.cs-wx-qr {
  margin: 14px auto 4px;
  width: 200px;
  height: 200px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.cs-wx-qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.cs-wx-tip {
  margin: 8px 0 2px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  line-height: 1.7;
}
