/* 基差合同 · 合同列表 */
:root {
  --color-primary: #FF620A;
  --color-primary-deep: #FF8618;
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-text: #030303;
  --color-text-secondary: #666666;
  --color-muted: #999999;
  --color-link: #468DF1;
  --color-tip-bg: #fddfd0;
  --color-tip-border: #ffcbb1;
  --gradient-tag: linear-gradient(90deg, #D750FF 0%, #AD32FF 100%);
  --gradient-btn: linear-gradient(90deg, #FF8618 0%, #FF620A 100%);
}

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

html {
  font-size: 37.5px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Alibaba PuHuiTi", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #e9edf2;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  overflow-x: hidden;
}

.goods-tabs {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eee;
}

.goods-tabs__list {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  position: relative;
}

.goods-tabs__item {
  font-size: 18px;
  color: #999;
  margin: 0 12px;
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
}

.goods-tabs__item.is-active {
  color: #000;
  font-weight: 700;
}

.goods-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: #fa5d28;
  border-radius: 2px;
}

.status-tabs {
  display: flex;
  background: #fff;
  font-size: 14px;
  color: #666;
}

.status-tabs__item {
  padding: 0.32rem 0.45333rem 0.13333rem;
  position: relative;
  cursor: pointer;
}

.status-tabs__item i {
  font-style: normal;
  font-size: 0.32rem;
  transform: scale(0.75);
  color: #fff;
  background: #ef4949;
  border-radius: 0.37333rem;
  position: absolute;
  padding: 0.02667rem 0.08rem;
  top: 0.05333rem;
  right: 0.08rem;
}

.status-tabs__item.is-active {
  color: #ff6100;
  text-align: center;
}

.status-tabs__item.is-active::after {
  content: "";
  margin: 0.08rem auto 0;
  display: block;
  width: 0.42667rem;
  height: 0.08rem;
  border-radius: 0.05333rem;
  background-color: #fa5d28;
}

.child-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 0.26667rem;
}

.child-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.child-tabs__item {
  height: 0.74667rem;
  line-height: 0.74667rem;
  text-align: center;
  background: #e7e7e7;
  border-radius: 0.42667rem;
  margin-right: 0.32rem;
  font-size: 0.37333rem;
  padding: 0 0.32rem;
  color: #666;
  cursor: pointer;
  transition: .2s all;
}

.child-tabs__item.is-active {
  color: #fff;
  background: #FF620A;
}

.filter-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.32rem 0.53333rem 0;
  background: #fafafa;
  gap: 0.08rem;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.list {
  padding: 0 0.32rem 0.64rem;
  background: #fafafa;
}

.card {
  box-shadow: 0.05333rem 0.05333rem 0.10667rem 0 rgba(241, 241, 241, 0.7), -0.05333rem 0 0.10667rem 0 rgba(241, 241, 241, 0.65);
  border-radius: 0.32rem;
  padding: 0.32rem 0.26667rem;
  margin-top: 0.21333rem;
  background-color: #fff;
}

.card__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.42667rem;
  color: #030303;
  margin-bottom: 0.21333rem;
  gap: 8px;
}

.card__title-name {
  font-weight: 500;
  line-height: 1.3;
}

.card__status {
  color: #FF620A;
  flex-shrink: 0;
  font-size: 0.37333rem;
}

.card__labels {
  margin-bottom: 0.26667rem;
  display: flex;
}

.card__label {
  width: 1.49333rem;
  height: 0.48rem;
  line-height: 0.48rem;
  background: linear-gradient(90deg, #D750FF 0%, #AD32FF 100%);
  border-radius: 0.10667rem;
  color: #fff;
  font-size: 0.32rem;
  margin-right: 0.21333rem;
  text-align: center;
}

.card__label--second {
  color: #FB6E0F;
  width: 1.12rem;
  background: #FFF0E6;
  border-radius: 0.08rem;
}

.card__box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card__row {
  width: calc(50% - 0.33333rem);
  line-height: 0.69333rem;
  color: #666;
  font-size: 0.37333rem;
  margin-right: 0.66667rem;
  box-sizing: border-box;
}

.card__row:nth-child(2n) {
  margin-right: 0;
}

.card__row--full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-right: 0 !important;
}

.card__row--price {
  width: 100%;
  margin-right: 0 !important;
}

.card__val {
  color: #333;
}

.card__unit {
  color: #FF620A;
  font-style: normal;
}

.card__copy {
  color: #468DF1;
  cursor: pointer;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.42667rem;
  gap: 0.4rem;
}

.card__btn {
  height: 1.17333rem;
  background: linear-gradient(90deg, #FF8618 0%, #FF620A 100%);
  border-radius: 0.10667rem;
  text-align: center;
  line-height: 1.17333rem;
  flex: 1;
  color: #fff;
  font-size: 16px;
  border: 0;
  cursor: pointer;
}

.card a.card__hit {
  color: inherit;
  text-decoration: none;
  display: block;
}

.child-tabs__item {
  text-decoration: none;
  display: inline-block;
}

.card__label--xt {
  width: auto;
  min-width: 1.49333rem;
  padding: 0 0.16rem;
  background: linear-gradient(90deg, #FF8618 0%, #FF620A 100%);
}

.card__row--hl .card__val {
  color: #FF620A;
  font-weight: 600;
}

.card__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: #FF620A;
  background: #FFF0E6;
  border-radius: 9px;
  vertical-align: middle;
}

.card__hint {
  width: 100%;
  margin: 0.08rem 0 0.16rem;
  padding: 0.16rem 0.21333rem;
  background: #FFF8F2;
  border-radius: 0.10667rem;
  color: #B85A1A;
  font-size: 0.34667rem;
  line-height: 1.4;
}

.card__source {
  display: block;
  margin: -0.08rem 0 0.21333rem;
  font-size: 0.34667rem;
  color: #468DF1;
  text-decoration: none;
}
.card__source:active {
  opacity: 0.75;
}

.card__source-arrow {
  margin-left: 2px;
}

.card--child {
  border-left: 3px solid #FF8618;
}

.card__footer--3 {
  gap: 0.21333rem;
}

.card__btn--plain {
  background: #fff;
  color: #FF620A;
  border: 1px solid #FF620A;
  line-height: calc(1.17333rem - 2px);
  text-decoration: none;
  display: block;
}

a.card__btn {
  text-decoration: none;
  display: block;
}