.orders-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 84% 0%, rgba(226, 241, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #f4f7fb 46%, #eef3f8 100%);
}

.orders-shell {
  width: min(1830px, calc(100% - 88px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.orders-main {
  width: 100%;
  margin: 0;
}

.orders-header {
  display: grid;
  grid-template-columns: 430px 1fr 270px;
  align-items: center;
  height: 66px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(218, 228, 242, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 32px rgba(52, 75, 111, 0.08);
  backdrop-filter: blur(18px);
}

.orders-nav {
  gap: 51px;
}

.orders-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(260px, 0.78fr) minmax(610px, 1.22fr);
  align-items: center;
  min-height: 202px;
  margin-top: 0;
  overflow: hidden;
  padding: 0 18px 0 42px;
  border: 1px solid rgba(217, 229, 244, 0.9);
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.95) 54%, rgba(231, 244, 255, 0.88) 100%);
  box-shadow: 0 16px 40px rgba(54, 87, 134, 0.08);
}

.orders-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 73%, rgba(130, 193, 255, 0.11) 73.25%, transparent 73.9%),
    radial-gradient(circle at 42% 70%, rgba(218, 234, 255, 0.86) 0 7px, transparent 8px),
    radial-gradient(circle at 56% 50%, rgba(218, 234, 255, 0.86) 0 8px, transparent 9px);
}

.orders-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #07142f;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.orders-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #596a85;
  font-size: 19px;
  font-weight: 700;
}

.query-art {
  position: relative;
  z-index: 1;
  height: 202px;
}

.clipboard {
  position: absolute;
  left: 46%;
  bottom: 0;
  width: 120px;
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eff6ff, #a9c8ff);
  box-shadow: 0 20px 38px rgba(35, 101, 222, 0.18);
  transform: translateX(-50%) rotate(8deg);
}

.clipboard::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 5px solid #2c76f2;
  border-radius: 9px;
  opacity: 0.78;
}

.clip {
  position: absolute;
  left: 36px;
  top: -18px;
  width: 50px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(180deg, #8db9ff, #3a82fa);
  box-shadow: 0 8px 18px rgba(35, 101, 222, 0.18);
}

.clip::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.clipboard i {
  position: absolute;
  left: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b8cff8;
}

.clipboard i:nth-of-type(1) {
  top: 51px;
}

.clipboard i:nth-of-type(2) {
  top: 83px;
}

.clipboard i:nth-of-type(3) {
  top: 115px;
}

.clipboard i::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 5px;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #b8cff8;
}

.magnifier {
  position: absolute;
  left: calc(46% + 76px);
  bottom: 44px;
  width: 72px;
  height: 72px;
  border: 9px solid rgba(55, 128, 250, 0.72);
  border-radius: 50%;
  box-shadow: 0 13px 28px rgba(38, 104, 224, 0.18);
}

.magnifier::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -24px;
  width: 47px;
  height: 10px;
  border-radius: 999px;
  background: rgba(55, 128, 250, 0.72);
  transform: rotate(45deg);
}

.query-cube {
  position: absolute;
  left: calc(46% - 92px);
  bottom: 6px;
  width: 64px;
  height: 42px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(145deg, #8db9ff, #3a82fa);
}

.query-line {
  position: absolute;
  width: 70px;
  height: 2px;
  background: rgba(93, 157, 255, 0.18);
  transform: rotate(-50deg);
}

.line-one {
  left: 16%;
  bottom: 46px;
}

.line-two {
  right: 9%;
  top: 64px;
}

.query-diamond {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(221, 237, 255, 0.82);
  transform: rotate(45deg);
}

.diamond-one {
  left: 27%;
  top: 56px;
}

.diamond-two {
  right: 10%;
  top: 96px;
  width: 13px;
  height: 13px;
}

.order-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 690px;
  min-height: 78px;
  justify-self: end;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(54, 85, 130, 0.08);
}

.order-badges div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  min-width: 0;
}

.order-badges i {
  display: grid;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 16px;
  font-weight: 950;
}

.order-badges .badge-blue {
  background: #e8f1ff;
  color: #2475ff;
}

.order-badges .badge-green {
  background: #e0f8ef;
  color: #1fbd7d;
}

.order-badges .badge-purple {
  background: #eee7ff;
  color: #8b62f6;
}

.order-badges strong {
  display: block;
  align-self: end;
  overflow: hidden;
  color: #111b31;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-badges small {
  display: block;
  overflow: hidden;
  color: #7c8aa2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-card,
.orders-table-card {
  border: 1px solid rgba(219, 229, 243, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(54, 80, 116, 0.06);
}

@media (max-width: 1360px) and (min-width: 1201px) {
  .orders-hero {
    grid-template-columns: minmax(330px, 0.74fr) minmax(180px, 0.46fr) minmax(520px, 1.2fr);
  }

  .order-badges {
    max-width: 560px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 12px 18px;
  }
}

.query-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) 180px 180px minmax(280px, 1.2fr) 210px;
  gap: 31px;
  align-items: end;
  min-height: 138px;
  margin-top: 25px;
  padding: 26px 28px 31px;
}

.query-card label {
  display: grid;
  gap: 13px;
  color: #12213a;
  font-size: 15px;
  font-weight: 900;
}

.query-card input,
.query-card select {
  height: 42px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: white;
  color: #10213d;
  font-weight: 700;
}

.query-card input {
  padding: 0 17px;
}

.query-card select {
  padding: 0 16px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #91a0b8 50%), linear-gradient(135deg, #91a0b8 50%, transparent 50%);
  background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.date-field div {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 26px;
  align-items: center;
  height: 42px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: white;
}

.date-field input {
  border: 0;
  height: 40px;
}

.date-field b,
.date-field i {
  color: #9aa7bb;
  text-align: center;
  font-style: normal;
}

.query-actions {
  display: flex;
  gap: 15px;
}

.reset-button,
.search-button {
  width: 98px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  font-weight: 950;
}

.reset-button {
  background: #f0f4fa;
  color: #4f607a;
}

.search-button {
  background: linear-gradient(180deg, #2379ff, #1263ee);
  color: white;
  box-shadow: 0 8px 16px rgba(31, 111, 255, 0.2);
}

.orders-table-card {
  margin-top: 24px;
  padding: 0 28px 25px;
}

.orders-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid #e5ebf5;
}

.orders-tabs > div {
  display: flex;
  align-items: center;
  gap: 54px;
  height: 76px;
}

.tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 76px;
  border: 0;
  background: transparent;
  color: #52617a;
  font-weight: 900;
}

.tab-button.active {
  color: #1769f2;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: #1769f2;
}

.tab-button b {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef4ff;
  color: #7b8ba6;
  font-size: 12px;
}

.tab-button.active b {
  color: #1769f2;
}

.export-button {
  width: 136px;
  height: 42px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: white;
  color: #53637d;
  font-weight: 900;
}

.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 1550px;
  border-collapse: collapse;
}

.orders-table th {
  height: 60px;
  padding: 0 24px;
  background: #fbfdff;
  color: #52617a;
  font-size: 14px;
  font-weight: 950;
  text-align: left;
}

.orders-table td {
  height: 86px;
  padding: 13px 24px;
  border-top: 1px solid #e5ebf5;
  color: #12213a;
  font-size: 14px;
  font-weight: 750;
  vertical-align: middle;
}

.orders-table .empty-row {
  height: 220px;
  color: #71809a;
  font-weight: 900;
  text-align: center;
}

.orders-table .empty-row.error {
  color: #dc2626;
}

.order-code strong,
.product-mini strong {
  display: block;
  margin-bottom: 8px;
  color: #111b31;
  font-size: 16px;
  font-weight: 950;
}

.order-code small,
.product-mini small,
.status-cell small {
  color: #72819a;
  font-size: 13px;
  font-weight: 700;
}

.copy-icon {
  margin-left: 8px;
  color: #8a99b2;
}

.product-mini {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.order-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(220, 229, 242, 0.75);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.amount {
  color: #ff1212 !important;
  font-weight: 950 !important;
}

.payment {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.pay-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 950;
}

.wechat-pay {
  background: #21bf75;
}

.alipay-pay {
  background: #1685ff;
}

.status-pill {
  display: inline-grid;
  min-width: 62px;
  height: 26px;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 950;
}

.status-done,
.status-shipped,
.status-sent {
  background: #daf8e8;
  color: #17a664;
}

.status-pending {
  background: #fff0dd;
  color: #ef8c1d;
}

.status-email_failed {
  background: #ffe3e3;
  color: #dc2626;
}

.status-refunded,
.status-no_stock {
  background: #f1e4ff;
  color: #8d54e9;
}

.order-time {
  color: #60708d !important;
  white-space: nowrap;
}

.order-action {
  display: flex;
  align-items: center;
  gap: 24px;
}

.order-action a {
  color: #1769f2;
  font-weight: 950;
}

.order-action .pay-link {
  color: #1769f2;
}

.more-button {
  border: 0;
  background: transparent;
  color: #65748e;
  font-size: 20px;
  font-weight: 950;
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  color: #65748e;
  font-size: 15px;
  font-weight: 800;
}

.orders-pagination nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.orders-pagination button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: white;
  color: #50617d;
  font-weight: 850;
}

.orders-pagination button.active {
  border-color: #1f6fff;
  color: #1f6fff;
}

.orders-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.orders-pagination button.ellipsis {
  cursor: default;
  opacity: 1;
}

.orders-pagination .page-size {
  width: 100px;
}

.delivery-code {
  display: grid;
  gap: 6px;
  max-width: 220px;
}

.delivery-code span,
.order-note {
  color: #60708d;
  font-size: 13px;
  font-weight: 900;
}

.delivery-code code {
  display: block;
  max-width: 220px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: #f8fbff;
  color: #10213d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.unknown-pay {
  background: #e5eaf2;
  color: #60708d;
}

[hidden] {
  display: none !important;
}

.logo-play {
  background:
    radial-gradient(circle at 50% 50%, #4ff052 0 20%, transparent 21%),
    linear-gradient(135deg, #050505, #111827);
  color: #2e8cff;
}

.logo-iqiyi {
  background: linear-gradient(145deg, #1ce183, #0abf5d);
  font-size: 12px;
}

.logo-mango {
  background: linear-gradient(145deg, #ff8a18, #ff5200);
  font-size: 26px;
}

.logo-steam {
  background: linear-gradient(145deg, #061334, #116aa3);
  font-size: 24px;
}

.logo-qq {
  background: #f7f7f7;
  color: #111827;
  font-size: 26px;
}

.logo-baidu {
  background: white;
  color: #1986ff;
  font-size: 28px;
}

@media (max-width: 1200px) {
  .orders-shell {
    width: min(100% - 32px, 1830px);
  }

  .orders-header,
  .orders-hero,
  .query-card {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
    padding: 18px;
  }

  .orders-nav {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .query-art {
    display: none;
  }

  .order-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
  }

  .order-badges div {
    grid-template-columns: 40px minmax(0, 1fr);
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .orders-shell {
    width: min(100% - 24px, 1830px);
    padding-top: 12px;
  }

  .orders-hero h1 {
    font-size: 34px;
  }

  .orders-tabs,
  .orders-tabs > div,
  .orders-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .order-badges {
    grid-template-columns: 1fr;
  }

  .orders-tabs > div {
    gap: 0;
    height: auto;
  }

  .tab-button {
    height: 48px;
  }

  .orders-pagination nav {
    flex-wrap: wrap;
  }
}
