:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --text: #1d2433;
  --muted: #667085;
  --line: #d9e0ea;
  --panel: #ffffff;
  --accent: #1663e9;
  --accent2: #0b8f67;
  --warn: #8a5b00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(34, 47, 73, 0.08);
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.subcopy {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.status {
  min-width: 140px;
  height: fit-content;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status span,
.summary span,
.orderbox span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 18px;
  align-items: start;
}

.form,
.pay {
  padding: 22px;
}

.field {
  margin-bottom: 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 99, 233, 0.12);
}

.orderbox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #c8d6ef;
  border-radius: 8px;
  background: #f7faff;
}

.orderbox span,
.orderbox strong {
  grid-column: 1;
}

.orderbox strong {
  font-size: 21px;
  word-break: break-all;
}

.ghost {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button.secondary {
  color: var(--text);
  background: #edf2f7;
}

.methodbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.method {
  min-height: 42px;
  color: var(--text);
  background: #edf2f7;
}

.method.active {
  color: #fff;
  background: var(--accent2);
}

.qrwrap {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.qrwrap img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.summary strong {
  display: block;
  margin-top: 5px;
  word-break: break-all;
}

.notice {
  margin: 14px 0 0;
  padding: 12px 12px 12px 30px;
  border: 1px solid #f0dca4;
  border-radius: 8px;
  color: var(--warn);
  background: #fff8e5;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding: 12px 0 24px;
  }

  .intro {
    display: block;
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .status {
    margin-top: 16px;
  }

  .workspace,
  .grid2 {
    grid-template-columns: 1fr;
  }

  .form,
  .pay {
    padding: 16px;
  }

  .qrwrap {
    min-height: 330px;
  }

  .summary {
    grid-template-columns: 1fr;
  }
}
