:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  background: #f2f6fc;
  color: #17233b;
  font-size: 14px;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #f2f6fc; color: #17233b; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; background: #fff; border-bottom: 1px solid #dbe3ef; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #246bfd; color: #fff; font-weight: 500; }
.brand strong { font-size: 16px; font-weight: 500; }
.brand > span:last-child, .privacy-note { color: #68758b; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.site-home-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #c7d6eb;
  border-radius: 8px;
  background: #f7f9fd;
  color: #245dbf;
  font-weight: 500;
  text-decoration: none;
  transition: 160ms ease;
}
.site-home-button:hover { border-color: #246bfd; background: #edf3ff; color: #145be4; }

.page-shell { width: min(1040px, calc(100% - 40px)); margin: 34px auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.form-panel, .flow-panel { border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; box-shadow: 0 14px 35px rgba(37, 58, 94, .12); }
.form-panel { padding: 34px; }
.flow-panel { padding: 26px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 26px; font-weight: 500; }
h2 { margin-bottom: 22px; font-size: 18px; font-weight: 500; }
.lead { margin-bottom: 24px; color: #68758b; line-height: 1.7; }
.info-note { margin-bottom: 26px; padding: 12px 14px; border-radius: 8px; background: #eaf1ff; color: #17233b; }

form { display: grid; }
.full-field { grid-column: 1 / -1; }
.field { margin-bottom: 20px; }
label, legend { display: block; margin-bottom: 8px; font-weight: 500; }
label span[aria-hidden="true"], legend span { color: #246bfd; }
input:not([type="radio"]), select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 7px; outline: 0; background: #f7f9fd; color: #17233b; }
input:not([type="radio"]) { min-height: 44px; }
select { min-height: 48px; }
textarea { resize: vertical; min-height: 170px; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: #246bfd; box-shadow: 0 0 0 2px rgba(36, 107, 253, .13); }
select:disabled { cursor: not-allowed; color: #758197; background: #edf1f7; }
.field small { display: flex; margin-top: 6px; color: #68758b; }
.count-hint { justify-content: flex-end; }
.help-hint { justify-content: flex-start; }
.application-field { margin-bottom: 24px; padding: 18px; border: 1px solid #bcd0f7; border-radius: 10px; background: linear-gradient(135deg, #f3f7ff, #f8faff); }
.application-field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.application-heading { display: flex; align-items: flex-start; gap: 12px; }
.application-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #246bfd; color: #fff; font-size: 17px; }
.application-heading label { margin: 0 0 4px; font-size: 16px; }
.application-heading p { margin: 0; color: #68758b; line-height: 1.55; }
.app-load-state { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e3edff; color: #245dbf; font-size: 12px; white-space: nowrap; }
.app-load-state.is-ready { background: #e2f5ee; color: #187354; }
.app-load-state.is-error { background: #fde9e9; color: #a52c2c; }
.app-help { display: block; margin-top: 7px; color: #68758b; line-height: 1.5; }
.application-field.has-error { border-color: #e0aaaa; background: #fff7f7; }
.category-field { margin: 0 0 22px; padding: 0; border: 0; }
.category-field label { display: inline-flex; align-items: center; gap: 7px; margin: 0 22px 8px 0; font-weight: 400; }
input[type="radio"] { accent-color: #246bfd; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #68758b; }
button { min-height: 44px; min-width: 166px; padding: 10px 20px; border: 0; border-radius: 7px; background: #246bfd; color: #fff; font-weight: 500; }
button:hover { background: #145be4; }
button:disabled { cursor: not-allowed; opacity: .42; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #b62e2e; }

.flow-panel ol { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.flow-panel li { display: flex; align-items: flex-start; gap: 13px; }
.flow-panel li > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #eaf1ff; color: #246bfd; font-weight: 500; }
.flow-panel strong { font-weight: 500; }
.flow-panel li p { margin: 4px 0 0; color: #68758b; line-height: 1.55; }
.divider { height: 1px; margin: 26px 0; background: #dbe3ef; }
dl { margin: 0; }
dt { margin-top: 16px; font-weight: 500; }
dt:first-child { margin-top: 0; }
dd { margin: 4px 0 0; color: #68758b; line-height: 1.55; }
.success-view { padding: 54px 0; text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #eaf1ff; color: #16845b; font-size: 26px; }
.success-view p { color: #68758b; line-height: 1.7; }
footer { padding: 0 20px 30px; color: #68758b; text-align: center; }

@media (max-width: 760px) {
  .topbar { padding: 0 20px; }
  .brand > span:last-child, .privacy-note { display: none; }
  .site-home-button { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .page-shell { grid-template-columns: 1fr; margin: 20px auto; }
  .form-panel { padding: 24px; }
  .application-field-head { flex-direction: column; }
  .form-footer { align-items: stretch; flex-direction: column; }
  button { width: 100%; }
}
