@import '../../../public/css/rem.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  color: #101828;
  background: #ffffff;
  font-family: PingFangSC, PingFang TC, Helvetica Neue, Arial, sans-serif;
}

button {
  font: inherit;
}

#app {
  width: 100vw;
  min-height: 100vh;
}

#app .footer {
  width: 100vw;
  height: 399px;
  vertical-align: bottom;
}

.wrap {
  display: flex;
  margin: 0 75px;
}

.wrap .nav-bar {
  flex-shrink: 0;
  display: inline-block;
  width: 326px;
  height: 522px;
  margin-top: 135px;
  vertical-align: top;
}

.main {
  flex: 1;
  display: inline-block;
  min-width: 0;
  margin-left: 9px;
}

.main .crumbs-wrap {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  height: 90px;
  border-bottom: 1px solid #d8d8d8;
}

.main .crumbs-wrap a {
  position: relative;
  margin-right: 30px;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  text-decoration: none;
  color: #000;
}

.main .crumbs-wrap a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 8px;
  height: 8px;
  border: 1px solid #868686;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: translateY(-40%) rotate(45deg);
}

.main .crumbs-wrap span {
  font-size: 18px;
  color: #868686;
  line-height: 25px;
}

.activity-order-panel {
  width: 100%;
  min-height: 438px;
  margin-top: 46px;
  margin-bottom: 150px;
  padding: 28px 20px 18px;
  background: #f8f9fb;
}

.title {
  margin-top: 36px;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  font-family: "PingFangTC-Regular", "PingFangTC", "微软雅黑";
}

.order-tabs {
  display: flex;
  align-items: center;
  gap: 46px;
  height: 50px;
  border-bottom: 1px solid #dfe3ea;
}

.order-tabs button {
  position: relative;
  height: 50px;
  border: 0;
  background: transparent;
  color: #7f8794;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-width: 60px;
}

.order-tabs button.active {
  color: #4d66ff;
}

.order-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #4d66ff;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 34px;
}

.order-card {
  min-height: 306px;
  padding: 28px 22px 0 32px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.order-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.order-title-wrap h4 {
  overflow: hidden;
  max-width: 620px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 31px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
}

.status-badge.status-unpaid {
  color: #b56a0b;
  background: #fff3df;
}

.status-badge.status-pending {
  color: #2c8b4b;
  background: #e8f6ec;
}

.status-badge.status-confirmed {
  color: #4d66ff;
  background: #eef1ff;
}

.order-amount {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 2px;
}

.order-amount strong {
  color: #4d66ff;
  font-size: 22px;
  font-weight: 700;
  line-height: 31px;
}

.order-amount span {
  margin-top: 4px;
  color: #9aa3b2;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.order-meta {
  margin-top: 2px;
  color: #7a8494;
  font-size: 16px;
  line-height: 24px;
}

.order-meta .meta-divider {
  margin: 0 4px;
  color: #c6ccd6;
}

.order-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 18px 0 0 14px;
  border-top: 1px solid #eef1f5;
}

.order-card-extra {
  height: 74px;
  margin-top: 22px;
  border-top: 1px solid #eef1f5;
}

.order-detail {
  display: flex;
  flex-direction: column;
}

.order-detail span {
  color: #a5adba;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.order-detail strong {
  margin-top: 2px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.invoice-btn {
  min-width: 108px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #b8beca;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.invoice-btn:hover {
  border-color: #4d66ff;
  color: #4d66ff;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-top: 42px;
  border: 1px dashed #cdd3de;
  border-radius: 8px;
  color: #8d96a6;
  background: #ffffff;
  font-size: 16px;
}

@media screen and (max-width: 1024px) {
  .wrap {
    margin: 0 24px;
  }

  .wrap .nav-bar {
    width: 326px;
  }

  .activity-order-panel {
    margin-top: 42px;
  }
}

@media screen and (max-width: 768px) {
  #app .footer {
    display: none;
  }

  .wrap {
    display: block;
    margin: 0 16px;
  }

  .wrap .nav-bar {
    display: none;
  }

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

  .main .crumbs-wrap {
    height: 64px;
  }

  .main .crumbs-wrap a,
  .main .crumbs-wrap span {
    font-size: 14px;
  }

  .activity-order-panel {
    width: 100%;
    min-height: 420px;
    margin-top: 24px;
    margin-bottom: 64px;
    padding: 20px 14px;
    overflow: hidden;
  }

  .title {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 34px;
  }

  .order-tabs {
    gap: 28px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .order-tabs::-webkit-scrollbar {
    display: none;
  }

  .order-tabs button {
    flex-shrink: 0;
    font-size: 15px;
  }

  .order-list {
    margin-top: 22px;
  }

  .empty-state {
    width: 100%;
    min-height: 220px;
    margin-top: 22px;
  }

  .order-card {
    min-height: auto;
    padding: 20px 16px;
  }

  .order-card-head,
  .order-detail-row {
    display: block;
  }

  .order-title-wrap {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .order-title-wrap h4 {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    line-height: 28px;
  }

  .status-badge {
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 24px;
  }

  .order-amount {
    align-items: flex-start;
    margin-top: 16px;
  }

  .order-meta {
    font-size: 14px;
    line-height: 22px;
  }

  .order-meta .meta-item {
    display: block;
  }

  .order-meta .meta-divider {
    display: none;
  }

  .order-detail-row {
    padding-left: 0;
  }

  .invoice-btn {
    width: 100%;
    margin-top: 18px;
  }

  .order-card-extra {
    height: 32px;
    margin-top: 18px;
  }
}