/* 基差合同 · 点价记录 */
:root {
  --color-primary: #FF620A;
  --color-primary-deep: #FF8002;
  --color-gold: #FFA921;
  --color-orange-soft: #FB6E0F;
  --color-bg: #f5f5f5;
  --color-card: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-white: #ffffff;
  --gradient-header: linear-gradient(240deg, #FFA921 0%, #FF8002 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 37.5px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text);
  background: #e9edf2;
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--color-bg); }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-header); color: #fff;
}
.nav__back {
  position: absolute; left: 12px; top: 0; bottom: 0;
  display: flex; align-items: center; color: #fff; background: none; border: 0; padding: 0 8px; cursor: pointer;
}
.nav__title { font-size: 17px; font-weight: 600; }

.record-header {
  background: var(--gradient-header);
  padding: 0.4rem 0.4rem 0.48rem;
  color: #fff;
}
.record-header__name { font-size: 16px; font-weight: 600; line-height: 1.4; }
.record-header__remain {
  height: 1.12rem; background: #FFFFFF; border-radius: 0.16rem;
  padding: 0.26667rem 0.21333rem; margin: 0.26667rem 0;
  display: flex; align-items: center; color: #333; font-size: 16px;
}
.record-header__remain-label { margin-right: 0.53333rem; }
.record-header__remain-value { font-weight: 600; }

.record-header__stats {
  display: flex; justify-content: space-between; color: #fff; font-size: 14px;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.stat-item__label { margin-bottom: 0.13333rem; line-height: 0.53333rem; opacity: 0.95; }
.stat-item__value { line-height: 0.58667rem; font-weight: 500; }
.stat-item--mid::before,
.stat-item--mid::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 1px; height: 0.66667rem; background: rgba(255,255,255,0.26);
}
.stat-item--mid::before { left: 0; }
.stat-item--mid::after { right: 0; }

.tabs {
  height: 1.38667rem; background: #FFF;
  display: flex; justify-content: space-around; align-items: center;
  font-size: 16px; color: #666;
  border-bottom: 1px solid #f0f0f0;
}
.tabs__item {
  position: relative; padding: 0.2rem 0.4rem; cursor: pointer;
}
.tabs__item.is-active { color: #FF620A; font-weight: 500; }
.tabs__item.is-active::after {
  content: ""; display: block; width: 0.42667rem; height: 0.08rem;
  background: #FA5D28; border-radius: 0.05333rem;
  position: absolute; bottom: -0.13333rem; left: 50%; transform: translateX(-50%);
}

.record-list { padding: 0.4rem; }
.record-card {
  background: #FFF; border-radius: 0.16rem; border: 1px solid #FFF;
  padding: 0.26667rem; margin-top: 0.26667rem;
}
.record-card__date { color: #666; font-size: 15px; margin-bottom: 0.13333rem; }
.record-card__body { margin-top: 0.13333rem; }
.record-card__row {
  display: flex; justify-content: space-between;
  margin-bottom: 0.13333rem; line-height: 0.56rem;
  color: #333; font-size: 15px;
}
.record-card__status { color: #FB6E0F; font-weight: 500; }
.record-card__status.is-fail { color: #999; }
.record-card__status.is-pending { color: #FF8618; }
.record-card__mode {
  display: inline-block; margin-bottom: 0.13333rem; padding: 0 0.16rem;
  height: 0.48rem; line-height: 0.48rem; background: #FFF0E6; color: #FB6E0F;
  border-radius: 0.08rem; font-size: 12px;
}
.record-card__note {
  margin-top: 0.16rem; padding: 0.16rem 0.21333rem;
  background: #FFF8F2; border-radius: 0.10667rem;
  color: #B85A1A; font-size: 12px; line-height: 1.45;
}
.record-card__links {
  margin-top: 0.16rem; display: flex; flex-wrap: wrap; gap: 0.32rem;
}
.record-card__links a { color: #468DF1; font-size: 14px; text-decoration: none; }
.record-empty {
  margin-top: 0.64rem; text-align: center; color: #999; font-size: 14px;
}
.tabs__item { font-size: 15px; padding: 0.2rem 0.21333rem; }
