/* algo-v2 aligned to avcit-algo-market-v2 */
.algo-page { background: #f4f6fb; color: #404040; min-height: 100vh; }
.algo-page .algo-hero {
  text-align: center;
  height: 400px;
  min-height: 400px;
  box-sizing: border-box;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #f8fafc;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(195,13,35,0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.18) 0%, transparent 35%),
    linear-gradient(135deg, #282323 0%, #1e1b4b 50%, #282323 100%);
}
.algo-page .algo-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.algo-page .algo-hero > *,
.algo-page .algo-hero .hero-scroll-fx-wrap > * { position: relative; z-index: 1; }
.algo-page .algo-hero .breadcrumb {
  font-size: var(--av-fs-caption, 13px); color: rgba(255,255,255,0.55); margin: 0 0 20px;
  display: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0;
}
.algo-page .algo-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.algo-page .algo-hero .breadcrumb a:hover { color: #fff; }
.algo-page .algo-hero .breadcrumb .crumb-sep { margin: 0 8px; color: rgba(255,255,255,0.35); }
.algo-page .algo-hero .breadcrumb .crumb-current { color: rgba(255,255,255,0.92); }
.algo-page .algo-hero .breadcrumb .crumb-back { font-weight: 400; color: #fff; margin-right: 4px; }
.algo-page .algo-hero .breadcrumb .crumb-back:hover { color: #ffb4bb; }
.algo-page .algo-hero .hero-scroll-fx-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.algo-page .algo-hero h1 {
  font-size: clamp(28px, 4vw, 32px);
  font-weight: 400;
  margin: 0 auto 16px;
  max-width: min(720px, 100%);
  width: auto;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.algo-page .algo-hero .sub {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  max-width: min(640px, 100%);
  width: auto;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.algo-page .algo-hero-count { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.algo-page .algo-hero .search-wrap { margin: 20px auto 0; max-width: 800px; padding: 0 8px; width: 100%; box-sizing: border-box; }
.algo-page .search-input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(15,23,42,.12);
  padding: 0 20px 0 48px; font-size: 14px; color: #404040; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
}
.algo-page .search-input:focus { outline: none; border-color: rgba(195,13,35,.5); }
.algo-page .hot-tags { margin: 16px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.algo-page .hot-tags[hidden] { display: none !important; }
.algo-page .hot-tag[hidden] { display: none !important; }
.algo-page .hot-tag {
  font-size: var(--av-fs-caption, 13px); padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.14);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.algo-page .hot-tag:hover { background: rgba(195,13,35,.15); border-color: rgba(195,13,35,.5); color: #fff; }
/* 筛选栏样式统一见 filter-v2.css */
.algo-page .algo-grid {
  max-width: var(--site-maxw); margin: 0 auto; padding: 0 0 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 20px; row-gap: 0;
}
.algo-page .algo-card {
  background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  margin-bottom: 16px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .45s ease, opacity .45s ease;
}
.algo-page .algo-card.is-deferred { display: none !important; }
.algo-page .algo-card.is-reveal {
  opacity: 0;
  transform: translateY(28px);
}
.algo-page .algo-card.is-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.algo-page .algo-card.is-in:hover {
  border-color: rgba(195,13,35,.35); background: #fff5f6; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15,23,42,.1);
}
.algo-page .algo-load-sentinel {
  grid-column: 1 / -1;
  height: 1px;
  margin: 8px 0 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .algo-page .algo-card.is-reveal,
  .algo-page .algo-card.is-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
}
.algo-page .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 14px 16px;
  background-color: #f0f2f6;
  overflow: hidden;
}
.algo-page .card-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 0;
  background: #f0f2f6;
}
.algo-page .card-img.is-empty {
  align-items: center;
  justify-content: center;
  padding: 0;
  background-image:
    radial-gradient(ellipse 90% 80% at 18% 20%, color-mix(in srgb, var(--ind-color, #3b82f6) 55%, transparent) 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 88% 78%, rgba(195, 13, 35, 0.28) 0%, transparent 52%),
    linear-gradient(145deg, #282323 0%, #404040 48%, #404040 100%);
  background-size: auto;
  background-position: center;
}
.algo-page .card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.02), rgba(15,23,42,.12));
  pointer-events: none;
}
.algo-page .card-img.is-empty::after {
  background: linear-gradient(to bottom, rgba(15,23,42,.08), rgba(15,23,42,.22));
}
.algo-page .card-img-ph {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.algo-page .card-img-ph svg {
  display: block;
  width: 100%;
  height: 100%;
}
.algo-page .card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 0; }
.algo-page .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}
.algo-page .card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.algo-page .title-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 46%;
}
.algo-page .card-type {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.algo-page .hot-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff;
  letter-spacing: 0.02em;
}
.algo-page .card-desc {
  margin: 0;
  font-size: var(--av-fs-caption, 13px);
  color: #475569;
  line-height: 1.6;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.algo-page .card-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.algo-page .tag-industry {
  display: inline-block;
  flex: 0 1 auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ind-color, #3b82f6) 12%, #fff);
  color: color-mix(in srgb, var(--ind-color, #3b82f6) 72%, #0f172a);
  border: 1px solid color-mix(in srgb, var(--ind-color, #3b82f6) 28%, transparent);
}
.algo-page .tag-more {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #64748b;
  letter-spacing: 0.02em;
  user-select: none;
}
/* PC/宽屏：行内最多 4 个行业 tag（第 5 个起隐藏，仍保留 DOM 供笔记本浮层取色） */
@media (min-width: 901px) {
  .algo-page .card-tags > .tag-industry:nth-child(n + 5) {
    display: none;
  }
}
.algo-page .tag-type { display: none !important; }
.algo-page .card-footer,
.algo-page .card-scene { display: none !important; }
.algo-page .algo-empty { grid-column: 1 / -1; text-align: center; padding: 64px 12px; color: #555555; }
@media (max-width: 768px) {
  /* 压过 hero-v2 的 220 居中锁高，避免标题上方空、搜索贴底臃肿 */
  .algo-page .algo-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 52px 16px 16px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .algo-page .algo-hero h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin: 0 auto 8px !important;
    font-weight: 500 !important;
  }
  .algo-page .algo-hero .sub {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .algo-hero .search-wrap {
    margin: 12px auto 0 !important;
    padding: 0 !important;
    max-width: 100%;
  }
  .algo-page .search-input {
    height: 40px;
    border-radius: 8px;
    padding: 0 14px 0 40px;
    font-size: 13px;
    background-size: 16px 16px;
    background-position: 12px center;
  }
  .algo-page .hot-tags {
    margin-top: 10px;
    gap: 6px;
  }
  .algo-page .hot-tag {
    font-size: 11px;
    padding: 4px 10px;
  }
  /* 与 banner 拉开一点，避免「间距太小」 */
  .algo-page #algoFilterBar {
    margin-top: 20px !important;
    margin-bottom: 14px !important;
  }
  /* 双列：对齐产品中心主页；保留 HOT / 简介 / 标签；封面 contain 不裁不变形 */
  .algo-page .algo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 0;
    padding: 0 12px 48px;
  }
  .algo-page .algo-card {
    margin-bottom: 16px;
  }
  .algo-page .card-body { padding: 12px 12px 14px; }
  .algo-page .title-meta { max-width: 48%; }
  .algo-page .card-type {
    font-size: 11px;
    padding: 2px 6px;
  }
  .algo-page .card-title {
    font-size: 14px;
  }
  .algo-page .card-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .card-tags { margin-top: 10px; gap: 4px; }
  .algo-page .tag-industry {
    font-size: 11px;
    padding: 2px 7px;
  }
  .algo-page .card-img {
    aspect-ratio: 16 / 10;
    padding: 8px 8px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f5f8;
  }
  .algo-page .card-img.is-empty {
    padding: 0;
  }
  .algo-page .card-img-ph {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
  }
  .algo-page .card-img::after {
    background: none;
  }
  .algo-page .card-img.is-empty::after {
    background: linear-gradient(to bottom, rgba(15,23,42,.08), rgba(15,23,42,.22));
  }
  .algo-page .card-body {
    padding: 10px 10px 12px;
  }
  .algo-page .title-row {
    margin-bottom: 6px;
    gap: 4px;
  }
  .algo-page .card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .hot-badge {
    font-size: 10px;
    padding: 1px 5px;
  }
  .algo-page .card-desc {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .card-tags {
    gap: 4px;
    margin-bottom: 0;
  }
  .algo-page .tag-industry,
  .algo-page .tag-type {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 100%;
  }
  .algo-page .algo-card.is-in:hover {
    transform: none;
  }
}

/* ===== Algorithm detail (极视角 marketplace 风格) ===== */
.algo-detail-page { background: #fff; color: #404040; }

/* 面包屑条：与方案/案例详情统一 */
.algo-d-bar {
  background: #fff;
  border-bottom: 1px solid #ececec;
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
}
.algo-d-bar-inner {
  max-width: var(--site-maxw);
  height: 60px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.algo-d-crumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-size: var(--av-fs-caption, 13px);
  line-height: 1.2;
  color: #555555;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
}
.algo-d-search {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 248px;
  max-width: min(280px, 42vw);
  margin: 0;
  height: 40px;
  padding: 0 5px 0 16px;
  gap: 8px;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.algo-d-search:focus-within {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.45);
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.algo-d-search-input {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #282323;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.algo-d-search-input::-webkit-search-decoration,
.algo-d-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.algo-d-search-input::placeholder {
  color: #9aa3b2;
}
.algo-d-search-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}
.algo-d-search-btn {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c30d23;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(195, 13, 35, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.algo-d-search-btn:hover {
  background: #a40b1e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(195, 13, 35, 0.35);
}
.algo-d-search-btn:active {
  background: #8f0a1a;
  transform: scale(0.96);
}
.algo-d-search-btn svg {
  display: block;
  width: 14px;
  height: 14px;
}
.algo-detail-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.algo-d-crumb a {
  color: #555555;
  text-decoration: none;
  line-height: 1.2;
  transition: color .2s;
}
.algo-d-crumb a:hover { color: #c30d23; }
.algo-d-crumb > a:not(.algo-d-crumb-home) {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(240px, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.algo-d-crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.algo-d-home-icon {
  display: block;
  flex-shrink: 0;
}
.algo-d-crumb-sep {
  display: inline-block;
  font-size: var(--av-fs-caption, 13px);
  line-height: 1.2;
  color: #b0b0b0;
  flex-shrink: 0;
}
.algo-d-crumb-cur {
  color: #4a4a4a;
  font-weight: 400;
  line-height: 1.2;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(320px, 36vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Banner：高度对齐新闻 page-hero（400px），浅色底 + 双栏 */
.algo-d-hero {
  background:
    radial-gradient(ellipse 70% 80% at 88% 40%, rgba(59,130,246,.08) 0%, transparent 55%),
    linear-gradient(180deg, #e4ecf6 0%, #edf2f8 55%, #f2f5f9 100%);
  height: 400px;
  min-height: 400px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.algo-d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 20%, transparent 75%);
}
.algo-d-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 0;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
}

.algo-d-hero-row {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  min-height: 0;
}
.algo-d-hero-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.algo-d-hero-media {
  flex: 0 0 360px;
  max-width: 42%;
  align-self: center;
}
.algo-d-hero-media img {
  width: 100%;
  height: 225px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
  background: #f0f2f6;
}
.algo-d-hero-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 225px;
  border-radius: 4px;
  background-image:
    radial-gradient(ellipse 90% 80% at 18% 20%, color-mix(in srgb, var(--ind-color, #3b82f6) 55%, transparent) 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 88% 78%, rgba(195, 13, 35, 0.28) 0%, transparent 52%),
    linear-gradient(145deg, #282323 0%, #404040 48%, #404040 100%);
}
.algo-d-hero-media.is-empty .card-img-ph {
  color: rgba(255, 255, 255, 0.55);
  width: 56px;
  height: 56px;
}
/* 详情「相关算法」无图占位 */
.algo-detail-page .sol-rel-card__media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(ellipse 90% 80% at 18% 20%, rgba(59, 130, 246, 0.35) 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 88% 78%, rgba(195, 13, 35, 0.28) 0%, transparent 52%),
    linear-gradient(145deg, #282323 0%, #404040 48%, #404040 100%);
}
.algo-detail-page .sol-rel-card__media.is-empty .card-img-ph {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.algo-detail-page .sol-rel-card__media.is-empty .card-img-ph svg {
  display: block;
  width: 100%;
  height: 100%;
}
.algo-d-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.algo-d-title {
  font-size: 32px;
  font-weight: 400;
  color: #282323;
  margin: 0;
  letter-spacing: .01em;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.algo-d-hot-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--av-fs-caption, 13px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  vertical-align: middle;
}
.algo-d-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.algo-d-pubdate {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}
.algo-d-desc p { margin: 0 0 .45em; }
.algo-d-desc p:last-child { margin-bottom: 0; }

/* 标签：参考极视角竖线分隔 */
.algo-d-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}
.algo-d-tag {
  color: #666;
  text-decoration: none;
  padding: 0 2px;
  transition: color .2s;
  max-width: min(280px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.algo-d-tag:hover { color: #c30d23; }
.algo-d-tag-sep {
  display: inline-block;
  margin: 0 10px;
  color: #c5cdd8;
  font-weight: 300;
}

.algo-d-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.algo-d-cta {
  /* red CTA base + hover sweep in type-v2.css */
  cursor: pointer;
}
.algo-d-cta-outline {
  background: #fff; color: #282323 !important; border: 1px solid rgba(15,23,42,.18);
  box-shadow: none; padding: 10px 24px; border-radius: 4px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, border-color .2s, color .2s;
}
.algo-d-cta-outline:hover { background: #fff; border-color: #c30d23; color: #c30d23 !important; box-shadow: none; }
.algo-d-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 主内容区 */
.algo-d-main { max-width: var(--site-maxw); margin: 0 auto; padding: 0 0 72px; }
.algo-d-section { padding-top: 72px; }
.algo-d-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.algo-d-sec-head--center { justify-content: flex-start; text-align: left; }
.algo-d-sec-head h2 {
  /* section via type-v2 */  margin: 0;
}

/* 应用场景 / FAQ：三列开放式网格 + 红色圆点 */
.algo-d-scene-grid,
.algo-d-faq-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px;
}
.algo-d-scene-item,
.algo-d-faq-cell {
  position: relative; padding-left: 22px;
  min-width: 0;
}
.algo-d-scene-item::before,
.algo-d-faq-cell::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c30d23;
  border: none;
}
.algo-d-scene-item h5,
.algo-d-faq-cell h5,
.algo-d-faq-cell h2.algo-d-faq-q {
  font-size: var(--av-fs-card); font-weight: var(--av-fw-bold); color: var(--av-color-title); margin: 0 0 10px; line-height: var(--av-lh-h2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 2.9em;
  cursor: default;
}
.algo-d-scene-item p,
.algo-d-faq-cell p {
  font-size: 14px; color: #666; line-height: 1.75; margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 5.25em;
  cursor: default;
}
.algo-d-scene-item h5[title],
.algo-d-scene-item p[title],
.algo-d-faq-cell h5[title],
.algo-d-faq-cell p[title] {
  cursor: help;
}

/* 相关案例 / 算法推荐：复用方案详情 sol-rel-carousel，详见 solution-v2.css */
.algo-d-related-sec {
  padding-top: 56px;
}
.algo-d-related-sec .sol-related-panel {
  padding: 28px 28px 24px;
}

/* 相关产品 / 方案：轻量链接卡片 */
.algo-d-link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.algo-d-link-card {
  background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 8px;
  padding: 20px 22px; transition: all .2s; text-decoration: none; color: inherit; display: block;
}
.algo-d-link-card:hover {
  border-color: rgba(195,13,35,.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.algo-d-link-card h4 { font-size: 15px; font-weight: 700; color: #282323; margin: 0 0 8px; }
.algo-d-link-card p { font-size: 13px; color: #666; line-height: 1.65; margin: 0; }

@media (max-width: 1024px) {
  .algo-d-scene-grid,
  .algo-d-faq-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .algo-d-hero-media { flex-basis: 320px; }
  .algo-d-hero-media img { height: 200px; }
}
@media (max-width: 900px) {
  .algo-d-bar-inner { padding: 0 16px; gap: 10px; }
  .algo-d-search {
    width: 196px;
    max-width: 48vw;
    height: 36px;
    padding: 0 4px 0 14px;
    gap: 6px;
  }
  .algo-d-search-input {
    font-size: 12px;
  }
  .algo-d-search-btn {
    width: 28px;
    height: 28px;
  }
  .algo-d-search-btn svg {
    width: 13px;
    height: 13px;
  }
  .algo-d-hero {
    height: auto;
    min-height: 340px;
  }
  .algo-d-inner {
    padding: 24px 16px 28px;
  }
  .algo-d-hero-row {
    flex-direction: column;
    gap: 20px;
  }
  .algo-d-hero-media {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  .algo-d-hero-media img {
    height: 180px;
  }
  .algo-d-title { font-size: 24px; }
  .algo-d-desc {
    -webkit-line-clamp: 5;
  }
  .algo-d-main { padding: 0 16px 56px; }
  .algo-d-section { padding-top: 56px; }
  .algo-d-related-sec { padding-top: 40px; }
  .algo-d-related-sec .sol-related-panel {
    padding: 16px 14px 14px;
    overflow: hidden;
  }
  .algo-d-related-sec .sol-rel-head {
    margin-bottom: 12px;
  }
  .algo-d-related-sec .sol-rel-head__title {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .algo-d-scene-grid,
  .algo-d-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .algo-d-cta { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  .algo-d-cta-row { width: 100%; }
}

/* hidden must beat display:flex on cards */
.algo-page .algo-card[hidden],
.algo-page .algo-card.is-hidden {
  display: none !important;
}

/* 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) {

  .algo-page .algo-hero {
    height: auto;
    min-height: 220px;
    padding: 72px 16px 28px;
  }
  /* 三列：折叠横屏；与 #algoFilterBar 同版心（max-width + 左右 12px） */
  .algo-page .algo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 10px;
    row-gap: 0;
    max-width: var(--site-maxw, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px 48px;
    width: 100%;
    box-sizing: border-box;
  }
  .algo-page .algo-card {
    margin-bottom: 14px;
  }
  .algo-page .card-body { padding: 10px 10px 12px; }
  .algo-page .title-meta { max-width: 52%; }
  .algo-page .card-type {
    font-size: 10px;
    padding: 2px 5px;
  }
  .algo-page .card-title {
    font-size: 13px;
  }
  .algo-page .card-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .card-tags { margin-top: 10px; gap: 4px; }
  .algo-page .tag-industry {
    font-size: 11px;
    padding: 2px 7px;
  }
  .algo-page .card-img {
    aspect-ratio: 16 / 10;
    padding: 8px 8px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f5f8;
  }
  .algo-page .card-img.is-empty {
    padding: 0;
  }
  .algo-page .card-img-ph {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
  }
  .algo-page .card-img::after {
    background: none;
  }
  .algo-page .card-img.is-empty::after {
    background: linear-gradient(to bottom, rgba(15,23,42,.08), rgba(15,23,42,.22));
  }
  .algo-page .card-body {
    padding: 10px 10px 12px;
  }
  .algo-page .title-row {
    margin-bottom: 6px;
    gap: 4px;
  }
  .algo-page .card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .hot-badge {
    font-size: 10px;
    padding: 1px 5px;
  }
  .algo-page .card-desc {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .algo-page .card-tags {
    gap: 4px;
    margin-bottom: 0;
  }
  .algo-page .tag-industry,
  .algo-page .tag-type {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 100%;
  }
  .algo-page .algo-card.is-in:hover {
    transform: none;
  }


  .algo-d-bar-inner { padding: 0 16px; gap: 10px; }
  .algo-d-search {
    width: 172px;
    max-width: 44vw;
    height: 34px;
    padding: 0 3px 0 12px;
    gap: 5px;
  }
  .algo-d-search-btn {
    width: 26px;
    height: 26px;
  }
  .algo-d-search-btn svg {
    width: 12px;
    height: 12px;
  }
  .algo-d-hero {
    height: auto;
    min-height: 260px;
  }
  .algo-d-inner {
    padding: 20px 16px;
  }
  /* 折叠：保持左文右图，勿叠成上文下图 */
  .algo-d-hero-row {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .algo-d-hero-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .algo-d-hero-media {
    flex: 0 0 260px;
    max-width: 36%;
    width: auto;
    align-self: center;
  }
  .algo-d-hero-media img,
  .algo-d-hero-media.is-empty {
    height: 162px;
  }
  .algo-d-title {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .algo-d-pubdate {
    margin-bottom: 8px;
    font-size: 12px;
  }
  .algo-d-desc {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .algo-d-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
  .algo-d-main { padding: 0 16px 56px; }
  .algo-d-section { padding-top: 56px; }
  .algo-d-related-sec { padding-top: 40px; }
  .algo-d-related-sec .sol-related-panel {
    padding: 16px 14px 14px;
    overflow: hidden;
  }
  .algo-d-related-sec .sol-rel-head {
    margin-bottom: 12px;
  }
  .algo-d-related-sec .sol-rel-head__title {
    font-size: 16px;
  }
}

/* rich text unify: 14px / #282323 (algo detail) */\n.algo-detail-page .algo-d-desc {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: #282323 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  max-height: none !important;
}
.algo-detail-page .algo-d-desc :where(p, div, span, li, td, th, font, em, strong, b, i, a, label) {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
  letter-spacing: inherit !important;
}
.algo-detail-page .algo-d-desc :where(strong, b) { font-weight: 700 !important; }
.algo-detail-page .algo-d-desc :where(h1, h2, h3, h4, h5, h6) {
  color: #282323 !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  margin: 1.1em 0 0.55em !important;
  font-weight: 700 !important;
}
.algo-detail-page .algo-d-desc h1 { font-size: 20px !important; }
.algo-detail-page .algo-d-desc h2 { font-size: 18px !important; }
.algo-detail-page .algo-d-desc h3 { font-size: 16px !important; }
.algo-detail-page .algo-d-desc h4,
.algo-detail-page .algo-d-desc h5,
.algo-detail-page .algo-d-desc h6 { font-size: 15px !important; }
.algo-detail-page .algo-d-desc p { margin: 0 0 1em !important; }
.algo-detail-page .algo-d-desc img {
  max-width: 100%;
  height: auto;
  display: block;
}
