/* ============================================================
   元器件品牌渠道平台 - 全局样式
   ============================================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #10233d;
  --navy-700: #17325a;
  --brand-600: #1667d1;
  --brand-500: #2b7fff;
  --brand-100: #e8f1ff;
  --teal-600: #0f9d8f;
  --teal-100: #e3f7f4;
  --amber-600: #b7791f;
  --amber-100: #fdf4e0;
  --red-600: #d1384a;
  --red-100: #fdeaec;
  --green-600: #1f9d5b;
  --green-100: #e6f6ee;
  --ink-900: #16202e;
  --ink-700: #3d4b60;
  --ink-500: #6b7a90;
  --ink-300: #a9b4c4;
  --line: #e3e8f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 61, .06), 0 2px 8px rgba(16, 35, 61, .05);
  --shadow-md: 0 6px 24px rgba(16, 35, 61, .10);
  --shadow-lg: 0 18px 48px rgba(10, 22, 40, .18);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  scrollbar-gutter: stable;
}
body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body > main.page {
  flex: 1 0 auto;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }

img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
#site-header,
.site-header {
  min-height: 62px;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 62%, #1d4d8c 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(10, 22, 40, .25);
}
#site-footer:empty {
  min-height: 54px;
  margin-top: 28px;
  background: var(--navy-900);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo .mark {
  width: 56px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4ea8ff, #0f9d8f);
  /* "元渠"两字左右并排（牌匾式） */
  display: flex;
  align-items: center;
  justify-content: center;
  /* 古风字体：行楷优先，逐级回退到隶书 / 楷体 / 宋体（手机上没有行楷时落到楷体） */
  font-family: 'STXingkai', '华文行楷', 'STLiti', '华文隶书', 'STKaiti', '华文楷体', 'KaiTi', '楷体', 'SimSun', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: #04121f;
  /* 印章感：一圈内描边 + 极轻的做旧 */
  box-shadow: inset 0 0 0 1px rgba(4, 18, 31, .30);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}
.logo .mark b { font-weight: 400; }
.logo small { display: block; font-size: 11px; font-weight: 400; color: #9fc0e8; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav a {
  color: #d4e2f5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }

/* ---------- 导航下拉（品牌及渠道 / 入驻相关） ---------- */
.nav-menu { position: relative; }
.nav-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: #d4e2f5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.nav-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-btn.active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.nav-btn .car { font-style: normal; font-size: 11px; margin-left: 3px; opacity: .85; }
.nav-menu-list {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(9, 20, 40, .22);
  z-index: 320;
}
.nav-menu-list.show { display: block; }
.nav-menu-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink-700);
  font-size: 13.5px;
  white-space: nowrap;
}
.nav-menu-list a:hover { background: var(--brand-100); color: var(--brand-600); }
.nav-menu-list a.active { background: var(--brand-100); color: var(--brand-600); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 顶栏「个人中心」下拉菜单 ---------- */
.header-menu { position: relative; }
.header-menu .btn { white-space: nowrap; }
.header-menu-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 178px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(9, 20, 40, .22);
  z-index: 320;
}
.header-menu-list.show { display: block; }
.header-menu-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink-700);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}
.header-menu-list a:hover { background: var(--brand-100); color: var(--brand-600); }
.header-menu-list .menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.header-menu-list a.menu-admin { font-weight: 600; color: var(--brand-600); }
.header-menu-list a.menu-admin.active { background: var(--brand-100); }
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 4px 6px 4px 14px;
}
.header-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  width: 168px;
  font-size: 13px;
}
.header-search input::placeholder { color: #a9c3e3; }
.header-search > button {
  border: 0;
  background: var(--brand-500);
  color: #fff;
  border-radius: 16px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 13px;
}
.search-suggest-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.search-suggest-wrap > input { width: 100%; }
.search-suggest {
  position: absolute;
  z-index: 420;
  top: calc(100% + 7px);
  left: 0;
  width: 920px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(9, 31, 58, .2);
}
.header-search .search-suggest {
  left: auto;
  right: 0;
  width: 920px;
}
.search-suggest.search-suggest-flat {
  width: 560px;
  max-height: min(520px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 7px;
}
.header-search .search-suggest.search-suggest-flat,
.hero-search .search-suggest.search-suggest-flat,
.filters .search-suggest.search-suggest-flat { width: 560px; }
.search-leaf-list { display: grid; gap: 2px; }
.search-leaf-list .search-suggest-item { border-bottom: 1px solid #f0f3f7; }
.search-leaf-list .search-suggest-item:last-child { border-bottom: 0; }
.search-cascade {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 4px;
}
.search-cascade .cat-col {
  flex: 0 0 164px;
  width: 164px;
  min-height: 260px;
  max-height: 360px;
  border-radius: 8px;
  box-shadow: none;
}
.search-cascade .cat-col.show {
  display: flex;
  flex-direction: column;
}
.search-cascade .cat-col > .cat-page { margin-top: auto; }
.search-cascade-page { padding-left: 8px; }
.search-brand-matches {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 5px 5px 9px;
  margin-bottom: 3px;
  border-bottom: 1px solid #edf1f6;
}
.search-brand-matches > span {
  color: #708096;
  font-size: 12px;
  font-weight: 700;
}
.search-brand-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: #fff;
  color: #173b65;
  cursor: pointer;
}
.search-brand-item:hover { border-color: #88b7f4; background: #eef5ff; }
.search-brand-item b { font-size: 13px; }
.search-brand-item small { color: #7a889b; font-size: 11px; }
.search-cascade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 9px 7px 3px;
  border-top: 1px solid #edf1f6;
  color: #53667d;
  font-size: 12.5px;
}
.search-cascade-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-cascade-footer button {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 0;
  border-radius: 7px;
  background: var(--brand-600);
  color: #fff;
  cursor: pointer;
}
.search-suggest-empty { padding: 14px 12px; color: #78879a; font-size: 13px; }
.search-suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.search-suggest-item:hover,
.search-suggest-item.active { background: #eef5ff; }
.search-suggest-type {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e7f0fc;
  color: #1762c5;
  font-size: 11px;
  line-height: 18px;
}
.search-suggest-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-suggest-copy b {
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
}
.search-suggest-copy small {
  color: #738197;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
}
.search-suggest-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 4px 2px;
  color: #6b7b91;
  font-size: 12px;
}
.search-suggest-page button {
  width: 28px;
  height: 26px;
  padding: 0;
  border: 1px solid #d5e0ed;
  border-radius: 6px;
  background: #fff;
  color: #245a99;
  cursor: pointer;
}
.search-suggest-page button:disabled {
  opacity: .38;
  cursor: default;
}
.search-suggest-unknown {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: #1769d2;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .1px;
  text-align: center;
  cursor: pointer;
}
.search-suggest-unknown:hover {
  background: #0f5bbd;
  color: #fff;
}
.card-cat-tag { cursor: pointer; }
.card-cat-tag:hover { border-color: #9dc2f7; color: #1762c5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: var(--brand-600);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-500); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink-700); border-color: var(--line); }
.btn.ghost:hover { background: #f7f9fc; color: var(--brand-600); border-color: #c9d8ef; }
.btn.dark { background: var(--navy-800); }
.btn.dark:hover { background: var(--navy-700); }
.btn.teal { background: var(--teal-600); }
.btn.teal:hover { background: #12b3a2; }
.btn.danger { background: var(--red-600); }
.btn.danger:hover { background: #e04a5c; }
.btn.success { background: var(--green-600); }
.btn.success:hover { background: #24b269; }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.lg { padding: 12px 24px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(43, 127, 255, .35), transparent 60%),
    radial-gradient(700px 300px at 88% 0%, rgba(15, 157, 143, .28), transparent 62%),
    linear-gradient(150deg, #0a1628, #143055 70%, #1b4478);
  color: #fff;
  padding: 24px 0 18px;
}
.hero-title { font-size: 34px; line-height: 1.3; margin: 0 0 38px; letter-spacing: .5px; }
.hero-search {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 8px;
  border-radius: 14px;
  max-width: 660px;
  backdrop-filter: blur(4px);
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}
.hero-search .search-suggest-wrap { flex: 1; }
.hero-search .search-suggest { width: 920px; max-width: calc(100vw - 32px); }
.hero-tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: #9fc0e8; font-size: 13px; }

/* ---------- hero 两栏：左侧搜索统计 + 书法标语，右侧求购框 ---------- */
/* 标题独占一行；左栏收窄给右侧求购框让出宽度 */
.hero-grid { display: flex; align-items: stretch; gap: 44px; }
.hero-main {
  flex: 0 0 468px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 5;
}
.hero-rfq {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.hero-brush {
  margin-top: 38px;
  font-family: 'STXingkai', '华文行楷', 'FZShuTi', '方正舒体', 'STXinwei', '华文新魏',
               'LiSu', '隶书', 'KaiTi', '楷体', 'STKaiti', 'Kaiti SC', 'cursive', serif;
  writing-mode: horizontal-tb;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 9px;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(120, 190, 255, .5), 0 3px 12px rgba(3, 10, 22, .55);
  white-space: nowrap;
}

/* ---------- 首页双栏动态：求购信息 + 供应商入驻 ---------- */
.hero-feed-card {
  position: relative;
  width: 100%;
  height: 548px;
  flex: 0 0 auto;
  margin-bottom: 28px;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 14px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(3, 12, 26, .32);
}
.hero-feed {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hero-feed-head {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: #f7faff;
  border-bottom: 1px solid #edf1f7;
}
.hero-feed-divider {
  position: relative;
  border-top: 1px solid #e3ebf5;
  border-bottom: 1px solid #eef3f9;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 50%, #f8fbff 100%);
}
.hero-feed-divider::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd9ea 16%, #cbd9ea 84%, transparent);
}
.hero-feed-head strong { color: #16324f; font-size: 13.5px; }
.hero-feed-head a { color: #0b4b96; font-size: 12.5px; white-space: nowrap; }
.hero-feed-head a:hover { color: var(--brand-600); }
.hero-feed-head-links { display: flex; align-items: center; gap: 10px; }
.rfq-marquee {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}
.rfq-marquee .track { display: flex; flex-direction: column; }
.rfq-marquee .track.scroll { animation: rfq-scroll-up 30s linear infinite; }
.rfq-marquee:hover .track.scroll,
.supplier-marquee:hover .track.scroll { animation-play-state: running; }
/* 框上方的"全部求购"按钮：蓝底白字，右对齐框的右边缘 */
.rfq-all-btn {
  align-self: flex-end;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #2b7fff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(3, 12, 26, .28);
}
.rfq-all-btn:hover { background: #1667d1; color: #fff; }
/* 求购 / 库存混合行：身份/类型｜品牌｜型号｜封装｜数量｜年份与库存价格 */
.rfq-marquee .item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 68px 132px minmax(0, 1fr) 82px 76px minmax(86px, 110px);
  gap: 10px;
  align-items: center;
  height: 45px;
  padding: 0 12px;
  color: #16324f;
  font-size: 13.5px;
  border-bottom: 1px dashed #e6ecf5;
  text-decoration: none;
  transform-origin: center;
  transition: transform .09s ease-out, box-shadow .12s ease-out, background .12s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}
.rfq-marquee .item .trade-flags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: visible;
}
.rfq-marquee .item .seller-side {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.rfq-marquee .item .seller-side.factory { color: #087466; background: #e3f7f3; }
.rfq-marquee .item .seller-side.agent { color: #14509f; background: #e9f2ff; }
.rfq-marquee .item .seller-side.trader { color: #9a6700; background: #fff3d6; }
.rfq-marquee .item .trade-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.seller-identity-badge { white-space: nowrap; }
.rfq-marquee .item .trade-kind.rfq { color: #1762c5; background: #e9f2ff; }
.rfq-marquee .item .trade-kind.stock { color: #0a7d72; background: #e3f7f3; }
.rfq-marquee .item .meta { color: #52657b; font-size: 12.5px; }
.rfq-marquee .item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rfq-marquee .item .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #0b4b96;
  font-weight: 700;
}
.rfq-marquee .item .brand .bl {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 7px;
  padding: 2px;
  box-sizing: border-box;
}
.rfq-marquee .item .brand .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #8fa2b8;
  border: 1px solid #e3ebf5;
}
.rfq-marquee .item .brand .bn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rfq-marquee .item .m { color: #16324f; }
.rfq-marquee .item .p { color: #3d4b60; }
.rfq-marquee .item:hover {
  z-index: 8;
  border-radius: 9px;
  background: #eef6ff;
  box-shadow: 0 10px 24px rgba(18, 72, 137, .24), 0 0 0 1px rgba(70, 146, 244, .42);
  transform: scale(1.055, 1.16);
}
.rfq-marquee .item:hover .brand .bl {
  border-color: #9fc6f6;
  transform: scale(1.16);
}
.rfq-marquee .item .brand .bl { transition: transform .09s ease-out, border-color .09s ease-out; }
.rfq-marquee .item.empty {
  display: block;
  text-align: center;
  line-height: 41px;
  color: #6b7a90;
}
.supplier-marquee {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.supplier-marquee .track { display: flex; flex-direction: column; }
.supplier-marquee .track.scroll { animation: rfq-scroll-up 34s linear infinite; }
.supplier-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px minmax(118px, 0.72fr) minmax(190px, 1.55fr) minmax(108px, 0.82fr) minmax(72px, 0.56fr);
  gap: 9px;
  align-items: center;
  min-height: 45px;
  padding: 6px 10px;
  color: #16324f;
  font-size: 13px;
  border-bottom: 1px dashed #e6ecf5;
  text-decoration: none;
  transform-origin: center;
  transition: transform .09s ease-out, box-shadow .12s ease-out, background .12s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}
.supplier-item:hover {
  z-index: 8;
  border-radius: 9px;
  background: #eef6ff;
  box-shadow: 0 10px 24px rgba(18, 72, 137, .24), 0 0 0 1px rgba(70, 146, 244, .42);
  transform: scale(1.055, 1.16);
}
.supplier-item:hover .supplier-mark {
  border-color: #9fc6f6;
  transform: scale(1.14);
}
.supplier-item .supplier-mark { transition: transform .09s ease-out, border-color .09s ease-out; }
.brand-supplier-item { background: #f7fbff; }
.brand-supplier-item:hover { background: #edf5ff; }
.supplier-item .supplier-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #f6faff;
  color: #0b4b96;
  font-size: 12px;
  font-weight: 700;
}
.supplier-item .supplier-mark img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.supplier-item .supplier-name,
.supplier-item .supplier-brands,
.supplier-item .supplier-model {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supplier-item .supplier-name { font-weight: 700; }
.supplier-item .supplier-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.supplier-item .supplier-name-main,
.supplier-item .supplier-name-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supplier-item .supplier-name-main { line-height: 1.25; }
.supplier-item .supplier-name-meta {
  color: #718096;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.15;
}
.supplier-item .supplier-company-link {
  color: inherit;
  text-decoration: none;
}
.supplier-item .supplier-company-link:hover .supplier-name-main {
  color: #0b4b96;
  text-decoration: underline;
}
.supplier-item .supplier-brands,
.supplier-item .supplier-tier,
.supplier-item .supplier-model { color: #52657b; font-size: 12.5px; }
.supplier-item .supplier-brands {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 10px), transparent 100%);
}
.supplier-item .supplier-brands-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: supplier-products-right 26s linear infinite;
}
.supplier-item .supplier-brands-segment {
  flex: 0 0 auto;
  padding-right: 34px;
  box-sizing: border-box;
  white-space: nowrap;
}
.supplier-item .agent-brand-lines-segment {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 30px;
}
.supplier-item .agent-brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #d6e6fb;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b4b96;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}
a.agent-brand-chip:hover {
  border-color: #8bb7ef;
  background: #e1efff;
  color: #083b78;
}
.supplier-item:hover .supplier-brands-track { animation-play-state: running; }
.supplier-item .supplier-tier {
  position: relative;
  overflow: hidden;
  color: #315573;
  white-space: nowrap;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 8px), transparent 100%);
}
.supplier-item .supplier-tier-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: supplier-products-right 26s linear infinite;
}
.supplier-item .supplier-tier-segment {
  flex: 0 0 auto;
  padding-right: 28px;
  box-sizing: border-box;
  white-space: nowrap;
}
.supplier-item:hover .supplier-tier-track { animation-play-state: running; }
.supplier-item .supplier-model {
  position: relative;
  overflow: hidden;
  color: #0b6098;
  font-weight: 600;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 8px), transparent 100%);
}
.supplier-item .supplier-model-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: supplier-products-right 18s linear infinite;
}
.supplier-item .supplier-model-segment {
  flex: 0 0 auto;
  padding-right: 20px;
  box-sizing: border-box;
  white-space: nowrap;
}
@keyframes supplier-products-right {
  0%, 6% { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 首页首次进入：双滚动栏先留白，品类品牌 LOGO 从四周汇入中央框。 */
body.home-intro-pending { overflow: hidden; }
.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 46%, #0b3f72 0%, #082e53 27%, #04172c 58%, #01050a 82%, #000 100%);
  box-shadow: inset 0 0 150px 70px rgba(0, 0, 0, .92);
  opacity: 1;
  cursor: wait;
  transition: opacity 1.3s ease, transform 1.2s ease;
}
.logo-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(112, 174, 242, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 174, 242, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 12%, transparent 72%);
}
.logo-intro::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 0deg, transparent, rgba(79, 170, 255, .12), transparent 26%, rgba(49, 220, 205, .08), transparent 58%, rgba(79, 170, 255, .1), transparent);
  animation: logoIntroSweep 6s linear infinite;
}
.logo-intro.is-hiding {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}
.logo-intro-frame {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 56%;
  height: 54%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(151, 205, 255, .62);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(4, 24, 48, .05));
  box-shadow:
    inset 0 0 42px rgba(65, 151, 240, .08),
    0 0 30px rgba(42, 122, 210, .12);
  animation: logoIntroFramePulse 2.2s ease-in-out infinite;
}
.logo-intro-frame::before,
.logo-intro-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(108, 184, 255, .18);
  border-radius: 24px;
  inset: 14px;
}
.logo-intro-frame::after { inset: 34px; border-color: rgba(108, 184, 255, .1); }
.logo-intro-glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 179, 255, .44), rgba(35, 118, 216, .13) 42%, transparent 70%);
  filter: blur(4px);
  animation: logoIntroGlowPulse 1.8s ease-in-out infinite;
}
.logo-intro-particles {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}
.logo-intro-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(159, 213, 255, .7);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 14px rgba(0, 20, 48, .3);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.logo-intro-particle img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}
.logo-intro-particle span {
  color: #0c4e8f;
  font-size: 12px;
  font-weight: 800;
}
.logo-intro-core {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -44%);
  color: #fff;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity, text-shadow;
}
.logo-intro.is-expanding .logo-intro-core {
  animation: logoIntroCorePush 1.1s cubic-bezier(.18,.76,.18,1) both;
}
.logo-intro.is-expanding .logo-intro-frame {
  animation: logoIntroFramePush 1.12s ease-out both;
}
.logo-intro.is-expanding .logo-intro-glow {
  animation: logoIntroGlowPush 1.12s ease-out both;
}
.logo-intro-core span {
  color: #a9d7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.logo-intro-core b {
  margin: 4px 0 7px;
  font-size: 30px;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(92, 190, 255, .7);
}
.logo-intro-core small {
  color: #c8e6ff;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.logo-intro-core .logo-intro-caption {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.logo-intro-core .logo-intro-lead {
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-shadow: 0 0 12px rgba(133, 211, 255, .7);
}
@keyframes logoIntroSweep {
  to { transform: rotate(360deg); }
}
@keyframes logoIntroFramePulse {
  0%, 100% { border-color: rgba(151, 205, 255, .4); box-shadow: inset 0 0 32px rgba(65, 151, 240, .06), 0 0 24px rgba(42, 122, 210, .08); }
  50% { border-color: rgba(174, 222, 255, .9); box-shadow: inset 0 0 46px rgba(65, 151, 240, .15), 0 0 38px rgba(42, 155, 240, .24); }
}
@keyframes logoIntroGlowPulse {
  0%, 100% { opacity: .58; transform: translate(-50%, -50%) scale(.88); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes logoIntroCorePush {
  0% { opacity: 0; transform: translate(-50%, -34%) scale(.72); filter: blur(3px); }
  22% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(2.18); text-shadow: 0 0 28px rgba(114, 204, 255, .95), 0 5px 20px rgba(0, 24, 56, .65); }
}
@keyframes logoIntroFramePush {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(174, 222, 255, .9);
  }
  to {
    opacity: .18;
    transform: translate(-50%, -50%) scale(1.13);
    border-color: rgba(174, 222, 255, .25);
  }
}
@keyframes logoIntroGlowPush {
  from { opacity: .72; transform: translate(-50%, -50%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(2.55); }
}
.home-control {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.home-display-select {
  flex: 1 0 100%;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font-size: 12.5px;
}
.app-edit-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.app-edit-logo {
  width: 92px;
  height: 72px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 9px;
  background: #f8fbff;
  color: #8aa1ba;
  font-size: 12px;
  font-weight: 700;
}
.app-edit-logo img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}
.app-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.app-edit-grid .full { grid-column: 1 / -1; }
.app-edit-grid label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-700);
  font-size: 13px;
}
.app-edit-grid input,
.app-edit-grid select,
.app-edit-grid textarea { width: 100%; }
.task-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.task-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.task-sidebar button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}
.task-sidebar button:hover { background: #f5f8fc; }
.task-sidebar button.active { color: var(--brand-700); background: #eaf3ff; font-weight: 700; }
.task-sidebar button b {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-600);
  text-align: center;
  font-size: 11.5px;
}
.task-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -2px 0 3px 12px;
  padding-left: 8px;
  border-left: 2px solid #dce9f7;
}
.task-sidebar .task-subnav button {
  padding: 7px 9px;
  color: var(--ink-500);
  font-size: 12.5px;
}
.task-sidebar .task-subnav button.active {
  color: var(--brand-700);
  background: #f0f6ff;
  font-weight: 700;
}
.task-main { min-width: 0; }
.task-main-head {
  margin-bottom: 10px;
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 700;
}
.task-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.task-filter-tabs button {
  padding: 6px 12px;
  border: 1px solid #d8e2ee;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-600);
  cursor: pointer;
}
.task-filter-tabs button.active {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: #eaf3ff;
  font-weight: 700;
}
.task-record {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.task-record:first-child { padding-top: 0; }
.task-record:last-child { border-bottom: 0; padding-bottom: 0; }
.task-record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.task-record-head time {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 12px;
}
.task-record-body {
  margin-top: 7px;
  color: var(--ink-700);
  line-height: 1.75;
  white-space: pre-wrap;
}
.task-record-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.task-profile-form { max-width: 840px; }
.profile-info-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 940px;
}
.profile-account-card,
.profile-password-card {
  overflow: hidden;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  background: #fff;
}
.profile-account-card { padding: 20px 22px; }
.profile-password-card .profile-card-head { padding: 20px 22px 0; }
.profile-password-card .contact-fields { padding: 18px 22px 20px; }
.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.profile-card-head h3 { margin: 0 0 4px; font-size: 16px; }
.profile-card-head p { margin: 0; color: var(--ink-500); font-size: 12.5px; }
.profile-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-account-grid > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e3ebf5;
  border-radius: 9px;
  background: #f9fbfe;
}
.profile-account-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 11.5px;
}
.profile-account-grid b {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 600;
}
.profile-return-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #c9ecd9;
  border-radius: 11px;
  background: var(--green-100);
  color: #12724a;
  font-size: 13px;
}
.contact-editor {
  overflow: hidden;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  background: #fff;
}
.contact-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f2f8ff 0%, #eef5ff 55%, #f8fbff 100%);
  border-bottom: 1px solid #dfeaf6;
}
.contact-avatar {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 110px;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  flex: 0 0 110px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2b7fff, #1559b7);
  box-shadow: 0 8px 22px rgba(28, 103, 205, .22);
  font-size: 24px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.contact-avatar.has-logo {
  background: #fff;
  border: 1px solid #d8e5f3;
  box-shadow: 0 5px 16px rgba(30, 74, 125, .09);
}
.contact-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
}
.contact-logo-stack {
  display: flex;
  width: 122px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.contact-logo-upload {
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}
.contact-logo-upload:hover { color: var(--brand-700); text-decoration: underline; }
.contact-logo-tip {
  max-width: 122px;
  color: var(--ink-400);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}
.contact-logo-tip.pending {
  color: #a86900;
  font-weight: 600;
}
.contact-logo-remove {
  border: 0;
  background: transparent;
  color: var(--red-600);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.contact-logo-remove:hover { text-decoration: underline; }
.contact-hero-copy { min-width: 0; flex: 1; }
.contact-hero-copy h3 { margin: 0 0 5px; font-size: 19px; color: var(--ink-900); }
.contact-hero-copy p { margin: 0; color: var(--ink-500); font-size: 13px; }
.contact-section { padding: 22px 24px 24px; }
.contact-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.contact-section-head b { color: var(--ink-900); font-size: 15px; }
.contact-section-head span { color: var(--ink-400); font-size: 12.5px; }
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}
.contact-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field > span { color: var(--ink-600); font-size: 13px; font-weight: 600; }
.contact-field > span em { color: var(--red-600); font-style: normal; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 42px;
  background: #fbfdff;
  border-color: #d6e2ef;
}
.contact-field textarea { min-height: 72px; }
.contact-field input:focus,
.contact-field textarea:focus { background: #fff; }
.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #f8fbfe;
}
.contact-footer > div { display: flex; flex-direction: column; gap: 3px; }
.contact-footer b { color: var(--ink-700); font-size: 13px; }
.contact-footer span { color: var(--ink-400); font-size: 12px; }
.task-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 12.5px;
}
.task-pager button {
  width: 30px;
  height: 30px;
  border: 1px solid #d6e2ef;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-600);
  cursor: pointer;
}
.task-pager button.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 22, 40, .28);
}
.task-pager button:hover:not(:disabled) { background: var(--brand-100); border-color: var(--brand-400); }
.task-pager button.active:hover { background: var(--navy-900); border-color: var(--navy-900); }
.task-pager button:disabled { color: #b8c3cf; cursor: not-allowed; background: #f7f9fb; }
.company-with-logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.admin-company-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border: 1px solid #dce7f3;
  border-radius: 7px;
  background: #fff;
}
.admin-company-logo.placeholder {
  display: grid;
  place-items: center;
  color: #1762c5;
  background: #eef5ff;
  font-weight: 700;
}
.address-collapse-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.address-collapse-text.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.address-collapse-toggle {
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.address-collapse-toggle:hover { text-decoration: underline; }
.address-collapse-toggle[hidden] { display: none !important; }
.ba-table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.ba-table-link:hover { color: var(--brand-500); text-decoration: underline; }
.ba-applicant-link { font-weight: 600; }
.review-company-logo {
  width: 110px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 5px;
}
.agent-company-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.agent-license-upload {
  margin: 0 0 18px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.agent-license-upload label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}
.agent-license-upload input { max-width: 100%; }
.agent-logo-preview {
  width: 78px;
  height: 64px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 9px;
  background: #fff;
  color: #8aa1ba;
  font-size: 12px;
  font-weight: 700;
}
.agent-logo-preview.empty { background: #f7faff; }
.agent-logo-preview img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.channel-company-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) max-content;
  gap: 9px;
  align-items: center;
  min-height: 56px;
}
.channel-company-head > span:last-child {
  justify-self: end;
  white-space: nowrap;
}
.channel-company-head .agent-name {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-900);
  font-weight: 700;
  text-align: left;
}
.channel-logo {
  width: 54px;
  height: 46px;
  flex: 0 0 54px;
  object-fit: contain;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}
.channel-logo.placeholder,
.channel-detail-logo.placeholder {
  display: grid;
  place-items: center;
  color: #1762c5;
  background: #eef5ff;
  font-weight: 700;
}
.channel-logo.sm { width: 30px; height: 30px; flex-basis: 30px; }
.channel-contact-grid {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 5px 10px;
  margin-top: 10px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.7;
}
.channel-contact-label {
  color: var(--ink-500);
}
.channel-contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand-channel-card .channel-card-name,
.channel-contact-address {
  color: var(--ink-900);
  font-weight: 600;
}
.channel-contact-address {
  min-height: 3.5em;
}
#cert-list {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
#cert-list > .channel-result-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}
.channel-result-actions {
  margin-top: auto;
  padding-top: 12px;
}
.channel-line-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.channel-line-more { margin: 0 0 10px; }
.channel-line-list .channel-line-extra { display: none; }
.channel-line-list.is-expanded .channel-line-extra { display: inline-flex; }
.channel-line-toggle {
  display: inline-flex;
  align-items: center;
  margin: -2px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1667d1;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.channel-line-toggle:hover { color: #0b4b96; text-decoration: underline; }
.channel-line-card {
  display: inline-flex;
  height: auto;
  min-height: 36px;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.channel-line-brands {
  display: flex;
  width: auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.channel-detail-head { display: flex; gap: 14px; align-items: center; }
.channel-detail-logo {
  width: 86px;
  height: 72px;
  flex: 0 0 86px;
  object-fit: contain;
  border: 1px solid #dce7f3;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}
.feed-empty {
  height: 100%;
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #718096;
  font-size: 13px;
  text-align: center;
}
@keyframes rfq-scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.rfq-marquee-more {
  color: #cbdcf3;
  font-size: 12.5px;
  margin-top: 10px;
  white-space: nowrap;
}
.rfq-marquee-more:hover { color: #ffffff; }
.hero-tags a { color: #cfe2ff; background: rgba(255, 255, 255, .1); padding: 3px 10px; border-radius: 12px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .2); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; max-width: 760px; }
.stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 12px;
}
.stat b {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  /* 数字累加动画时保持等宽数字，避免位数变化造成左右跳动 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.stat span { color: #a9c3e3; font-size: 12px; white-space: nowrap; }

/* ---------- layout ---------- */
.page { padding: 28px 0 60px; }
.page-head { margin-bottom: 20px; }
.page-head h2 { margin: 0 0 6px; font-size: 22px; }
.page-head p { margin: 0; color: var(--ink-500); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card + .card { margin-top: 18px; }
.card h3 { margin: 0 0 14px; font-size: 16px; }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 4px 0 0; color: var(--ink-500); }
.section-head .more { font-size: 13px; }

.grid { display: grid; gap: 14px; }
/* 网格内的卡片间距由 gap 控制，避免 .card + .card 的 18px 上边距把并排卡片顶歪 */
.grid > .card + .card { margin-top: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- brand card ---------- */
.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: .18s;
  /* 固定卡片框架：所有品牌卡片尺寸完全一致（内容超出裁切） */
  height: 248px;
  overflow: hidden;
}
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cfdcf0; }
.brand-card .top { display: flex; gap: 12px; align-items: center; height: 56px; flex: 0 0 auto; overflow: hidden; }
.brand-card .top > div { min-width: 0; }
.brand-card .logo-box {
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-card .logo-box img { max-width: 86%; max-height: 80%; object-fit: contain; }
.brand-card .logo-box .ph { color: var(--ink-300); font-size: 18px; font-weight: 700; }
.brand-card .name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-card .en { color: var(--ink-500); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-card .desc {
  color: var(--ink-700);
  font-size: 12.8px;
  line-height: 1.6;
  height: 62px;              /* 固定 3 行高度：短描述也占满，保证下方区块对齐 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}
/* 第一行标签（梯队 / 封测模式 / 产地）：固定一行，超出裁切 */
.brand-card .meta {
  display: flex; gap: 6px; align-items: center; flex-wrap: nowrap;
  height: 22px; overflow: hidden; flex: 0 0 auto;
}
/* 第二行标签（产品品类）：固定两行高度，超出裁切 */
.brand-card .tags {
  margin-top: auto;
  display: flex; gap: 6px; align-content: flex-start; flex-wrap: wrap;
  height: 50px; overflow: hidden; flex: 0 0 auto;
}
.brand-card .foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 12px;
  background: #eef2f8;
  color: var(--ink-700);
  border: 1px solid #e2e8f2;
  white-space: nowrap;
}
.badge.blue { background: var(--brand-100); color: #14509f; border-color: #cfe1ff; }
.badge.teal { background: var(--teal-100); color: #0a7d72; border-color: #c8ece7; }
.badge.amber { background: var(--amber-100); color: var(--amber-600); border-color: #f5e3bd; }
.badge.red { background: var(--red-100); color: var(--red-600); border-color: #f8cfd4; }
.badge.green { background: var(--green-100); color: var(--green-600); border-color: #c9ecd9; }
.badge.gray { background: #f1f3f7; color: var(--ink-500); }

/* ---------- filters ---------- */
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  /* 底部对齐：即使某个标签折行，输入框/下拉框也始终在同一水平线上 */
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; color: var(--ink-500); }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=search], select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  outline: none;
  transition: .16s;
  min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(43, 127, 255, .12); }
input[readonly] {
  background: #f3f6fa;
  color: #5f6f82;
  cursor: not-allowed;
}
textarea { resize: vertical; min-height: 74px; }
.filters .grow { flex: 1 1 200px; min-width: 180px; max-width: 300px; }
.filters input, .filters select { width: 100%; }
.filters .search-suggest-wrap { width: 100%; }
.filters .search-suggest { width: 920px; max-width: calc(100vw - 32px); }
/* 筛选栏标签强制一行，避免折行把输入框挤下去 */
.filters .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters .field { min-width: 0; }
.filters select { min-width: 108px; max-width: 190px; }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; flex-wrap: wrap; color: var(--ink-500); font-size: 13px; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap; }
.pager button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.pager button.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f8fafd; color: var(--ink-700); font-weight: 600; white-space: nowrap; }
table.data tr:hover td { background: #fafcff; }
.rfq-row td,
.incoming-row td {
  padding: 7px 10px;
  line-height: 1.45;
  vertical-align: middle;
}
.table-scroll { overflow-x: auto; }

/* ---------- forms ---------- */
/* 注册：账号类型选择卡（原厂 / 代理商 / 采购商） */
.type-option {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; background: #fff; cursor: pointer; transition: .16s;
}
.type-option:hover { border-color: #c9d8ef; }
.type-option.on { border-color: var(--brand-500); background: var(--brand-100); box-shadow: 0 0 0 3px rgba(43, 127, 255, .10); }
.type-option input { margin-top: 4px; flex: 0 0 auto; }
.type-option b { display: block; font-size: 14px; }
.type-option span.tip { color: var(--ink-500); font-size: 12.5px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: 13px; color: var(--ink-700); display: block; margin-bottom: 5px; }
.form-grid label .req { color: var(--red-600); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; }
.account-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.account-type-option {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  min-height: 58px;
  margin: 0 !important;
  padding: 11px 13px;
  border: 1px solid #d9e4f1;
  border-radius: 9px;
  background: #fbfdff;
  color: var(--ink-700) !important;
  cursor: pointer;
}
.account-type-option:has(input:checked) {
  border-color: #72a7e8;
  background: #f1f7ff;
  box-shadow: 0 0 0 2px rgba(30, 112, 214, .08);
}
.account-type-option input {
  width: auto;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand-600);
}
.account-type-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.account-type-option b { color: var(--ink-900); font-size: 14px; }
.account-type-option small { color: var(--ink-500); font-size: 12px; font-weight: 400; }
.incoming-identity-row {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.incoming-identity-select { min-width: 0; }
.incoming-identity-select select { width: 100%; }
.incoming-identity-details { min-width: 0; }
.incoming-identity-panel {
  padding: 10px 12px;
  border: 1px solid #dce7f3;
  border-radius: 9px;
  background: #f8fbff;
}
.incoming-identity-panel[hidden] { display: none !important; }
.incoming-identity-panel input[type=file] {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d6e1ee;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
}
.incoming-identity-panel label {
  display: block;
  margin: 5px 0;
}
.incoming-identity-panel .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .incoming-identity-row { grid-template-columns: 1fr; }
}
.rfq-demand-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}
.rfq-demand-grid > div { min-width: 0; }
.rfq-demand-grid label { margin-bottom: 3px; font-size: 12.5px; }
.rfq-demand-grid input,
.rfq-demand-grid select { padding-top: 7px; padding-bottom: 7px; font-size: 13.5px; }
.rfq-demand-grid textarea { min-height: 64px; font-size: 13.5px; }
.rfq-demand-grid .rfq-span-3 { grid-column: span 3; }
.rfq-demand-grid .rfq-span-4 { grid-column: span 4; }
.rfq-demand-grid .rfq-span-6 { grid-column: span 6; }
.rfq-inline-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rfq-inline-field > label {
  flex: 0 0 110px;
  width: 110px;
  min-width: 110px;
  margin: 0;
  line-height: 34px;
  white-space: nowrap;
}
.rfq-inline-field.rfq-span-3 > label {
  min-width: 110px;
}
.rfq-inline-field > input,
.rfq-inline-field > select,
.rfq-inline-field > textarea,
.rfq-inline-field > .rfq-field-control {
  flex: 1 1 auto;
  min-width: 0;
}
.brand-suggest-host {
  position: relative;
}
.brand-suggest-menu {
  position: absolute;
  z-index: 460;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 45, 73, .18);
}
.brand-suggest-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #16324f;
  text-align: left;
  cursor: pointer;
}
.brand-suggest-item:hover,
.brand-suggest-item.active {
  background: #edf5ff;
}
.brand-suggest-item b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-suggest-item small {
  flex: 0 0 auto;
  color: #6b7a90;
}
.brand-suggest-empty {
  padding: 10px;
  color: #6b7a90;
  font-size: 12.5px;
}
.brand-confirm-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #b9d4f5;
  border-radius: 9px;
  background: #f5f9ff;
}
.brand-confirm-card.confirmed {
  border-color: #9bd8b8;
  background: #f1fbf6;
}
.brand-confirm-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-600);
  font-weight: 700;
}
.brand-confirm-logo img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}
.brand-confirm-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
}
.brand-confirm-copy b,
.brand-confirm-copy span,
.brand-confirm-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-confirm-copy b { color: var(--ink-900); font-size: 14px; }
.brand-confirm-copy span { color: var(--brand-600); font-size: 12.5px; }
.brand-confirm-copy small { color: var(--ink-500); font-size: 12px; }
.brand-confirm-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}
.rfq-inline-field > textarea {
  margin-top: 0;
}
#rfq-form-box,
#incoming-form-box,
.batch-panel { padding: 16px 18px; }
#rfq-form-box > h3,
#incoming-form-box > h3,
.batch-panel > h3 { margin: 0 0 10px; font-size: 18px; }
.brand-edit-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px 12px; }
.brand-edit-grid > div > label { margin-bottom: 3px; }
.brand-edit-grid .field-span-3 { grid-column: span 3; }
.brand-edit-grid .field-span-4 { grid-column: span 4; }
.brand-edit-grid .field-span-9 { grid-column: span 9; }
.brand-logo-editor { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; }
.brand-logo-editor-preview { width: 88px; height: 88px; flex: 0 0 88px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; color: var(--ink-400); font-size: 28px; font-weight: 700; }
.brand-logo-editor-preview img { width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.brand-logo-editor-controls { flex: 1 1 320px; min-width: 0; }
.brand-logo-editor-controls label { display: block; margin-bottom: 6px; }
.brand-logo-editor-controls input[type=file] { max-width: 100%; }
.rank-category-picker { position: relative; }
.rank-native-select { display: none; }
.rank-picker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.rank-picker-toggle i { color: var(--ink-500); font-style: normal; }
#rank-picker-options { height: 320px; overflow: hidden; }
.rank-picker-panel {
  position: absolute;
  z-index: 210;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  padding: 5px;
  border: 1px solid #d5dfec;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 44, 75, .18);
}
.rank-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}
.rank-picker-option:hover { background: #f2f7ff; }
.rank-picker-option.active { background: #eaf3ff; color: var(--brand-700); font-weight: 700; }
.rank-picker-option.empty { cursor: default; background: transparent; }
.rank-picker-option.empty:hover { background: transparent; }
.rank-picker-option b {
  min-width: 28px;
  color: var(--ink-500);
  text-align: right;
  font-size: 12px;
  font-weight: 500;
}
.rank-picker-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 36px;
  margin-top: 4px;
  border-top: 1px solid #edf1f7;
  color: var(--ink-500);
  font-size: 12.5px;
}
.rank-picker-pager button {
  width: 30px;
  height: 27px;
  border: 1px solid #d5dfec;
  border-radius: 6px;
  background: #fff;
  color: var(--brand-700);
  cursor: pointer;
}
.rank-picker-pager button:disabled { opacity: .35; cursor: default; }
.tax-picker-field .rank-category-picker { min-width: 145px; }
.filters .tax-picker-field .rank-picker-toggle {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 14px;
}
.filters select:disabled {
  background: #f3f6fa;
  color: #7b8899;
  cursor: not-allowed;
}
.filters .tax-picker-panel {
  width: 238px;
  max-width: calc(100vw - 32px);
}
.tax-picker-options {
  display: grid;
  grid-template-rows: repeat(8, 40px);
  height: 320px;
}
.tax-picker-options .rank-picker-option {
  min-width: 0;
  overflow: hidden;
}
.tax-picker-options .rank-picker-option > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 210px;
}
.brand-row-actions .btn { width: 100%; white-space: nowrap; }
.rank-editor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(110px, .7fr)) auto;
  gap: 10px;
  align-items: end;
}
.rank-editor-grid label { display: block; font-size: 13px; color: var(--ink-700); margin-bottom: 4px; }
.rank-editor-grid select { width: 100%; }
.rank-add-cell .btn { min-height: 36px; }
.rank-rule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
}
.rank-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 6px;
  background: #fbfdff;
}
.hint { color: var(--ink-500); font-size: 12px; margin-top: 4px; }

.upload-box {
  border: 1.5px dashed #c3d3ea;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--ink-500);
  background: #fbfdff;
  cursor: pointer;
  transition: .18s;
}
.upload-box:hover { border-color: var(--brand-500); background: var(--brand-100); color: var(--brand-600); }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb {
  width: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.thumb img { width: 100%; height: 76px; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 4px; right: 4px;
  background: rgba(10, 22, 40, .7); color: #fff;
  border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1;
}
.thumb .cap { font-size: 11px; padding: 3px 5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 品牌入驻：标签与输入框同行，减少纵向留白。 */
.brand-apply-form {
  padding: 18px 20px 20px;
}
.brand-apply-form > h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.brand-apply-form > h3:not(:first-child) {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.brand-apply-form .ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}
.brand-apply-form .ba-field {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}
.brand-apply-form .ba-field.full {
  grid-column: 1 / -1;
}
.brand-apply-form .ba-field > label {
  margin: 0;
  padding-top: 9px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.brand-apply-form .ba-control {
  min-width: 0;
}
.brand-apply-form .ba-control > input,
.brand-apply-form .ba-control > select,
.brand-apply-form .ba-control > textarea {
  width: 100%;
}
.brand-apply-form .ba-control > textarea {
  min-height: 56px;
  height: auto;
  max-height: none;
  field-sizing: content;
  overflow-y: hidden;
  resize: vertical;
  padding-top: 7px;
  padding-bottom: 7px;
}
.brand-apply-form .ba-field > label .req,
.brand-apply-form .notice .req {
  color: var(--red-600);
}
.brand-apply-form .upload-box {
  min-height: 58px;
  padding: 10px 14px;
}
.brand-apply-form .upload-box.is-invalid {
  border-color: var(--red-600);
  background: #fff7f7;
}
.brand-apply-form .thumb-list {
  margin-top: 7px;
}
.brand-apply-form .thumb {
  width: 92px;
}
.brand-apply-form .thumb img {
  height: 48px;
  padding: 5px;
  object-fit: contain;
}
.brand-apply-form .chips {
  min-height: 36px;
  padding: 5px 8px;
}
.brand-apply-form .cat-new-apply {
  margin-top: 8px;
  padding: 9px 10px 8px;
}
.brand-apply-form .cat-new-apply-head {
  margin-bottom: 7px;
}

/* ---------- brand chips (multi select) ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 44px; background: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-100); color: #14509f; border: 1px solid #cfe1ff;
  border-radius: 12px; padding: 2px 8px; font-size: 12.5px;
}
.chip button { border: 0; background: transparent; color: #14509f; cursor: pointer; font-size: 13px; line-height: 1; }

/* ---------- misc ---------- */
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 13px; border: 1px solid; }
.notice.info { background: var(--brand-100); border-color: #cfe1ff; color: #14509f; }
.notice.warn { background: var(--amber-100); border-color: #f5e3bd; color: #8a5a10; }
.notice.ok { background: var(--green-100); border-color: #c9ecd9; color: #12724a; }
.notice.err { background: var(--red-100); border-color: #f8cfd4; color: #a3242f; }

.empty { text-align: center; color: var(--ink-500); padding: 40px 16px; }
.empty .big { font-size: 30px; margin-bottom: 8px; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; color: var(--ink-900); }

.brand-hero { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
/* 品牌资料卡：主营产品很长时（半导小芯品类）独占整行并分栏显示，让各模块体量均衡 */
.brand-info .span-all { grid-column: 1 / -1; }
/* 资料卡标题 + 块级「纠错」入口 */
.bf-flag { outline: 2px solid #f0a020 !important; outline-offset: 1px; background: #fffaf0 !important; }
.bf-star { color: #d97706; font-weight: 700; }
.block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.block-head h3 { flex: 1 1 auto; }
.block-fix { flex: 0 0 auto; background: none; border: 0; padding: 2px 4px; margin-top: -2px;
  color: var(--brand-600); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.block-fix:hover { text-decoration: underline; }
/* 品牌归类标签的"展开全部"（用 button 实现，避免误触跳转） */
.tag-toggle { background: none; border: 0; padding: 0 4px; margin: 2px 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--brand-600); }
.tag-toggle:hover { text-decoration: underline; }
.brand-info.is-long .span-all .block-body { column-count: 2; column-gap: 34px; }
@media (min-width: 1100px) { .brand-info.is-long .span-all .block-body { column-count: 3; } }
@media (max-width: 720px) { .brand-info.is-long .span-all .block-body { column-count: 1; } }
.brand-hero .logo-box {
  width: 128px; height: 128px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; background: #fff; padding: 12px; flex: 0 0 auto;
}
.brand-hero .logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-hero h1 { margin: 0 0 8px; font-size: 26px; }
.brand-hero .sub { color: var(--ink-500); margin-bottom: 12px; }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.logo-cell {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 10px; text-align: center; transition: .18s;
}
.logo-cell:hover { z-index: 2; box-shadow: var(--shadow-md); transform: translateY(-2px) scale(1.035); }
/* 固定框架：logo 框高度固定且图片居中缩放，名字固定两行 —— 各卡片的图标/名字位置尺寸完全一致 */
.logo-cell .lg {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.logo-cell .lg img {
  /* 宽扁 logo（如 407x97）也完整显示：限制最大宽高并保持比例，不裁切 */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}
.logo-cell .lg .ph {
  color: var(--ink-300);
  font-size: 16px;
  font-weight: 700;
}
.logo-cell .no-logo {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--ink-300);
  font-size: 16px;
  font-weight: 700;
  background: #f6f8fc;
  border-radius: 6px;
}
.logo-cell .nm {
  font-size: 12.5px;
  color: var(--ink-700);
  line-height: 1.35;
  height: 34px;                /* 固定两行高度，名字长短不影响卡片高度 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 10px 16px; cursor: pointer;
  font-size: 14px; color: var(--ink-500); border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--brand-600); border-bottom-color: var(--brand-600); font-weight: 600; }
.admin-subtab-search {
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 8px;
  margin-right: 10px;
}
.admin-subtab-search > span {
  color: #7c8ca1;
  font-size: 19px;
  line-height: 1;
}
.admin-subtab-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid #d6e0ec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  font-size: 13px;
}
.admin-subtab-search input:focus {
  outline: none;
  border-color: #8bb8f7;
  box-shadow: 0 0 0 3px rgba(43, 127, 255, .10);
}
.admin-list-search {
  flex: none;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
}
.admin-list-search .admin-list-search-result {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 12.5px;
  white-space: nowrap;
}

.panel { display: none; }
.panel.active { display: block; }

/* ---------- datasheet embed ---------- */
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.embed-card { display: flex; flex-direction: column; overflow: hidden; }
.embed-card .head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: #f8fafd;
}
.embed-card .head .ttl { font-weight: 700; font-size: 14.5px; }
.embed-card .head .tag { font-size: 11.5px; color: var(--ink-500); }
.embed-card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.embed-card .body .row { display: flex; gap: 8px; }
.embed-card .body input { flex: 1; }
.embed-frame { width: 100%; height: 520px; border: 0; border-top: 1px solid var(--line); background: #fff; }
.embed-placeholder {
  height: 520px; display: grid; place-items: center; text-align: center; color: var(--ink-500);
  background: repeating-linear-gradient(45deg, #fbfdff, #fbfdff 12px, #f4f8fd 12px, #f4f8fd 24px);
  padding: 24px;
}

/* ---------- status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.status.pending { color: var(--amber-600); }
.status.approved { color: var(--green-600); }
.status.rejected { color: var(--red-600); }

/* ---------- modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 18, 32, .6);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%;
  max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal .modal-head h3 { margin: 0; font-size: 16px; }
.modal .modal-body { padding: 18px; }
.modal .modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal img.cert { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- 代理证查看（弹窗内图片 + 点击放大） ---------- */
.modal .cert-figure { margin: 0 0 16px; width: 100%; min-width: 0; flex: 1 1 100%; }
.modal .cert-figure figcaption { font-size: 13px; color: var(--ink-600); margin-bottom: 6px; }
.modal img.cert { cursor: zoom-in; display: block; width: 100%; max-height: 68vh; object-fit: contain; }
.modal img.cert.loading { min-height: 120px; background: #f4f7fc; }

/* ---------- 图片放大（灯箱） ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 15, 30, .82);
  padding: 18px;
  overflow: auto;
}
.lightbox.show { display: block; }
.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: #dce7f7;
  margin-bottom: 10px;
}
.lightbox-cap { margin-right: auto; font-size: 13.5px; color: #b9cbe6; }
.lightbox-img {
  display: block;
  max-width: min(1100px, 96vw);
  max-height: calc(100vh - 110px);
  object-fit: contain;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  cursor: zoom-out;
}

/* ---------- 左侧悬浮分类导航（固定在最左边，鼠标移上去展开，类似半导小芯） ---------- */
.cat-float {
  position: fixed;
  left: 0;
  top: 152px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
}
.cat-float-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 32px;
  height: 118px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8453c, #d1352c);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 22px rgba(209, 53, 44, .28);
  transition: width .18s ease;
}
/* 红色浮标常显竖排“搜索引擎”，悬停或点击展开分类面板 */
.cat-float-icon {
  display: none;
}
.cat-float-text {
  display: block;
  white-space: normal;
  padding: 0;
  letter-spacing: 2px;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
.cat-float.open .cat-float-text,
.cat-float:hover .cat-float-text { display: block; }
.cat-float.open .cat-float-icon,
.cat-float:hover .cat-float-icon {
  transform: rotate(180deg);
  transition: transform .18s ease;
}
.cat-float-panel {
  display: none;
  gap: 8px;
  padding-left: 8px;
  position: relative;
}
.cat-float-close {
  position: absolute; top: -6px; right: -4px; z-index: 3;
  width: 22px; height: 22px; line-height: 1; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-500);
  cursor: pointer; box-shadow: var(--shadow-md);
}
.cat-float-close:hover { color: var(--brand-600); border-color: var(--brand-600); }
.cat-float.open .cat-float-panel { display: flex; }
.cat-col {
  display: none;
  width: 168px;
  max-height: 64vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.cat-col.show { display: block; }
.cat-col:first-child { border-radius: 0 10px 10px 0; }
.cat-col + .cat-col { border-radius: 10px; }
.cat-col-head {
  font-size: 12px; color: var(--ink-500);
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.cat-kind, .cat-group, .cat-tag {
  display: flex; align-items: center; gap: 6px;
  width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--ink-700);
  padding: 7px 8px; border-radius: 6px;
}
.cat-kind { font-size: 13.5px; font-weight: 600; }
.cat-kind:hover, .cat-group:hover, .cat-tag:hover { background: var(--brand-100); color: var(--brand-600); }
.cat-kind.active, .cat-group.active, .cat-tag.active { background: var(--brand-100); color: var(--brand-600); font-weight: 700; }
.cat-kind b, .cat-group b, .cat-tag b { margin-left: auto; font-weight: 500; font-size: 11.5px; color: var(--ink-300); }
/* 新树四层导航：第三列里「二级分组」是可点的整族筛选，三阶缩进排在它下面 */
.cat-sub { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; padding: 7px 8px 3px; font: inherit; font-weight: 700;
  color: var(--ink-700, #374151); cursor: pointer; }
.cat-search-input {
  width: 100%; box-sizing: border-box; padding: 7px 8px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 12.5px; font-family: inherit;
}
.cat-search-input:focus { outline: 0; border-color: var(--brand-500); }
.cat-search-results { margin-top: 6px; }
.cat-search-item {
  display: block; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line);
  background: none; padding: 7px 5px; font-size: 12px;
  color: var(--ink-700); cursor: pointer; line-height: 1.45;
}
.cat-search-item:hover { color: var(--brand-600); background: var(--brand-100); }
.cat-search-path { display: block; }
.cat-lv4 { font-size: 12px; }
.cat-sub:hover, .cat-sub.active { color: var(--brand-600); }
.cat-sub b { margin-left: auto; font-weight: 500; font-size: 11.5px; color: var(--ink-300); }
.cat-tag.cat-lv3 { padding-left: 18px; }
/* 三阶列：固定最小高度 + 翻页器钉在底部 —— 翻页时整列高度和翻页条位置都不跳 */
#catf-tags { display: none; flex-direction: column; min-height: 336px; }
#catf-tags.show { display: flex; }
#catf-tags > .cat-col-head, #catf-tags > .cat-sub, #catf-tags > .cat-tag,
#catf-tags > .cat-empty, #catf-tags > .cat-help-btn { flex: 0 0 auto; }
#catf-tags > .cat-help-btn { margin: auto 8px 5px; }
#catf-tags > .cat-page { margin-top: 0; }
/* 四阶列：与三阶一样分页，翻页条固定在列底部 */
#catf-level4 { display: none; flex-direction: column; min-height: 336px; }
#catf-level4.show { display: flex; }
#catf-level4 > .cat-col-head, #catf-level4 > .cat-sub, #catf-level4 > .cat-tag { flex: 0 0 auto; }
#catf-level4 > .cat-page { margin-top: auto; }
.cat-page { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px 18px; }
.cat-page-btn { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; width: 22px; height: 22px;
  line-height: 1; cursor: pointer; color: #374151; }
.cat-page-btn:hover { border-color: var(--brand-600, #b91c1c); color: var(--brand-600, #b91c1c); }
.cat-page-info { font-size: 11.5px; color: #6b7280; }
.cat-help-btn {
  width: calc(100% - 16px);
  padding: 8px 4px;
  border: 0;
  border-radius: 7px;
  background: var(--brand-600);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.cat-help-btn:hover { background: var(--brand-500); }
.cat-kind i { font-style: normal; color: var(--ink-300); }
.cat-empty { padding: 10px 8px; color: var(--ink-300); font-size: 12.5px; }

/* ---------- 产品品类级联选择器（品牌入驻表单用，和左侧悬浮导航同款样式） ---------- */
.cat-picker { position: relative; }
.cat-picker-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--ink-700);
}
.cat-picker-field:hover { border-color: var(--brand-500); }
.cat-picker.open .cat-picker-field { border-color: var(--brand-500); }
.cat-picker-field i { font-style: normal; color: var(--ink-300); }
.cat-picker-panel {
  display: none;
  position: absolute; left: 0; top: calc(100% + 6px);
  flex-wrap: wrap;
  gap: 8px; z-index: 80;
  max-width: 100%;
  overflow-x: auto;
}
.cat-picker.open .cat-picker-panel { display: flex; }
.cat-picker-panel .cat-col { width: 176px; background: #fff; }
.cat-picker-panel .cat-col.show { display: block; }
.ba-category-search {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-400);
}
.ba-category-search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(43,127,255,.08); }
.ba-category-search input { width: 100%; height: 38px; border: 0; outline: 0; background: transparent; }
.cat-picker-search-results { display: none; flex: 1 0 100%; max-height: 360px; overflow-y: auto; background: #fff; }
.cat-picker.searching .cat-picker-panel > .cat-col { display: none !important; }
.cat-picker.searching .cat-picker-search-results { display: block; }
.cat-picker.searching .cat-picker-panel {
  top: auto;
  bottom: calc(100% + 6px);
  max-height: min(42vh, 360px);
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 45, 73, .18);
}
.cat-search-item {
  display: flex; width: 100%; align-items: center; gap: 9px;
  padding: 8px 10px; border: 0; border-left: 3px solid transparent; border-radius: 7px;
  background: transparent; color: var(--ink-800); text-align: left; cursor: pointer;
}
.cat-search-item:hover, .cat-search-item.active { background: #e9f3ff; border-left-color: var(--brand-500); }
.cat-search-item > span:nth-child(2) { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; }
.cat-search-item b { color: #0b5fc7; font-size: 13px; font-weight: 700; }
.cat-search-item small { color: #6c7c91; font-size: 11.5px; }
.cat-search-item em { margin-left: auto; color: #2475d4; font-size: 11px; font-style: normal; }
.cat-tag .tick { flex: 0 0 12px; color: var(--brand-600); font-size: 12px; }
/* 阶梯列底部"新增"输入框 */
.cat-new-inline { margin-top: 8px; padding: 6px 4px 0; border-top: 1px dashed var(--line); }
.cat-new-inline input { width: 100%; font-size: 12.5px; padding: 6px 8px; }

/* 品类申请新增：放在选择框下方（不再挤进左侧分类列） */
.cat-new-apply {
  margin-top: 12px;
  padding: 12px 14px 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}
.cat-new-apply-head { font-size: 13.5px; color: var(--ink-700); margin-bottom: 10px; }
.cat-new-apply-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.cat-new-apply-grid label { display: block; margin-bottom: 4px; }
.cat-new-apply-grid select,
.cat-new-apply-grid input { width: 100%; }
.cat-new-apply-btn { padding-bottom: 1px; }

/* 产品定制化：左侧产品大类导航 + 右侧分类与品类。 */
.ct-category-picker { position: relative; }
.ct-category-popover {
  display: none;
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  filter: drop-shadow(0 14px 24px rgba(18, 42, 72, .18));
}
.ct-category-picker.open .ct-category-popover { display: block; }
.ct-category-browser {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.ct-category-sidebar {
  overflow: visible;
  padding: 7px;
  border-right: 1px solid var(--line);
  background: #f7faff;
}
.ct-category-kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ct-category-kind:hover { background: #eaf3ff; color: var(--brand-700); }
.ct-category-kind.active { background: var(--brand-100); color: var(--brand-700); }
.ct-category-kind b { font-size: 11px; font-weight: 500; color: var(--ink-400); }
.ct-category-content {
  min-width: 0;
  padding: 11px 13px 13px;
  overflow: visible;
}
.ct-category-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ct-category-group {
  padding: 5px 10px;
  border: 1px solid #d9e5f3;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-600);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.ct-category-group:hover { border-color: #9dc2f7; color: var(--brand-700); }
.ct-category-group.active { border-color: var(--brand-500); background: var(--brand-100); color: var(--brand-700); font-weight: 700; }
.ct-category-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 7px;
}
.ct-category-tag {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dce7f3;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.ct-category-tag:hover { border-color: #9dc2f7; background: #f8fbff; color: var(--brand-700); }
.ct-category-tag.active { border-color: var(--brand-500); background: var(--brand-100); color: var(--brand-700); font-weight: 700; }
.ct-category-empty { padding: 18px 8px; color: var(--ink-400); font-size: 12.5px; }
@media (max-width: 900px) {
  .cat-new-apply-grid { grid-template-columns: 1fr; }
  .brand-apply-form .ba-grid { grid-template-columns: 1fr; }
  .brand-apply-form .ba-field.full { grid-column: auto; }
  .ct-category-browser { grid-template-columns: 1fr; max-height: none; }
  .ct-category-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ct-category-kind { width: auto; min-width: max-content; }
}
@media (max-width: 600px) {
  .brand-apply-form { padding: 15px 14px 17px; }
  .brand-apply-form .ba-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .brand-apply-form .ba-field > label {
    padding-top: 0;
    text-align: left;
  }
}
/* 窄屏浮标收成一条竖标签，面板贴左侧、可横向滚动 */
@media (max-width: 900px) {
  .cat-float { top: 120px; max-width: 100vw; }
  .cat-float-tab { height: 96px; }
  .cat-float-panel { overflow-x: auto; padding-right: 8px; }
  .cat-col { width: 148px; }
}

/* 代理证缩略图（本地待上传图片）可点击放大 */
.thumb { cursor: zoom-in; }

/* 渠道展示：代理商名称（点击查看其全部代理线） */
.agent-name {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-600);
  text-align: left;
  border-bottom: 1px dashed rgba(22, 103, 209, .45);
  line-height: 1.5;
}
.agent-name:hover { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.thumb.pdf { cursor: pointer; }
.thumb .file-icon {
  height: 76px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #b3261e; background: #fdf1f0; letter-spacing: .5px;
}

/* ---------- 代理证 PDF 预览 ---------- */
.modal iframe.cert-pdf {
  width: 100%; height: min(68vh, 720px); min-height: 420px; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.file-card {
  padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: #fbfdff; color: var(--ink-600);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9db4d2;
  padding: 18px 0;
  margin-top: 28px;
  font-size: 13px;
}
.site-footer a { color: #9db4d2; display: block; padding: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 0;
  color: #7b93b3;
}
.site-footer .copy a { display: inline; padding: 0; }

/* ---------- 求购 / 库存工具栏与历史查询 ---------- */
.demand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.history-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 560px);
  min-width: 0;
}
.demand-toolbar > .btn-row { min-width: 0; max-width: 100%; }
.history-search input {
  flex: 1 1 auto;
  min-width: 220px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #d4dfec;
  border-radius: 9px;
  background: #fff;
}

/* 渠道商详情：一个外框内逐品牌展示代理线 */
.channel-lines-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.channel-line-grid {
  display: grid;
    grid-template-columns: minmax(110px, .9fr) minmax(130px, 1.1fr) 92px 135px 120px 190px;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
}
.channel-lines-head {
  background: #f5f8fc;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
}
.channel-line-row {
  min-height: 47px;
  border-top: 1px dashed #e5ebf3;
  color: var(--ink-700);
  font-size: 13px;
}
.channel-line-row:hover { background: #f9fbff; }
  .channel-line-admin-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.channel-brand-name {
  color: #0b4b96;
  font-weight: 700;
  text-decoration: none;
}
.channel-brand-name:hover { text-decoration: underline; }
a.badge { text-decoration: none; }
.channel-pager { margin-top: 14px; }
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.agent-line-row {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.agent-line-row + .agent-line-row { margin-top: 10px; }
.agent-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.agent-line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}
.agent-line-grid .full { grid-column: 1 / -1; }
.agent-line-grid input,
.agent-line-grid select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  background: #fff;
}
.agent-line-message { min-height: 18px; margin-top: 6px; }
.contact-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1.2fr 1.2fr 1.2fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdff;
}
.contact-editor-row input, .contact-editor-row select { width: 100%; min-width: 0; }
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-card {
  padding: 13px 14px;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #fbfdff;
  min-width: 0;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 7px;
  color: var(--ink-700);
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .contact-editor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-editor-row button { width: 100%; }
  .contact-list { grid-template-columns: 1fr; }
}
.inline-action {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  margin: 0 3px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}
.inline-action:hover { background: var(--brand-500); color: #fff; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--navy-900); color: #fff; padding: 11px 20px; border-radius: 22px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .24s; z-index: 200; font-size: 13.5px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red-600); }
#toast.ok { background: var(--green-600); }

/* ---------- responsive ---------- */
/* 窄屏兜底：收回求购框右侧 51px 外探，恢复正常两栏 */
@media (max-width: 1360px) {
  .hero-grid { gap: 26px; }
  .hero-main { flex: 1 1 auto; }
  .hero-rfq { flex: 0 1 700px; min-width: 0; margin-top: 0; align-self: flex-start; }
  .hero-feed-card { max-width: 700px; }
}
@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .embed-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  /* hero 标语换行：竖排改为横排，整体居中排在内容下方 */
  .hero-grid { flex-direction: column; align-items: center; gap: 26px; }
  .hero-main { width: 100%; }
  .hero-rfq { width: 100%; }
  .hero-feed-card { height: 548px; min-height: 548px; max-width: 100%; }
  .hero-brush { font-size: 32px; letter-spacing: 6px; line-height: 1.3; margin-top: 26px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header-search input { width: 110px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 25px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .rfq-demand-grid > div { grid-column: 1 / -1; }
  .rfq-inline-field > label {
    flex-basis: 96px;
    width: 96px;
    min-width: 96px;
  }
  .brand-edit-grid > div { grid-column: 1 / -1; }
  .rank-editor-grid { grid-template-columns: 1fr; }
  .rank-rule-row { grid-template-columns: 1fr; }
  .agent-company-head { align-items: flex-start; flex-wrap: wrap; }
  .agent-company-head .field { flex: 1 1 220px; }
  .app-edit-head { align-items: flex-start; flex-wrap: wrap; }
  .app-edit-head .field { flex: 1 1 220px; }
  .app-edit-grid { grid-template-columns: 1fr; }
  .app-edit-grid .full { grid-column: 1; }
  .admin-subtab-search { flex: 1 0 100%; max-width: none; margin-right: 0; }
  .task-workspace { grid-template-columns: 1fr; }
  .task-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-subnav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 4px;
    padding-left: 0;
    border-left: 0;
  }
  .contact-hero { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .contact-section { padding: 18px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-field.full { grid-column: 1; }
  .contact-footer { align-items: stretch; flex-direction: column; padding: 16px 18px; }
  .contact-footer .btn { width: 100%; }
  .profile-account-card { padding: 18px; }
  .profile-password-card .profile-card-head { padding: 18px 18px 0; }
  .profile-password-card .contact-fields { padding: 16px 18px 18px; }
  .profile-account-grid { grid-template-columns: 1fr; }
  .profile-return-row { align-items: stretch; flex-direction: column; }
  .profile-return-row .btn { width: 100%; }
}
/* 跑马灯在窄屏保留：类型｜品牌｜型号｜数量；封装与年份价格点进详情页看。 */
@media (max-width: 760px) {
  /* 关键：flex 子项默认 min-width:auto 会被内容撑开，
     这里统一放开，避免搜索框和求购框把整页撑出屏幕。 */
  .hero-main,
  .hero-rfq { min-width: 0; max-width: 100%; }
  .hero-search { max-width: 100%; }
  .hero-search input { min-width: 0; }
  .history-search { width: 100%; margin-left: 0; }
  .history-search input { min-width: 0; }
  .brand-confirm-card { align-items: flex-start; flex-wrap: wrap; }
  .brand-confirm-actions { width: 100%; padding-left: 52px; }
  .demand-toolbar > .btn-row { width: 100%; }
  .demand-toolbar > .btn-row .btn { flex: 1 1 150px; }
  .rfq-marquee {
    width: 100%;
    max-width: 100%;
  }
  .rfq-marquee .item {
    grid-template-columns: 58px 92px minmax(0, 1fr) 72px;
    min-width: 0;
    gap: 6px;
    padding: 0 8px;
    font-size: 11.5px;
  }
  .rfq-marquee .item > span:nth-child(4),
  .rfq-marquee .item > span:nth-child(6) { display: none; }
  .rfq-marquee .item .brand .bl { flex: 0 0 18px; width: 18px; height: 18px; }
  .supplier-item {
    grid-template-columns: 26px minmax(82px, 0.7fr) minmax(110px, 1.4fr) minmax(78px, 0.8fr);
    gap: 7px;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .supplier-item .supplier-model { display: none; }
  .supplier-item .supplier-mark { width: 24px; height: 24px; }
  .channel-lines-head { display: none; }
  .channel-line-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px;
  }
  .channel-brand-name { grid-column: 1 / -1; }
  .channel-line-row > span[data-label]::before {
    content: attr(data-label) "：";
    color: var(--ink-500);
    font-weight: 400;
  }
  .channel-line-row > span[data-label="操作"] { grid-column: 1 / -1; }
  .agent-line-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .account-type-options { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .task-sidebar { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .brand-hero .logo-box { width: 96px; height: 96px; }
}

/* 单条求购 / 库存详情：首屏信息优先，减少纵向留白 */
.single-detail-card { padding: 20px 22px; }
.single-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.single-detail-kicker {
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.single-detail-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
}
.single-detail-title a { color: var(--ink-900); text-decoration: none; }
.single-detail-title a:hover { color: var(--blue); }
.single-detail-subline {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 13px;
}
.single-detail-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.single-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.single-detail-field {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3eaf3;
  border-radius: 9px;
  background: #fbfdff;
}
.single-detail-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 12px;
}
.single-detail-field > strong,
.single-detail-field > div {
  display: block;
  color: var(--ink-800);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.single-detail-field > strong { font-weight: 700; }
.single-detail-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.single-detail-note {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.7;
}
.single-detail-note.full { grid-column: 1 / -1; }
.single-detail-note b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-800);
}
.single-detail-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f0d89a;
  border-radius: 10px;
  background: #fff9e9;
}
.single-detail-contact b { color: var(--ink-800); }
.single-detail-contact .hint { margin-top: 3px; }
.single-detail-contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.single-detail-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.single-detail-contact-grid > div { min-width: 0; }
.single-detail-contact-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 12px;
}
.single-detail-contact-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-800);
  font-size: 13.5px;
}
@media (max-width: 760px) {
  .single-detail-grid,
  .single-detail-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-detail-hero { flex-direction: column; }
  .single-detail-badges { justify-content: flex-start; }
  .logo-intro-frame { width: 64%; height: 49%; }
  .logo-intro-core b { font-size: 23px; }
  .logo-intro-core span,
  .logo-intro-core small { font-size: 10.5px; }
  .logo-intro-core .logo-intro-lead { font-size: 11.5px; }
}
@media (max-width: 520px) {
  .single-detail-card { padding: 16px 14px; }
  .single-detail-grid,
  .single-detail-notes,
  .single-detail-contact-grid { grid-template-columns: 1fr; }
  .single-detail-contact { align-items: flex-start; flex-direction: column; }
  .single-detail-contact-actions { width: 100%; }
  .single-detail-contact-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-intro::after,
  .logo-intro-frame,
  .logo-intro-glow,
  .logo-intro-core { animation: none; }
  .logo-intro-core { opacity: 1; }
  .rfq-marquee .track.scroll,
  .supplier-marquee .track.scroll,
  .supplier-item .supplier-brands-track,
  .supplier-item .supplier-tier-track,
  .supplier-item .supplier-model-track { animation: none; }
  .rfq-marquee,
  .supplier-marquee { overflow-y: auto; }
}
