:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --border: #e4e4e7;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --ok-border: #bbf7d0;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --err: #b91c1c;
  --err-soft: #fef2f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-link {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

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

.brand-entity {
  font-size: 13px;
  color: var(--muted);
}

.header-back {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.header-back:hover {
  color: var(--accent);
}

main {
  flex: 1;
  padding: 32px 0 48px;
}

.steps-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.step-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.step-pill.done {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.step-pill.active .step-num {
  background: var(--accent);
  color: #ffffff;
}

.step-pill.done .step-num {
  background: var(--ok);
  color: #ffffff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-sub {
  font-size: 14px;
  color: var(--muted);
}

.price-box {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}

.price-note {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 4px;
}

.benefits-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.benefits-list li {
  padding-left: 18px;
  position: relative;
}

.benefits-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 2px;
  top: 9px;
}

.section-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.input-field {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-field:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.field-hint {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 6px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.channel-btn {
  appearance: none;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.channel-btn:hover:not(:disabled) {
  border-color: #a1a1aa;
}

.channel-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.channel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.channel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.channel-meta {
  font-size: 12px;
  color: var(--muted);
}

.primary-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.primary-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.secondary-btn:hover {
  border-color: #a1a1aa;
}

.notice {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 14px;
}

.notice.info {
  background: var(--accent-soft);
  color: #1e3a8a;
}

.notice.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.notice.error {
  background: var(--err-soft);
  color: var(--err);
}

.notice.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.hidden {
  display: none !important;
}

.result-banner {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.result-badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.result-badge.pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.verify-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.verify-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.verify-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.verify-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}

.qr-panel {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 18px;
}

.qr-panel img,
.qr-panel svg {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 6px;
}

.qr-caption {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.qr-sub {
  font-size: 13px;
  color: var(--muted);
}

.order-meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.order-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
}

.action-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 32px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sep {
  margin: 0 8px;
  color: #d4d4d8;
}

@media (max-width: 520px) {
  .card {
    padding: 18px;
  }
  .price-box {
    text-align: left;
  }
  .steps-bar {
    grid-template-columns: 1fr;
  }
}
