/* SOLVEX-索维克工作室申请表 · 前台样式
   配色取自 SOLVEX logo 像素主色（紫 #8040F0）与品牌紫蓝渐变，基底为深靛蓝，未使用青色。 */

:root {
  --bg-0: #0b0e26;
  --bg-1: #141a3e;
  --bg-2: #1b2252;
  --brand: #8b2fe8;
  --brand-light: #a855f7;
  --brand-blue: #2f6bff;
  --text: #e9eaf6;
  --text-dim: #a8adcd;
  --text-mute: #7d83a6;
  --line: rgba(168, 85, 247, 0.18);
  --card: rgba(24, 30, 66, 0.62);
  --card-solid: #161c44;
  --danger: #ff6b8a;
  --ok: #58d6a3;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(139, 47, 232, 0.24), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(47, 107, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 52%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-light);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 120px;
}

/* 顶部品牌 */
.brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #0d1030;
  object-fit: cover;
  box-shadow: 0 6px 22px rgba(139, 47, 232, 0.28);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 标题区 */
.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  background: linear-gradient(92deg, #ffffff 8%, #d9c4ff 52%, #b9c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 11px;
  border: 1px solid rgba(139, 47, 232, 0.42);
  border-radius: 999px;
  background: rgba(139, 47, 232, 0.14);
  color: #d7bcff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

/* 卡片 */
.card {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 44px rgba(5, 8, 26, 0.5);
  backdrop-filter: blur(10px);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #dcdcff;
}

.card-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-blue));
}

.notice-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.clauses {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: clause;
}

.clauses li {
  position: relative;
  margin: 0 0 9px;
  padding: 11px 14px 11px 16px;
  border-left: 2px solid rgba(168, 85, 247, 0.45);
  border-radius: 0 10px 10px 0;
  background: rgba(139, 47, 232, 0.07);
  color: #d3d5ec;
  font-size: 13.5px;
}

.clauses li:last-child {
  margin-bottom: 0;
  border-left-color: var(--brand-blue);
  background: rgba(47, 107, 255, 0.1);
  color: #e6e9ff;
}

.clause-title {
  margin-bottom: 3px;
  font-weight: 600;
  color: #f2efff;
}

.clause-body {
  color: #bfc4de;
  font-size: 13px;
  line-height: 1.72;
}

.contact-line {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px dashed rgba(168, 85, 247, 0.22);
  color: var(--text-mute);
  font-size: 13px;
}

/* 表单 */
.field {
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.field:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.field-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}

.field-no {
  min-width: 20px;
  color: var(--brand-light);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.field-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #e6e7f7;
}

.req {
  color: var(--danger);
  font-size: 13px;
  margin-left: 1px;
}

.optional {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 400;
}

.field-hint {
  margin: -2px 0 9px 28px;
  color: var(--text-mute);
  font-size: 12px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(9, 12, 34, 0.62);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.6;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #626a92;
}

input[type="text"]:focus,
textarea:focus {
  border-color: rgba(168, 85, 247, 0.72);
  background: rgba(16, 20, 52, 0.9);
  box-shadow: 0 0 0 3px rgba(139, 47, 232, 0.16);
}

input.invalid,
textarea.invalid {
  border-color: rgba(255, 107, 138, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.12);
}

.err-msg {
  display: none;
  margin: 7px 0 0 28px;
  color: var(--danger);
  font-size: 12.5px;
}

.err-msg.show {
  display: block;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 9px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(9, 12, 34, 0.5);
  color: #cfd2e9;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.opt:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(139, 47, 232, 0.1);
}

.opt input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.opt input[type="checkbox"] {
  border-radius: 4px;
}

.opt input:checked {
  border-color: var(--brand-light);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(139, 47, 232, 0.18);
}

.opt input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.opt input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.opt.checked {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(139, 47, 232, 0.14);
  color: #fff;
}

.opt.invalid {
  border-color: rgba(255, 107, 138, 0.6);
}

.consent-box {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 10px;
  background: rgba(139, 47, 232, 0.09);
  font-size: 13.5px;
  color: #d9dbf0;
  cursor: pointer;
}

.consent-box input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  border-radius: 5px;
  background: rgba(9, 12, 34, 0.7);
  position: relative;
  cursor: pointer;
}

.consent-box input:checked {
  border-color: var(--brand-light);
  background: var(--brand);
}

.consent-box input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.consent-box.invalid {
  border-color: rgba(255, 107, 138, 0.62);
}

/* 提交栏 */
.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(9, 12, 34, 0.86);
  backdrop-filter: blur(14px);
}

.submit-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.submit-inner .btn {
  width: 100%;
}

.submit-tip {
  color: var(--text-mute);
  font-size: 12.5px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(92deg, var(--brand) 0%, var(--brand-blue) 100%);
  box-shadow: 0 8px 24px rgba(88, 32, 190, 0.42);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.16s, opacity 0.16s;
}

.btn:hover {
  box-shadow: 0 10px 30px rgba(110, 46, 226, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.form-alert {
  display: none;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 107, 138, 0.45);
  border-radius: 10px;
  background: rgba(255, 107, 138, 0.1);
  color: #ffb6c6;
  font-size: 13px;
}

.form-alert.show {
  display: block;
}

/* 成功页 */
.success-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 22, 0.78);
  backdrop-filter: blur(6px);
}

.success-mask.show {
  display: flex;
}

.success-card {
  position: relative;
  width: auto;
  max-width: 320px;
  min-width: 180px;
  padding: 34px 52px 30px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  background: linear-gradient(165deg, #1c2254 0%, #141838 100%);
  box-shadow: 0 24px 70px rgba(4, 6, 20, 0.72);
  text-align: center;
}

.success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 9px;
  background: rgba(139, 47, 232, 0.12);
  color: #c9cdf0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.success-close:hover {
  background: rgba(168, 85, 247, 0.26);
  color: #ffffff;
}

.success-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.success-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.footer {
  margin-top: 30px;
  text-align: center;
  color: #5d6390;
  font-size: 12px;
}

@media (max-width: 560px) {
  .wrap {
    padding: 22px 14px 132px;
  }
  .hero h1 {
    font-size: 23px;
  }
  .card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .submit-inner {
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .submit-inner .btn {
    width: 100%;
  }
}
