@font-face {
  font-family: "Nunito Numerals";
  src: url("assets/nunito-numerals.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #15254a;
  background: #f4f7fd;
  --page: #f4f7fd;
  --surface: #fff;
  --surface-raised: #f8faff;
  --line: #e2e9f6;
  --ink: #15254a;
  --muted: #40567d;
  --accent: #2f55d4;
  --accent-hover: #2546b5;
  --accent-soft: #eef3ff;
  --field: #fbfcff;
  --field-line: #d6e1f3;
  --warning: #9e3232;
  --font-numeric: "Nunito Numerals", "Nunito", system-ui, sans-serif;
  --page-gutter: clamp(.75rem, 2.5vw, 2.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
}

h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }

.app-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.app-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-width, 81rem));
  min-height: var(--header-height, 5.875rem);
  margin-inline: auto;
  padding-block: .65rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.6vw, .95rem);
}

.app-brand h1 {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 750;
  line-height: 1.2;
}

.app-mark {
  display: inline-flex;
  flex: none;
  align-items: end;
  justify-content: center;
  gap: 6%;
  width: clamp(2.25rem, 5vw, 3rem);
  aspect-ratio: 1;
  padding-bottom: .67rem;
  border-radius: .82rem;
  background: var(--accent);
}

.app-mark i {
  width: 12.5%;
  border-radius: .18rem;
  background: #fff;
}

.app-mark i:nth-child(1) { height: 32%; }
.app-mark i:nth-child(2) { height: 51%; }
.app-mark i:nth-child(3) { height: 70%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: inherit;
  background: transparent;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-outline {
  border-color: var(--field-line);
  color: var(--accent);
  background: var(--surface);
}

.button-outline:hover {
  border-color: #bacbf0;
  background: var(--accent-soft);
}

.button:disabled {
  opacity: .55;
  cursor: default;
}

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

@media (max-width: 460px) {
  .app-header-inner { min-height: 4.5rem; }
  .app-mark { padding-bottom: .48rem; }
  .app-header-inner .button { padding-inline: .55rem; }
}
