:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #55545a;
  background: #f5f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: #f5f6f9;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

.design-stage {
  position: relative;
  left: 50%;
  width: 2560px;
  margin: 0;
  transform: translateX(-50%);
  container-type: inline-size;
  isolation: isolate;
}

.design-art {
  display: block;
  width: 100%;
  height: auto;
}

.account-area {
  position: absolute;
  z-index: 2;
  top: 35.45%;
  left: 43.82%;
  width: 12.36%;
  height: 4.06%;
  font-size: 18px;
}

.login-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.login-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.login-link[hidden] {
  display: none;
}

.login-link:focus-visible,
.logout-button:focus-visible,
.pagination button:focus-visible,
.retry-button:focus-visible {
  outline: 3px solid #ffb300;
  outline-offset: 3px;
}

.account-info {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0 0.55em;
  color: #17589b;
  white-space: nowrap;
}

.account-info[hidden],
.error-message[hidden] {
  display: none;
}

.pagination[hidden] {
  display: flex;
  visibility: hidden;
}

.logout-button {
  padding: 0;
  color: #d9001b;
  cursor: pointer;
  background: none;
  border: 0;
  text-decoration: underline;
}

.orders-panel {
  position: absolute;
  z-index: 1;
  top: 43.65%;
  left: 22.5%;
  width: 54.82%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 0 2.45% 1.15%;
  overflow: visible;
  color: #57565b;
  font-size: 16px;
  background: #f8f9fb;
}

.panel-title {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0 -2.45% 40px;
  border-bottom: 1px solid #dedfe3;
  color: #25252a;
  font-size: 1.35em;
  font-weight: 700;
}

.mock-badge {
  position: absolute;
  z-index: 3;
  top: 2.2%;
  right: 2.8%;
  padding: 0.28em 0.55em;
  color: #8a6500;
  font-size: 0.72em;
  line-height: 1.4;
  background: #fff4cf;
  border: 1px solid #eed780;
  border-radius: 2px;
}

.mock-badge[hidden] {
  display: none;
}

.orders-table-wrap {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  border: 1px solid #dedfe3;
  background: #fff;
}

.orders-table {
  width: 100%;
  height: auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92em;
}

.orders-table th,
.orders-table td {
  padding: 0.85em 0.7em;
  line-height: 1.55;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.orders-table thead {
  height: 6.8%;
  color: #77777c;
  background: #e2e4e8;
}

.orders-table th {
  font-weight: 400;
  border-bottom: 1px solid #d3d5da;
}

.orders-table tbody tr {
  height: auto;
  border-bottom: 1px dashed #d7d8dc;
}

.orders-table tbody tr:last-child {
  border-bottom: 0;
}

.orders-table td:first-child {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 0.96em;
}

.orders-table th:nth-child(1) { width: 29%; }
.orders-table th:nth-child(2) { width: 17%; }
.orders-table th:nth-child(3) { width: 20%; }
.orders-table th:nth-child(4) { width: 14%; }
.orders-table th:nth-child(5) { width: 20%; }

.cell-lines {
  display: grid;
  gap: 0.3em;
  justify-items: center;
}

.payment-value {
  color: #ee3344;
  white-space: nowrap;
}

.table-state {
  position: absolute;
  inset: 6.8% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  color: #85858b;
  font-size: 0.95em;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
}

.table-state[hidden] {
  display: none;
}

.table-state.is-error {
  color: #b43b45;
}

.retry-button {
  margin-left: 0.8em;
  padding: 0.35em 0.85em;
  color: #fff;
  cursor: pointer;
  background: #2488df;
  border: 0;
  border-radius: 3px;
}

.pagination {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 14px 0 16px;
  gap: 0.45em;
}

.pagination button {
  min-width: 2.1em;
  height: 1.9em;
  padding: 0 0.45em;
  color: #55545a;
  cursor: pointer;
  background: #f3f3f4;
  border: 1px solid #d9dade;
}

.pagination button:hover:not(:disabled),
.pagination button[aria-current="page"] {
  background: #e5e6e8;
}

.pagination button:disabled {
  color: #aaa;
  cursor: default;
}

.error-message {
  position: static;
  flex: 0 0 auto;
  margin: 0 2.45%;
  padding: 0.5em 0.75em;
  color: #a33;
  font-size: 0.82em;
  text-align: center;
  background: #fff6f6;
}

.tips {
  flex: 0 0 auto;
  padding: 0.3em 0 0;
  color: #55545a;
  font-size: 0.95em;
  line-height: 1.8;
}

.tips strong {
  display: block;
  margin-bottom: 0.25em;
  font-size: 1.05em;
}

.tips p {
  margin: 0.25em 0;
}

@media (max-width: 1499px) {
  body {
    overflow-x: auto;
  }

  .page-shell {
    width: 2560px;
    overflow: visible;
  }

  .design-stage {
    left: auto;
    margin: 0;
    transform: none;
  }
}
