/* ============================================================
   天蝎客 · 商家入驻页 / 提交成功页
   依赖：login.css（品牌区、页面骨架、按钮基础）
   ============================================================ */

/* ------------------------------------------------------------
   入驻卡片
   ------------------------------------------------------------ */

.tk-join-card {
  width: 100%;
  max-width: 640px;
  padding: 34px 38px 28px;
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 24px;
  box-shadow:
    0 34px 70px -34px rgba(15, 23, 42, 0.22),
    0 6px 18px -12px rgba(15, 23, 42, 0.08);
  animation: tk-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tk-join-head h2 {
  margin: 16px 0 8px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tk-join-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.tk-join-form {
  margin-top: 24px;
}

/* 分节 */

.tk-join-section {
  margin-top: 22px;
}

.tk-join-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tk-join-section__title span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

.tk-join-section__title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* 行业 / 套餐选项 */

.tk-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tk-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tk-choice:hover {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.tk-choice:has(input:checked) {
  border-color: #6366f1;
  background: #f5f6ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.tk-choice input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: #4f46e5;
}

.tk-choice__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 15px;
}

.tk-choice__body {
  min-width: 0;
}

.tk-choice__body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

.tk-choice__body small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #94a3b8;
}

.tk-choice--plan {
  align-items: center;
}

.tk-choice--plan .tk-choice__body strong {
  font-size: 13px;
}

.tk-choice--plan .tk-choice__body small {
  font-size: 11px;
  color: #6366f1;
}

/* 表单字段 */

.tk-join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tk-join-field--full {
  grid-column: 1 / -1;
}

.tk-join-field .form-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.tk-join-field .form-control {
  height: 44px;
  border-color: #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13.5px;
}

.tk-join-field .form-control:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.tk-join-field .form-text {
  font-size: 11px;
  color: #94a3b8;
}

.tk-field-error {
  margin-top: 5px;
  font-size: 11.5px;
  color: #dc2626;
}

/* 协议与提交 */

.tk-join-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  cursor: pointer;
}

.tk-join-agree input {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  accent-color: #4f46e5;
}

.tk-join-agree a {
  color: #4f46e5;
  text-decoration: none;
}

.tk-join-agree a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tk-join-submit {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(118deg, #5b5bf0 0%, #7c3aed 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(93, 76, 240, 0.72);
  transition: transform 0.16s, box-shadow 0.16s;
}

.tk-join-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -14px rgba(93, 76, 240, 0.8);
}

.tk-join-submit:active {
  transform: translateY(0);
}

.tk-join-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.tk-join-foot a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.tk-join-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------
   提交成功页
   ------------------------------------------------------------ */

.tk-success {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(760px 460px at 80% 0%, #edefff 0%, rgba(237, 239, 255, 0) 62%),
    #f7f8fc;
}

.tk-success__card {
  width: 100%;
  max-width: 480px;
  padding: 32px 34px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 24px;
  box-shadow:
    0 34px 70px -34px rgba(15, 23, 42, 0.22),
    0 6px 18px -12px rgba(15, 23, 42, 0.08);
}

.tk-success__brand {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #4f46e5;
}

.tk-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}

.tk-success__icon svg {
  width: 26px;
  height: 26px;
}

.tk-success h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tk-success > p,
.tk-success__card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
}

.tk-success__code {
  margin: 22px 0 16px;
  padding: 13px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.tk-success__code span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.tk-success__code strong {
  display: block;
  margin-top: 3px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.tk-success__pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  font-size: 11.5px;
  font-weight: 500;
}

.tk-success__pending i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tk-success__steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tk-success__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
}

.tk-success__steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #eef0ff;
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 600;
}

.tk-success__hint {
  margin-top: 18px !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
}

.tk-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border-radius: 11px;
  background: linear-gradient(118deg, #5b5bf0 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(93, 76, 240, 0.72);
}

.tk-success__btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .tk-join-card {
    margin-top: -26px;
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .tk-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tk-join-head h2 {
    font-size: 23px;
  }

  .tk-choice-grid,
  .tk-join-grid {
    grid-template-columns: 1fr;
  }

  .tk-success__card {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }
}
