/* 买车记录 / 卖车记录 · 共用黄白立体风 */
.rc-page {
  --rc-ink: #1c1914;
  --rc-sub: rgba(28, 25, 20, 0.55);
  --rc-yellow: #ff642e;
  --rc-bg: #f5f5f5;
  background: var(--rc-bg);
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  color: var(--rc-ink);
}

.rc-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #ff642e 0%, #ff642e 78%, #ffcbb8 100%);
  box-shadow: 0 8px 20px rgba(232, 78, 26, 0.16);
}
.rc-back {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rc-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.rc-back svg {
  width: 20px;
  height: 20px;
  display: block;
}
.rc-top h1 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}
.rc-top-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--rc-ink);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rc-hero {
  margin: 12px 14px 0;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 228, 17, 0.35), transparent 55%),
    linear-gradient(145deg, #ffffff, #fff8e8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.rc-hero-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}
.rc-hero-desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--rc-sub);
  font-weight: 600;
}
.rc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.rc-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.rc-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rc-stat em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  color: var(--rc-sub);
  font-weight: 700;
}

.rc-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rc-tabs::-webkit-scrollbar {
  display: none;
}
.rc-tabs button {
  flex: 0 0 auto;
  border: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.rc-tabs button.is-on {
  background: linear-gradient(180deg, #ff642e, #ffd700);
  color: var(--rc-ink);
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(232, 78, 26, 0.28);
}

.rc-list {
  padding: 10px 14px 20px;
  display: grid;
  gap: 12px;
}

.rc-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.15s ease;
}
.rc-card:active {
  transform: scale(0.985);
}
.rc-cover-wrap {
  position: relative;
  width: 118px;
  min-height: 108px;
  background: #eee;
}
.rc-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 108px;
}
.rc-cover-ph {
  width: 100%;
  height: 100%;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  background: linear-gradient(180deg, #f3f3f3, #eaeaea);
}
.rc-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(17, 17, 17, 0.78);
  color: #ff642e;
  backdrop-filter: blur(4px);
}
.rc-body {
  padding: 12px 12px 12px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rc-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rc-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--rc-sub);
  font-weight: 600;
}
.rc-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.rc-price {
  color: #ff4400;
  font-weight: 900;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.rc-price small {
  font-size: 11px;
  font-weight: 800;
}
.rc-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #fff3cd;
  color: #8a6d00;
  flex-shrink: 0;
}
.rc-tag.pending { background: #fff3cd; color: #8a6d00; }
.rc-tag.contacted,
.rc-tag.approved { background: #e6f7ee; color: #0a7a4a; }
.rc-tag.done { background: #e8f1ff; color: #1d4ed8; }
.rc-tag.rejected,
.rc-tag.cancelled { background: #f0f0f0; color: #888; }
.rc-note {
  margin-top: 6px;
  font-size: 11px;
  color: #c0392b;
  font-weight: 600;
}

.rc-empty {
  margin: 28px 14px;
  padding: 28px 18px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fffaf0);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}
.rc-empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff642e, #ffef66);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(232, 78, 26, 0.25);
}
.rc-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--rc-ink);
}
.rc-empty span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--rc-sub);
  font-weight: 600;
}
.rc-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff642e, #ffd700);
  color: var(--rc-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(232, 78, 26, 0.3), 0 2px 0 #e6c200;
}

.rc-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  color: #ff642e;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 2px 0 #000;
}
.rc-page.has-fab .rc-list,
.rc-page.has-fab .rc-empty {
  padding-bottom: 72px;
}
