body {
  background: #f0f1f3;
}

.orders-shell {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f1f3;
}

.orders-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.98);
  box-shadow: none;
}

.orders-header .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.orders-header .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.orders-main {
  padding: 18px 0 24px;
}

.orders-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.orders-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.orders-tab.is-active {
  color: #006843;
}

.orders-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #006843;
  transform: translateX(-50%);
}

.orders-list {
  display: grid;
  gap: 20px;
  padding: 18px 20px 0;
}

.order-card-block {
  display: none;
  padding: 19px 20px 20px;
  border-radius: 8px;
  background: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.order-card-block.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.order-card-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-block__head strong {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.order-card-block__head span {
  color: #006843;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.order-card-block__items {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.order-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.order-line img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: contain;
  background: #fbfbfb;
}

.order-line__body h2 {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.order-line__body p {
  margin-top: 8px;
  color: #a5aab3;
  font-size: 12px;
  line-height: 18px;
}

.order-line__meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.order-line__meta strong {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.order-line__meta span {
  color: #a5aab3;
  font-size: 12px;
  line-height: 18px;
}

.order-card-block__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 20px;
}

.order-action {
  min-width: 66px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #f4f5f7;
  color: #2b2b2b;
  font-size: 13px;
  line-height: 34px;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.order-action--text {
  min-width: 0;
  padding-inline: 0;
  background: transparent;
  color: #2b2b2b;
}

.order-action--primary {
  background: #006843;
  color: #fff;
}

.order-action:active {
  transform: scale(0.98);
  opacity: 0.84;
}

.orders-main--detail {
  padding: 8px 20px calc(112px + var(--safe-bottom));
}

.order-status-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 18px;
}

.order-status-hero__icon {
  width: 38px;
  height: 38px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 38px 38px;
}

.order-status-hero--pay .order-status-hero__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none' stroke='%232b2b2b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='19' cy='19' r='12.4'/%3E%3Cpath d='M19 11.8v7.5l4.8 3.5'/%3E%3C/svg%3E");
}

.order-status-hero--ship .order-status-hero__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none' stroke='%232b2b2b' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13.5h18v15H10z'/%3E%3Cpath d='M14 13.5l2.4-3h5.2l2.4 3'/%3E%3Cpath d='M15 19h8'/%3E%3C/svg%3E");
}

.order-status-hero--receive .order-status-hero__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none' stroke='%232b2b2b' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.2 14.2 19 10l7.8 4.2v9.1c0 3.3-2.8 5.5-7.8 7.7-5-2.2-7.8-4.4-7.8-7.7z'/%3E%3Cpath d='M15.4 16.8h7.2'/%3E%3C/svg%3E");
}

.order-status-hero--review .order-status-hero__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none' stroke='%232b2b2b' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.2 11.8h17.6v12.7H17.2l-5 4.1v-4.1h-2z'/%3E%3Cpath d='M14.8 18.1h1.1M19 18.1h1.1M23.2 18.1h1.1'/%3E%3C/svg%3E");
}

.order-status-hero--done .order-status-hero__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' fill='none' stroke='%232b2b2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 19.5l5.8 5.7L27.7 13.8'/%3E%3C/svg%3E");
}

.order-status-hero h1 {
  color: #2b2b2b;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 600;
}

.order-status-hero p {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.45;
}

.order-status-hero p strong {
  color: #ff5a50;
  font-weight: 500;
}

.order-detail-card {
  border-radius: 8px;
  background: #fff;
}

.order-detail-card + .order-detail-card {
  margin-top: 20px;
}

.order-detail-card--address,
.order-detail-card--progress,
.order-detail-card--goods,
.order-detail-card--info {
  padding: 20px;
}

.order-detail-address {
  display: grid;
  gap: 12px;
}

.order-detail-address__head,
.order-progress-card__person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-detail-address__head strong,
.order-progress-card__person strong {
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.order-detail-address__head span,
.order-progress-card__person span {
  color: #60656d;
  font-size: 16px;
  line-height: 1.2;
}

.order-detail-address p,
.order-progress-card__address p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.45;
}

.order-detail-address__edit {
  width: 18px;
  height: 18px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23006843' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 14.8l2.6-.5 7.3-7.3-2.1-2.1-7.3 7.3-.5 2.6z'/%3E%3Cpath d='M9.7 4.9l2.1 2.1'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.order-progress-card {
  position: relative;
  padding-left: 38px;
}

.order-progress-card::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 14px;
  border-left: 2px dashed #d7dbe0;
}

.order-progress-card__step,
.order-progress-card__address {
  position: relative;
  display: block;
}

.order-progress-card__step::before,
.order-progress-card__address::before {
  content: "";
  position: absolute;
  left: -39px;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.order-progress-card__step::before {
  top: 7px;
  width: 16px;
  height: 16px;
  background: #006843;
  box-shadow: 0 0 0 5px #fff;
}

.order-progress-card__address::before {
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid #d7dbe0;
}

.order-progress-card__step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.order-progress-card__copy strong {
  display: block;
  color: #006843;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.order-progress-card__copy p {
  margin-top: 10px;
  color: #b4bbc3;
  font-size: 14px;
  line-height: 1.45;
}

.order-progress-card__link {
  position: relative;
  flex: 0 0 auto;
  padding-right: 16px;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.25;
}

.order-progress-card__link::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #2b2b2b;
  border-right: 1.5px solid #2b2b2b;
  transform: rotate(45deg);
}

.order-progress-card__address {
  padding-top: 8px;
}

.order-progress-card__address .order-detail-address__edit {
  position: absolute;
  right: 0;
  top: 10px;
}

.order-progress-card__address p {
  margin-top: 12px;
  padding-right: 28px;
}

.order-detail-card__merchant {
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.order-detail-items {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.order-detail-card .order-line {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
}

.order-detail-card .order-line img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: contain;
  background: #f7f7f8;
}

.order-detail-card .order-line__body h2 {
  display: -webkit-box;
  overflow: hidden;
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-detail-card .order-line__body p {
  margin-top: 8px;
  color: #b1b8c1;
  font-size: 12px;
  line-height: 1.4;
}

.order-detail-card .order-line__meta {
  display: grid;
  justify-items: end;
  gap: 10px;
  padding-top: 4px;
}

.order-detail-card .order-line__meta strong {
  color: #3a3a3c;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.order-detail-card .order-line__meta span {
  color: #b1b8c1;
  font-size: 14px;
  line-height: 1.2;
}

.order-detail-break {
  height: 1px;
  margin: 20px 0 22px;
  background: #eef0f2;
}

.order-detail-summary {
  display: grid;
  gap: 20px;
}

.order-detail-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-detail-summary__row span,
.order-detail-summary__row strong {
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.42;
}

.order-detail-summary__row strong {
  text-align: right;
  font-weight: 500;
}

.order-detail-summary__value--accent {
  color: #ff4d45;
}

.order-detail-summary__row--note strong {
  max-width: 64%;
}

.order-detail-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-detail-meta-row + .order-detail-meta-row {
  margin-top: 20px;
}

.order-detail-meta-row > span,
.order-detail-meta-row > strong,
.order-detail-meta-row div strong {
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.42;
}

.order-detail-meta-row > span {
  color: #7d848d;
}

.order-detail-meta-row div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-detail-meta-row button {
  border: 0;
  background: transparent;
  color: #006843;
  font-size: 15px;
  line-height: 1.42;
}

.order-detail-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(32, 34, 36, 0.08);
}

.order-detail-actions__inner {
  display: flex;
  gap: 10px;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 20px calc(14px + var(--safe-bottom));
}

.order-detail-actions__inner--dual .order-detail-action {
  flex: 1;
}

.order-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  flex: 1;
}

.order-detail-action--ghost {
  background: #f5f6f8;
  color: #2b2b2b;
}

.order-detail-action--primary {
  background: #006843;
  color: #fff;
  flex: 1.08;
}

@media (max-width: 359px) {
  .orders-tabs {
    gap: 18px;
    padding-inline: 16px;
  }

  .orders-list {
    padding-inline: 16px;
  }

  .order-card-block {
    padding-inline: 16px;
  }

  .order-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .order-line img {
    width: 72px;
    height: 72px;
  }

  .order-line__meta {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  .orders-main--detail {
    padding-inline: 16px;
  }

  .order-detail-card--address,
  .order-detail-card--progress,
  .order-detail-card--goods,
  .order-detail-card--info {
    padding: 16px;
  }

  .order-detail-card .order-line {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .order-detail-card .order-line img {
    width: 72px;
    height: 72px;
  }

  .order-detail-summary__row strong,
  .order-detail-meta-row > strong,
  .order-detail-meta-row div strong {
    font-size: 14px;
  }

  .order-detail-actions__inner {
    gap: 8px;
    padding-inline: 10px;
  }

  .order-detail-action {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 14px;
  }
}
