/* 命题：白台面上的通行单。纸是白的，蓝只落在查验线和可点的动作上，台面本身有一层淡天光。 */

:root {
  --ground: #eef3fb;
  --ground-deep: #e4ecf8;
  --paper: #ffffff;
  --sheet: #ffffff;
  --sheet-2: #f4f7fd;
  --ink: #12233f;
  --ink-2: #3d5270;
  --ink-hover: #1a4fd0;
  --text: #1a2740;
  --muted: #5d6d86;
  --faint: #8b98ad;
  --rule: rgba(28, 58, 110, .1);
  --rule-strong: rgba(28, 58, 110, .18);
  --seal: #e5484d;
  --seal-ink: #c0353a;
  --seal-soft: #fdecec;
  --blue: #2f6bff;
  --blue-deep: #1d4ed8;
  --blue-hover: #2457d6;
  --blue-soft: #e7efff;
  --blue-mist: rgba(47, 107, 255, .14);
  --sky: #8eb0ff;
  --amber: #c47a12;
  --amber-soft: #fff4df;
  --visa: var(--blue);
  --visa-hover: var(--blue-hover);
  --visa-soft: var(--blue-soft);
  --foil: var(--blue);
  --foil-2: var(--sky);
  --cream: #f7f9ff;

  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", Georgia, serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --shadow-paper:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 1px 2px rgba(18, 42, 90, .04),
    0 16px 36px -22px rgba(47, 107, 255, .28);
  --moire: none;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 78% 48% at 92% -8%, #d4e4ff 0%, rgba(212, 228, 255, 0) 58%),
    radial-gradient(ellipse 55% 40% at -6% 108%, rgba(47, 107, 255, .1), transparent 52%),
    linear-gradient(180deg, #f8faff 0%, var(--ground) 46%, var(--ground-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--f-mono); }

.brand-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(47, 107, 255, .28);
}

.brand-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.btn {
  --bg: transparent;
  --fg: var(--ink);
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s, transform .08s;
}

.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-ink {
  --bg: linear-gradient(180deg, #4d84ff 0%, var(--blue) 46%, var(--blue-deep) 100%);
  --fg: #ffffff;
  --bd: var(--blue-deep);
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 3px 3px 0 #1a46b8;
}
.btn-ink:hover:not(:disabled) {
  --bg: linear-gradient(180deg, #5b8cff 0%, var(--blue-hover) 100%);
  background: var(--bg);
}

.btn-line { --bg: #ffffff; --bd: var(--rule-strong); }
.btn-line:hover:not(:disabled) { --bd: var(--blue); color: var(--blue-deep); }

.btn-seal { --bg: var(--seal); --fg: #fff8f6; --bd: var(--seal-ink); }
.btn-seal:hover:not(:disabled) { --bg: var(--seal-ink); }

.btn-ghost { --fg: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { --bg: var(--blue-soft); }

.btn-block { width: 100%; min-height: 48px; font-size: 15px; letter-spacing: .12em; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; }

.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder, .textarea::placeholder { color: var(--faint); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .16);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233d5270' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 6px;
  cursor: pointer;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 10px;
  background: #d5deee;
  cursor: pointer;
  transition: background-color .18s;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 42, 90, .22);
  transition: transform .18s cubic-bezier(.3, .7, .4, 1);
}

.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(16px); }

.slip {
  position: relative;
  padding: 24px 22px 18px;
  border: 1px solid rgba(47, 107, 255, .14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 24px 50px -28px rgba(29, 78, 216, .45);
}

.slip::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #8eb0ff, var(--blue) 55%, var(--blue-deep));
}

.slip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .26em;
}

.slip-kicker { color: var(--blue); font-weight: 700; }
.slip-code { font-family: var(--f-mono); color: var(--faint); letter-spacing: .28em; }

.slip-title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--ink);
}

.perforated { position: relative; border-top: 1.5px dashed #d5e0f2; }

.perforated::before,
.perforated::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(47, 107, 255, .16);
  border-radius: 50%;
  background: var(--ground);
}

.perforated::before { left: -9px; }
.perforated::after { right: -9px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  gap: 2px;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 10px;
  background: #12233f;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 16px 40px -14px rgba(18, 35, 63, .45);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .2s, transform .26s cubic-bezier(.2, .8, .2, 1);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast strong { font-size: 15px; letter-spacing: .02em; }
.toast span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.toast[data-kind="error"] { background: var(--seal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
