/* ICNAV Global · 企业库页面样式 */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.site-nav a {
  padding: 5px 12px;
  border-radius: var(--r);
  font-size: 13px;
  color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--surface-low);
  color: var(--text);
}

.site-nav a.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ---------- 筛选条 ---------- */
.filter-bar {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row + .filter-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.filter-label {
  width: 44px;
  flex-shrink: 0;
  font: 500 10px/14px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.filter-chip {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: transparent;
  font-size: 12px;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.filter-chip:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--accent-10);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.filter-chip .n {
  margin-left: 5px;
  font: 10px var(--font-mono);
  opacity: 0.7;
}

/* ---------- 企业卡片 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, background-color 0.15s;
}

.company-card:hover {
  background: var(--surface);
  border-color: var(--line-soft);
}

.cc-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--bg-deep);
  font: 500 11px var(--font-mono);
  color: var(--text-2);
}

.cc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-name {
  flex: 1;
  min-width: 0;
}

.cc-name a {
  display: block;
  overflow: hidden;
  font: 600 14px/20px var(--font-body);
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-name a:hover {
  color: var(--accent);
}

.cc-name small {
  display: block;
  overflow: hidden;
  font: 400 10px/14px var(--font-mono);
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.badge-region.is-global { color: var(--info); border-color: rgba(173, 198, 255, 0.4); }
.badge-region.is-cn { color: var(--danger-soft); border-color: rgba(255, 180, 171, 0.4); }
.badge-region.is-apac { color: var(--purple); border-color: rgba(225, 210, 255, 0.4); }
.badge-region.is-emea { color: var(--ok); border-color: rgba(0, 229, 153, 0.4); }
.badge-region.is-na { color: var(--warn); border-color: rgba(255, 184, 0, 0.4); }

.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cc-tag {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: 400 10px/14px var(--font-mono);
  color: var(--text-2);
}

.cc-rank {
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent-soft);
}

.cc-apps {
  font: 400 10px/14px var(--font-mono);
  color: var(--text-3);
}

.cc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font: 400 10px/14px var(--font-mono);
  color: var(--text-3);
}

.cc-foot .tier {
  margin-left: auto;
  color: var(--text-2);
}

/* ---------- 页面容器 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.page-lead {
  margin-bottom: 20px;
}

.page-lead .label {
  color: var(--accent);
}

.page-lead h1 {
  margin: 6px 0 8px;
  font: 700 32px/40px var(--font-display);
  letter-spacing: -0.03em;
}

.page-lead p {
  margin: 0;
  max-width: 780px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- 详情页 ---------- */
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-deep);
  font: 500 16px var(--font-mono);
  color: var(--text-2);
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-name h1 {
  margin: 0 0 4px;
  font: 700 26px/32px var(--font-display);
  letter-spacing: -0.02em;
}

.detail-name .en {
  font: 400 11px/16px var(--font-mono);
  color: var(--text-3);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font: 600 16px/22px var(--font-display);
}

.panel-box {
  padding: 16px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ---------- 全球对比条 ---------- */
.bar-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.bar-row + .bar-row {
  border-top: 1px solid var(--line);
}

.bar-name {
  overflow: hidden;
  font-size: 12px;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row.is-self .bar-name {
  color: var(--accent);
  font-weight: 600;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-high);
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--line-soft);
}

.bar-row.is-self .bar-fill {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.bar-value {
  font: 500 11px/1 var(--font-mono);
  color: var(--text-3);
  text-align: right;
}

.bar-row.is-self .bar-value {
  color: var(--accent);
}

/* ---------- 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font: 500 10px/14px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(36, 42, 58, 0.8);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .role {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.data-table .model {
  font: 500 12px/16px var(--font-mono);
  color: var(--accent-soft);
}

.data-table .alt-global {
  color: var(--info);
}

.data-table .alt-cn {
  color: var(--ok);
}

.data-table .muted {
  color: var(--text-3);
}

/* ---------- 双通道采购 ---------- */
.buy-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.buy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.buy-btn.is-global {
  color: var(--info);
  border-color: rgba(173, 198, 255, 0.35);
}

.buy-btn.is-secondhand {
  color: var(--warn);
  border-color: rgba(255, 184, 0, 0.35);
}

.buy-note {
  font: 400 9px/12px var(--font-mono);
  color: var(--text-3);
}

/* ---------- 场景卡片 ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.scene-card {
  display: block;
  padding: 16px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, background-color 0.15s;
}

.scene-card:hover {
  background: var(--surface);
  border-color: var(--line-soft);
}

.scene-kind {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.scene-kind.is-b2b {
  color: var(--info);
  border: 1px solid rgba(173, 198, 255, 0.4);
}

.scene-kind.is-b2c {
  color: var(--purple);
  border: 1px solid rgba(225, 210, 255, 0.4);
}

.scene-card h3 {
  margin: 10px 0 6px;
  font: 600 16px/22px var(--font-display);
}

.scene-card p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

.scene-card .meta {
  display: flex;
  gap: 10px;
  font: 400 10px/14px var(--font-mono);
  color: var(--text-3);
}

@media (max-width: 900px) {
  .wrap {
    padding: 16px 14px 48px;
  }

  .company-grid,
  .scene-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-label {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 110px minmax(0, 1fr) 52px;
  }

  .page-lead h1 {
    font-size: 24px;
  }
}

/* ============ 首页打磨 ============ */

.hero-title {
  margin-bottom: 16px;
}

.hero-title h1 {
  margin: 0 0 6px;
  font: 700 28px/34px var(--font-display);
  letter-spacing: -0.03em;
}

.hero-title p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

/* 首页 hero 在内容容器内，收一点上下留白 */
.wrap .hero {
  padding: 0 0 16px;
}

.wrap .hero-search {
  max-width: 680px;
}

.wrap .hot-panel {
  max-width: 100%;
  margin-top: 14px;
  padding: 10px 14px 12px;
}

.wrap .hot-panel .hot-head {
  padding-bottom: 8px;
}

.wrap .hot-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 10px;
  padding-top: 8px;
}

.wrap .hero-tabs {
  margin-bottom: 12px;
}

.hot-item {
  color: inherit;
}

.hot-item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* 筛选区压缩：两列布局，行高更紧凑 */
.wrap .filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 28px;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px 16px;
}

.wrap .filter-row {
  gap: 6px;
  min-width: 0;
}

/* 两列布局下不再需要行间分隔线 */
.wrap .filter-row + .filter-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.wrap .filter-chip {
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.wrap .filter-label {
  width: 40px;
  font-size: 9px;
}

/* 列表头 */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.list-head .label {
  color: var(--text-3);
}

.clear-filters {
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: color 0.15s, border-color 0.15s;
}

.clear-filters:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 分销商标记 */
.cc-tag.is-kind {
  color: var(--purple);
  border-color: rgba(225, 210, 255, 0.4);
}

/* 卡片节奏：让名称与标签之间更松、与底栏更紧 */
.company-card {
  gap: 9px;
}

.cc-head {
  margin-bottom: 1px;
}

.cc-rank {
  min-height: 18px;
}

/* 移动端 */
@media (max-width: 900px) {
  .wrap .hero-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .hero-title h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .hero-title p {
    font-size: 12px;
  }

  .wrap .filter-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .wrap .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .wrap .filter-row::-webkit-scrollbar {
    display: none;
  }

  .wrap .filter-label {
    width: auto;
    flex-shrink: 0;
    padding-right: 2px;
  }

  .wrap .filter-chip {
    flex-shrink: 0;
  }

  .wrap .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
}

/* ============ 详情页打磨 ============ */

.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font: 500 10px/14px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.crumb a {
  color: var(--text-2);
}

.crumb a:hover {
  color: var(--accent);
}

.crumb .sep {
  color: var(--surface-highest);
}

.crumb .current {
  color: var(--accent);
}

/* 表格在窄屏横向滚动，不撑破布局 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}

.data-table {
  min-width: 560px;
}

/* 详情页头图与标题对齐更紧 */
.detail-head {
  padding-bottom: 16px;
}

.detail-name h1 {
  margin-bottom: 3px;
}

/* 联系方式锁定态在窄屏下换行 */
@media (max-width: 640px) {
  .lock-box {
    flex-wrap: wrap;
  }

  .lock-box .text {
    flex-basis: calc(100% - 48px);
  }
}

/* 小屏不再展示头部企业条，优先露出列表 */
@media (max-width: 640px) {
  .wrap .hot-panel {
    display: none;
  }

  .hero-title h1 {
    font-size: 20px;
    line-height: 26px;
  }
}

/* ============ 交互细节 ============ */

/* 键盘可见焦点 */
:where(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 搜索框聚焦态 */
.wrap .hero-search:focus-within {
  box-shadow: 0 0 0 3px var(--accent-20), 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* chip 过渡 */
.filter-chip {
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

/* 卡片整体可点击区域的反馈 */
.company-card:hover .cc-name a {
  color: var(--accent);
}

.company-card:hover .cc-logo {
  border-color: var(--accent);
}

/* 场景卡片：桌面最多两列，避免卡片过窄 */
@media (min-width: 901px) {
  .scene-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  }
}

/* ==========================================================
   视觉层 v2：环境光 / 排版层级 / 卡片重构
   ========================================================== */

/* 1. 环境光：顶部微弱的青色辉光，给纯平背景一点纵深 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 50% -12%, rgba(0, 240, 255, 0.07), transparent 68%),
    radial-gradient(680px 340px at 88% 0%, rgba(173, 198, 255, 0.05), transparent 70%);
}

/* 内容层叠在环境光之上；头部保持 sticky，不能在这里改它的 position */
.wrap,
.auth-wrap {
  position: relative;
  z-index: 1;
}

/* 2. 容器与节奏 */
.wrap {
  max-width: 1240px;
  padding: 26px 24px 72px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title h1 {
  margin: 0 0 8px;
  font: 700 34px/42px var(--font-display);
  letter-spacing: -0.035em;
}

.hero-title p {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.page-lead {
  margin-bottom: 24px;
}

.page-lead h1 {
  font: 700 30px/38px var(--font-display);
  letter-spacing: -0.03em;
}

.page-lead p {
  font-size: 14px;
  line-height: 1.7;
}

/* 3. 区块标题：等宽小标签 + 发丝线 */
.section {
  margin-top: 34px;
}

.section-head {
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font: 600 17px/24px var(--font-display);
  letter-spacing: -0.01em;
}

.section-head .label {
  color: var(--text-3);
}

/* 4. 企业卡片重构 */
.company-grid {
  gap: 14px;
}

.company-card {
  position: relative;
  gap: 10px;
  padding: 16px;
  min-height: 168px;
  border-radius: 10px;
  border-color: var(--line);
  background: var(--surface-low);
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}

.company-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.16s;
}

.company-card:hover {
  background: var(--surface);
  border-color: var(--line-soft);
  transform: translateY(-1px);
}

.company-card:hover::after {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cc-head {
  gap: 11px;
  margin-bottom: 2px;
}

.cc-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 12px;
}

.cc-name a {
  font: 600 15px/21px var(--font-body);
}

.cc-name small {
  margin-top: 1px;
  font-size: 10px;
}

.badge-region {
  height: 19px;
  font-size: 9px;
}

.cc-tags {
  gap: 5px;
}

.cc-tag {
  padding: 2px 7px;
  border-color: var(--line);
  font-size: 10px;
  color: var(--text-3);
}

.cc-rank {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--accent-soft);
}

.cc-apps {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-3);
}

/* 底栏固定在卡片底部，卡片高度不齐时也对齐 */
.cc-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* 5. 列表头 */
.list-head {
  margin: 4px 0 12px;
}

.list-head .label {
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* 6. 指标块（详情页 / 场景页共用） */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-deep);
}

.ds {
  padding: 10px 16px;
  border-left: 1px solid var(--line);
}

.ds:first-child {
  border-left: none;
}

.ds .k {
  display: block;
  font: 500 9px/14px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.ds .v {
  display: block;
  margin-top: 2px;
  font: 600 15px/20px var(--font-display);
  color: var(--text);
}

.ds .v.is-accent {
  color: var(--accent);
}

/* 7. 场景页头部 */
.scene-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.scene-head-main {
  min-width: 0;
}

.scene-head h1 {
  margin: 10px 0 8px;
  font: 700 30px/38px var(--font-display);
  letter-spacing: -0.03em;
}

.scene-head p {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 趋势提示条 */
.callout {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-left-width: 2px;
  border-radius: var(--r);
  background: rgba(0, 240, 255, 0.04);
}

.callout-k {
  flex-shrink: 0;
  font: 500 9px/20px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}

.callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 8. 场景卡片：左侧类型色条 */
.scene-card {
  position: relative;
  padding-left: 18px;
  border-radius: 10px;
}

.scene-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--info);
  opacity: 0.55;
}

.scene-card:has(.scene-kind.is-b2c)::before {
  background: var(--purple);
}

.scene-card h3 {
  font: 600 17px/24px var(--font-display);
}

@media (max-width: 1060px) {
  .detail-stats {
    grid-template-columns: repeat(2, auto);
    margin-top: 14px;
  }

  .scene-head {
    flex-direction: column;
    gap: 14px;
  }

  .scene-head .detail-stats {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .detail-stats {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }

  .ds {
    padding: 8px 10px;
  }

  .ds .v {
    font-size: 13px;
  }

  .scene-head h1 {
    font-size: 24px;
    line-height: 30px;
  }
}

/* 9. 无份额数据时的同品类厂商清单 */
.peer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 14px;
}

.peer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 0.12s;
}

.peer:hover {
  background: var(--surface);
}

.peer-name {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer.is-self .peer-name {
  color: var(--accent);
  font-weight: 600;
}

.peer-tier {
  flex-shrink: 0;
  font: 500 9px/14px var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* 终端厂商标记 */
.cc-tag.is-terminal {
  color: var(--info);
  border-color: rgba(173, 198, 255, 0.4);
}

/* ============ 品牌标识 ============ */

@media (max-width: 900px) {
  .brand-logo {
    width: 86px;
    height: 34px;
  }

  .brand-logo .logo-big {
    height: 26px;
  }

  .brand-logo .logo-small {
    height: 18px;
  }
}

/* ==========================================================
   浅色头部 + 分类导航条
   ========================================================== */

.app-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e7ea;
  color: #111113;
}

.app-header .brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 48px;
}

.app-header .brand-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.app-header .brand-logo .logo-big { height: 44px; }
.app-header .brand-logo .logo-small { height: 30px; }

.app-header .brand-logo img.is-off {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  pointer-events: none;
}

/* 导航居中 */
.app-header .site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  margin-left: 4px;
}

/* 品类导航：在中间剩余空间居中，加粗 */
.cat-nav {
  display: flex;
  align-items: center;
  justify-content: safe center;
  flex: 1;
  min-width: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  flex-shrink: 0;
  padding: 6px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #33343a;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.cat-nav a:hover {
  color: #1e3a8a;
  background: #f4f5f7;
}

.cat-nav a.is-active {
  color: #1e3a8a;
}

.app-header .site-nav a {
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  color: #5b5b62;
  transition: background-color 0.15s, color 0.15s;
}

.app-header .site-nav a:hover {
  background: #f4f5f7;
  color: #111113;
}

.app-header .site-nav a.is-active {
  background: transparent;
  color: #1e3a8a;
  font-weight: 600;
}

/* 头部按钮改为浅色 */
.app-header .btn {
  background: #ffffff;
  border-color: #dfe1e6;
  color: #33343a;
}

.app-header .btn:hover {
  background: #f7f8fa;
  border-color: #c8ccd4;
}

.app-header .btn-primary {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

.app-header .btn-primary:hover {
  background: #17306f;
  border-color: #17306f;
}






@media (max-width: 900px) {
  
  .app-header .brand-logo {
    width: 84px;
    height: 40px;
  }

  .app-header .brand-logo .logo-big { height: 34px; }
  .app-header .brand-logo .logo-small { height: 22px; }
}

/* ============ 首页：logo 条 / 筛选折叠 ============ */

.hot-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 18px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.list-toolbar .spacer {
  flex: 1;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-low);
  color: var(--text-2);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.filter-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-toggle.is-open {
  background: var(--accent-10);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 10px/16px var(--font-mono);
  text-align: center;
}

.filter-bar.is-collapsed {
  display: none;
}

@media (max-width: 900px) {
  .hot-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px;
    margin-top: 14px;
  }
}

/* 窄屏：导航不换行，隐藏后台入口，保证品牌 + 导航 + 登录同行 */
@media (max-width: 640px) {
  .app-header {
    gap: 8px;
    padding: 0 12px;
  }

  .app-header .site-nav {
    flex-wrap: nowrap;
    margin-left: 4px;
  }

  .app-header .site-nav a {
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .app-header .header-actions {
    gap: 6px;
  }

  .app-header .header-actions .btn:last-child {
    display: none;
  }

  .app-header .btn {
    height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }
}

/* ============ 头部图标按钮 / 语言菜单 ============ */

.header-actions {
  position: relative;
}













.app-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  background: #fff;
  color: #5b5b62;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.app-header .icon-btn:hover {
  background: #f7f8fa;
  border-color: #c8ccd4;
  color: #111113;
}

.app-header .icon-btn.is-user {
  background: #eef2fb;
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.lang-menu {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
}

.lang-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: left;
  font-size: 13px;
  color: #33343a;
}

.lang-menu button.is-current {
  background: #eef2fb;
  color: #1e3a8a;
  font-weight: 600;
}

.lang-menu button:disabled {
  color: #9a9aa1;
  cursor: not-allowed;
}

/* 首页标题居中 */
.hero-title {
  text-align: center;
}

.hero-title p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .app-header .icon-btn {
    width: 30px;
    height: 30px;
  }

  
  
  }

/* 窄屏：头部折成两行，品类整行横向滑动 */
@media (max-width: 900px) {
  .app-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 8px 12px 0;
    row-gap: 2px;
  }

  .brand-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .app-header .site-nav {
    order: 3;
    margin-left: 0;
  }

  .cat-nav {
    order: 4;
    flex-basis: 100%;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
}

/* ============ 收藏星标 ============ */

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: var(--text-3);
  transition: color 0.15s, background-color 0.15s;
}

.fav-btn:hover {
  background: var(--surface-high);
  color: var(--text);
}

.fav-btn.is-on {
  color: var(--accent);
}

.fav-btn.is-on svg {
  fill: currentColor;
}

/* ============ 我的工作台 ============ */

.me-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.me-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.me-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface-low);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.me-tab:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.me-tab.is-active {
  background: var(--accent-10);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.me-tab .n {
  font: 500 10px/1 var(--font-mono);
  opacity: 0.75;
}

.link-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px auto;
  gap: 8px;
  margin-bottom: 14px;
}

.link-form input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.link-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-10);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(36, 42, 58, 0.8);
}

.link-row:last-child {
  border-bottom: none;
}

.link-row .name {
  flex-shrink: 0;
  width: 180px;
  font-size: 13px;
  color: var(--text);
}

.link-row .url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 400 11px/1.4 var(--font-mono);
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row .url:hover {
  color: var(--accent);
}

.link-row .note {
  flex-shrink: 0;
  max-width: 200px;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row .del {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--danger-soft);
}

.link-row .del:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .link-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .link-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .link-row .name {
    width: auto;
  }

  .link-row .url {
    flex-basis: 100%;
  }
}

/* ============ 大洲 / 国家浏览 ============ */

.geo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 6px;
}

.geo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-row.is-sub {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.geo-row .filter-chip {
  height: 30px;
  padding: 0 14px;
  font-size: 13px;
}

.geo-row.is-sub .filter-chip {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.geo-row .filter-chip .n {
  margin-left: 6px;
  font: 500 10px/1 var(--font-mono);
  opacity: 0.65;
}

@media (max-width: 900px) {
  .geo-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .geo-row::-webkit-scrollbar {
    display: none;
  }

  .geo-row .filter-chip {
    flex-shrink: 0;
  }
}

/* ============ 广告位 ============ */

.ad-slot {
  margin: 16px 0;
  min-height: 100px;
}

/* 网格内的 in-feed 广告横跨整行，不能挤占某个卡片列 */
.company-grid > .ad-slot {
  grid-column: 1 / -1;
  margin: 0;
}

.ad-slot .ad-label {
  display: block;
  margin-bottom: 4px;
  font: 500 9px/14px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.ad-slot .adsbygoogle {
  display: block;
  min-height: 90px;
}

/* ============ 站点页脚 / 说明页 ============ */

.site-footer {
  margin-top: 40px;
  padding: 22px 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.site-footer .foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.site-footer .copy {
  font: 400 10px/16px var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.site-footer nav a {
  font-size: 12px;
  color: var(--text-2);
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* 说明页正文 */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.doc h1 {
  margin: 0 0 10px;
  font: 700 28px/36px var(--font-display);
  letter-spacing: -0.02em;
}

.doc .lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.doc h2 {
  margin: 30px 0 10px;
  font: 600 17px/24px var(--font-display);
  color: var(--text);
}

.doc h3 {
  margin: 20px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.doc p,
.doc li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.doc p {
  margin: 0 0 12px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--text);
}

.doc a {
  color: var(--accent);
}

.doc a:hover {
  text-decoration: underline;
}

.doc .meta-note {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 400 11px/1.7 var(--font-mono);
  color: var(--text-3);
}

.doc code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-high);
  font: 12px var(--font-mono);
  color: var(--text);
}
