/* ===== Site Filter Bar (unified) =====
 * 全站筛选栏统一视觉：白底卡片 + 左侧标签 + chip 描边选中
 * 覆盖：新闻 / 算法库 / 产品系列 / 工程案例
 */

:root {
  --sf-bg: #fff;
  --sf-border: rgba(15, 23, 42, 0.08);
  --sf-chip-border: rgba(15, 23, 42, 0.1);
  --sf-radius: 8px;
  --sf-chip-radius: 6px;
  --sf-pad: 18px 20px;
  --sf-gap: 16px;
  --sf-chip-gap: 8px;
  --sf-label-size: 13px;
  --sf-label-color: #555555;
  --sf-chip-size: 13px;
  --sf-chip-color: #404040;
  --sf-active: #c30d23;
  --sf-active-bg: rgba(195, 13, 35, 0.06);
  --sf-hover-border: rgba(195, 13, 35, 0.35);
  --sf-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  --sf-shell-bg: #f3f6fc;
}

/* ---------- Shared panel (white card) ---------- */
.ph-series-bar,
.nw-page .news-filter-bar .filter-row,
.algo-page .filters,
.cs-page .filter-section .filter-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--sf-gap);
  padding: var(--sf-pad);
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  box-sizing: border-box;
}

/* ---------- Shared label ---------- */
.ph-series-bar-label,
.nw-page .news-filter-label,
.algo-page .filter-label,
.cs-page .filter-label {
  flex: 0 0 auto;
  padding-top: 7px;
  margin: 0;
  font-size: var(--sf-label-size);
  line-height: 1.4;
  color: var(--sf-label-color);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Shared chip row ---------- */
.ph-series-filter,
.nw-page .news-filter-tabs,
.algo-page .filter-tabs,
.cs-page .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sf-chip-gap);
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- Shared chips ---------- */
.ph-series-chip,
.nw-page .news-filter-bar .tab,
.algo-page .filter-tab,
.cs-page .filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 16px;
  border-radius: var(--sf-chip-radius);
  border: 1px solid var(--sf-chip-border);
  background: #fff;
  color: var(--sf-chip-color);
  font-size: var(--sf-chip-size);
  font-weight: 400;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* 新闻分类 Tab：超长截断（inline-flex 下 text-overflow 对直接文本无效，改 block） */
.nw-page .news-filter-bar .tab {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.ph-series-chip:hover,
.nw-page .news-filter-bar .tab:hover,
.algo-page .filter-tab:hover,
.cs-page .filter-tab:hover {
  border-color: var(--sf-hover-border);
  color: var(--sf-active);
}

.ph-series-chip:focus-visible,
.nw-page .news-filter-bar .tab:focus-visible,
.algo-page .filter-tab:focus-visible,
.cs-page .filter-tab:focus-visible {
  outline: 2px solid var(--sf-active);
  outline-offset: 1px;
}

.ph-series-chip.is-active,
.nw-page .news-filter-bar .tab.active,
.algo-page .filter-tab.active,
.cs-page .filter-tab.active {
  border-color: var(--sf-active);
  color: var(--sf-active);
  background: var(--sf-active-bg);
  font-weight: 500;
}

/* ---------- News sticky shell ---------- */
.nw-page .news-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--sf-shell-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 20px 0 24px;
  box-sizing: border-box;
}
.nw-page .news-filter-bar__inner {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.nw-page .news-filter-bar .filter-row {
  justify-content: space-between;
  gap: 20px 28px;
}
.nw-page .news-filter {
  display: flex;
  align-items: flex-start;
  gap: var(--sf-gap);
  flex: 1 1 auto;
  min-width: 0;
}
.nw-page .news-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}
.nw-page .news-filter-bar .time-pill {
  flex: 0 0 auto;
}
.nw-page .news-filter-bar .search-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 320px;
  height: 38px;
  padding: 0 12px 0 14px;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--sf-chip-border);
  border-radius: var(--sf-radius);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nw-page .news-filter-bar .search-pill:focus-within {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.45);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.nw-page .news-filter-bar .search-pill svg.search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6b7280;
}
.nw-page .news-filter-bar .search-pill input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #282323;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-family: inherit;
}
.nw-page .news-filter-bar .search-pill input::placeholder {
  color: #9aa3b2;
}

/* 新闻列表：桌面 chip 筛选；移动端用下拉浮层（见 #newsFilterBar） */
.nw-page #newsFilterBar.nw-filter-bar {
  display: none;
}

/* ---------- Algo multi-row panel ---------- */
.algo-page .filters {
  flex-direction: column;
  gap: 14px;
  max-width: var(--site-maxw);
  margin: 28px auto 24px;
  padding: var(--sf-pad);
}
.algo-page .filter-group {
  display: flex;
  align-items: flex-start;
  gap: var(--sf-gap);
  margin: 0;
  width: 100%;
}
.algo-page .filter-label {
  min-width: 64px;
}
.algo-page .filter-tab {
  max-width: 160px;
  overflow: hidden;
}
.algo-page .filter-tab-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.algo-page .filter-tab .count {
  flex-shrink: 0;
  font-size: var(--av-fs-caption, 13px);
  opacity: 0.55;
  margin-left: 4px;
  font-weight: 400;
}
.algo-page .filter-tab.active .count {
  opacity: 0.75;
}
.algo-page .filter-tab.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Algo：桌面 chip 筛选；移动端下拉浮层（见 #algoFilterBar） */
.algo-page #algoFilterBar {
  display: none;
}
.algo-filter-bar {
  display: flex;
  gap: 10px;
  max-width: var(--site-maxw);
  margin: 28px auto 24px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}
.algo-filter-trigger {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sf-shadow);
  font: inherit;
  color: #282323;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.algo-filter-trigger-k {
  flex: 0 0 auto;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}
.algo-filter-trigger-v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #282323;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.algo-filter-trigger-ico {
  flex: 0 0 auto;
  color: #94a3b8;
}
.algo-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}
.algo-filter-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}
.algo-filter-sheet-mask {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.algo-filter-sheet.is-open .algo-filter-sheet-mask {
  opacity: 1;
}
.algo-filter-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.algo-filter-sheet.is-open .algo-filter-sheet-panel {
  transform: translateY(0);
}
.algo-filter-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.algo-filter-sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #282323;
}
.algo-filter-sheet-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.algo-filter-sheet-search {
  flex: 0 0 auto;
  padding: 0 16px 12px;
  border-bottom: 1px solid #eceff3;
}
.algo-filter-sheet-search-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  font: inherit;
  font-size: 14px;
  color: #282323;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.algo-filter-sheet-search-input::placeholder {
  color: #94a3b8;
}
.algo-filter-sheet-search-input:focus {
  border-color: rgba(195, 13, 35, 0.45);
  background: #fff;
}
.algo-filter-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0));
}
.algo-filter-sheet-list {
  display: flex;
  flex-direction: column;
}
.algo-filter-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-bottom: 1px solid #eceff3;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #333;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.algo-filter-sheet-item .filter-tab-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.algo-filter-sheet-item.is-hidden {
  display: none;
}
.algo-filter-sheet-empty {
  padding: 28px 18px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}
.algo-filter-sheet-item .count {
  flex-shrink: 0;
  font-size: var(--av-fs-caption, 13px);
  color: #94a3b8;
  margin-left: 8px;
}
.algo-filter-sheet-item.is-active {
  background: #fff5f5;
  color: #c30d23;
  font-weight: 700;
}
.algo-filter-sheet-item.is-active .count {
  color: #c30d23;
  opacity: 0.75;
}
body.algo-filter-sheet-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .algo-filter-sheet-panel {
    left: 50%;
    right: auto;
    width: min(480px, calc(100% - 32px));
    transform: translate(-50%, 100%);
  }
  .algo-filter-sheet.is-open .algo-filter-sheet-panel {
    transform: translate(-50%, 0);
  }
}

/* ---------- Product series bar extras ---------- */
.ph-series-bar {
  margin: 0 0 28px;
}
.ph-series-bar-label::before,
.ph-series-bar-label::after,
.ph-series-bar.is-filter-busy .ph-series-bar-label::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* ---------- Case filter shell ---------- */
.cs-page .filter-section {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--sf-shell-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 20px 0 24px;
  box-shadow: none;
}
.cs-page .filter-section .filter-wrap {
  max-width: var(--site-maxw);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.cs-page .filter-section .filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sf-gap);
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
/* 赛道列表：#csCaseList 通栏壳；列表内容自带 max-width，避免 100vw 挤出横向滚动 */
.cs-page #csCaseList {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.cs-page .filter-section.is-search-only {
  position: sticky;
  top: 64px;
  z-index: 90;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 16px 0;
  background: var(--sf-shell-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.is-search-only .filter-wrap {
  display: flex;
  align-items: center;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.is-search-only .filter-row--search-only {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
}
.cs-page .filter-section.is-search-only .filter-search-meta {
  display: none;
}
.cs-page .filter-section.is-search-only .search-box {
  position: relative;
  margin-left: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.cs-page .filter-section.is-search-only .search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: 8px;
  border: 1px solid var(--sf-chip-border);
  background: #f8fafc;
  font-size: 15px;
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.is-search-only .search-box input::placeholder {
  color: #94a3b8;
}
.cs-page .filter-section.is-search-only .search-box input:focus {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.4);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.cs-page .filter-section.is-search-only .search-box .icon {
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}
.cs-page .filter-section.is-search-only .search-box:focus-within .icon {
  color: #c30d23;
}
/* 音视频案例：行业 Tab + 搜索；灰底通栏与纯搜索条一致 */
.cs-page .filter-section.has-industry-tabs {
  position: sticky;
  top: 64px;
  z-index: 90;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 16px 0;
  background: var(--sf-shell-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.has-industry-tabs .filter-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.has-industry-tabs .filter-row--industry {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  position: relative;
}
.cs-page .filter-section.has-industry-tabs .filter-tabs {
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
}
/* 行业下拉：与新闻资讯 time-pill / custom-select 同款，靠搜索框左侧 */
.cs-page .filter-section.has-industry-tabs .filter-row--search-only {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  gap: 12px;
}
.cs-page .filter-section.has-industry-tabs .filter-industry-pill {
  display: none;
  flex: 0 0 auto;
  position: relative;
}
.cs-page .filter-section.has-industry-tabs .filter-row--industry.is-select-mode ~ .filter-row--search-only .filter-industry-pill,
.cs-page .filter-section.has-industry-tabs .filter-industry-pill.is-visible {
  display: inline-block;
}
.cs-page .filter-section.has-industry-tabs .custom-select {
  position: relative;
  display: inline-block;
  min-width: 132px;
}
.cs-page .filter-section.has-industry-tabs .custom-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 14px;
  font-size: 13px;
  color: #404040;
  font-weight: 400;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
  position: relative;
  font-family: inherit;
  box-sizing: border-box;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-page .filter-section.has-industry-tabs .custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 1l1-1 4 4 4-4 1 1-5 5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cs-page .filter-section.has-industry-tabs .custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}
.cs-page .filter-section.has-industry-tabs .custom-select.open .custom-select-trigger,
.cs-page .filter-section.has-industry-tabs .custom-select-trigger:hover {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.35);
}
.cs-page .filter-section.has-industry-tabs .custom-select.open .custom-select-trigger {
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.cs-page .filter-section.has-industry-tabs .custom-select-trigger:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 1px;
}
.cs-page .filter-section.has-industry-tabs .custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  z-index: 120;
}
.cs-page .filter-section.has-industry-tabs .custom-select.open .custom-select-options {
  display: block;
}
.cs-page .filter-section.has-industry-tabs .custom-option {
  font-size: 13px;
  color: #404040;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cs-page .filter-section.has-industry-tabs .custom-option:hover {
  background: #f8fafc;
}
.cs-page .filter-section.has-industry-tabs .custom-option.selected {
  color: #c30d23;
  font-weight: 500;
  background: rgba(195, 13, 35, 0.06);
}
/* Tab 换行时切到下拉（由 case-v2.js 测宽后加 is-select-mode） */
.cs-page .filter-section.has-industry-tabs .filter-row--industry.is-select-mode .filter-tabs {
  display: none;
}
.cs-page .filter-section.has-industry-tabs .filter-row--industry.is-select-mode {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.cs-page .filter-section.has-industry-tabs .search-box {
  position: relative;
  margin-left: 0;
  flex: 0 0 auto;
  width: 220px;
  max-width: 220px;
  min-width: 0;
}
.cs-page .filter-section.has-industry-tabs .search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 8px;
  border: 1px solid var(--sf-chip-border);
  background: #f8fafc;
  font-size: 13px;
  box-shadow: none;
  box-sizing: border-box;
}
.cs-page .filter-section.has-industry-tabs .search-box input::placeholder {
  color: #94a3b8;
}
.cs-page .filter-section.has-industry-tabs .search-box input:focus {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.4);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.cs-page .filter-section.has-industry-tabs .search-box .icon {
  left: 12px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
}
.cs-page .filter-section.has-industry-tabs .search-box:focus-within .icon {
  color: #c30d23;
}
.cs-page #csCaseList:has(.filter-section.has-industry-tabs) .list-section,
.cs-page #csCaseList:has(.filter-section.is-search-only) .list-section {
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px 64px;
  box-sizing: border-box;
}
.cs-page .filter-label {
  min-width: 48px;
}
.cs-page .search-box {
  margin-left: auto;
  position: relative;
  flex: 0 0 auto;
}
.cs-page .search-box input {
  width: 260px;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: var(--sf-radius);
  border: 1px solid var(--sf-chip-border);
  background: #f8fafc;
  font-size: 13px;
  outline: none;
  color: #404040;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cs-page .search-box input:focus {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.45);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.cs-page .search-box .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Legacy case-filter-section (if still used) */
.case-filter-section {
  background: var(--sf-shell-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 20px 0 24px;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: none;
}
.case-filter-section .filter-wrap {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: var(--sf-pad);
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  box-sizing: border-box;
}
.case-filter-section .filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sf-gap);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.case-filter-section .filter-row:last-child {
  margin-bottom: 0;
}
.case-filter-section .filter-label {
  flex: 0 0 auto;
  padding-top: 7px;
  font-size: var(--sf-label-size);
  color: var(--sf-label-color);
  font-weight: 400;
  white-space: nowrap;
  min-width: 60px;
}
.case-filter-section .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sf-chip-gap);
}
.case-filter-section .filter-tab {
  padding: 7px 16px;
  border-radius: var(--sf-chip-radius);
  border: 1px solid var(--sf-chip-border);
  background: #fff;
  color: var(--sf-chip-color);
  font-size: var(--sf-chip-size);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.case-filter-section .filter-tab:hover {
  border-color: var(--sf-hover-border);
  color: var(--sf-active);
}
.case-filter-section .filter-tab.active {
  border-color: var(--sf-active);
  color: var(--sf-active);
  background: var(--sf-active-bg);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nw-page .news-filter-bar .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nw-page .news-filter-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .nw-page .news-filter-bar .search-pill {
    flex: 1 1 220px;
    max-width: none;
  }
  .cs-page .filter-section .filter-row {
    flex-wrap: wrap;
  }
  .cs-page .search-box {
    margin-left: 0;
    width: 100%;
  }
  .cs-page .search-box input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nw-page .news-filter-bar {
    padding: 10px 0 12px;
  }
  .nw-page .news-filter-bar__inner,
  .nw-page .news-filter-bar .filter-row {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nw-page .news-filter-bar .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nw-page #newsFilter {
    display: none !important;
  }
  .nw-page #newsFilterBar.nw-filter-bar {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .nw-page .news-filter-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }
  .nw-page .news-filter-bar .time-pill,
  .nw-page .custom-select {
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 42%;
  }
  .nw-page .news-filter-bar .search-pill {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .algo-page .filters,
  .algo-page #algoFilters {
    display: none !important;
  }

  .algo-page #algoFilterBar {
    display: flex;
    margin: 16px auto;
    padding: 0 12px;
    width: 100%;
    max-width: var(--site-maxw, 1200px);
    box-sizing: border-box;
  }
  .algo-filter-trigger {
    padding: 10px 12px;
  }
  .algo-filter-trigger-k {
    font-size: var(--av-fs-caption, 13px);
  }
  .algo-filter-trigger-v {
    font-size: 13px;
  }

  .ph-series-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
  }
  .ph-series-bar-label {
    padding-top: 0;
  }

  .cs-page .filter-section {
    padding: 12px 0 14px;
  }
  .cs-page .filter-section.is-search-only {
    padding: 12px 0;
  }
  .cs-page .filter-section.has-industry-tabs {
    padding: 12px 0;
  }
  /* 移动端：行业下拉 + 搜索同一行（新闻同款 custom-select） */
  .cs-page .filter-section.has-industry-tabs .filter-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 16px !important;
    gap: 8px !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-row--industry {
    display: none !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-tabs {
    display: none !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-row--search-only {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-industry-pill {
    display: inline-block !important;
    flex: 0 0 auto;
    max-width: 42%;
  }
  .cs-page .filter-section.has-industry-tabs .custom-select {
    min-width: 108px;
    width: 100%;
  }
  .cs-page .filter-section.has-industry-tabs .custom-select-trigger {
    min-height: 36px;
    max-width: none;
    font-size: 13px;
    padding: 0 28px 0 10px;
  }
  .cs-page .filter-section.has-industry-tabs .search-box {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
  }
  .cs-page .filter-section.has-industry-tabs .search-box input {
    height: 36px;
    font-size: 13px;
  }
  .cs-page .filter-section.is-search-only .filter-wrap {
    padding: 0 12px;
    margin: 0 auto;
    width: 100%;
    max-width: var(--site-maxw);
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .cs-page .filter-section.is-search-only .filter-row--search-only {
    flex-direction: row;
    align-items: center;
    gap: 0;
    max-width: none;
    width: 100%;
  }
  .cs-page .filter-section.is-search-only .search-box {
    width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
    min-width: 0;
    max-width: none;
  }
  .cs-page .filter-section.is-search-only .search-box input {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }
  .cs-page #csCaseList:has(.filter-section.has-industry-tabs) .list-section,
  .cs-page #csCaseList:has(.filter-section.is-search-only) .list-section {
    padding: 14px 12px 48px;
  }
  .cs-page .filter-section .filter-wrap {
    padding: 12px 14px;
  }
  .cs-page .filter-section .filter-row {
    flex-direction: column;
    gap: 8px;
  }
  .cs-page .filter-label {
    display: none;
  }
  .cs-page .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cs-page .filter-tabs::-webkit-scrollbar { display: none; }
  .cs-page .filter-tab {
    flex: 0 0 auto;
  }

  .case-filter-section {
    padding: 12px 12px 14px;
  }
}

/* av-fold-mobile */
/* Dual/triple fold (Mate XT unfolded CSS size, or a hinge). Excludes 1920 desktop and 1440x900 laptop. */
@media (min-width: 1200px) and (max-width: 1650px) and (min-aspect-ratio: 4/3) and (max-aspect-ratio: 29/20),
       (min-width: 769px) and (max-width: 1199px) and (max-aspect-ratio: 3/2),
       (min-width: 769px) and (max-width: 1200px) and (max-aspect-ratio: 3/4),
       (spanning: single-fold-vertical),
       (spanning: single-fold-horizontal),
       (horizontal-viewport-segments: 2),
       (horizontal-viewport-segments: 3),
       (vertical-viewport-segments: 2),
       (vertical-viewport-segments: 3) {

  .nw-page .news-filter-bar {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 12px 0 14px;
    background: var(--sf-shell-bg, #f3f6fc);
    box-shadow: none;
  }
  .nw-page .news-filter-bar__inner {
    padding: 0 12px;
    max-width: var(--site-maxw, 1200px);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .nw-page .news-filter-bar .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .nw-page #newsFilter {
    display: none !important;
  }
  .nw-page #newsFilterBar.nw-filter-bar {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .nw-page .news-filter-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }
  .nw-page .news-filter-bar .time-pill,
  .nw-page .custom-select {
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 42%;
  }
  .nw-page .news-filter-bar .search-pill {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }
  .nw-page .news-section {
    padding-top: 20px;
  }
  .nw-page .news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .algo-page .filters,
  .algo-page #algoFilters {
    display: none !important;
  }

  .algo-page #algoFilterBar {
    display: flex;
    margin: 16px auto;
    padding: 0 12px;
    width: 100%;
    max-width: var(--site-maxw, 1200px);
    box-sizing: border-box;
  }
  .algo-filter-trigger {
    padding: 10px 12px;
  }
  .algo-filter-trigger-k {
    font-size: var(--av-fs-caption, 13px);
  }
  .algo-filter-trigger-v {
    font-size: 13px;
  }

  .ph-series-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
  }
  .ph-series-bar-label {
    padding-top: 0;
  }

  .cs-page .filter-section {
    padding: 12px 0 14px;
  }
  .cs-page .filter-section.is-search-only {
    padding: 12px 0;
  }
  .cs-page .filter-section.has-industry-tabs {
    padding: 12px 0;
  }
  /* 移动端：行业下拉 + 搜索同一行（新闻同款 custom-select） */
  .cs-page .filter-section.has-industry-tabs .filter-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 16px !important;
    gap: 8px !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-row--industry {
    display: none !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-tabs {
    display: none !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-row--search-only {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-industry-pill {
    display: inline-block !important;
    flex: 0 0 auto;
    max-width: 42%;
  }
  .cs-page .filter-section.has-industry-tabs .custom-select {
    min-width: 108px;
    width: 100%;
  }
  .cs-page .filter-section.has-industry-tabs .custom-select-trigger {
    min-height: 36px;
    max-width: none;
    font-size: 13px;
    padding: 0 28px 0 10px;
  }
  .cs-page .filter-section.has-industry-tabs .search-box {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
  }
  .cs-page .filter-section.has-industry-tabs .search-box input {
    height: 36px;
    font-size: 13px;
  }
  .cs-page .filter-section.is-search-only .filter-wrap,
  .cs-page .filter-section.has-industry-tabs .filter-wrap,
  .sol-track-list .filter-section.is-search-only .filter-wrap {
    /* 与卡片区同左右 12px，搜索通栏占满 */
    padding: 0 12px !important;
    margin: 0 auto;
    width: 100%;
    max-width: var(--site-maxw);
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 10px !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-row--search-only {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .cs-page .filter-section.is-search-only .search-box,
  .sol-track-list .filter-section.is-search-only .search-box {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .cs-page .filter-section.has-industry-tabs .filter-industry-pill,
  .cs-page .filter-section.has-industry-tabs .custom-select {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
  .cs-page .filter-section.has-industry-tabs .search-box {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .cs-page .filter-section.has-industry-tabs .search-box input,
  .cs-page .filter-section.is-search-only .search-box input {
    width: 100% !important;
    max-width: none !important;
  }
  .cs-page .filter-section.is-search-only .filter-row--search-only {
    flex-direction: row;
    align-items: center;
    gap: 0;
    max-width: none;
    width: 100%;
  }
  .cs-page .filter-section.is-search-only .search-box {
    width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
    min-width: 0;
    max-width: none;
  }
  .cs-page .filter-section.is-search-only .search-box input {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }
  .cs-page #csCaseList,
  .sol-track-list #csCaseList {
    min-height: 0 !important;
    height: auto !important;
  }
  .cs-page #csCaseList:has(.filter-section.has-industry-tabs) .list-section,
  .cs-page #csCaseList:has(.filter-section.is-search-only) .list-section,
  .sol-track-list #csCaseList .list-section,
  body.sol-track-list .list-section {
    padding: 12px 12px 12px !important;
    margin-bottom: 0 !important;
  }
  .cs-page .list-section .case-tag,
  .sol-track-list .list-section .case-tag {
    font-size: 10px !important;
    line-height: 1.25 !important;
    padding: 2px 5px !important;
  }
  .cs-page .list-section .case-img,
  .sol-track-list .list-section .case-img {
    padding: 6px 8px !important;
  }
  .cs-page .filter-section .filter-wrap {
    padding: 12px 14px;
  }
  .cs-page .filter-section .filter-row {
    flex-direction: column;
    gap: 8px;
  }
  .cs-page .filter-label {
    display: none;
  }
  .cs-page .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cs-page .filter-tabs::-webkit-scrollbar { display: none; }
  .cs-page .filter-tab {
    flex: 0 0 auto;
  }

  .case-filter-section {
    padding: 12px 12px 14px;
  }
  /* 折叠屏：浮层锁高 + body 可滚；竖屏改居中弹层（见 fold-adapt-v2，此处作同构兜底） */
  .algo-filter-sheet-panel,
  .nw-page .algo-filter-sheet-panel,
  #newsFilterSheet .algo-filter-sheet-panel,
  #algoFilterSheet .algo-filter-sheet-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: min(68dvh, 640px) !important;
    max-height: min(68dvh, 640px) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%) !important;
    box-sizing: border-box !important;
  }
  .algo-filter-sheet.is-open .algo-filter-sheet-panel,
  .nw-page .algo-filter-sheet.is-open .algo-filter-sheet-panel,
  #newsFilterSheet.is-open .algo-filter-sheet-panel,
  #algoFilterSheet.is-open .algo-filter-sheet-panel {
    transform: translateY(0) !important;
  }
  .algo-filter-sheet-body,
  #newsFilterSheet .algo-filter-sheet-body,
  #algoFilterSheet .algo-filter-sheet-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .algo-filter-sheet-item {
    display: flex !important;
    min-height: 48px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .algo-filter-sheet-item.is-disabled {
    opacity: 0.42 !important;
  }
  @media (max-aspect-ratio: 1/1) {
    .algo-filter-sheet-panel,
    .nw-page .algo-filter-sheet-panel,
    #newsFilterSheet .algo-filter-sheet-panel,
    #algoFilterSheet .algo-filter-sheet-panel {
      left: 20px !important;
      right: 20px !important;
      top: 50% !important;
      bottom: auto !important;
      width: auto !important;
      height: min(72dvh, 680px) !important;
      max-height: min(72dvh, 680px) !important;
      border-radius: 12px !important;
      transform: translateY(calc(-50% + 28px)) scale(0.98) !important;
      opacity: 0;
      pointer-events: none;
    }
    .algo-filter-sheet.is-open .algo-filter-sheet-panel,
    .nw-page .algo-filter-sheet.is-open .algo-filter-sheet-panel,
    #newsFilterSheet.is-open .algo-filter-sheet-panel,
    #algoFilterSheet.is-open .algo-filter-sheet-panel {
      transform: translateY(-50%) scale(1) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }
  }
  .algo-filter-sheet-item.is-hidden {
    display: none !important;
  }
}
