/* ==========================================================================
   芯备 Semipart —— 半导体设备二手配件交易平台
   视觉主张：黄光洁净室（光刻间照明 + 铜互连暖金属）
   高明度低饱和的暖白墙面 / 纯白台面 / 黄光琥珀骨架 / 铜橙朱砂交易色。
   底色只留一丝暖意，不再铺大面积象牙黄；字更沉、线更淡、阴影更轻，
   长时间看台账也不累。变量名沿用旧结构色名以保持全站引用一致。
   ========================================================================== */

:root {
  /* —— 底与面：明亮的洁净室墙面，暖而不黄 —— */
  --paper: #FFFFFF;
  --paper-2: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --surface-3: #F0F2F5;

  /* —— 线：比上一版更淡，靠留白分区而不是靠描边 —— */
  --line: #E9E8E1;
  --line-2: #DDDCD3;
  --line-3: #C7C5B9;

  /* —— 字：深暖炭，略去棕调，小字更清楚 —— */
  --ink: #22252B;
  --ink-2: #4B4F55;
  --ink-3: #6B6D6C;
  --ink-4: #8B8D8C;

  /* —— 结构：黄光琥珀（原靛蓝角色）—— */
  --indigo: #9A5B08;
  --indigo-2: #B4721B;
  --indigo-soft: #FDF5E6;
  --indigo-line: #EFDCB8;

  /* —— 交易：铜橙朱砂 —— */
  --vermilion: #BE451D;
  --vermilion-2: #D45B2C;
  --vermilion-soft: #FFF1EA;
  --vermilion-line: #F5D8C8;

  /* —— 数据琥珀 —— */
  --amber: #A26B08;
  --amber-soft: #FFF6E2;
  --amber-line: #F2E0B8;

  /* —— 语义：氧化铜绿是唯一冷色，只用在确认态 —— */
  --green: #39674A;
  --green-soft: #EFF5EC;
  --green-line: #CFE0C8;
  --violet: #8A5A3B;
  --violet-soft: #F8F0E9;
  --violet-line: #EADAC9;

  /* —— 暖干涉色签名（琥珀→铜→赭），只留在品牌标记与示意图 —— */
  --wafer-1: #C8862E;
  --wafer-2: #B6651F;
  --wafer-3: #A4472A;
  --wafer-4: #8E5A3A;

  /* —— 首页通栏品牌带：尼康黄 —— */
  --nikon: #FFDD00;
  --nikon-ink: #241E05;
  --topbar-h: 84px;

  /* —— 模块识别色：低饱和、白底上清晰可区分 —— */
  --tone-blue: #2A5C8A;
  --tone-blue-soft: #EAF2FA;
  --tone-blue-line: #C9DDF0;
  --tone-teal: #1B6B60;
  --tone-teal-soft: #E6F4F1;
  --tone-teal-line: #BFE2DA;
  --tone-violet: #6A4B99;
  --tone-violet-soft: #F1EBFA;
  --tone-violet-line: #D9CBF0;
  --tone-rose: #A8452F;
  --tone-rose-soft: #FBEEE9;
  --tone-rose-line: #EFCFC2;
  --tone-amber: #9A5B08;
  --tone-amber-soft: #FFF3DC;
  --tone-amber-line: #F0D9AC;

  --r: 8px;
  --r-s: 6px;
  --r-xs: 4px;
  --pad: 24px;          /* .content 内边距单一真源，首页签名带靠它贴边 */
  --mono: 'SF Mono', 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --shadow-1: 0 1px 2px rgba(35, 37, 43, .05);
  --shadow-2: 0 4px 16px rgba(35, 37, 43, .08);
  --shadow-3: 0 12px 40px rgba(35, 37, 43, .12);
}

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

body {
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Source Han Sans SC', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* 图标尺寸约束 —— 防止 flex 拉伸变形 */
svg.ico {
  width: 17px; height: 17px; flex-shrink: 0;
  display: inline-block; vertical-align: -3px;
}
.card-head > svg.ico { width: 18px; height: 18px; color: var(--indigo); }
.btn > svg.ico { width: 16px; height: 16px; }
.filter-item > svg.ico, .suggest-item > svg.ico { width: 16px; height: 16px; }
.tree-row > svg.ico { width: 16px; height: 16px; }
.pcard-img > svg { width: 100%; height: 100%; }
.gallery > svg { width: 100%; height: 100%; }
/* 商家上传的实拍图：与 SVG 示意图共用同一容器 */
.part-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 键盘焦点可见 */
:focus-visible {
  outline: 2px solid var(--indigo-2);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.brand-logo { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--wafer-1) 0%, var(--wafer-2) 42%, var(--wafer-3) 72%, var(--wafer-4) 100%);
  position: relative; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(168, 102, 18, .26);
}
.brand-mark::before {
  content: ''; position: absolute; inset: 7px;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
}
.brand-mark::after {
  content: ''; position: absolute; left: 50%; top: 5px;
  width: 1.5px; height: 26px; background: rgba(255, 255, 255, .5);
  transform: translateX(-50%);
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--ink-3); letter-spacing: .1px; }

.nav { padding: 12px 10px; flex: 1; }
.nav-group { margin-bottom: 18px; }
.nav-title {
  font-size: 12px; color: var(--ink-4); letter-spacing: .4px;
  padding: 5px 10px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-s);
  color: var(--ink-2); cursor: pointer; transition: background .13s, color .13s;
  font-size: 14.5px; border: none; background: none; width: 100%; text-align: left;
  border-left: 2px solid transparent; margin-left: -2px;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item.active {
  background: var(--indigo-soft); color: var(--indigo);
  font-weight: 600; border-left-color: var(--indigo);
}
.nav-item .ico { color: var(--ink-3); }
.nav-item.active .ico, .nav-item:hover .ico { color: var(--indigo); }
.nav-item .badge {
  margin-left: auto; background: var(--surface-3); color: var(--ink-3);
  font-size: 12px; padding: 1px 8px; border-radius: 9px; font-family: var(--mono);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; border-bottom: 1px solid --line;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
}
.search-box { flex: 1; max-width: 600px; position: relative; }
.search-box input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 9px 40px 9px 38px; color: var(--ink); outline: none;
  transition: border-color .14s, background .14s;
}
.search-box input::placeholder { color: var(--ink-4); }
.search-box input:focus { border-color: var(--indigo-2); background: var(--surface); box-shadow: 0 0 0 3px rgba(168, 102, 18, .14); }
.search-box .s-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-4); pointer-events: none;
}
.search-box .s-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--ink-4); background: none; border: none; padding: 4px;
  border-radius: 50%;
}
.search-box .s-clear:hover { color: var(--ink); background: var(--surface-3); }

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

.btn {
  padding: 8px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: all .14s; font-size: 14.5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { border-color: var(--indigo-2); color: var(--indigo); background: var(--surface); }
.btn-primary { background: var(--vermilion); color: #fff; border-color: var(--vermilion); font-weight: 600; }
.btn-primary:hover { background: var(--vermilion-2); border-color: var(--vermilion-2); color: #fff; }
.btn-indigo { background: var(--indigo); color: #fff; border-color: var(--indigo); font-weight: 600; }
.btn-indigo:hover { background: var(--indigo-2); border-color: var(--indigo-2); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 12px; font-size: 13.5px; }
.btn-danger { border-color: var(--vermilion-line); color: var(--vermilion); }
.btn-danger:hover { background: var(--vermilion-soft); border-color: var(--vermilion); color: var(--vermilion); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: #fff; flex-shrink: 0;
}

.content { padding: var(--pad); flex: 1; max-width: 1720px; width: 100%; }

/* ============ 组件 ============ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1);
}
.card-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  background: var(--surface-2);
}
.card-body { padding: 20px; }

.page-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -.2px; }
.page-desc { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1500px) { .g6 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1300px) { .g5, .g6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(3, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; } }

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; position: relative;
  overflow: hidden; box-shadow: var(--shadow-1);
}
.stat::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--indigo);
}
.stat.c2::after { background: var(--wafer-2); }
.stat.c3::after { background: var(--green); }
.stat.c4::after { background: var(--amber); }
.stat.c5::after { background: var(--vermilion); }
.stat.c6::after { background: var(--violet); }
.stat-label { font-size: 13px; color: var(--ink-3); margin-bottom: 5px; }
.stat-value { font-size: 27px; font-weight: 700; font-family: var(--mono); color: var(--ink); letter-spacing: -.6px; line-height: 1.15; }
.stat-unit { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.stat-sub { font-size: 12.5px; color: var(--ink-4); margin-top: 4px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: var(--r-xs); font-size: 12.5px;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap; line-height: 1.5;
}
.tag-accent { background: var(--indigo-soft); color: var(--indigo); border-color: var(--indigo-line); }
.tag-green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.tag-gold { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.tag-red { background: var(--vermilion-soft); color: var(--vermilion); border-color: var(--vermilion-line); }
.tag-purple { background: var(--violet-soft); color: var(--violet); border-color: var(--violet-line); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 11px 16px; color: var(--ink-3); font-weight: 600;
  border-bottom: 1px solid var(--line-2); font-size: 13px;
  background: var(--surface-2); position: sticky; top: 0;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .mono { font-family: var(--mono); font-size: 13px; }
.table th.mono { font-family: var(--mono); }
/* 弹窗内表格：表头不折行，避免窄弹窗里「数量」竖排成两列 */
.modal .table th { white-space: nowrap; }

.input, .select, textarea.input {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-s); padding: 9px 12px; color: var(--ink); outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus, .select:focus { border-color: var(--indigo-2); box-shadow: 0 0 0 3px rgba(154, 91, 8, .12); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.65; }
select.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23616C7E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .spacer { margin-left: auto; }

/* ============ 商品卡 ============ */
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .16s, box-shadow .16s, transform .16s;
  cursor: pointer; display: flex; flex-direction: column;
}
.pcard:hover { border-color: var(--indigo-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pcard-img {
  height: 142px; background: var(--surface-3);
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.pcard-img svg { width: 100%; height: 100%; }
.pcard-img .pbadge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px);
  padding: 2px 9px; border-radius: var(--r-xs); font-size: 12.5px;
  color: var(--indigo); font-weight: 600; border: 1px solid var(--line);
}
.pcard-img .pcond { position: absolute; top: 10px; right: 10px; z-index: 2; }
.pcard-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.pcard-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 8px;
  color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 43px;
}
.pcard-meta {
  font-size: 12.5px; color: var(--ink-3); margin-bottom: 11px; line-height: 1.5;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  max-height: 42px; overflow: hidden;   /* 锁两行；留足带 tag 的首行高度，不裁出半行字 */
}
.pcard-meta .sep { color: var(--line-3); }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--vermilion); letter-spacing: -.5px; }
.price small { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.pcard-seller { font-size: 12px; color: var(--ink-3); text-align: right; }

/* ============ 详情页 ============ */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery {
  background: var(--surface-3); border-radius: var(--r); aspect-ratio: 4/3;
  overflow: hidden; border: 1px solid var(--line); position: relative;
}
/* img 用绝对定位，避免 height:100% 与父级 aspect-ratio 相互依赖导致主图区塌陷 */
.gallery > img.part-photo { position: absolute; inset: 0; }
.kv { display: grid; grid-template-columns: 116px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 10px 18px; color: var(--ink-2); cursor: pointer; border: none;
  background: none; font-size: 14.5px; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .14s, border-color .14s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--indigo); border-bottom-color: var(--indigo); font-weight: 600; }

.sys-group { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sys-head {
  padding: 12px 16px; background: var(--surface-2); display: flex; align-items: center;
  gap: 9px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink);
}
.sys-head:hover { background: var(--surface-3); }
.sys-head .n { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.unit-table { table-layout: auto; }
.unit-table td { font-size: 13.5px; padding: 9px 15px; }
.unit-table th { white-space: nowrap; }
.unit-table th:nth-child(4), .unit-table td:nth-child(4),
.unit-table th:nth-child(5), .unit-table td:nth-child(5) { white-space: nowrap; }
.pno { font-family: var(--mono); font-size: 12.5px; color: var(--indigo); }

/* 状态点 */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: 0; }
.dot-g { background: var(--green); } .dot-y { background: var(--amber); }
.dot-r { background: var(--vermilion); } .dot-b { background: var(--indigo-2); }
.dot-gray { background: var(--ink-4); }

/* 订单流程条：九步均分，点上字下，弹窗内不再折行错位 */
.flow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: start; }
.flow-step {
  position: relative; min-width: 0; padding: 0 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.flow-step::before {
  content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--line-2);
}
.flow-step:first-child::before { display: none; }
.flow-step.done::before { background: var(--indigo); }
.flow-dot {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3);
  border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-3); font-weight: 700; flex-shrink: 0;
}
.flow-step.done .flow-dot { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.flow-step.cur .flow-dot { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }
.flow-label { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.flow-step.done .flow-label, .flow-step.cur .flow-label { color: var(--ink); font-weight: 500; }
.flow-line { display: none; }

/* 窄屏：九步压不进弹窗，退化为单行横向滑动，不再折行错位 */
@media (max-width: 720px) {
  .flow {
    display: flex; flex-wrap: nowrap; align-items: center;
    overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
  }
  .flow-step { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 0; text-align: left; }
  .flow-step::before { display: none; }
  .flow-line { display: block; width: 18px; height: 2px; margin: 0 6px; background: var(--line-2); }
  .flow-step.done .flow-line { background: var(--indigo); }
  .flow-label { font-size: 12px; white-space: nowrap; }
  /* 窄弹窗里明细表可横滑，不再裁掉单价 */
  .modal .card-body { overflow-x: auto; }
  .modal .card-body > .table { min-width: 400px; }
}

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(22, 32, 46, .45);
  backdrop-filter: blur(3px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .16s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: 14px;
  width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-3); animation: rise .2s cubic-bezier(.2, .9, .3, 1);
}
.modal.wide { max-width: 960px; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.modal-head { padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: var(--surface-2); border-radius: 14px 14px 0 0; }
.modal-title { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.modal-close { margin-left: auto; background: none; border: none; color: var(--ink-3); cursor: pointer; padding: 5px; border-radius: 5px; }
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 14px 14px; }

/* Toast */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--indigo);
  padding: 12px 18px; border-radius: var(--r-s); font-size: 14.5px;
  box-shadow: var(--shadow-2); animation: slidein .2s; min-width: 240px; color: var(--ink);
}
.toast.err { border-left-color: var(--vermilion); }
.toast.ok { border-left-color: var(--green); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

/* 搜索建议 */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-2); max-height: 440px; overflow-y: auto;
}
.suggest-sec { padding: 8px 0; }
.suggest-sec + .suggest-sec { border-top: 1px solid var(--line); }
.suggest-label { font-size: 12px; color: var(--ink-4); padding: 5px 15px; font-weight: 600; }
.suggest-item { padding: 8px 15px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.suggest-item:hover { background: var(--surface-2); color: var(--ink); }
.suggest-item .st { margin-left: auto; font-size: 12.5px; color: var(--ink-4); }

/* 认证树 */
.tree { font-size: 14px; }
.tree-node { border-bottom: 1px solid var(--line); }
.tree-row { padding: 12px 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink-2); }
.tree-row:hover { background: var(--surface-2); }
.tree-row.level1 { font-weight: 600; background: var(--surface-2); color: var(--ink); }
.tree-row.level2 { padding-left: 36px; }
.tree-row.level3 { padding-left: 58px; color: var(--ink-3); font-size: 13.5px; }
.tree-row .cnt { margin-left: auto; font-size: 12.5px; color: var(--ink-4); font-family: var(--mono); }
.tree-caret { width: 13px; height: 13px; flex-shrink: 0; display: inline-flex; align-items: center; color: var(--ink-4); }
.tree-caret svg { width: 13px; height: 13px; }
.tree-caret.open { transform: rotate(90deg); }
.tree-children.hidden { display: none; }

/* 筛选侧栏 */
.filter-panel { width: 238px; flex-shrink: 0; }
.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; font-weight: 600; }
.filter-item {
  padding: 6px 10px; border-radius: var(--r-s); cursor: pointer; font-size: 14px;
  color: var(--ink-2); display: flex; align-items: center; gap: 8px;
  transition: background .12s, color .12s;
}
.filter-item:hover { background: var(--surface-3); color: var(--ink); }
.filter-item.active { color: var(--vermilion); background: var(--vermilion-soft); font-weight: 600; }
.filter-item .n { margin-left: auto; font-size: 12.5px; color: var(--ink-4); font-family: var(--mono); }
.filter-item.active .n { color: var(--vermilion); }

.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-s);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
  transition: all .13s;
}
.pager button:hover:not(:disabled) { border-color: var(--indigo-2); color: var(--indigo); }
.pager button.active { background: var(--indigo); color: #fff; border-color: var(--indigo); font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }
.empty svg { width: 52px; height: 52px; opacity: .35; margin: 0 auto 14px; color: var(--ink-4); }

.mono { font-family: var(--mono); }
.text-2 { color: var(--ink-2); } .text-3 { color: var(--ink-3); } .text-4 { color: var(--ink-4); }
.text-accent { color: var(--indigo); } .text-green { color: var(--green); }
.text-red { color: var(--vermilion); } .text-gold { color: var(--amber); }
.f12 { font-size: 12.5px; } .f13 { font-size: 13.5px; }
.fw6 { font-weight: 600; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.scroll-y { overflow-y: auto; }

.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; font-size: 13.5px; }
.bar-name {
  width: 152px; flex-shrink: 0; color: var(--ink-2); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-track { flex: 1; min-width: 60px; height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--wafer-1), var(--wafer-2)); border-radius: 4px; }
.bar-val {
  width: 82px; text-align: right; font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-3); flex-shrink: 0; white-space: nowrap;
}

/* 分类矩阵：首列固定且不换行，表头品牌名竖排 */
.matrix-table { border-collapse: separate; border-spacing: 0; }
.matrix-table th, .matrix-table td { white-space: nowrap; }
.matrix-table .mx-row-head {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  font-weight: 600; color: var(--indigo); cursor: pointer;
  border-right: 1px solid var(--line); text-align: left; padding-right: 18px;
}
.matrix-table th.mx-row-head { background: var(--surface-2); z-index: 3; }
/* 中文竖排：字面朝右、列从上往下 —— vertical-rl + upright */
.matrix-table th.mx-col {
  text-align: center; vertical-align: bottom; height: 92px; padding: 0 5px;
  writing-mode: vertical-rl; text-orientation: upright;
}
.matrix-table th.mx-col span {
  letter-spacing: 1px; font-weight: 600; font-size: 12.5px;
  display: inline-block; max-height: 84px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.matrix-table td.mx-cell { text-align: center; font-family: var(--mono); font-weight: 600; }
.matrix-table td.mx-empty { text-align: center; color: var(--line-3); }

/* 主大类磁贴 —— 干涉色作为签名 */
.eqcat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 15px; cursor: pointer; transition: all .16s;
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.eqcat-tile::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--eq-hue, var(--wafer-2)); opacity: .85;
}
.eqcat-tile:hover { border-color: var(--indigo-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ect-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.ect-fn { color: var(--ink-3); line-height: 1.5; min-height: 38px; margin-bottom: 9px; font-size: 13px; }
.ect-stat { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* 每个主大类一个暖色阶 —— 与商品图色带同族，形成可识别的分类色 */
.eq-litho   { --eq-hue: #B8791C; }
.eq-etch    { --eq-hue: #A85A16; }
.eq-implant { --eq-hue: #96502A; }
.eq-coatdev { --eq-hue: #8C6A22; }
.eq-depo    { --eq-hue: #7C6A28; }
.eq-cmp     { --eq-hue: #6E7540; }
.eq-clean   { --eq-hue: #4F7A5C; }
.eq-thermal { --eq-hue: #C06420; }
.eq-metro   { --eq-hue: #8A5A3B; }
.eq-assy    { --eq-hue: #A04C42; }
.eq-test    { --eq-hue: #9A5548; }
.eq-other   { --eq-hue: #8A7A66; }

.eq-tag-litho   { background: #FBF1DC; color: #8A5A08; border-color: #EAD6A8; }
.eq-tag-etch    { background: #FAEEDF; color: #8A4A0C; border-color: #E9D2B4; }
.eq-tag-implant { background: #F8EBE2; color: #7E4222; border-color: #E6CDBB; }
.eq-tag-coatdev { background: #F8F2DE; color: #6F5510; border-color: #E3D9AE; }
.eq-tag-depo    { background: #F5F1E0; color: #5F5420; border-color: #DDD6AF; }
.eq-tag-cmp     { background: #F0F2E4; color: #4C5A2C; border-color: #D5DDBB; }
.eq-tag-clean   { background: #EAF2EA; color: #356148; border-color: #C6DCCB; }
.eq-tag-thermal { background: #FCEEE3; color: #9A4A10; border-color: #EED1B8; }
.eq-tag-metro   { background: #F6ECE4; color: #6E4330; border-color: #E1CCBD; }
.eq-tag-assy    { background: #FAEAE7; color: #853C34; border-color: #EBCAC3; }
.eq-tag-test    { background: #F9EBE8; color: #7E4238; border-color: #E8CCC6; }
.eq-tag-other   { background: #F3EFE8; color: #5C5244; border-color: #DCD3C4; }

/* 未登录头像：不显示深色圆点 */
.avatar-guest {
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink-4);
}

/* 求购需求价格 */
.rfq-price {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--vermilion); white-space: nowrap;
}

/* 品牌墙 */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.brand-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 10px 12px; cursor: pointer; transition: all .14s;
}
.brand-chip:hover { border-color: var(--indigo-2); box-shadow: var(--shadow-1); }
.brand-chip.active { border-color: var(--indigo); background: var(--indigo-soft); }
.brand-chip .bn { font-size: 14px; font-weight: 600; color: var(--ink); }
.brand-chip .bc { font-size: 12px; color: var(--ink-4); }
.brand-chip .bm { font-size: 12px; color: var(--vermilion); font-family: var(--mono); }

.tier1 { border-left: 3px solid var(--amber); }
.tier2 { border-left: 3px solid var(--indigo-2); }
.tier3 { border-left: 3px solid var(--line-2); }

/* 侧栏底部：还原为安静的浅底说明，不再用高饱和收尾 */
.sidebar-foot {
  padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
}
.sf-tag { margin-top: 4px; color: var(--ink); font-weight: 700; }

/* 响应式 */
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .sidebar { width: 68px; }
  .brand-name, .brand-sub, .nav-title, .nav-item span { display: none; }
  .nav-item { justify-content: center; }
  .filter-panel { width: 200px; }
}

/* 窄屏：筛选栏与商品区改为上下堆叠 */
@media (max-width: 900px) {
  .sidebar-foot { display: none; }
}

@media (max-width: 760px) {
  :root { --pad: 14px; }
  .content > .flex.gap16 { flex-direction: column; }
  .filter-panel { width: 100%; }
  .filter-panel .card { margin-bottom: 12px; }
  .filter-panel .card-body { padding: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 92px 1fr; }
  .page-title { font-size: 20px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .btn span { display: none; }
  .card-body { padding: 14px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 9px 11px; }
  .card-head { padding: 13px 15px; font-size: 15px; }
  .card-body > .scroll-y { max-height: none !important; }
}

/* ==========================================================================
   首页 —— 闲鱼式「逛」骨架 + 半导体设备台账语言
   全部 .hm- 前缀，避免与 .card / .grid / .section 互相抵消
   ========================================================================== */
.hm { display: flex; flex-direction: column; gap: 26px; padding-bottom: 8px; }

/* ============ 全站通栏尼康黄品牌带 ============
   brand 与 topbar 严格同高、同色、无竖线、无底边框，连成一整块纯黄；
   搜索框与按钮不再用白底圆角，改为黄底描边，黄色不被白色洞口切断；
   13 个页面全部一致，不再只作用首页。 */
.sidebar { border-right: 0; }
.nav, .sidebar-foot { border-right: 1px solid var(--line); }
.brand {
  background: var(--nikon); border-bottom: 0;
  height: var(--topbar-h); min-height: var(--topbar-h); box-sizing: border-box;
  padding: 0 20px; display: flex; align-items: center; flex-shrink: 0;
}
.brand-name { color: var(--nikon-ink); font-size: 19px; }
.brand-sub { color: #4A3F12; font-size: 12.5px; }
.brand-mark { width: 40px; height: 40px; box-shadow: 0 2px 8px rgba(90, 70, 0, .18); }

.topbar {
  height: var(--topbar-h); min-height: var(--topbar-h); box-sizing: border-box;
  background: var(--nikon); border-bottom: 0; backdrop-filter: none;
  box-shadow: 0 3px 0 rgba(120, 95, 0, .12);
  gap: 18px; padding: 0 26px;
}
.search-box input {
  background: rgba(255, 255, 255, .20); border: 1.5px solid rgba(36, 30, 5, .30);
  border-radius: 10px; padding: 12px 40px; font-size: 14.5px;
  color: var(--nikon-ink);
}
.search-box input::placeholder { color: #6B5818; }
.search-box input:focus {
  border-color: var(--nikon-ink); background: rgba(255, 255, 255, .42);
  box-shadow: 0 0 0 3px rgba(36, 30, 5, .10);
}
.search-box .s-ico, .search-box .s-clear { color: #5A4A12; }
.top-right .btn {
  background: rgba(255, 255, 255, .20); border-color: rgba(36, 30, 5, .28);
  color: var(--nikon-ink);
}
.top-right .btn:hover {
  background: rgba(255, 255, 255, .48); border-color: rgba(36, 30, 5, .45);
  color: var(--nikon-ink);
}
.top-right .btn-ghost { background: transparent; border-color: transparent; }
.top-right .btn-primary { background: var(--nikon-ink); border-color: var(--nikon-ink); color: var(--nikon); }
.top-right .btn-primary:hover { background: #3A3008; border-color: #3A3008; color: var(--nikon); }
.avatar { background: var(--nikon-ink); color: var(--nikon); box-shadow: none; }
.avatar-guest { background: rgba(36, 30, 5, .16); color: var(--nikon-ink); }

@media (max-width: 900px) {
  .brand { padding: 0; justify-content: center; }
  .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .search-box input { padding: 10px 36px; font-size: 13.5px; }
}

/* ============ 首屏顶部：后台可配的广告轮动 ============
   与右侧「按设备找件」反查台并排；内容全部来自 /home-ads，后台随时改。 */
.hm-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.hm-ads { position: relative; min-width: 0; overflow: hidden; background: var(--tone-blue-soft); }
.hm-ad-track { display: grid; min-height: 100%; }
.hm-ad-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 24px;
  padding: 36px 62px 40px 36px; min-height: 238px;
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .38s ease, transform .38s ease, visibility .38s;
}
.hm-ad-slide.active { opacity: 1; visibility: visible; transform: none; }
.hm-ad-slide.blue   { background: linear-gradient(105deg, #2A5C8A 0%, #3D77AC 54%, #EAF2FA 100%); }
.hm-ad-slide.teal   { background: linear-gradient(105deg, #1B6B60 0%, #2E8E7E 54%, #E6F4F1 100%); }
.hm-ad-slide.violet { background: linear-gradient(105deg, #6A4B99 0%, #8A6BBC 54%, #F1EBFA 100%); }
.hm-ad-slide.rose   { background: linear-gradient(105deg, #A8452F 0%, #C66A4E 54%, #FBEEE9 100%); }
.hm-ad-slide.amber  { background: linear-gradient(105deg, #9A5B08 0%, #C2811F 54%, #FFF3DC 100%); }
/* 上传了背景图才铺图并压暗，保证白字始终可读 */
.hm-ad-slide::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--ad-img); background-size: cover; background-position: center;
}
.hm-ad-slide::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(100deg, rgba(24, 22, 12, .62) 0%, rgba(24, 22, 12, .28) 60%, rgba(24, 22, 12, .04) 100%);
}
.hm-ad-slide[style]::after { opacity: 1; }

.hm-ad-txt { min-width: 0; flex: 1; position: relative; z-index: 1; }
.hm-ad-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
  padding: 3px 11px; border-radius: 20px; margin-bottom: 13px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .58); color: #fff;
}
.hm-ad-title {
  font-size: 31px; font-weight: 780; color: #fff; letter-spacing: -.6px; line-height: 1.28;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}
.hm-ad-desc { font-size: 14px; color: rgba(255, 255, 255, .94); margin-top: 10px; line-height: 1.65; max-width: 46ch; }
.hm-ad-cta {
  position: relative; z-index: 1; flex-shrink: 0;
  border: 0; border-radius: var(--r-s); cursor: pointer;
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  background: var(--nikon); color: var(--nikon-ink);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
}
.hm-ad-cta:hover { filter: brightness(1.07); }
.hm-ad-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(36, 30, 5, .32);
  color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .16s;
}
.hm-ads:hover .hm-ad-arrow, .hm-ad-arrow:focus-visible { opacity: 1; }
.hm-ad-arrow.prev { left: 12px; }
.hm-ad-arrow.next { right: 12px; }
.hm-ad-arrow:hover { background: rgba(36, 30, 5, .62); }
.hm-ad-dots { position: absolute; right: 20px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.hm-ad-dot {
  width: 7px; height: 7px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .55); transition: width .18s, background .18s;
}
.hm-ad-dot.active { width: 20px; border-radius: 4px; background: #fff; }
.hm-ad-cta:focus-visible, .hm-ad-dot:focus-visible { outline: 3px solid var(--nikon-ink); outline-offset: 2px; }

/* ============ 四大分类模块：放大、填充涂色、整块可点 ============ */
.hm-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-mod {
  display: flex; align-items: center; gap: 14px; min-height: 118px;
  padding: 20px 22px; border: 0; border-radius: var(--r); cursor: pointer;
  text-align: left; color: #fff;
  transition: transform .16s ease, filter .16s ease;
  box-shadow: 0 2px 10px rgba(34, 37, 43, .10);
}
.hm-mod:hover { transform: translateY(-3px); filter: brightness(1.06); }
.hm-mod:focus-visible { outline: 3px solid var(--nikon-ink); outline-offset: 3px; }
.hm-mod.blue   { background: linear-gradient(135deg, #2A5C8A, #4A82B8); }
.hm-mod.teal   { background: linear-gradient(135deg, #1B6B60, #35998A); }
.hm-mod.violet { background: linear-gradient(135deg, #6A4B99, #8C6FBE); }
.hm-mod.rose   { background: linear-gradient(135deg, #A8452F, #CE7053); }
.hm-mod-ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
}
.hm-mod-ico svg { width: 26px; height: 26px; color: #fff; }
.hm-mod-txt { min-width: 0; flex: 1; }
.hm-mod-txt b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.2px; }
.hm-mod-txt small { display: block; font-size: 12px; color: rgba(255, 255, 255, .88); margin-top: 5px; line-height: 1.5; }
.hm-mod-arrow { opacity: .82; flex-shrink: 0; }
.hm-mod-arrow svg { width: 18px; height: 18px; color: #fff; }

@media (max-width: 1040px) {
  .hm-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hm-ad-slide { padding: 24px 46px 32px 22px; min-height: 196px; gap: 14px; }
  .hm-ad-title { font-size: 23px; }
  .hm-ad-desc { font-size: 12.5px; }
  .hm-ad-arrow { display: none; }
  .hm-ad-dots { right: 12px; bottom: 10px; }
}
@media (max-width: 430px) {
  .hm-mods { grid-template-columns: 1fr; gap: 10px; }
  .hm-mod { min-height: 92px; padding: 16px 18px; }
  .hm-ad-slide { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 18px 36px; }
  .hm-ad-title { font-size: 21px; }
  .hm-ad-cta { align-self: flex-start; }
}

.hm-hero-side { background: var(--surface); border-left: 1px solid var(--line); padding: 22px 20px; }
.hm-lookup-h { font-size: 16px; font-weight: 700; color: var(--tone-blue); }
.hm-lookup-sub { font-size: 11.5px; color: var(--ink-4); margin: 4px 0 15px; font-family: var(--mono); }
.hm-lookup select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); margin-bottom: 9px; font-size: 13.5px;
}
.hm-lookup-result { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 11px; min-height: 20px; line-height: 1.6; }
.hm-lookup-result b { color: var(--vermilion); font-family: var(--mono); font-size: 15px; }
#hm-goto:disabled { background: var(--surface-3); border-color: var(--line-2); color: var(--ink-4); opacity: 1; cursor: not-allowed; }

/* —— 主体：推荐流（常看 / 近似 / 投流）+ 右栏 —— */
.hm-body { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; align-items: start; }
.hm-feed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px;
}
.hm-feed-hd-l { min-width: 0; }
.hm-feed-head h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
.hm-feed-sub { font-size: 12.5px; color: var(--ink-4); line-height: 1.5; margin-top: 3px; }
.hm-refresh {
  flex-shrink: 0; border: 1px solid var(--amber-line); background: var(--amber-soft);
  color: var(--amber); font-size: 13px; font-weight: 650; padding: 7px 15px;
  border-radius: var(--r-s); cursor: pointer; transition: background .14s;
}
.hm-refresh:hover { background: var(--indigo-soft); }
.hm-refresh:disabled { opacity: .6; cursor: default; }
.hm-feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* 顶部主推位：后台 slot=top，明确标「推广」 */
.hm-top {
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid var(--amber-line); border-radius: var(--r);
  background: var(--surface-2); overflow: hidden; cursor: pointer; margin-bottom: 12px;
  transition: border-color .14s;
}
.hm-top:hover { border-color: var(--amber); }
.hm-top-art { background: var(--surface-3); border-right: 1px solid var(--amber-line); min-height: 158px; }
.hm-top-art > svg { width: 100%; height: 100%; display: block; }
.hm-top-bd { padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.hm-top-flag { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }
.hm-top-badge { border: 1px solid var(--vermilion-line); color: var(--vermilion); background: var(--vermilion-soft); padding: 1px 7px; border-radius: 3px; font-size: 11px; }
.hm-top-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-top-reason { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.hm-top-meta { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.hm-top-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 14px; }
.hm-top-foot b { font-family: var(--mono); font-size: 20px; color: var(--vermilion); }
.hm-top-foot > span { font-size: 11.5px; color: var(--ink-4); }
.hm-top-foot .hm-top-cta { margin-left: auto; color: var(--indigo); font-size: 12.5px; font-weight: 650; }

/* 推荐流卡：件号 / 适配 / 成色 / 来源 / 推荐理由 / 价格 / 商家 */
.hm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color .14s, transform .14s;
}
.hm-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.hm-card-art { height: 148px; position: relative; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hm-card-art > svg { width: 100%; height: 100%; display: block; }
.hm-card-code {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  background: rgba(255, 255, 255, .95); border: 1px solid var(--amber-line);
  padding: 2px 7px; border-radius: 3px; max-width: 68%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-card-cond { position: absolute; right: 8px; top: 8px; z-index: 2; }
.hm-card-bd { padding: 11px 13px 12px; display: flex; flex-direction: column; flex: 1; }
.hm-card-title {
  font-size: 14px; font-weight: 650; line-height: 1.45; color: var(--ink); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px;
}
.hm-card-fit { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.hm-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px dashed var(--line); }
.hm-card-price { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--vermilion); letter-spacing: -.5px; }
.hm-card-seller { font-size: 11.5px; color: var(--ink-4); text-align: right; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 来源徽标：颜色区分常看 / 近似 / 精选 / 推广，推广用朱砂且带「推广」文字 */
.hm-src { display: inline-block; font-size: 11px; font-weight: 650; line-height: 1.6; padding: 1px 7px; border-radius: 3px; border: 1px solid transparent; white-space: nowrap; }
.hm-src-recent { background: var(--indigo-soft); color: var(--indigo); border-color: var(--indigo-line); }
.hm-src-similar { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.hm-src-discovery { background: var(--surface-3); color: var(--ink-3); border-color: var(--line-2); }
.hm-src-promo { background: var(--vermilion-soft); color: var(--vermilion); border-color: var(--vermilion-line); }
.hm-card-src { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; min-width: 0; }
.hm-card-camp { font-size: 11px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-card-reason {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin: 0 0 9px;
  padding-left: 8px; border-left: 2px solid var(--line-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-card-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: var(--vermilion); color: #FFFFFF; font-size: 11px; font-weight: 650;
  padding: 2px 8px; border-radius: 3px;
}
.hm-card.is-promo { border-color: var(--vermilion-line); }
.hm-card.is-promo:hover { border-color: var(--vermilion); }

/* 右栏侧位推广 */
.hm-side-promo {
  border: 1px solid var(--vermilion-line); border-radius: var(--r-s);
  background: var(--vermilion-soft); padding: 11px 12px; margin: 8px 0 2px; cursor: pointer;
}
.hm-side-promo:hover { border-color: var(--vermilion); }
.hm-sp-flag { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-3); }
.hm-sp-title { font-size: 13px; font-weight: 650; color: var(--ink); margin-top: 7px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-sp-meta { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; }
.hm-sp-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.hm-sp-foot b { font-family: var(--mono); font-size: 17px; color: var(--vermilion); }
.hm-sp-foot span { font-size: 11.5px; color: var(--indigo); font-weight: 650; }

/* 页面底部：白底细边的去市场入口，收尾安静，不抢推荐流的注意力 */
.hm-more {
  display: block; width: 100%; margin: 0;
  background: var(--surface); color: var(--indigo);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 15px 20px; font-size: 14px; font-weight: 650; cursor: pointer;
  letter-spacing: .1px; text-align: center; transition: background .14s, border-color .14s;
}
.hm-more:hover { background: var(--indigo-soft); border-color: var(--indigo-line); }

/* 右栏 */
.hm-side { display: flex; flex-direction: column; gap: 14px; }
.hm-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.hm-box-h { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 7px; background: var(--surface-2); }
.hm-box-h > svg { width: 16px; height: 16px; color: currentColor; }
.hm-side .hm-box:nth-child(1) .hm-box-h { background: var(--tone-amber-soft); color: var(--tone-amber); }
.hm-side .hm-box:nth-child(2) .hm-box-h { background: var(--tone-blue-soft); color: var(--tone-blue); }
.hm-side .hm-box:nth-child(3) .hm-box-h { background: var(--tone-teal-soft); color: var(--tone-teal); }
.hm-side .hm-box:nth-child(4) .hm-box-h { background: var(--tone-violet-soft); color: var(--tone-violet); }
.hm-side .hm-box:nth-child(5) .hm-box-h { background: var(--tone-rose-soft); color: var(--tone-rose); }
.hm-box-b { padding: 6px 14px 12px; }
.hm-rfq { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.hm-rfq:last-child { border-bottom: 0; }
.hm-rfq-img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: var(--surface-3); }
.hm-rfq-bd { min-width: 0; flex: 1; }
.tbl-thumb { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); display: block; background: var(--surface-3); }
.hm-rfq-t { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-rfq-m { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; display: flex; justify-content: space-between; gap: 8px; }
.hm-rfq-m b { font-family: var(--mono); color: var(--vermilion); font-weight: 700; }
.hm-bar { margin: 10px 0; }
.hm-bar-t { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.hm-bar-t span:last-child { font-family: var(--mono); color: var(--ink-3); }
.hm-bar-track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.hm-bar-fill { height: 100%; background: var(--wafer-1); border-radius: 3px; }
.hm-brand { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.hm-brand:last-child { border-bottom: 0; }
.hm-brand:hover { color: var(--indigo); }
.hm-brand span:last-child { font-family: var(--mono); font-size: 12px; color: var(--vermilion); }
.hm-side-note { font-size: 11.5px; color: var(--ink-4); line-height: 1.6; margin-top: 10px; }

@media (max-width: 1300px) {
  .hm-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .hm-hero { grid-template-columns: 1fr; }
  .hm-hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .hm-body { grid-template-columns: 1fr; }
  .hm-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-top { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hm { gap: 20px; }
  .hm-top { grid-template-columns: 1fr; }
  .hm-top-art { min-height: 132px; border-right: 0; border-bottom: 1px solid var(--amber-line); }
  .hm-top-bd { padding: 12px 14px; }
}
@media (max-width: 430px) {
  .hm-feed-grid { grid-template-columns: 1fr; }
  .hm-side { grid-template-columns: 1fr; }
  .hm-feed-head { flex-wrap: wrap; }
  .hm-refresh { margin-left: auto; }
  .hm-top-art { min-height: 120px; }
}

/* —— 发布配件：实拍图上传区 —— */
.up-zone {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--surface-2); padding: 14px;
  transition: border-color .15s, background .15s;
}
.up-zone.drag { border-color: var(--amber); background: var(--amber-soft); }
.up-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.up-hint svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }
.up-hint b { color: var(--indigo); font-weight: 650; }
.up-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.up-grid:empty { display: none; }
.up-thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--surface-3); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 248, .88); font-size: 11.5px; color: var(--ink-2); }
.up-del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #FFFDF8; font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; }
.up-del:hover { background: var(--vermilion); }
.up-num { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* 详情实拍图缩略图 */
.lg-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lg-thumb { flex: 1 1 0; min-width: 58px; aspect-ratio: 4/3; padding: 0; border: 2px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--surface-3); cursor: pointer; }
.lg-thumb.active { border-color: var(--amber); }
.lg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 520px) {
  .up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 登录态窄屏：顶栏四个按钮会撑出横向滚动，收成图标但保留全部入口 */
@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .search-box { min-width: 0; }
  .top-right { gap: 6px; flex-shrink: 1; min-width: 0; }
  .top-right #btn-rfq, .top-right #btn-sell, .top-right #btn-out { padding: 5px 7px; font-size: 0; gap: 0; }
  .top-right #btn-rfq svg, .top-right #btn-sell svg, .top-right #btn-out svg { width: 16px; height: 16px; }
}

/* ============ 交易保障 / 防跳单 ============ */
.trust-strip {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--green-soft); border: 1px solid var(--green-line);
  color: var(--ink-2); border-radius: var(--r-s);
  padding: 10px 12px; font-size: 12.5px; line-height: 1.6; margin-bottom: 12px;
}
.trust-strip > svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
/* 状态条内容收进单个文本容器，窄屏下才不会被 flex 拆成多条竖排 */
.trust-strip > span { min-width: 0; flex: 1 1 auto; }
.trust-strip b { color: var(--ink); }
.order-strip { margin: 0 0 14px; }
.order-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.order-tools .btn { background: var(--surface); }
.text-red { color: var(--vermilion); }

.guard-hint {
  font-size: 12px; line-height: 1.55; color: var(--ink-3);
  padding: 7px 10px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--line);
  margin: -4px 0 12px;
}
.guard-hint.warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.guard-hint.bad { background: var(--vermilion-soft); border-color: var(--vermilion-line); color: var(--vermilion); }

.agree-box { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface-2); padding: 12px 14px; margin: 4px 0 16px; }
.agree-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink); cursor: pointer; }
.agree-check input { width: 16px; height: 16px; accent-color: var(--indigo); }
.agree-clauses { margin: 10px 0 0 18px; padding-left: 4px; font-size: 12px; line-height: 1.75; color: var(--ink-2); max-height: 190px; overflow-y: auto; }
.agree-clauses li { margin-bottom: 5px; padding-left: 2px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cert-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 8px 9px; cursor: pointer; }
.cert-item input { accent-color: var(--indigo); }

/* 平台保障页 */
.trust-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 28px; margin-bottom: 20px;
}
.th-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; color: var(--amber); }
.th-h { font-size: 27px; line-height: 1.3; font-weight: 750; letter-spacing: -.5px; margin: 10px 0 8px; color: var(--ink); }
.th-p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; max-width: 54ch; }
.th-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-left: 1px solid var(--line); padding-left: 24px; }
.th-stats > div { display: flex; flex-direction: column; gap: 3px; }
.th-stats b { font-family: var(--mono); font-size: 22px; color: var(--indigo); }
.th-stats span { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.trust-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tf-step { display: flex; gap: 9px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 10px; }
.tf-n { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-family: var(--mono); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tf-step b { display: block; font-size: 13px; color: var(--ink); }
.tf-step span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin-top: 3px; }
.trust-meta { margin-top: 12px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.trust-list { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 12px; }
.trust-list > b { display: block; font-size: 13px; margin-bottom: 8px; }
.trust-list > div { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.trust-list svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
.trust-list.ok { background: var(--green-soft); border-color: var(--green-line); }
.trust-list.ok svg, .trust-list.ok > b { color: var(--green); }
.trust-list.no { background: var(--vermilion-soft); border-color: var(--vermilion-line); }
.trust-list.no svg, .trust-list.no > b { color: var(--vermilion); }

/* 订单：站内信与隐私号 */
.msg-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.msg-row { max-width: 78%; }
.msg-row.mine { align-self: flex-end; text-align: right; }
.msg-meta { font-size: 11px; color: var(--ink-4); margin-bottom: 3px; }
.msg-bubble { display: inline-block; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 11px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); word-break: break-word; }
.msg-row.mine .msg-bubble { background: var(--indigo-soft); border-color: var(--indigo-line); color: var(--ink); }
.msg-compose { border-top: 1px solid var(--line); padding-top: 12px; }
.msg-compose textarea { min-height: 62px; }
.msg-compose .btn { margin-top: 8px; }
.vno-num { font-family: var(--mono); font-size: 30px; letter-spacing: 2px; color: var(--indigo); margin-bottom: 10px; }

@media (max-width: 900px) {
  .trust-hero { grid-template-columns: 1fr; }
  .th-stats { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .trust-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trust-flow { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-hero { padding: 20px 16px; }
  .th-h { font-size: 22px; }
  .order-tools .f12 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   信息架构重构：撤掉左侧栏，通栏黄带同时承载品牌、主导航、搜索与个人入口
   个人事务收进「我的」下拉，运营 / 参数 / 台账类数据只留在独立后台。
   黄带仍然是一整块纯黄：导航用深墨文字与下划线，不新增任何白色洞口。
   ========================================================================== */
.app { display: block; }
.main { display: block; }
.content { max-width: 1440px; margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center;
  height: var(--topbar-h); min-height: var(--topbar-h); box-sizing: border-box;
  background: var(--nikon); border-bottom: 0; backdrop-filter: none;
  box-shadow: 0 3px 0 rgba(120, 95, 0, .12);
  gap: 14px; padding: 0 26px;
}
.brand {
  height: var(--topbar-h); min-height: var(--topbar-h); box-sizing: border-box;
  background: var(--nikon); border-bottom: 0;
  padding: 0 4px 0 0; display: flex; align-items: center; flex-shrink: 0;
}
.brand-name { color: var(--nikon-ink); font-size: 19px; }
.brand-sub { color: #4A3F12; font-size: 12.5px; }

.tb-nav { display: flex; align-items: center; gap: 0; height: 100%; flex-shrink: 0; }
.tb-nav-item {
  height: 100%; box-sizing: border-box;
  border: 0; border-bottom: 3px solid transparent; background: transparent;
  color: var(--nikon-ink); font-size: 15px; font-weight: 600; letter-spacing: .2px;
  padding: 0 13px; white-space: nowrap; cursor: pointer; opacity: .8;
  transition: opacity .14s, background .14s;
}
.tb-nav-item:hover { opacity: 1; background: rgba(36, 30, 5, .06); }
.tb-nav-item.active { opacity: 1; border-bottom-color: var(--nikon-ink); background: rgba(36, 30, 5, .05); }
.tb-nav-item:focus-visible, .tb-menu-btn:focus-visible, .mine-btn:focus-visible { outline: 2px solid var(--nikon-ink); outline-offset: -4px; }

.search-box { flex: 1; min-width: 170px; max-width: 560px; }
.search-box input {
  background: rgba(255, 255, 255, .20); border: 1.5px solid rgba(36, 30, 5, .30);
  border-radius: 10px; padding: 12px 40px; font-size: 14.5px; color: var(--nikon-ink);
}
.search-box input::placeholder { color: #6B5818; }
.search-box input:focus {
  border-color: var(--nikon-ink); background: rgba(255, 255, 255, .42);
  box-shadow: 0 0 0 3px rgba(36, 30, 5, .10);
}
.search-box .s-ico, .search-box .s-clear { color: #5A4A12; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-right .btn {
  background: rgba(255, 255, 255, .20); border-color: rgba(36, 30, 5, .28); color: var(--nikon-ink);
}
.top-right .btn:hover { background: rgba(255, 255, 255, .48); border-color: rgba(36, 30, 5, .45); color: var(--nikon-ink); }
.top-right .btn-primary { background: var(--nikon-ink); border-color: var(--nikon-ink); color: var(--nikon); }
.top-right .btn-primary:hover { background: #3A3008; border-color: #3A3008; color: var(--nikon); }

.menu-wrap, .mine-wrap { position: relative; }
.tb-menu-btn, .mine-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid rgba(36, 30, 5, .28); background: rgba(255, 255, 255, .20);
  color: var(--nikon-ink); border-radius: 10px; font-size: 14px; padding: 9px 11px;
  white-space: nowrap;
}
.tb-menu-btn:hover, .mine-btn:hover { background: rgba(255, 255, 255, .48); }
.tb-menu-btn svg, .mine-btn svg { width: 14px; height: 14px; }
.tb-menu-btn { display: none; }
.mine-btn { padding: 5px 9px 5px 5px; }
.mine-btn .avatar { width: 30px; height: 30px; font-size: 13px; background: var(--nikon-ink); color: var(--nikon); }
.mine-name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tb-drop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  min-width: 224px; max-height: 76vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(30, 25, 5, .20); padding: 7px;
}
.tb-drop[hidden] { display: none !important; }
.mine-group { padding: 5px 3px; border-bottom: 1px solid var(--line); }
.mine-group:last-child { border-bottom: 0; }
.mine-title { font-size: 11.5px; color: var(--ink-4); font-weight: 600; padding: 7px 10px 5px; }
.mine-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; box-sizing: border-box; text-align: left; text-decoration: none;
  border: 0; background: none; border-radius: 8px; padding: 9px 10px;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.mine-item:hover { background: var(--surface-2); color: var(--indigo); }
.mine-item svg { width: 14px; height: 14px; opacity: .45; flex-shrink: 0; }
.mine-item:focus-visible { outline: 2px solid var(--indigo); outline-offset: -2px; }

/* ---------- 首页常用入口：一条文字链，不做图标九宫格 ---------- */
.hm-quick {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 20px;
}
.hm-quick-l { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hm-quick-l b { font-size: 14.5px; color: var(--ink); }
.hm-quick-l span { font-size: 12.5px; color: var(--ink-3); }
.hm-quick-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hm-quick-links button {
  position: relative; border: 0; background: none; color: var(--ink-2);
  font-size: 13.5px; cursor: pointer; padding: 6px 11px; border-radius: 7px; white-space: nowrap;
}
.hm-quick-links button + button::before {
  content: ''; position: absolute; left: -2px; top: 9px; width: 1px; height: 13px; background: var(--line-2);
}
.hm-quick-links button:hover { background: var(--surface-2); color: var(--indigo); }
.hm-quick-links button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; }
.hm-quick-links [data-quick-login] { color: var(--vermilion); font-weight: 600; }
.hm-rfq { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.hm-rfq:hover .hm-rfq-t { color: var(--indigo); }
.hm-rfq:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- 求购大厅：卡片化，一眼看到价、数量与报价数 ---------- */
.rfq-sec { margin-bottom: 26px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.sec-head span { font-size: 12.5px; color: var(--ink-3); }
.sec-more { margin-left: auto; border: 0; background: none; color: var(--indigo); font-size: 13px; cursor: pointer; padding: 4px 6px; }
.sec-more:hover { text-decoration: underline; }
.sec-more:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.rfq-sec.focus .sec-head h2 { color: var(--indigo); }
.rfq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rfq-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  padding: 13px; cursor: pointer; font: inherit; color: inherit; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rfq-card:hover { border-color: var(--indigo-line); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.rfq-card:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.rfq-card-img {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--ink-4);
}
.rfq-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rfq-card-bd { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.rfq-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rfq-card-top b { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfq-card-meta { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfq-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.rfq-card-price { font-family: var(--mono); font-weight: 700; color: var(--vermilion); font-size: 14px; }
.rfq-card-q { font-size: 11.5px; color: var(--ink-3); background: var(--surface-3); padding: 2px 7px; border-radius: 9px; margin-left: auto; }
.rfq-card-date { font-size: 11.5px; color: var(--ink-4); }
.rfq-card-go { display: none; }

/* ---------- 求购详情：规格表在左、状态与动作在右 ---------- */
.rfd-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.rfd-crumb button { border: 0; background: none; color: var(--indigo); cursor: pointer; padding: 0; font-size: 13px; }
.rfd-crumb button:hover { text-decoration: underline; }
.rfd { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.rfd-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rfd-side { display: flex; flex-direction: column; gap: 16px; }
.rfd-gallery { padding: 16px; }
.rfd-gallery-h { margin-bottom: 14px; }
.rfd-gallery-h .rfd-title { margin: 0; }
.rfd-big { width: 100%; height: 300px; object-fit: contain; background: var(--surface-2); border-radius: 8px; display: block; }
.rfd-nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-4); font-size: 13px; border: 1px dashed var(--line-2); box-sizing: border-box;
}
.rfd-nophoto svg { width: 34px; height: 34px; }
.rfd-title { font-size: 21px; font-weight: 700; color: var(--ink); margin: 0 0 10px; line-height: 1.4; }
.rfd-note { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }
.rfd-spec th { width: 140px; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.rfd-spec td { font-weight: 600; color: var(--ink); }
.rfd-panel { padding: 18px; }
.rfd-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rfd-status .mono { font-size: 12px; color: var(--ink-4); }
.rfd-buyer { font-size: 13px; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rfd-buyer b { color: var(--ink); font-weight: 600; }
.rfd-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; }
.rfd-kv span { color: var(--ink-3); }
.rfd-kv b { color: var(--ink); font-family: var(--mono); }
.rfd-cta { margin-top: 16px; }
.rfd-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.rfd-flow-step { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
.rfd-flow-step.now { background: var(--nikon); border-color: var(--nikon); color: var(--nikon-ink); font-weight: 600; }
.rfd-quotes { margin-top: 26px; }
.quote-list { display: flex; flex-direction: column; gap: 10px; }
.quote-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 176px; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
}
.qr-main { min-width: 0; }
.qr-co { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.qr-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.qr-note { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; line-height: 1.6; }
.qr-price { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--vermilion); text-align: right; }
.qr-price small { font-size: 11px; color: var(--ink-4); font-weight: 400; }
.qr-act { display: flex; flex-direction: column; gap: 7px; }
.qr-act .btn { justify-content: center; }

/* ---------- 站内会话：窄条消息，不抢主流程 ---------- */
.thread-log {
  max-height: 300px; overflow-y: auto; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 14px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.thread-empty { text-align: center; color: var(--ink-4); font-size: 12.5px; padding: 20px 0; }
.th-msg { max-width: 78%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; align-self: flex-start; }
.th-msg.me { align-self: flex-end; background: var(--indigo-soft); border-color: var(--indigo-line); }
.th-who { font-size: 11.5px; color: var(--ink-4); }
.th-bd { font-size: 13.5px; color: var(--ink); line-height: 1.65; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.th-time { font-size: 11px; color: var(--ink-4); margin-top: 5px; font-family: var(--mono); }

/* ---------- 响应式：主导航收进「菜单」下拉，黄带始终只有一行 ---------- */
@media (max-width: 1180px) {
  .tb-nav-item { padding: 0 9px; font-size: 14px; }
  .brand-sub { display: none; }
  .search-box { max-width: 380px; }
}
@media (max-width: 980px) {
  .tb-nav { display: none; }
  .tb-menu-btn { display: inline-flex; }
  .brand-txt { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .top-right #btn-rfq, .top-right #btn-sell { display: none; }
  .mine-name { display: none; }
  .mine-btn { padding: 5px; }
  .search-box { max-width: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 9px; padding: 0 13px; }
  .search-box input { padding: 10px 34px; font-size: 13.5px; }
  .rfq-grid { grid-template-columns: 1fr; }
  .rfd { grid-template-columns: 1fr; }
  .quote-row { grid-template-columns: 1fr; }
  .qr-price { text-align: left; }
  .qr-act { flex-direction: row; flex-wrap: wrap; }
  .hm-quick { flex-direction: column; align-items: flex-start; }
  .hm-quick-links button { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 430px) {
  .tb-menu-btn { font-size: 12.5px; gap: 3px; padding: 9px 7px; }
  .tb-menu-btn svg { width: 14px; height: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .rfq-card-img { width: 60px; height: 60px; }
  .rfd-title { font-size: 18px; }
}


/* ===== 智能联想：分组、命中高亮、层级路径与键盘选中 ===== */
.suggest { max-height: 520px; }
.sg-head { padding: 10px 15px; font-size: 12.5px; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sg-head b { color: var(--indigo); font-family: var(--mono); }
.sg-foot { padding: 9px 15px; font-size: 12px; color: var(--ink-4); background: var(--surface-2); border-top: 1px solid var(--line); }
.sg-scope { display: flex; align-items: center; gap: 8px; padding: 10px 15px; font-size: 13.5px;
  color: var(--indigo); background: var(--indigo-soft); cursor: pointer; border-bottom: 1px solid var(--indigo-line); }
.sg-scope:hover, .sg-scope.active { background: var(--surface-3); }
.sg-scope svg { width: 15px; height: 15px; flex-shrink: 0; }
.sg-scope span { margin-left: auto; font-size: 16px; }
.suggest-label { display: flex; justify-content: space-between; align-items: center; }
.suggest-label span { font-family: var(--mono); color: var(--ink-4); font-weight: 400; }
.suggest-item { align-items: flex-start; }
.suggest-item.active, .suggest-item:hover { background: var(--surface-3); color: var(--ink); }
.suggest-item.active { box-shadow: inset 3px 0 0 var(--indigo); }
.sg-ico { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-4); }
.sg-ico svg { width: 16px; height: 16px; }
.sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-main b { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-main small { font-size: 11.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sub { margin-left: auto; flex-shrink: 0; max-width: 38%; font-size: 12px; color: var(--ink-4);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item mark { background: #FFE9A8; color: var(--ink); border-radius: 2px; padding: 0 1px; }
.sg-empty { padding: 18px 15px; display: flex; flex-direction: column; gap: 8px; }
.sg-empty b { font-size: 14px; color: var(--ink); }
.sg-empty > span { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.sg-hot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sg-hot button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.sg-hot button:hover { border-color: var(--indigo-2); color: var(--indigo); }

/* ===== 品牌 A–Z 字母尺：等宽字母列成一条可扫的尺子 ===== */
.az-ruler { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 10px 12px;
  margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.az-key { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--indigo); font-family: var(--mono); font-size: 13px; font-weight: 700;
  border-radius: var(--r-s); cursor: pointer; }
.az-key:hover:not(:disabled) { border-color: var(--indigo-2); background: var(--indigo-soft); }
.az-key.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.az-key.off { color: var(--ink-4); border-color: var(--line); background: transparent; cursor: default; opacity: .55; }
.br-group { margin-bottom: 22px; scroll-margin-top: 12px; }
.br-letter { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--indigo);
  border-left: 3px solid var(--indigo); padding-left: 10px; margin-bottom: 10px; line-height: 1.2; }
.br-card .card-head { gap: 10px; }
.br-initial { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center;
  justify-content: center; border-radius: var(--r-s); background: var(--indigo-soft);
  color: var(--indigo); font-family: var(--mono); font-weight: 700; font-size: 14px; }
.br-name { display: flex; flex-direction: column; line-height: 1.3; }
.br-name b { font-size: 14.5px; }
.br-name small { font-size: 11.5px; color: var(--ink-4); }
.scope-note { padding: 9px 13px; margin-bottom: 12px; border-radius: var(--r-s);
  background: var(--indigo-soft); color: var(--indigo); font-size: 13px; border: 1px solid var(--indigo-line); }

/* ===== 国产平替：青绿语义色，安静地标注替代价值，不抢主 CTA ===== */
.alt-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px;
  background: #E6F2EF; color: #1B6B60; border: 1px solid #BFDCD5; font-size: 11.5px; font-weight: 600; }
.alt-badge b { font-family: var(--mono); font-weight: 700; }
.pcard-alt { margin: 5px 0 2px; }
.alt-card { margin: 0 0 16px; padding: 13px 14px; border: 1px solid #BFDCD5;
  border-radius: var(--r); background: #F4FAF8; }
.alt-card-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
  color: #1B6B60; margin-bottom: 10px; }
.alt-card-h svg { width: 16px; height: 16px; }
.alt-card-b { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 16px; margin-bottom: 9px; }
.alt-card-b > div { display: flex; flex-direction: column; gap: 2px; }
.alt-card-b span { font-size: 11.5px; color: var(--ink-3); }
.alt-card-b b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.alt-card-b .alt-save b { color: #1B6B60; font-family: var(--mono); font-size: 17px; }
.alt-field { padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.alt-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.alt-check input { width: 16px; height: 16px; accent-color: #1B6B60; }
.alt-preview { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-s);
  background: #E6F2EF; color: #1B6B60; font-size: 13px; }
.alt-preview b { font-family: var(--mono); font-size: 15px; }

@media (max-width: 760px) {
  .suggest { max-height: 60vh; }
  .sg-sub { display: none; }
  .az-ruler { gap: 3px; }
  .az-key { width: 26px; height: 26px; font-size: 12px; }
  .alt-card-b { grid-template-columns: 1fr; }
}

/* ===== 整机结构细分：冷钢蓝只用在「按整机拆」这一层，与暖黄光形成对照 ===== */
.filter-struct { margin: 4px 0 16px; padding: 12px 12px 2px 14px;
  border-left: 2px solid #2C4A7C; border-radius: 0 var(--r-s) var(--r-s) 0;
  background: #F4F7FC; }
.filter-struct-h { display: block; margin-bottom: 12px;
  font-size: 13.5px; font-weight: 700; color: #2C4A7C; white-space: nowrap; }
.filter-struct-h span { display: block; margin-top: 3px; white-space: normal;
  font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.filter-struct .filter-label { color: var(--ink-2); }
.filter-struct .select { width: 100%; background: var(--surface); }
.fg-note { margin: -4px 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }

/* 主大类详情：整机子系统分组，代号等宽，不铺大色块 */
.struct-card .card-head { color: #2C4A7C; }
.struct-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.struct-col { min-width: 0; padding: 10px; border: 1px solid var(--line);
  border-radius: var(--r-s); background: var(--surface); }
.struct-col-h { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: #2C4A7C; }
.struct-col-h span { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.struct-unit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 6px 7px; margin-bottom: 4px; text-align: left;
  border: 1px solid transparent; border-radius: var(--r-s); background: transparent;
  cursor: pointer; font: inherit; color: var(--ink); }
.struct-unit:hover { border-color: #C6D4EA; background: #EDF3FB; }
.struct-unit:focus-visible { outline: none; border-color: #C6D4EA;
  background: #EDF3FB; box-shadow: 0 0 0 2px #2C4A7C; }
.struct-unit b { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.struct-code { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; color: #5B7398; }
.struct-count { font-size: 11px; color: var(--ink-3); }

@media (max-width: 1100px) { .struct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .struct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-struct { padding-left: 12px; }
  .filter-struct .select { font-size: 14px; }
}

/* 组合过窄的空态：给可点的下一步，不留一句「没有符合条件的配件」就结束 */
.empty-relax { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.empty-relax .btn { width: auto; padding: 7px 14px; font-size: 12.5px; }

/* ==========================================================================
   国产平替：青绿是这条供应链的专属语义色，只在这里用。
   唯一的强调落在「省幅」上（尼康黄底），其余保持安静的白底与细线，
   不做成九宫格卡片、不用编号标签、不用大色块铺满。
   ========================================================================== */

/* —— 发布配件：把「这是国产平替吗」提到表单第一屏 —— */
.alt-publish { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--tone-teal-line);
  border-radius: var(--r); background: var(--surface-2); }
.alt-publish.is-on { border-color: #1B6B60; background: var(--tone-teal-soft); }
.alt-publish-h { display: flex; align-items: flex-start; gap: 10px; }
.alt-publish-ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 7px; background: #E6F4F1; color: #1B6B60; }
.alt-publish-ico svg { width: 16px; height: 16px; }
.alt-publish-h b { display: block; font-size: 14px; color: var(--ink); line-height: 1.5; }
.alt-publish-h span:not(.alt-publish-ico) { display: block; font-size: 12px; color: var(--ink-3);
  line-height: 1.55; margin-top: 2px; }
.alt-publish-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.alt-publish-toggle input { width: 16px; height: 16px; accent-color: #1B6B60; }
.alt-publish.is-on .alt-publish-toggle { border-color: #1B6B60; color: #1B6B60; }
.alt-publish .alt-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--tone-teal-line); }

/* —— 发布求购：三态口径，一眼看清商家该报什么 —— */
.rfq-alt-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rfq-alt-opt { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; cursor: pointer; }
.rfq-alt-opt:has(input:checked) { border-color: #1B6B60; background: var(--tone-teal-soft); }
.rfq-alt-opt input { flex: none; width: 15px; height: 15px; margin-top: 2px; accent-color: #1B6B60; }
.rfq-alt-opt b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.rfq-alt-opt small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.rfq-alt { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap; }
.rfq-alt-only { background: #E6F4F1; color: #1B6B60; border: 1px solid var(--tone-teal-line); }
.rfq-alt-accept { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.rfq-alt-oem { background: var(--surface-3); color: var(--ink-3); border: 1px solid var(--line-2); }
.rfq-card-alt { display: block; margin: 3px 0 0; }
.rfq-alt-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px;
  padding: 9px 11px; border: 1px solid var(--tone-teal-line); border-radius: var(--r-s);
  background: var(--tone-teal-soft); }
.rfq-alt-bar > span { font-size: 12px; font-weight: 600; color: #1B6B60; margin-right: 3px; }
.rfq-alt-chip { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.rfq-alt-chip:hover { border-color: #1B6B60; }
.rfq-alt-chip.active { background: #1B6B60; border-color: #1B6B60; color: #fff; }
.rfq-alt-link { margin-left: auto; background: transparent; border-color: transparent; color: #1B6B60; }
.rfq-alt-link:hover { background: #fff; border-color: var(--tone-teal-line); }

/* —— 配件市场横幅入口：一条安静的青绿细带，不占首屏 —— */
.alt-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px;
  padding: 11px 16px; border: 1px solid var(--tone-teal-line); border-radius: var(--r);
  background: var(--tone-teal-soft); text-align: left; cursor: pointer; font: inherit; }
.alt-banner:hover { border-color: #1B6B60; }
.alt-banner-ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 7px; background: #1B6B60; color: #fff; }
.alt-banner-ico svg { width: 16px; height: 16px; }
.alt-banner-txt { flex: 1; min-width: 0; }
.alt-banner-txt b { display: block; font-size: 13.5px; color: #1B6B60; }
.alt-banner-txt small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.alt-banner-go { flex: none; font-size: 12.5px; font-weight: 600; color: #1B6B60; }

/* —— 搜索下拉里的国产平替板块 —— */
.sg-alt-board { margin: 4px 8px 8px; padding: 11px 12px; border: 1px solid var(--tone-teal-line);
  border-radius: var(--r-s); background: var(--tone-teal-soft); }
.sg-alt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sg-alt-h b { display: block; font-size: 13.5px; color: #1B6B60; }
.sg-alt-h span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sg-alt-go { flex: none; padding: 4px 10px; border: 1px solid #1B6B60; border-radius: 999px;
  background: #1B6B60; color: #fff; font: inherit; font-size: 11.5px; cursor: pointer; }
.sg-alt-go:hover { background: #145247; }
.sg-alt-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 9px 0; font-size: 11.5px; color: var(--ink-2); }
.sg-alt-stats b { font-family: var(--mono); font-size: 13px; color: #1B6B60; }
.sg-alt-pairs { display: grid; gap: 4px; }
.sg-alt-pair { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 8px;
  border: 1px solid transparent; border-radius: var(--r-xs); background: rgba(255,255,255,.7);
  text-align: left; cursor: pointer; font: inherit; font-size: 11.5px; }
.sg-alt-pair:hover, .sg-alt-pair.active { border-color: var(--tone-teal-line); background: #fff; }
.sg-alt-oem { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-alt-arrow { color: #1B6B60; }
.sg-alt-vendor { font-weight: 600; color: #1B6B60; white-space: nowrap; }
.sg-alt-save { margin-left: auto; padding: 1px 7px; border-radius: 999px;
  background: var(--nikon); color: var(--nikon-ink); font-family: var(--mono); font-weight: 700; }
.sg-alt-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: #E6F4F1; color: #1B6B60; font-size: 10.5px; font-weight: 600; }

/* —— 专区页 —— */
.alt-page { max-width: 1200px; }
.alt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.alt-head-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.alt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 14px; }
.alt-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.alt-stat > span { display: block; font-size: 12px; color: var(--ink-3); }
.alt-stat b { display: inline-block; margin-top: 5px; font-size: 26px; line-height: 1.1;
  font-weight: 700; color: var(--ink); font-family: var(--mono); }
.alt-stat small { margin-left: 5px; font-size: 11.5px; color: var(--ink-4); }
/* 唯一用力处：省幅。尼康黄只出现在这一个数字上 */
.alt-stat-save { border-color: var(--nikon); background: #FFFBEA; }
.alt-stat-save b { color: #241E05; }
.alt-filters, .alt-vendors { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.alt-filter-l { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-right: 3px; }
.alt-chip { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.alt-chip:hover { border-color: #1B6B60; }
.alt-chip.active { background: #1B6B60; border-color: #1B6B60; color: #fff; }
.alt-vendor { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff;
  font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.alt-vendor small { font-size: 10.5px; color: var(--ink-4); }
.alt-vendor:hover { border-color: #1B6B60; }
.alt-vendor.active { border-color: #1B6B60; background: var(--tone-teal-soft); color: #1B6B60; }
.alt-sec { margin-top: 22px; }
.alt-table-h, .alt-row { display: grid;
  grid-template-columns: minmax(150px, 1.5fr) 20px minmax(130px, 1.3fr) minmax(90px, .7fr) minmax(120px, 1fr) 88px;
  gap: 10px; align-items: center; }
.alt-table-h { padding: 8px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.alt-table { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.alt-row { width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); text-align: left; cursor: pointer; font: inherit; }
.alt-row:last-child { border-bottom: 0; }
.alt-row:hover, .alt-row:focus-visible { background: var(--tone-teal-soft); }
.alt-row-oem { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-row-arrow { color: #1B6B60; font-size: 14px; }
.alt-row-vendor b { display: block; font-size: 13px; font-weight: 600; color: #1B6B60; }
.alt-row-vendor small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.alt-row-cat { font-size: 11.5px; color: var(--ink-3); }
.alt-row-price small { display: block; font-size: 10.5px; color: var(--ink-4); text-decoration: line-through; }
.alt-row-price b { display: block; font-size: 13px; color: var(--ink); font-family: var(--mono); }
/* 清单里的省幅不再铺黄底：黄色只留在顶部价值条那一处，避免满屏强调 */
.alt-row-save { justify-self: end; padding: 3px 9px; border-radius: 999px;
  background: #E6F4F1; border: 1px solid var(--tone-teal-line);
  color: #1B6B60; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.alt-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 13px; }
.alt-link { border: 0; background: none; padding: 0; color: #1B6B60; font: inherit;
  font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.alt-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 18px; border: 1px solid var(--tone-teal-line);
  border-radius: var(--r); background: var(--tone-teal-soft); }
.alt-foot b { display: block; font-size: 14px; color: #1B6B60; }
.alt-foot span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.alt-card-go { margin-top: 10px; padding: 5px 0; border: 0; background: none;
  color: #1B6B60; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.alt-card-go:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .alt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alt-table-h { display: none; }
  .alt-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px; }
  .alt-row-oem { grid-column: 1 / -1; }
  .alt-row-arrow { display: none; }
  .alt-row-vendor { grid-column: 1; }
  .alt-row-cat { grid-column: 1; }
  .alt-row-price { grid-column: 2; grid-row: 2 / span 2; text-align: right; }
  .alt-row-save { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .rfq-alt-pick { grid-template-columns: 1fr; }
  .alt-head-cta { width: 100%; }
  .alt-head-cta .btn { flex: 1; }
  .alt-banner-go { display: none; }
  .alt-stats { gap: 8px; }
  .alt-stat { padding: 11px 12px; }
  .alt-stat b { font-size: 21px; }
  .sg-alt-stats { gap: 9px; }
}
