:root {
  --red: #c9001f;
  --red-dark: #990018;
  --ink: #12161f;
  --steel: #253042;
  --muted: #647084;
  --line: #d7dde7;
  --paper: #fbfcff;
  --soft: #f2f5f9;
  --blue-gray: #e8eef6;
  --shadow: 0 20px 45px rgba(18, 22, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  background:
    linear-gradient(135deg, rgba(201, 0, 31, 0.96) 0 8%, transparent 8% 100%),
    linear-gradient(315deg, rgba(201, 0, 31, 0.96) 0 7%, transparent 7% 100%),
    linear-gradient(rgba(25, 42, 68, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 42, 68, 0.065) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 49%, rgba(25, 42, 68, 0.045) 49% 50%, transparent 50% 100%),
    #f7f9fc;
  background-size:
    100% 220px,
    100% 220px,
    42px 42px,
    42px 42px,
    180px 180px,
    auto;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}

.request-sheet {
  position: relative;
  overflow: hidden;
  padding: 28px clamp(20px, 5vw, 72px) 34px;
  background: rgba(251, 252, 255, 0.94);
  border: 1px solid rgba(215, 221, 231, 0.9);
  box-shadow: var(--shadow);
}

.request-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(28, 48, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 48, 76, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}

.request-sheet > * {
  position: relative;
}

.top-ribbon {
  position: absolute;
  top: 0;
  left: -7%;
  width: 40%;
  height: 88px;
  background: var(--red);
  transform: skewX(-34deg);
}

.brand-header {
  display: grid;
  grid-template-columns: 1fr auto 150px;
  align-items: center;
  gap: 28px;
  min-height: 102px;
  padding: 18px 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(18, 22, 31, 0.08);
}

.brand-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
}

.brand-title {
  color: var(--red);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.brand-subtitle {
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 12px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.brand-divider {
  width: 1px;
  height: 64px;
  background: var(--line);
}

.brand-secondary {
  align-items: center;
  border: 1px dashed #9fb0c6;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.brand-secondary strong {
  color: #1a6fb5;
  font-size: 22px;
}

.document-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin: 34px 0 42px;
  padding-bottom: 22px;
  border-bottom: 7px solid var(--red);
}

.document-heading::before {
  content: "";
  position: absolute;
  left: -72px;
  bottom: -7px;
  width: 290px;
  height: 52px;
  background: var(--red);
  transform: skewX(-38deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.meta-list {
  display: grid;
  gap: 12px;
  min-width: 240px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #bfc9d7;
}

.meta-list dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
}

.payment-form {
  display: grid;
  gap: 28px;
}

.fee-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(18, 22, 31, 0.08);
}

.fee-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 0.75fr 0.7fr 0.95fr;
}

.fee-row > div {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.fee-row > div:last-child {
  border-right: 0;
}

.fee-head {
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.fee-head > div {
  padding: 17px 18px;
}

.fee-body {
  min-height: 106px;
  align-items: stretch;
}

.fee-body > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid var(--line);
}

.fee-body strong {
  font-size: 17px;
}

.fee-body span:not(.money),
.fee-body small {
  color: var(--muted);
}

.money {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc9d7;
  border-radius: 6px;
  outline: none;
}

input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 0, 31, 0.12);
}

.error-text {
  min-height: 18px;
  margin: 0;
  color: #b00020;
  font-size: 12px;
  font-weight: 700;
}

.total-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.total-label {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--red);
  background: linear-gradient(90deg, rgba(201, 0, 31, 0.08), transparent);
  font-size: 18px;
  font-weight: 900;
}

.total-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0 28px;
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 8px;
  font-size: 20px;
}

.total-box strong {
  font-size: clamp(22px, 3vw, 28px);
}

.payment-panel,
.notice-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(18, 22, 31, 0.08);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
  padding: 0 24px;
  color: #fff;
  background:
    linear-gradient(125deg, var(--red) 0 17%, transparent 17% 100%),
    linear-gradient(90deg, #131a27, #253042);
}

.panel-titlebar h2 {
  margin: 0;
  font-size: 22px;
}

.panel-titlebar span {
  font-size: 15px;
  font-weight: 700;
}

.panel-body {
  display: grid;
  gap: 14px;
  padding: 28px 30px 30px;
}

.input-line {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 8px 14px 8px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 8px solid var(--red);
  border-radius: 6px;
}

.input-line span {
  color: var(--red);
  font-size: 17px;
  font-weight: 900;
}

.gateway-status {
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(90deg, #f7f9fc, #eef3f9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gateway-status strong,
.gateway-status span {
  display: block;
}

.gateway-status strong {
  color: var(--steel);
  font-size: 18px;
}

.gateway-status span,
.gateway-status p {
  color: var(--muted);
}

.gateway-status p {
  margin: 0;
  line-height: 1.65;
}

.primary-action {
  min-height: 58px;
  margin-top: 6px;
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border: 0;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(153, 0, 24, 0.22);
}

.primary-action:hover {
  filter: brightness(1.04);
}

.primary-action:focus-visible {
  outline: 3px solid rgba(201, 0, 31, 0.28);
  outline-offset: 3px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--steel);
  font-weight: 800;
}

.form-message.is-error {
  color: #b00020;
}

.form-message.is-success {
  color: #0f6b43;
}

.notice-panel {
  margin-top: 34px;
  padding: 26px 32px 28px;
  border-left: 12px solid var(--red);
}

.notice-panel h2 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 23px;
}

.notice-panel ol {
  margin: 0;
  padding-left: 22px;
  color: #303846;
  line-height: 1.9;
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: #8a94a5;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 18px, 720px);
    margin: 10px auto;
  }

  .request-sheet {
    padding: 18px 14px 26px;
  }

  .brand-header,
  .document-heading,
  .total-section,
  .input-line,
  .gateway-status {
    grid-template-columns: 1fr;
  }

  .brand-header {
    gap: 14px;
    padding: 16px;
  }

  .brand-divider {
    display: none;
  }

  .brand-secondary {
    align-items: flex-start;
    padding: 12px;
  }

  .document-heading {
    align-items: start;
    margin: 26px 0 30px;
  }

  .meta-list {
    min-width: 0;
    width: 100%;
  }

  .fee-table {
    border-radius: 8px;
  }

  .fee-row {
    grid-template-columns: 1fr;
  }

  .fee-head {
    display: none;
  }

  .fee-row > div {
    border-right: 0;
  }

  .fee-body > div {
    padding: 18px;
  }

  .fee-body > div::before {
    content: attr(role);
    display: none;
  }

  .total-box {
    justify-content: space-between;
    padding: 0 18px;
  }

  .panel-titlebar {
    gap: 16px;
    padding: 0 18px;
  }

  .panel-titlebar h2 {
    font-size: 19px;
  }

  .panel-body,
  .notice-panel {
    padding: 22px 18px;
  }

  .input-line {
    gap: 10px;
    padding: 14px 14px 16px;
  }

  .sheet-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 29px;
  }

  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 31px;
  }

  .subtitle,
  .total-label,
  .money,
  .panel-titlebar span {
    font-size: 15px;
  }

  .total-box {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 16px;
  }
}
