/* ==========================================================================
   AntCMS - 视频专区列表页专属样式 (video-list.css)
   基于 demo videos.html 模块化提取
   包含：面包屑、Hero标题区、侧边栏分类树、顶部精选视频展台、
         分类筛选胶囊、3列视频卡片网格、分页组件、视频SEO介绍、
         相关产品技术卡片与常见问题FAQ
   ========================================================================== */

/* ===== 面包屑导航 ===== */
.breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted, #667085);
}
.breadcrumb a {
  color: inherit;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--brand, #0f62fe);
}
.breadcrumb .crumb-sep {
  margin: 0 7px;
  color: #98a2b3;
}
.breadcrumb .crumb-cur {
  color: var(--text, #101828);
  font-weight: 600;
}

/* ===== 首屏 Hero 区域 ===== */
.hero {
  padding: 8px 0 30px;
  border-bottom: 1px solid #eef2f6;
}
.hero small {
  display: block;
  color: var(--brand, #0f62fe);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 8px 0 10px;
  color: var(--text, #101828);
  font-weight: 800;
}
.hero p {
  max-width: 800px;
  color: var(--muted, #667085);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== 主体布局与侧边栏 ===== */
.main {
  padding: 38px 0 70px;
}
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.side {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  padding-bottom: 10px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
}
.sidehead {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line, #e4e7ec);
}
.sidehead small {
  display: block;
  color: var(--brand, #0f62fe);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.sidehead h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 3px 0 0;
  color: var(--text, #101828);
}
.side-search-form {
  padding: 12px 14px 4px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  font-size: 13px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}
.search-input-wrap input:focus {
  border-color: var(--brand, #0f62fe);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}
.search-input-wrap button {
  position: absolute;
  right: 6px;
  border: 0;
  background: transparent;
  color: #667085;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.search-input-wrap button:hover {
  color: var(--brand, #0f62fe);
}
.sg {
  margin: 12px 10px;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  overflow: hidden;
}
.sg h3 {
  margin: 0;
  padding: 11px 14px;
  background: linear-gradient(#f8fbff, #f3f7fd);
  font-size: 13px;
  font-weight: 800;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sg h3 i {
  color: var(--brand, #0f62fe);
  font-size: 12px;
}
.sg a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 10px 16px;
  font-size: 13px;
  color: #475467;
  border-top: 1px dashed #f0f2f5;
  transition: all 0.2s ease;
}
.sg a span {
  flex: 1;
}
.sg a em {
  font-style: normal;
  font-size: 11.5px;
  color: #98a2b3;
  font-weight: 600;
  margin-right: 6px;
}
.sg a.active em {
  color: var(--brand, #0f62fe);
  font-weight: 800;
}
.sg a:after {
  content: "›";
  color: #98a2b3;
  font-size: 15px;
  transition: transform 0.2s;
}
.sg a.active,
.sg a:hover {
  color: var(--brand, #0f62fe);
  font-weight: 700;
  background: #f8fbff;
}
.sg a.active:after,
.sg a:hover:after {
  transform: translateX(3px);
  color: var(--brand, #0f62fe);
}
/* ===== 产品形态折叠展开 (方案 A) ===== */
.sg-more-list {
  display: none;
}
.sg-more-list.expanded {
  display: block;
  animation: sgFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sgFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-toggle-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 20px);
  margin: 8px 10px 4px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--brand, #0f62fe);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-toggle-more:hover {
  background: #eff6ff;
  border-color: var(--brand, #0f62fe);
}
.btn-toggle-more .is-hidden {
  display: none !important;
}

/* ===== 顶部精选视频展台 (Featured) - 方案1：左右自动等高严丝合缝 ===== */
.featured {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}
.fv,
.mini,
.vt {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #293b56, #0d1625);
  color: #fff;
}
.fv {
  height: 100%;
  min-height: 280px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 24px rgba(13, 22, 37, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fv:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13, 22, 37, 0.18);
}
.fs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
}
.mini {
  border-radius: 16px;
  height: 100%;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 6px 18px rgba(13, 22, 37, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 22, 37, 0.16);
}

.fv:after,
.mini:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 37, 0) 30%, rgba(13, 22, 37, 0.82) 100%);
  z-index: 2;
  pointer-events: none;
}

.fv:before,
.mini:before,
.vt:before {
  content: "▶";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.fv:before {
  left: 24px;
  top: 24px;
  width: 52px;
  height: 52px;
  font-size: 20px;
}
.mini:before {
  left: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.fv:hover:before,
.mini:hover:before {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.38);
}
.fv img,
.fv video,
.mini img,
.mini video,
.vt img,
.vt video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
  transition: transform 0.3s ease;
}
.fv:hover img,
.fv:hover video,
.mini:hover img,
.mini:hover video,
.card:hover .vt img,
.card:hover .vt video {
  transform: scale(1.04);
}
.vc {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.vc small {
  color: #b9cdf1;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.vc h3 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.35;
  color: #fff;
  font-weight: 800;
}
.mini .vc {
  left: 18px;
  right: 18px;
  bottom: 15px;
}
.mini .vc h3 {
  font-size: 16px;
}

/* ===== 横向滑动快捷胶囊条 (Quick Pills) ===== */
.quick-pill-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-pill-strip::-webkit-scrollbar {
  display: none;
}
.pill-item {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.pill-item:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.pill-item.active {
  background: var(--brand, #0f62fe);
  color: #fff;
  border-color: var(--brand, #0f62fe);
  box-shadow: 0 2px 8px rgba(15, 98, 254, 0.2);
}

/* ===== 内容区头部与筛选胶囊 ===== */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.head h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
  color: var(--text, #101828);
}
.head p {
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 4px 0 0;
}
.head .count {
  font-size: 13px;
  color: var(--muted, #667085);
  white-space: nowrap;
}
.head .count strong {
  color: var(--brand, #0f62fe);
  font-size: 15px;
}

/* ===== 已激活筛选标签条 (Active Filters Strip) ===== */
.active-filter-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  margin-bottom: 20px;
}
.strip-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: var(--brand, #0f62fe);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.chip-item:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.chip-reset {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}
.chip-reset:hover {
  color: #ef4444;
}

/* ===== 视频卡片角标与空状态 ===== */
.video-corner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  pointer-events: none;
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.badge-tag.real {
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-tag.test {
  background: rgba(15, 98, 254, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-tag.line {
  background: rgba(16, 185, 129, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.video-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed var(--line, #e4e7ec);
  border-radius: 18px;
}
.video-empty-state .empty-icon {
  font-size: 42px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.video-empty-state h3 {
  font-size: 17px;
  color: var(--text, #101828);
  margin: 0 0 6px;
}
.video-empty-state p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* ===== 3列视频卡片网格 (Grid) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}
.card>a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vt {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.vt:before {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  font-size: 16px;
  color: #fff;
}
.card:hover .vt:before {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.38);
}
.body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat {
  font-size: 11px;
  color: var(--brand, #0f62fe);
  font-weight: 900;
  text-transform: uppercase;
}
.body h3 {
  font-size: 16px;
  line-height: 1.45;
  margin: 6px 0 8px;
  color: var(--text, #101828);
  font-weight: 700;
}
.body p {
  font-size: 12.5px;
  color: var(--muted, #667085);
  margin: 0 0 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.tags span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
}
.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--brand, #0f62fe);
  font-weight: 800;
}

/* ===== 分页组件 (Pagination) ===== */
.pg {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 36px;
}
.pg a,
.pg span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #475467;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}
.pg a:hover {
  border-color: var(--brand, #0f62fe);
  color: var(--brand, #0f62fe);
}
.pg .on {
  background: var(--brand, #0f62fe);
  color: #fff;
  border-color: var(--brand, #0f62fe);
}

/* ===== 通用板块样式与 SEO 说明区 ===== */
.sec {
  padding: 64px 0;
}
.soft {
  background: var(--soft, #f7f9fc);
}
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.sh small {
  display: block;
  color: var(--brand, #0f62fe);
  font-weight: 900;
  letter-spacing: 1.1px;
  font-size: 12px;
  text-transform: uppercase;
}
.sh h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 0;
  color: var(--text, #101828);
}

.seo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.seo p {
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 14px;
}
.note {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.note h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #101828);
}
.note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.85;
}
.note ul li {
  margin-bottom: 4px;
}

/* ===== 相关产品与技术内容 (Links) ===== */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lc {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  display: block;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lc:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.lc small {
  color: var(--brand, #0f62fe);
  font-weight: 900;
  font-size: 12px;
  display: block;
}
.lc h3 {
  font-size: 17px;
  margin: 8px 0 6px;
  font-weight: 800;
  color: var(--text, #101828);
}
.lc p {
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 0;
  line-height: 1.6;
}

/* ===== 常见问题 (FAQ) ===== */
.faq details {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 14px;
  padding: 16px 20px;
  background: #fff;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details:hover {
  border-color: #cbd5e1;
}
.faq details[open] {
  border-color: var(--brand, #0f62fe);
  box-shadow: 0 4px 14px rgba(15, 98, 254, 0.06);
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--text, #101828);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  color: #98a2b3;
  font-size: 18px;
  transition: transform 0.2s;
}
.faq details[open] summary:after {
  content: "－";
  color: var(--brand, #0f62fe);
}
.faq p {
  font-size: 14px;
  color: var(--muted, #667085);
  margin: 10px 0 0;
  line-height: 1.7;
}

/* ===== 无刷新即时筛选动态加载状态 (AJAX Instant Filter) ===== */
.video-main-section {
  position: relative;
}
.filter-loading-bar {
  display: none;
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f62fe 0%, #60a5fa 50%, #0f62fe 100%);
  background-size: 200% 100%;
  animation: filterShimmer 1s infinite linear;
  z-index: 25;
  border-radius: 999px;
}
.video-main-section.is-loading .filter-loading-bar {
  display: block;
}
.video-main-section.is-loading #filterGrid,
.video-main-section.is-loading #filterPills,
.video-main-section.is-loading #filterChipsWrap,
.video-main-section.is-loading #filterPaginationWrap {
  opacity: 0.35;
  filter: blur(0.5px);
  pointer-events: none;
  transition: opacity 0.16s ease, filter 0.16s ease;
}
#filterSidebar.is-loading {
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.16s ease;
}
@keyframes filterShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================================
   自适应响应式规范
   ========================================================================== */
@media (max-width: 1000px) {
  .container,
  .container.layout {
    width: min(1220px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .side {
    position: static;
    width: 100%;
  }
  .featured {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fv {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .fs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 12px;
  }
  .mini {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .container.layout {
    width: calc(100% - 28px);
    margin-left: auto;
    margin-right: auto;
  }
  .breadcrumb {
    padding: 14px 0;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 13.5px;
  }
  .main {
    padding: 20px 0 48px;
  }
  .fs {
    grid-template-columns: 1fr;
  }
  .head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .body {
    padding: 14px;
  }
  .body h3 {
    font-size: 15px;
    min-height: auto;
  }
  .body p {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 8px;
  }
  .tags span {
    display: inline-block;
  }
  .sec {
    padding: 40px 0;
  }
  .sh {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .sh h2 {
    font-size: 22px;
  }
  .links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
