:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18181b;
  background: #fff;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  background: #fff;
  color: #27272a;
  cursor: pointer;
  padding: 9px 14px;
  white-space: nowrap;
}
button:hover {
  background: #f4f4f5;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #18181b;
  color: #fff;
  border-color: #18181b;
}
.primary:hover {
  background: #36363b;
}
.danger {
  color: #b91c1c;
}
.full {
  width: 100%;
}
input,
select {
  border: 1px solid #dedee3;
  border-radius: 7px;
  background: white;
  color: #27272a;
  padding: 10px 12px;
  min-width: 0;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #999;
  outline-offset: 2px;
}
label {
  display: block;
  font-size: 13px;
  color: #52525b;
  margin: 20px 0 10px;
}
label input,
label select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.brand {
  font-size: 27px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-size: 22px;
}
.muted,
small {
  color: #86868e;
}
p {
  line-height: 1.7;
}
h1 {
  font-size: 25px;
  margin: 0 0 28px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
  margin: 0 0 16px;
}
.login-card {
  width: 400px;
  max-width: calc(100vw - 32px);
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 2px 8px #00000006;
}
.login-card .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.login-card h1 {
  text-align: center;
  font-size: 21px;
  margin-bottom: 8px;
}
.login-card p {
  font-size: 13px;
}
.login-card .primary {
  margin-top: 18px;
}
#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
#login[hidden],
#shell[hidden] {
  display: none;
}
.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.code-row input {
  margin: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 27px 16px 10px;
  border-right: 1px solid #e4e4e7;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
aside .brand {
  padding: 0 10px;
  margin-bottom: 30px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #818187;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 7px;
}
nav a.active {
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 5px #00000015;
  font-weight: 600;
}
nav a:hover {
  background: #f2f2f3;
}
.nav-label {
  font-size: 12px;
  color: #999;
  margin: 28px 12px 10px;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.user-footer {
  margin-top: auto;
  padding: 20px 8px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}
.user-footer small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.user-footer button {
  border: 0;
  background: transparent;
  font-size: 20px;
}
main {
  margin-left: 224px;
  padding: 30px 36px 70px;
  min-width: 0;
}
#content {
  max-width: 1280px;
  margin: auto;
}
.section {
  margin: 30px 0;
}
.card {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.stat {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 22px;
}
.stat span {
  color: #89898f;
  font-size: 13px;
}
.stat b {
  display: block;
  font-size: 27px;
  letter-spacing: -0.5px;
  margin-top: 12px;
}
.stat small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.toolbar,
.actions,
.heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.heading {
  justify-content: space-between;
  margin-bottom: 20px;
}
.heading h1,
.heading h2 {
  margin: 0;
}
.toolbar input {
  max-width: 230px;
}
.toolbar {
  padding-bottom: 16px;
}
.toolbar + .toolbar {
  border-top: 1px solid #eee;
  padding-top: 16px;
  padding-bottom: 0;
}
.range {
  display: flex;
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  overflow: hidden;
}
.range button {
  border: 0;
  border-radius: 0;
  padding: 8px 13px;
}
.range .selected {
  background: #18181b;
  color: white;
}
.table-wrap {
  overflow: auto;
}
.table {
  padding: 0;
  overflow: hidden;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #8b8b92;
  font-weight: 500;
  background: #fafafa;
}
th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
td button {
  padding: 6px 10px;
  font-size: 12px;
}
td .actions {
  gap: 6px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #96969d;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  color: #86868e;
  font-size: 12px;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  background: #f3f4f6;
  color: #666;
}
.tag.green {
  background: #edf8f3;
  color: #16825d;
}
.tag.red {
  background: #fdf0f0;
  color: #bf4242;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}
.row:last-child {
  border: 0;
}
.row:first-child {
  padding-top: 0;
}
.row small {
  display: block;
  margin-top: 6px;
}
.channel {
  font-size: 16px;
}
.channel .wechat {
  color: #07b956;
}
.channel .alipay {
  color: #1677ff;
}
.amounts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.amounts button.selected {
  border-color: #18181b;
  background: #f6f6f6;
}
.recharge-form {
  max-width: 620px;
}
.recharge-form input {
  width: 200px;
}
.hint {
  border-radius: 8px;
  background: #fafafa;
  padding: 15px;
  color: #71717a;
  line-height: 1.7;
  font-size: 13px;
}
.price-preview {
  margin: 20px 0;
  font-size: 16px;
}
.link {
  color: #18181b;
  text-decoration: underline;
  cursor: pointer;
}
dialog {
  width: 480px;
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 100px #0002;
}
dialog::backdrop {
  background: #0005;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  border: 0;
  padding: 0 7px;
  font-size: 24px;
}
.actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.error {
  color: #b42318;
  font-size: 13px;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #27272a;
  color: #fff;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 10;
  box-shadow: 0 4px 20px #0002;
}
#paymentContent img {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 20px auto;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.tabs button.selected {
  background: #18181b;
  color: white;
}
.chart {
  display: flex;
  align-items: end;
  gap: 6px;
  justify-content: space-between;
  height: 180px;
  padding: 15px 5px 25px;
}
.bar {
  flex: 1;
  max-width: 28px;
  background: #27272a;
  border-radius: 4px 4px 0 0;
  min-height: 0;
  position: relative;
}
.bar span {
  position: absolute;
  bottom: -22px;
  font-size: 11px;
  white-space: nowrap;
  color: #999;
  left: 50%;
  transform: translateX(-50%);
}
.details {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  font-size: 14px;
}
.details dt {
  color: #86868e;
}
.details dd {
  margin: 0;
}
.loading {
  color: #999;
  padding: 60px;
}
.docs {
  max-width: 850px;
}
.docs p {
  color: #71717a;
}
.docs section {
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 25px 20px;
  }
  aside {
    width: 185px;
  }
  main {
    margin-left: 185px;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }
  aside .brand {
    margin-bottom: 10px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
  }
  nav a {
    padding: 8px;
    font-size: 12px;
  }
  nav .nav-label {
    width: 100%;
    margin: 8px;
  }
  .user-footer {
    padding: 10px;
    margin-top: 10px;
  }
  main {
    margin: 0;
    padding: 24px 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat b {
    font-size: 22px;
  }
  .toolbar input {
    max-width: 160px;
  }
  h1 {
    font-size: 23px;
  }
  .range {
    overflow: auto;
  }
  .card {
    padding: 16px;
  }
  .card.table {
    padding: 0;
  }
}
