/* ---------------------------------------------------------------
   B300 货源中心 · 设计系统
   参考 NVIDIA 视觉语言：纯黑底、高对比白字、NV 绿强调、几何斜角
   --------------------------------------------------------------- */
:root {
  --bg: #000000;
  --bg-1: #0b0d0b;
  --bg-2: #121512;
  --bg-3: #1a1e1a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-2: #b9bfb9;
  --text-3: #7d847d;
  --nv: #76b900;
  --nv-hot: #8fd600;
  --nv-dark: #4f7d00;
  --nv-glow: rgba(118, 185, 0, 0.18);
  --warn: #f2a900;
  --danger: #ff4d4f;
  --info: #4da3ff;
  --radius: 2px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--nv); color: #000; }
:focus-visible { outline: 2px solid var(--nv); outline-offset: 2px; }

/* 细网格背景（NVIDIA 风格的工程感） */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(118, 185, 0, 0.10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

/* ---------------------------------------------------------------- 布局 */
.wrap { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }

/* ---------------------------------------------------------------- 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--nv); color: #000; font-weight: 900; font-size: 13px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand small { color: var(--text-3); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--nv); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user { color: var(--text-3); font-size: 13px; font-family: var(--mono); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; cursor: pointer;
  background: var(--nv); color: #000; font-weight: 700; font-size: 14px;
  letter-spacing: 0.01em; border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--nv-hot); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  clip-path: none; font-weight: 600;
}
.btn.ghost:hover { border-color: var(--nv); color: var(--nv-hot); background: var(--nv-glow); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 77, 79, 0.4); clip-path: none; }
.btn.danger:hover { background: rgba(255, 77, 79, 0.12); }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--text-2);
  letter-spacing: 0.04em; white-space: nowrap;
}
.tag.solid { background: var(--nv); border-color: var(--nv); color: #000; }
.tag.outline-nv { border-color: var(--nv); color: var(--nv-hot); }
.tag.domestic { color: #9ad3ff; border-color: rgba(77, 163, 255, 0.45); }
.tag.overseas { color: #ffcf7a; border-color: rgba(242, 169, 0, 0.45); }
.tag.spot { background: rgba(118, 185, 0, 0.12); border-color: rgba(118, 185, 0, 0.5); color: var(--nv-hot); }
.tag.futures { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--text); }
.tag.dim { color: var(--text-3); border-color: var(--line); }
.tag.mono { font-family: var(--mono); letter-spacing: 0; font-weight: 600; }

/* ---------------------------------------------------------------- 标题 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--nv-hot);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--nv); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
.hero-title { font-size: clamp(38px, 6vw, 76px); font-weight: 900; letter-spacing: -0.035em; }
.hero-title em { font-style: normal; color: var(--nv); }
.section-title { font-size: 28px; margin-bottom: 6px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.card:hover { border-color: var(--line-strong); }

/* ---------------------------------------------------------------- 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.025); }
.tbl .num { font-family: var(--mono); text-align: right; }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-2); text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); outline: none;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--nv); box-shadow: 0 0 0 3px var(--nv-glow); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.hint { font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 提示条 */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  min-width: 260px; max-width: 420px; padding: 14px 16px;
  background: var(--bg-3); border: 1px solid var(--line-strong); border-left: 3px solid var(--nv);
  box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in 0.2s ease;
}
.toast.err { border-left-color: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- 门户（邀请码） */
.gate {
  min-height: 100vh; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
}
.gate-left {
  padding: 56px 0 32px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line);
  position: relative; overflow: hidden;
}
/* 左栏内容与顶栏、页脚对齐到同一条容器边距；装饰图形仍铺满整栏 */
.gate-left > * { padding-left: clamp(32px, 5vw, 80px); padding-right: clamp(32px, 5vw, 80px); }
.gate-left::before {
  content: ""; position: absolute; right: -160px; top: 18%;
  width: 520px; height: 520px; border: 1px solid rgba(118, 185, 0, 0.25);
  transform: rotate(45deg);
}
.gate-left::after {
  content: ""; position: absolute; right: -60px; top: 30%;
  width: 320px; height: 320px; border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}
.gate-right { display: grid; place-items: center; padding: 40px 24px; background: linear-gradient(180deg, rgba(118,185,0,0.04), transparent 40%); }
.gate-card { width: min(400px, 100%); }
.gate-stats { display: flex; gap: 36px; margin-top: 40px; position: relative; z-index: 1; }
.gate-stat b { display: block; font-size: 34px; font-family: var(--mono); font-weight: 800; color: var(--nv-hot); }
.gate-stat span { font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  /* 窄屏上下堆叠时按内容高度，避免 52vh 留白与 min-height:100vh 一起撑出滚动 */
  .gate { min-height: auto; }
  .gate-left { min-height: auto; padding: 40px 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .gate-right { padding: 40px 24px 56px; }
}

/* ---------------------------------------------------------------- 筛选条 */
.filters { display: grid; gap: 14px; padding: 18px 20px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { width: 72px; font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; font-weight: 700; flex: none; }
.chip {
  height: 30px; padding: 0 13px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 999px;
  transition: all 0.12s ease;
}
.chip:hover { color: var(--text); border-color: var(--nv); }
.chip.on { background: var(--nv); border-color: var(--nv); color: #000; }
.chip .n { margin-left: 6px; font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .input { padding-left: 34px; }
.search svg { position: absolute; left: 11px; top: 12px; opacity: 0.5; }

/* ---------------------------------------------------------------- 货源卡片 */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer {
  display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 0;
  background: var(--bg); position: relative; overflow: hidden; min-height: 300px;
}
.offer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; transition: background 0.15s ease;
}
.offer:hover::before { background: var(--nv); }
.offer:hover { background: var(--bg-1); }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-code { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.offer-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.offer-price .amount { font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.03em; }
.offer-price .unit { color: var(--text-3); font-size: 13px; }
.offer-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); padding-bottom: 18px; }
.offer-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; margin: 0 -22px; border-top: 1px solid var(--line); background: var(--bg-1);
  font-size: 13px; color: var(--text-2);
}
.offer-foot .go { color: var(--nv-hot); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- 详情 */
.detail-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 36px 0 80px; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
.spec { background: var(--bg-1); padding: 14px 16px; }
.spec dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.spec dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span:first-child { color: var(--text-3); }
.kv span:last-child { text-align: right; font-weight: 600; }

/* 流程时间线 */
.timeline { position: relative; margin-top: 22px; padding-left: 8px; }
.step { position: relative; padding: 0 0 26px 42px; }
.step::before {
  content: ""; position: absolute; left: 14px; top: 26px; bottom: 0; width: 1px; background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step-dot {
  position: absolute; left: 0; top: 0; width: 29px; height: 29px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700;
  border: 1px solid var(--nv); color: var(--nv-hot); background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.step-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-detail { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.step-type { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.step-dur { font-family: var(--mono); font-size: 12px; color: var(--nv-hot); }

/* 数据条 */
.bar { height: 6px; background: var(--bg-3); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--nv); display: block; }

/* 空状态 */
.empty { padding: 80px 20px; text-align: center; color: var(--text-3); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* 加载 */
.spinner { width: 20px; height: 20px; border: 2px solid var(--line-strong); border-top-color: var(--nv); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-3); padding: 24px 0; font-size: 14px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--text-3); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 价格尾注（如 ¥286,000 · 28.6万） */
.unit-hint { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
