:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #243247;
  background: #f3f5f8;
  font-size: 14px;
}
.api-link { color: #bdd5ff; white-space: nowrap; }
#accountName { color: #d6e5fc; font-size: 12px; }
.welcome { max-width: 1220px; margin: 52px auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 64px; align-items: start; }
.introduction h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.3; letter-spacing: -1px; margin: 20px 0; }
.lead { font-size: 17px; color: #526478; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.feature-grid article { padding: 16px 0; border-top: 2px solid #cadbf8; }
.feature-grid strong { display: block; font-size: 23px; color: #245fd2; margin-bottom: 10px; }
.feature-grid span { font-size: 12px; color: #62758d; }
.feature-list { padding-left: 22px; line-height: 2.3; }
.welcome .login { width: 100%; max-width: none; margin: 0; padding: 28px; }
.auth-tabs { display: flex; gap: 12px; margin-bottom: 26px; }
.auth-tabs .active { background: #eaf2ff; border-color: #a5c3fd; color: #245fd2; }
#loginForm small { display: block; color: #64748b; font-size: 11px; margin: -3px 0 14px; }
#loginForm label { display: block; margin-bottom: 8px; }
#loginForm input { width: 100%; }
#authSubmit { width: 100%; margin-top: 10px; }
.text-button { border: 0; padding-left: 0; color: #245fd2; }
.recovery-notice { max-width: 680px; margin: 50px auto; padding: 32px; background: white; border: 1px solid #b6caf2; border-radius: 12px; }
.recovery-notice input { width: 100%; font-family: monospace; margin: 10px 0 24px; }
.api-doc { display: block; max-width: 1060px; margin: 36px auto; padding: 0 24px; min-height: auto; }
.api-doc pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #192b40; color: #dcecff; padding: 20px; border-radius: 8px; line-height: 1.7; }
.api-doc h2 { margin-top: 30px; }
@media(max-width: 850px) { .welcome { grid-template-columns: 1fr; gap: 24px; margin: 28px auto; } header { flex-wrap: wrap; height: auto; min-height: 68px; padding: 16px; gap: 12px; } #snapshot { margin-left: 0; } .recovery-notice { margin: 25px 16px; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #dce3ed;
  color: #34455b;
  border-radius: 6px;
  padding: 8px 12px;
}
button:hover {
  border-color: #2563eb;
  color: #2563eb;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select {
  border: 1px solid #dce3ed;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #243247;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #93b4fa;
  outline-offset: 1px;
}
header {
  background: #172638;
  color: white;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: #8bb4ff;
  white-space: nowrap;
}
.brand span {
  font-size: 18px;
  color: white;
  margin-left: 12px;
}
#snapshot {
  font-size: 12px;
  margin-left: auto;
  color: #c7d4e5;
}
header button {
  background: #263c55;
  border-color: #455b73;
  color: white;
}
main {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  margin: 20px;
  min-height: calc(100vh - 145px);
}
.catalog,
.selection {
  background: white;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
}
.catalog {
  padding: 18px;
  overflow: auto;
  max-height: calc(100vh - 125px);
}
h1 {
  font-size: 22px;
  margin: 7px 0;
}
h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  line-height: 1.6;
}
aside input,
aside select {
  width: 100%;
  margin-bottom: 10px;
}
aside h2 {
  margin-bottom: 18px;
}
.tree {
  margin-top: 12px;
}
.tree details {
  margin: 5px 0;
}
.tree summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
.tree button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 10px 8px;
  font-size: 13px;
}
.tree button.active {
  background: #eaf2ff;
  color: #2563eb;
}
.tree details > div {
  padding-left: 12px;
}
.selection {
  overflow: hidden;
  min-width: 0;
}
.selection-head {
  padding: 22px 26px;
  border-bottom: 1px solid #e2e7ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #7890ac;
}
.selection-head p {
  margin: 5px 0 0;
  color: #78879b;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tabs button {
  border-color: transparent;
  color: #718199;
  white-space: nowrap;
}
.tabs button.active {
  color: #2563eb;
  background: #eaf2ff;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: minmax(300px, 45%) minmax(330px, 55%);
}
.parameters {
  padding: 22px;
  border-right: 1px solid #e2e7ee;
  max-height: calc(100vh - 245px);
  overflow: auto;
}
.details {
  padding: 22px;
}
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.subhead h2 {
  margin: 0;
}
.subhead button {
  padding: 5px 8px;
  font-size: 12px;
}
.parameter {
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
}
.parameter-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.options button {
  font-size: 12px;
  padding: 7px 9px;
}
.options button.selected {
  background: #eaf2ff;
  border-color: #2563eb;
  color: #2563eb;
}
.product {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}
.image {
  height: 150px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a5b7;
  font-size: 12px;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product h2 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.product p {
  font-size: 12px;
  color: #78879b;
}
.price {
  font-size: 27px;
  color: #2563eb;
  font-weight: 650;
}
.detail-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e7ee;
}
.muted {
  font-size: 12px;
  color: #8996a8;
}
.empty {
  padding: 28px 10px;
  color: #8996a8;
  text-align: center;
  font-size: 13px;
}
#notice {
  padding: 0 24px;
  color: #a25d0c;
  background: #fff9ed;
  font-size: 12px;
  line-height: 2.5;
}
#notice:empty {
  display: none;
}
#components {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
#components button {
  font-size: 12px;
}
.list-toolbar {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.list-toolbar input {
  min-width: 260px;
}
.list-toolbar span {
  margin-left: auto;
  font-size: 12px;
  color: #718199;
}
.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 330px);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  background: #f5f7fa;
  color: #64778f;
  font-weight: 600;
  position: sticky;
  top: 0;
}
td,
th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}
td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
tr:hover td {
  background: #f8faff;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 16px;
}
.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.primary:hover {
  background: #1e50c3;
  color: #fff;
}
footer {
  padding: 0 25px 16px;
  color: #8b98a9;
  font-size: 12px;
}
.login {
  background: white;
  max-width: 440px;
  margin: 90px auto;
  padding: 32px;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
}
.login input,
.login button {
  width: 100%;
  margin-top: 12px;
}
.login label {
  font-size: 13px;
}
#loginError {
  color: #b91c1c;
}
.info-card {
  border-bottom: 1px solid #edf0f5;
  padding: 14px 0;
  font-size: 13px;
}
.info-card p {
  margin: 4px 0;
}
.info-card a {
  color: #2563eb;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .parameters {
    max-height: 470px;
    border-right: 0;
    border-bottom: 1px solid #e2e7ee;
  }
  .selection-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog {
    max-height: none;
  }
}
@media (max-width: 680px) {
  header {
    padding: 12px;
    height: auto;
    flex-wrap: wrap;
  }
  #snapshot {
    margin-left: 0;
  }
  main {
    display: block;
    margin: 10px;
  }
  .catalog {
    margin-bottom: 12px;
    max-height: 300px;
  }
  .product {
    grid-template-columns: 95px minmax(0, 1fr);
  }
  .selection-head {
    padding: 18px;
  }
  .details,
  .parameters {
    padding: 16px;
  }
}
:root .global-search-box {
  margin: 18px 20px 0;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  padding: 14px 18px;
}
.global-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.global-search input {
  min-width: 260px;
  flex: 1;
}
.global-search-box .table-scroll {
  max-height: 350px;
}
