:root {
  --ink: #16202e;
  --ink-soft: #33415a;
  --navy: #1c3557;
  --navy-700: #162c49;
  --navy-100: #eef2f8;
  --gold: #b8934f;
  --gold-soft: #f7f1e4;
  --muted: #6d7787;
  --muted-2: #8b94a3;
  --line: #e7ebf1;
  --line-strong: #d7dee8;
  --bg: #f6f8fb;
  --white: #ffffff;
  --green: #0e9f6e;
  --green-soft: #e9f8f1;
  --amber: #b7791f;
  --amber-soft: #fdf4e3;
  --red: #c0392b;
  --red-soft: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(16, 35, 65, 0.05);
  --shadow-sm: 0 6px 18px -12px rgba(16, 35, 65, 0.28);
  --shadow-md: 0 24px 48px -30px rgba(16, 35, 65, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 420px at 78% -8%, rgba(28, 53, 87, 0.06), transparent 60%),
    radial-gradient(760px 320px at 6% 4%, rgba(184, 147, 79, 0.08), transparent 62%),
    var(--white);
}

.page-shell > main { flex: 1; padding-bottom: 72px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -12px rgba(28, 53, 87, 0.9);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark-sm { width: 38px; height: 38px; border-radius: 12px; }
.brand-mark-sm svg { width: 21px; height: 21px; }

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--navy-100); color: var(--navy); }
.main-nav a.is-active { color: var(--navy); font-weight: 600; background: var(--navy-100); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.user-chip .avatar { width: 32px; height: 32px; font-size: 14px; }
.user-chip .name { font-size: 14px; font-weight: 500; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e9eef7, #d8e2f1);
  color: var(--navy);
  font-weight: 600;
  flex: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(28, 53, 87, 0.9);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 28px -14px rgba(28, 53, 87, 0.8); }

.btn-gold {
  background: linear-gradient(160deg, #c9a55f, var(--gold));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(184, 147, 79, 0.9);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); background: var(--navy-100); }

.btn-quiet {
  background: transparent;
  color: var(--muted);
  height: 40px;
  padding: 0 12px;
}
.btn-quiet:hover { color: var(--navy); background: var(--navy-100); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 13px; }

.btn-danger {
  background: var(--white);
  border-color: rgba(178, 60, 46, 0.4);
  color: #b23c2e;
}
.btn-danger:hover:not(:disabled) { background: rgba(178, 60, 46, 0.07); border-color: #b23c2e; }

.price-body .btn + .btn { margin-top: 8px; }

.invite-add {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.invite-add input {
  flex: 1 1 200px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 13px;
  color: var(--ink);
}
.invite-add input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }

.link { color: var(--navy); font-weight: 600; }
.link:hover { color: var(--gold); }

/* ---------- 首页 ---------- */
.hero { position: relative; padding: 54px 0 12px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--navy); }
.hero-sub { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 15px; }

.search-box {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-box:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 53, 87, 0.08); }
.search-box svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  height: 40px;
  font-size: 15px;
  min-width: 0;
}
.search-box input::placeholder { color: var(--muted-2); }

.hero-stats {
  margin-top: 30px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-size: 22px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--muted-2); letter-spacing: 0.08em; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
}
.section-title { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), #dcc38e);
}
.section-sub { font-size: 13px; color: var(--muted-2); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tab:not(.is-active):hover { background: var(--navy-100); color: var(--navy); }
.tab.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.tab .num {
  font-size: 12px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(28, 53, 87, 0.08);
  font-variant-numeric: tabular-nums;
}
.tab.is-active .num { background: rgba(255, 255, 255, 0.22); }

.search-inline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tag-keyword {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  color: #8a6a2c;
  border-radius: 999px;
  padding: 4px 8px 4px 10px;
  font-size: 12px;
}
.tag-keyword button { border: 0; background: transparent; color: inherit; font-size: 14px; line-height: 1; padding: 0 2px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 4px;
}

.auction-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.22s ease;
}
.auction-card:hover {
  transform: translateY(-3px);
  border-color: #d9e2ee;
  box-shadow: var(--shadow-md);
}

.card-cover {
  position: relative;
  height: 112px;
  background:
    linear-gradient(#dfe7f2 1px, transparent 1px),
    linear-gradient(90deg, #dfe7f2 1px, transparent 1px),
    linear-gradient(135deg, #f5f8fc, #e9eff8);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  overflow: hidden;
}
.card-cover.cover-1 { background-image: linear-gradient(#e7e2d6 1px, transparent 1px), linear-gradient(90deg, #e7e2d6 1px, transparent 1px), linear-gradient(135deg, #fbf8f1, #f3ecdd); }
.card-cover.cover-2 { background-image: linear-gradient(#d9e8e2 1px, transparent 1px), linear-gradient(90deg, #d9e8e2 1px, transparent 1px), linear-gradient(135deg, #f4fbf8, #e6f3ee); }
.card-cover.cover-3 { background-image: linear-gradient(#e2e0ee 1px, transparent 1px), linear-gradient(90deg, #e2e0ee 1px, transparent 1px), linear-gradient(135deg, #f9f8fd, #eeecf7); }

.card-cover .cover-house {
  position: absolute;
  right: 16px;
  bottom: -14px;
  width: 118px;
  height: 118px;
  color: rgba(28, 53, 87, 0.16);
}
.cover-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(28, 53, 87, 0.45);
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--navy-100);
  color: var(--navy);
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.active { background: var(--green-soft); color: var(--green); }
.status-pill.upcoming { background: var(--amber-soft); color: var(--amber); }
.status-pill.ended { background: #f1f3f6; color: var(--muted); }
.status-pill.cancelled { background: var(--red-soft); color: var(--red); }
.status-pill.invite { background: var(--gold-soft); color: #8a6a2c; }

.card-body { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.card-title:hover { color: var(--navy); }
.card-addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.card-addr svg { width: 14px; height: 14px; flex: none; }
.card-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
  font-size: 12px;
  color: var(--ink-soft);
  background: #f4f6fa;
  border-radius: 7px;
  padding: 3px 8px;
}
.chip.gold { color: #8a6a2c; background: var(--gold-soft); }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.price-label { font-size: 12px; color: var(--muted-2); }
.price-value { display: flex; align-items: baseline; gap: 4px; color: var(--navy); }
.price-value b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-value span { font-size: 12px; color: var(--muted); }
.price-value.is-empty b { color: var(--muted-2); font-size: 20px; }

.card-foot {
  margin-top: 14px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fbfcfe;
}
.card-foot .countdown { color: var(--navy); }
.card-foot .relation { color: var(--gold); font-weight: 600; }
.card-foot .relation.leading { color: var(--green); }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.countdown svg { width: 13px; height: 13px; }
.countdown.urgent { color: var(--red); }

/* 已结束列表 */
.ended-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.ended-head, .ended-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px 90px;
  gap: 18px;
  align-items: center;
  padding: 15px 22px;
}
.ended-head {
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.ended-row { border-bottom: 1px solid var(--line); transition: background 0.16s ease; }
.ended-row:last-child { border-bottom: 0; }
.ended-row:hover { background: #fbfcfe; }
.ended-row .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ended-row .title small { display: block; font-size: 12px; color: var(--muted-2); font-weight: 400; }
.ended-row .amount { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.ended-row .amount span { font-size: 12px; color: var(--muted); font-weight: 400; }
.ended-row .when { font-size: 13px; color: var(--muted); }
.ended-row .people { font-size: 13px; color: var(--muted); text-align: right; }

.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.empty .empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--navy-100);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.empty .empty-icon svg { width: 26px; height: 26px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.empty p { font-size: 13px; }

/* ---------- 详情页 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin: 26px 0 18px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: 0.6; }

.detail-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.detail-sub span { display: inline-flex; align-items: center; gap: 6px; }
.detail-sub svg { width: 15px; height: 15px; color: var(--muted-2); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel-title svg { width: 18px; height: 18px; color: var(--gold); }
.panel-count { font-size: 12px; color: var(--muted-2); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.7); }
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfcfe; }
.fact { padding: 16px 14px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact span { display: block; font-size: 12px; color: var(--muted-2); }
.fact b { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.fact b small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 20px; }
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-row dt { color: var(--muted); font-size: 13px; }
.info-row dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.info-row dd.mono { font-variant-numeric: tabular-nums; }

.desc { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.desc h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.desc p { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }

.bid-list { display: flex; flex-direction: column; }
.bid-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.bid-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.bid-row.is-new { animation: bid-flash 1.4s ease; border-radius: 8px; }
@keyframes bid-flash {
  0% { background: rgba(184, 147, 79, .22); }
  100% { background: transparent; }
}
.leading-notice { align-items: flex-start; }
.leading-notice svg { margin-top: 2px; }
.bid-row .avatar { width: 34px; height: 34px; font-size: 13px; }
.bid-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bid-who b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bid-who small { color: var(--muted-2); font-size: 12px; }
.bid-amount { text-align: right; font-variant-numeric: tabular-nums; }
.bid-amount b { font-size: 17px; font-weight: 600; color: var(--navy); }
.bid-amount b span { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.bid-amount small { display: block; font-size: 11px; color: var(--muted-2); }
.lead-tag { font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 1px 6px; border-radius: 5px; }

/* 出价记录分页 */
.bid-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bid-pager .pager-info { font-size: 12px; color: var(--muted); }
.bid-pager .pager-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.bid-pager .pager-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); background: var(--navy-100); }
.bid-pager .pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.people { display: flex; flex-wrap: wrap; gap: 10px; }
.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: #fbfcfe;
}
.person .avatar { width: 28px; height: 28px; font-size: 12px; }
.person small { color: var(--muted-2); font-size: 12px; }
.person.is-me { border-color: #c7d4e6; background: var(--navy-100); }

/* 右侧价格卡 */
.price-panel { position: sticky; top: 94px; overflow: hidden; padding: 0; }
.price-hero {
  padding: 22px 24px 20px;
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(184, 147, 79, 0.28), transparent 70%),
    linear-gradient(140deg, #1e3a5f, #162c49);
  color: #fff;
}
.price-hero .label { font-size: 12px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.06em; }
.price-hero .value { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.price-hero .value b { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-hero .value span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.price-hero .value.muted-value b { font-size: 26px; color: rgba(255, 255, 255, 0.8); }
.price-hero .sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.price-hero .sub b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-hero .countdown-big {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.price-hero .countdown-big b { color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.price-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  background: #f6f8fb;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--muted); }
.notice.warn { background: var(--amber-soft); border-color: #f0e0bd; color: #7a5a17; }
.notice.warn svg { color: var(--amber); }
.notice.success { background: var(--green-soft); border-color: #cfeee1; color: #0b6b4c; }
.notice.success svg { color: var(--green); }
.notice.info { background: var(--navy-100); border-color: #dbe5f3; color: var(--navy); }
.notice.info svg { color: var(--navy); }

.bid-form { display: flex; flex-direction: column; gap: 10px; }
.bid-input-wrap { position: relative; }
.bid-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 54px 0 16px;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.bid-input-wrap input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 53, 87, 0.08); }
.bid-input-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }
.quick-bids { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-bids button {
  flex: 1;
  min-width: 84px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: all 0.16s ease;
}
.quick-bids button:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-100); }
.bid-hint { font-size: 12px; color: var(--muted-2); text-align: center; }

.rules { border-top: 1px solid var(--line); padding-top: 14px; }
.rules h4 { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; letter-spacing: 0.04em; }
.rules ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; line-height: 1.9; }

/* ---------- 表单 ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; margin-top: 8px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.form-section + .form-section { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section-title { font-size: 15px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.form-section-title svg { width: 17px; height: 17px; color: var(--gold); }
.form-section-title small { font-weight: 400; color: var(--muted-2); font-size: 12px; margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted-2); }
.field input[type="text"], .field input[type="password"], .field input[type="tel"],
.field input[type="number"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  outline: none;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(28, 53, 87, 0.07);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:disabled { background: #f7f8fa; color: var(--muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-2 .field + .field { margin-top: 0; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 46px; }
.input-suffix .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  margin-top: 2px;
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease;
}
.radio-card .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background 0.18s ease; }
.radio-card b { display: block; font-size: 13px; font-weight: 600; }
.radio-card small { display: block; font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--navy-100); box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.06); }
.radio-card:has(input:checked) .dot { border-color: var(--navy); }
.radio-card:has(input:checked) .dot::after { background: var(--navy); }
.radio-card:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(28, 53, 87, 0.12); }

.form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; }
.form-error {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--red-soft);
  color: #96261a;
  font-size: 13px;
  border: 1px solid #f5cdc7;
}
.form-error.show { display: block; }

.side-notes { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 94px; }
.side-card {
  background: linear-gradient(160deg, #fbfcfe, #f4f7fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.side-card h4 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h4 svg { width: 16px; height: 16px; color: var(--gold); }
.side-card ol, .side-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 2; }

/* ---------- 登录注册 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 56px 0 20px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .brand-mark { margin: 0 auto 14px; }
.auth-head h1 { font-size: 22px; }
.auth-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.auth-switch { display: flex; background: #f4f6fa; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-switch a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.18s ease;
}
.auth-switch a.is-active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--shadow-xs); }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-note { margin-top: 18px; font-size: 12px; color: var(--muted-2); text-align: center; line-height: 1.7; }

/* ---------- 我的 ---------- */
.me-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(184, 147, 79, 0.16), transparent 65%),
    linear-gradient(150deg, #fbfcfe, #f2f6fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 26px 0 24px;
}
.me-head .avatar { width: 64px; height: 64px; font-size: 24px; background: linear-gradient(140deg, #dfe8f4, #c9d7ea); }
.me-head h1 { font-size: 22px; }
.me-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.me-head .me-meta { margin-left: auto; display: flex; align-items: center; gap: 26px; text-align: right; }
.me-head .me-stats { display: flex; gap: 26px; }
.me-head .me-meta b { display: block; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.me-head .me-meta span { font-size: 12px; color: var(--muted-2); }
.me-head .me-profile-link { flex-shrink: 0; }

.me-main { max-width: 920px; }

.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.me-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.me-tab {
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.me-tab:hover { color: var(--navy); }
.me-tab.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.my-item:hover { border-color: #d8e1ec; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.my-item .t { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 4px; }
.my-item .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-item .m { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.my-item .m b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.my-item .act { display: flex; gap: 8px; align-items: center; }

.profile-page { max-width: 560px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 18px; }
.profile-summary { display: flex; align-items: center; gap: 14px; }
.profile-summary .avatar { width: 52px; height: 52px; font-size: 20px; background: linear-gradient(140deg, #dfe8f4, #c9d7ea); flex-shrink: 0; }
.profile-summary-text { min-width: 0; }
.profile-summary-text h1 { font-size: 19px; }
.profile-summary-text p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile-summary .btn { margin-left: auto; flex-shrink: 0; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-head h3 { font-size: 15px; }
.profile-head p { font-size: 12px; color: var(--muted); }

/* ---------- 其它 ---------- */
.skeleton {
  background: linear-gradient(90deg, #f1f4f9 25%, #e8edf5 37%, #f1f4f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.loading-wrap { padding: 60px 0; display: flex; flex-direction: column; gap: 14px; }

.toast-root { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(22, 32, 46, 0.94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.25s ease;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.error { background: rgba(160, 40, 30, 0.96); }
.toast.success { background: rgba(14, 120, 86, 0.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.site-footer { border-top: 1px solid var(--line); background: #fbfcfe; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 14px; }
.footer-brand p { font-size: 12px; color: var(--muted-2); }
.footer-meta { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.copyright { font-size: 12px; color: var(--muted-2); }
.footer-beian { font-size: 12px; color: var(--muted-2); transition: color 0.18s ease; }
.footer-beian:hover { color: var(--navy); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

@media (max-width: 1000px) {
  .detail-grid, .form-layout, .me-grid { grid-template-columns: 1fr; }
  .price-panel, .side-notes, .profile-card { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 12px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 16px; white-space: nowrap; }
  .main-nav { margin-left: 0; gap: 2px; }
  .main-nav a { padding: 8px 11px; font-size: 13px; white-space: nowrap; }
  .header-actions { gap: 8px; }
  .hero { padding-top: 36px; }
  .hero-stats { gap: 24px; }
  .ended-head, .ended-row { grid-template-columns: minmax(0, 1fr) 130px 80px; padding: 13px 16px; gap: 12px; }
  .ended-head .people, .ended-row .people { display: none; }
  .ended-row .when { font-size: 12px; }
  .form-card { padding: 20px; }
  .form-grid-2, .radio-cards, .info-grid { grid-template-columns: 1fr; }
  .form-grid-2 .field + .field { margin-top: 16px; }
  .me-head { flex-wrap: wrap; padding: 20px; }
  .me-head .me-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }
  .me-head .me-stats { gap: 22px; }
  .my-item { grid-template-columns: 1fr; }
  .my-item .act { justify-content: flex-end; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .breadcrumb { margin-top: 18px; }
  .search-box { padding-left: 14px; }
  .search-box input { font-size: 14px; }
}

@media (max-width: 640px) {
  .user-chip .name { display: none; }
  .user-chip { padding: 3px; gap: 0; }
  .user-chip .avatar { width: 30px; height: 30px; font-size: 13px; }
}

/* 窄屏顶栏改为两行：第一行品牌 + 账号操作，第二行导航，避免挤压变形 */
@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 24px);
    height: auto;
    flex-wrap: wrap;
    gap: 0;
    padding: 9px 0 8px;
  }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-text strong { font-size: 16px; }
  .header-actions .btn { height: 36px; font-size: 13px; padding: 0 12px; }
  .main-nav {
    flex: 1 0 100%;
    width: 100%;
    margin: 9px 0 0;
    padding: 4px;
    gap: 4px;
    background: var(--navy-100);
    border-radius: 12px;
  }
  .main-nav a {
    flex: 1;
    padding: 7px 4px;
    text-align: center;
    font-size: 13px;
    border-radius: 9px;
  }
  .main-nav a:hover { background: rgba(255, 255, 255, 0.7); }
  .main-nav a.is-active { background: var(--white); box-shadow: var(--shadow-xs); }

  /* 窄屏下首页统计均分一行并居中 */
  .hero-stats { margin-top: 24px; gap: 0; justify-content: center; }
  .hero-stat { flex: 1 1 0; min-width: 0; align-items: center; text-align: center; }
  .hero-stat b { font-size: 20px; }

  /* 筛选 tab 改为分段控件，始终保持一行（必要时横向滚动） */
  .toolbar { margin-top: 20px; gap: 10px; }
  .tabs {
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
    padding: 4px;
    background: var(--navy-100);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 1 0 auto;
    height: 34px;
    padding: 0 9px;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
    justify-content: center;
  }
  .tab:not(.is-active):hover { background: rgba(255, 255, 255, 0.7); }
  .tab .num { font-size: 11px; padding: 0 5px; }
}

@media (max-width: 520px) {
  .btn { padding: 0 14px; }
  .grid-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; flex-wrap: nowrap; }
  .hero-stat { flex: 1 1 0; min-width: 0; align-items: center; text-align: center; }
  .hero-stat b { font-size: 19px; }
  .hero-stat span { font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; }
  .tab { padding: 0 7px; font-size: 12.5px; gap: 4px; }
  .tab .num { font-size: 10.5px; padding: 0 4px; }
  .detail-sub { gap: 10px; }
  .panel { padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ended-head, .ended-row { grid-template-columns: minmax(0, 1fr) 100px; }
  .ended-row .when, .ended-head .when { display: none; }
  .auth-card { padding: 24px; }
  .price-hero .value b { font-size: 30px; }
  /* 统计数字与「我的资料」保持在同一行 */
  .me-head { padding: 18px; gap: 14px; }
  .me-head .avatar { width: 52px; height: 52px; font-size: 20px; }
  .me-head h1 { font-size: 19px; }
  .me-head .me-stats { gap: 18px; }
  .me-head .me-meta b { font-size: 18px; }
  .me-head .me-meta { gap: 10px; }
  .me-head .me-profile-link { height: 34px; padding: 0 12px; font-size: 13px; }
}
