:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--app-shell-background);
  color: var(--ink);
  font: 1rem/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
h1, h2, .payment-brand {
  font-family: "Songti SC", "Noto Serif CJK SC", STSong, Georgia, serif;
  line-height: 1.2;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.payment-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 4vw;
}
.payment-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.payment-brand img { width: 32px; height: 32px; }
.payment-home { color: var(--muted); font-size: .875rem; }
.payment-shell {
  width: min(100% - 2rem, 42rem);
  margin: clamp(2rem, 7vh, 5rem) auto 3rem;
}
.payment-heading { text-align: center; margin-bottom: 1.75rem; }
.payment-kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
h1 { margin: .5rem 0 .75rem; font-size: clamp(1.9rem, 5vw, 3.25rem); }
.payment-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: var(--shadow);
}
.payment-card { padding: clamp(1.25rem, 4vw, 2rem); }
.payment-card > :first-child { margin-top: 0; }
.payment-card > :last-child { margin-bottom: 0; }
.payment-status {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: .8125rem;
  font-weight: 600;
}
.payment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.payment-actions form { margin: 0; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.action:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.action.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.action.secondary:hover { background: var(--accent-soft); }
