:root {
  color-scheme: light;
  --page: #eef2ff;
  --panel: #fbfbff;
  --text: #243044;
  --muted: #6d7889;
  --line: #d2d8e2;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #22c55e;
  --green-dark: #16a34a;
  --orange: #f59e0b;
  --red: #f15a24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

.page-shell {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.brand-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 112px;
  margin-bottom: 18px;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.12);
}

h1,
h2,
p,
ol,
dl,
dd {
  margin: 0;
}

h1 {
  color: #7c83ff;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}

.brand-line {
  width: 124px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.panel {
  min-height: 0;
  padding: 36px 52px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.12);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 44px;
  position: relative;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 18%;
  right: 18%;
  height: 5px;
  background: #d1d5db;
}

.step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 100px;
  border: 3px solid #cdd3dc;
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

.step strong {
  white-space: nowrap;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #d1d5db;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
}

.step.is-active {
  border-color: var(--blue);
  background: #e8f1ff;
  color: var(--blue);
}

.step.is-active .step-number {
  background: var(--blue);
}

.view {
  width: 100%;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #29364a;
  font-size: 20px;
  font-weight: 500;
}

.field-label b {
  color: #ef4444;
  font-weight: 700;
}

.label-icon,
.lock-icon,
.line-icon {
  color: var(--orange);
  font-weight: 800;
}

.line-icon {
  color: var(--blue);
  font-size: 28px;
}

.lock-icon {
  color: var(--purple);
  font-size: 23px;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  background: #fff;
  color: #080b12;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

input[type="text"] {
  min-height: 62px;
  margin-bottom: 22px;
  padding: 0 20px;
  font-size: 24px;
}

textarea {
  min-height: 170px;
  padding: 18px 20px;
  color: #111827;
  font-size: 20px;
  resize: vertical;
}

textarea::placeholder {
  color: #b6becb;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 9px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, opacity 0.16s, background 0.16s;
}

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

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.btn-wide {
  width: 100%;
  min-height: 62px;
}

.btn-gradient {
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
}

.btn-green,
.btn-confirm {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.btn-blue {
  background: var(--blue);
}

.btn-back {
  background: #e5e7eb;
  color: #374151;
}

.info-box {
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 21px;
  line-height: 1.65;
}

.info-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  font-weight: 700;
}

.info-box p {
  margin-left: 44px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.action-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  color: #2f3b4f;
  font-size: 21px;
}

.line-label {
  min-width: 88px;
}

.warn-text {
  margin: 2px 0 20px 8px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
}

.hint-text {
  margin: 14px 0 26px 8px;
  color: #9aa3b2;
  font-size: 18px;
  font-weight: 700;
}

.footer-actions {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
}

.confirm-box {
  margin-bottom: 30px;
  padding: 30px 34px;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.confirm-box h2 {
  padding-bottom: 18px;
  border-bottom: 1px solid #dde3ec;
  font-size: 28px;
  font-weight: 500;
}

.confirm-box dl div {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #dde3ec;
  font-size: 24px;
}

.confirm-box dl div:last-child {
  border-bottom: 0;
}

.confirm-box dt {
  color: #4b5563;
}

.confirm-box dd {
  color: #050505;
  text-align: right;
  overflow-wrap: anywhere;
}

.tip-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  margin-bottom: 22px;
  padding: 0 22px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 20px;
}

.cover-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #374151;
  font-size: 22px;
}

.cover-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--blue);
}

.cover-help {
  margin: 10px 0 22px 40px;
  color: var(--red);
  font-size: 18px;
  line-height: 1.55;
}

.used-box {
  padding: 34px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.used-box h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.used-box p {
  font-size: 22px;
}

.used-done {
  margin-top: 14px;
  color: #047857;
  font-weight: 700;
}

.single-back {
  margin-top: 22px;
  min-width: 260px;
}

.notice {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 0 solid transparent;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.notice.is-error {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-left-width: 6px;
  border-left-color: #ef4444;
  background: #fff1f1;
  color: #dc2626;
  font-size: 24px;
}

.notice.is-error::before {
  content: "!";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
}

.notice.is-success {
  background: #ecfdf5;
  color: #047857;
}

.notice.is-warning {
  background: #fff7ed;
  color: #c2410c;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 1460px);
  }

  .brand-card {
    min-height: 96px;
    margin-bottom: 16px;
    padding: 20px 18px 18px;
  }

  h1 {
    font-size: 34px;
  }

  .panel {
    padding: 28px;
  }

  .stepper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .stepper::before {
    display: block;
    top: 43px;
    left: 15%;
    right: 15%;
    height: 4px;
  }

  .step {
    min-width: 0;
    min-height: 92px;
    gap: 8px;
    border-width: 2px;
    font-size: 18px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .footer-actions {
    grid-template-columns: 1fr;
  }

  .confirm-box dl div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .confirm-box dd {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 14px;
  }

  .field-label,
  .action-line,
  .btn,
  .tip-box,
  .info-box,
  .cover-row {
    font-size: 18px;
  }

  input[type="text"] {
    min-height: 60px;
    font-size: 20px;
  }

  textarea {
    min-height: 180px;
    font-size: 18px;
  }

  .step {
    min-height: 72px;
    gap: 5px;
    border-radius: 8px;
    padding: 6px 2px;
    font-size: 14px;
  }

  .stepper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 24px;
  }

  .stepper::before {
    top: 34px;
    left: 12%;
    right: 12%;
    height: 3px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .step strong {
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stepper {
    gap: 6px;
  }

  .step {
    min-height: 66px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .step strong {
    font-size: 12px;
  }
}
