:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #102c50;
  background: #f5f8fd;
  font-size: 16px;
  line-height: 1.6;
  --blue: #125aca;
  --muted: #4b627b;
  --line: #d9e3f0;
  --navy: #0c244a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 20px);
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brandmark,
.seal {
  display: inline-grid;
  place-items: center;
  background: #155bcd;
  color: #fff;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 1.55rem;
  transform: rotate(-12deg);
}
nav,
.actions,
.tabs,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
button,
.btn {
  font: inherit;
  font-size: 0.93rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover,
.btn:hover {
  background: #edf4ff;
  border-color: #9db9e1;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #369af4;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.primary:hover {
  background: #104b9b;
  color: white;
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: #ac294c;
}
.hero {
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #09182e;
}
.hero video,
.hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 11, 29, 0.76),
    rgba(3, 13, 28, 0.32) 48%,
    transparent 72%
  );
}
.herotext {
  position: relative;
  z-index: 1;
  width: min(1220px, 90%);
  margin: auto;
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(3.1rem, 6.5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
  margin: 0.17em 0;
}
.hero .kicker {
  font-family: "Courier New", monospace;
  letter-spacing: 0.18em;
  color: #bedfff;
}
.hero p {
  max-width: 31em;
  line-height: 1.9;
  color: #d9eaff;
}
.hero .actions {
  margin-top: 28px;
}
.hero .primary {
  background: #fff;
  color: #12325f;
}
.hero .secondary {
  background: #142b4c;
  color: white;
  border-color: #6586aa;
}
.section,
.shell {
  width: min(1240px, 90%);
  margin: 0 auto;
  padding: 46px 0;
}
.section h2,
.shell h1 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin: 0.2em 0 0.5em;
  letter-spacing: -0.045em;
}
.sectionhead,
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section p,
.muted,
small {
  color: var(--muted);
}
.announcement {
  background: #e4efff;
  border-bottom: 1px solid #cbdff8;
}
.announcement > div {
  width: min(1240px, 90%);
  margin: auto;
  display: flex;
  gap: 20px;
  padding: 13px 0;
  align-items: baseline;
}
.announcement span {
  white-space: pre-wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px;
}
.feature,
.panel,
.identity,
.listitem,
.loginbox {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 132px;
  text-align: left;
}
.feature strong {
  font-size: 1.17rem;
}
.feature small {
  font-weight: 400;
}
.feature .glyph {
  color: #1960c7;
  font-size: 1.45rem;
}
.panel {
  margin-bottom: 16px;
}
.panel h3,
.identity h3 {
  margin: 0 0 12px;
}
.panel p {
  overflow-wrap: anywhere;
}
.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}
.tree {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  max-height: 75vh;
  overflow: auto;
}
.tree summary {
  cursor: pointer;
  padding: 6px 0;
  color: var(--navy);
  font-weight: 650;
}
.tree details {
  margin-left: 12px;
}
.tree > details {
  margin-left: 0;
}
.tree .leaf {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  word-break: break-all;
  padding: 5px 9px;
  font-weight: 500;
}
.selected,
.tabs .active {
  background: #e6f0ff;
  color: #104eaf;
  border-color: #a6c3e9;
}
.identity {
  position: relative;
  overflow: hidden;
  border-left: 5px solid #2874dd;
  background: linear-gradient(115deg, #fff, #edf5ff);
  display: flex;
  align-items: center;
  gap: 16px;
}
.identity .seal {
  flex: none;
}
.identity h3 {
  margin: 0;
}
.identity p {
  margin: 3px 0;
}
.identity strong {
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  background: #e1edff;
  color: #1a4e96;
  border-radius: 1em;
  padding: 2px 10px;
  font-size: 0.86rem;
  font-weight: 650;
}
.tabs {
  margin: 22px 0;
}
.tabs button {
  padding: 7px 13px;
}
.loginview {
  min-height: calc(100dvh - 76px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
  background: linear-gradient(140deg, #e7f1fe, #f9fbff 62%, #d5e6ff);
}
.loginbox {
  width: min(460px, 100%);
  padding: 32px;
  box-shadow: 0 18px 55px #193b6814;
}
.loginbox h1 {
  font-size: 2rem;
  margin: 0.2em 0;
}
.fields {
  display: grid;
  gap: 13px;
}
.fields label {
  display: grid;
  gap: 5px;
  font-size: 0.91rem;
  font-weight: 600;
}
.fields input,
.fields textarea,
.fields select,
.search {
  font: inherit;
  color: #153258;
  border: 1px solid #bacbdf;
  width: 100%;
  padding: 9px 11px;
  border-radius: 7px;
  background: white;
  min-width: 0;
}
.fields textarea {
  min-height: 94px;
  resize: vertical;
}
.fields .check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fields .check input {
  width: auto;
}
.fields .primary {
  justify-self: start;
  margin-top: 6px;
}
.fields .error,
.error {
  color: #ad183a;
  white-space: pre-wrap;
}
.icon {
  border: 0;
  font-size: 1.5rem;
  padding: 3px 12px;
}
.listitem {
  padding: 13px 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.listitem small,
.listitem strong {
  display: block;
  overflow-wrap: anywhere;
}
.tablebox {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th {
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.message {
  border-left: 3px solid #73a8ed;
  padding: 8px 14px;
  margin: 12px 0;
  white-space: pre-wrap;
  background: #f0f6ff;
}
.posterimg {
  width: min(300px, 100%);
  height: auto;
  display: block;
  margin: 12px auto;
}
.qrimg {
  max-width: 100%;
  max-height: 300px;
}
.break {
  overflow-wrap: anywhere;
}
.loading {
  padding: 40px;
}
dialog {
  margin: 0 0 0 auto;
  max-width: min(100%, 540px);
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  padding: 24px;
  background: white;
  color: var(--navy);
  box-shadow: -15px 0 60px #091d3d33;
}
dialog[open] {
  animation: slide 0.2s ease-out;
}
dialog::backdrop {
  background: #081a36a6;
}
#drawer:has(form[data-form="verifyhq"]) {
  margin: auto;
  width: min(420px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  border-radius: 16px;
  box-shadow: 0 18px 60px #091d3d33;
  animation: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.drawer-head h2 {
  font-size: 1.46rem;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 9;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #13325b;
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  max-width: 92%;
}
.empty {
  color: var(--muted);
  padding: 12px 0;
}
.foot {
  background: #10294c;
  color: #dbeafb;
  padding: 24px 5%;
}
.money {
  font-variant-numeric: tabular-nums;
}
.subtle {
  font-size: 0.88rem;
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .tree {
    max-height: 42vh;
  }
  .hero {
    min-height: 495px;
  }
  .hero:after {
    background: linear-gradient(90deg, #06182cd9, #06182c44);
  }
  .shell,
  .section {
    width: 94%;
  }
  .brand {
    font-size: 1.05rem;
  }
  header {
    padding: 0 3%;
    height: 64px;
  }
  .hero .herotext {
    width: 92%;
  }
  nav button {
    font-size: 0.86rem;
    padding: 6px 10px;
  }
  .sectionhead {
    align-items: flex-start;
  }
  .panel {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .hero video {
    display: none;
  }
}
