/* ==========================================================================
   AntCMS - 视频播放详情页专属样式 (video-detail.css)
   基于 demo video-detail.html 模块化提取
   包含：面包屑、视频Hero标题区、大屏播放器/预览卡片、案例摘要与样品信息、
         测试结果适配说明、样品与贴标效果图、适用场景判断、参考参数表、
         常见问题FAQ、相关案例视频、相关设备、相关技术文章与底部咨询CTA
   ========================================================================== */

/* ===== 面包屑导航 ===== */
.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;
}
.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: 40px;
  line-height: 1.2;
  margin: 8px 0 12px;
  color: var(--text, #101828);
  font-weight: 800;
}
.hero p {
  max-width: 860px;
  color: var(--muted, #667085);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== 核心大屏视频播放器 ===== */
.video-main {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #283a55, #0d1625);
  color: #fff;
  box-shadow: 0 16px 36px rgba(13, 22, 37, 0.16);
}
.video-main:before {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 3;
  pointer-events: none;
}
.video-main:hover:before {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.32);
}
.video-main.has-video:before {
  display: none;
}
.video-main:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 24%, rgba(100, 157, 255, 0.24), transparent 32%);
  pointer-events: none;
}
.video-main.has-video:after {
  display: none;
}
.video-main video,
.video-main iframe,
.video-main img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  background: #000;
}
.video-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.video-caption small {
  color: #b9cdf1;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 13px;
}
.video-caption strong {
  display: block;
  font-size: 20px;
  margin-top: 5px;
  color: #ffffff;
}

/* ===== 案例摘要与样品信息双列卡片 ===== */
.summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  margin-top: 24px;
}
.summary-card,
.info-card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.summary-card h2,
.info-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text, #101828);
}
.summary-card p {
  color: var(--muted, #667085);
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
}
.summary-card .summary-content {
  color: #344054;
  line-height: 1.8;
  font-size: 14.5px;
}
.summary-card .summary-content p {
  margin-bottom: 12px;
}
.info-list {
  display: grid;
  gap: 0;
}
.info-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
  align-items: center;
}
.info-row:last-child {
  border-bottom: 0;
}
.info-row span:first-child {
  color: var(--muted, #667085);
}
.info-row strong,
.info-row span:last-child {
  color: var(--text, #101828);
}
.device-link {
  color: var(--brand, #0f62fe);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.device-link:hover {
  text-decoration: underline;
}

/* ===== 通用板块样式与头部 ===== */
.section {
  padding: 64px 0;
}
.soft {
  background: var(--soft, #f7f9fc);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head small {
  display: block;
  color: var(--brand, #0f62fe);
  font-weight: 900;
  letter-spacing: 1.1px;
  font-size: 12px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 6px 0 0;
  color: var(--text, #101828);
}
.section-head p {
  max-width: 650px;
  margin: 0;
  color: var(--muted, #667085);
  font-size: 14px;
}

/* ===== 01-04 测试结果卡片网格 ===== */
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.result {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}
.result b {
  display: block;
  color: var(--brand, #0f62fe);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.result strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text, #101828);
}
.result span {
  font-size: 13px;
  color: var(--muted, #667085);
  line-height: 1.6;
  display: block;
}

/* ===== 样品与贴标效果 1:1 图片网格 ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.image-card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.sample-image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #edf1f5, #c9d1da);
}
.sample-image:before {
  content: "";
  position: absolute;
  left: 38%;
  top: 18%;
  width: 24%;
  height: 64%;
  border-radius: 18px;
  background: linear-gradient(90deg, #edf2f6, #a8b4c1 50%, #f4f7fa);
}
.sample-image:after {
  content: "SAMPLE";
  position: absolute;
  left: 34%;
  top: 44%;
  width: 32%;
  height: 18%;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #667085;
}
.sample-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.image-card:hover .sample-image img {
  transform: scale(1.03);
}
.image-body {
  padding: 16px;
}
.image-body strong {
  font-size: 16px;
  color: var(--text, #101828);
  display: block;
}
.image-body p {
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ===== 适用场景判断 (✓ 适合 / ! 需注意) ===== */
.judgement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.judge-card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.judge-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text, #101828);
}
.judge-list {
  display: grid;
  gap: 12px;
}
.judge-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #475467;
  line-height: 1.5;
}
.judge-item i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  flex: 0 0 24px;
}
.good i {
  background: #ecfdf3;
  color: var(--ok, #12b76a);
}
.care i {
  background: #fff7e8;
  color: var(--warn, #f79009);
}

/* ===== 本案例参考参数表格 ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
table.case-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
table.case-table th,
table.case-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
}
table.case-table th {
  width: 20%;
  background: #f9fafb;
  color: #475467;
  font-weight: 700;
}
table.case-table td {
  width: 30%;
  color: #101828;
}
table.case-table tr:last-child th,
table.case-table tr:last-child td {
  border-bottom: 0;
}

/* ===== 常见问题 (FAQ) 手风琴 ===== */
.faq details {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 14px;
  padding: 16px 20px;
  background: #fff;
  margin-bottom: 12px;
  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: 12px 0 0;
  line-height: 1.7;
}

/* ===== 相关案例视频网格 ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.related:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.related .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #293b56, #0d1625);
  position: relative;
  overflow: hidden;
}
.related .thumb img,
.related .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.related:hover .thumb img,
.related:hover .thumb video {
  transform: scale(1.04);
}
.related .thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 1;
}
.related:hover .thumb:after {
  background: rgba(0, 0, 0, 0.25);
}
.related .thumb:before {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.related:hover .thumb:before {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.45);
}
.related-body {
  padding: 16px;
}
.related-body small {
  color: var(--brand, #0f62fe);
  font-weight: 800;
  font-size: 12px;
  display: block;
}
.related-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 0;
  color: var(--text, #101828);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 相关设备网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.product-pic {
  aspect-ratio: 1 / 1;
  position: relative;
  background: linear-gradient(145deg, #edf1f5, #c9d1da);
  overflow: hidden;
}
.product-pic:before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 14%;
  height: 35%;
  border-radius: 14px;
  background: linear-gradient(145deg, #d8dee5, #818d9b);
}
.product-pic:after {
  content: "";
  position: absolute;
  right: 17%;
  top: 18%;
  width: 24%;
  height: 44%;
  border-radius: 10px;
  background: linear-gradient(145deg, #e4e9ef, #8793a1);
}
.product-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.product-card:hover .product-pic img {
  transform: scale(1.04);
}
.product-body {
  padding: 16px;
}
.product-body small {
  color: var(--brand, #0f62fe);
  font-weight: 800;
  font-size: 12px;
  display: block;
}
.product-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 0;
  color: var(--text, #101828);
}

/* ===== 相关技术文章网格 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  padding: 20px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.article-card small {
  color: var(--brand, #0f62fe);
  font-weight: 800;
  font-size: 12px;
  display: block;
}
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 8px 0;
  color: var(--text, #101828);
}
.article-card p {
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 0;
  line-height: 1.6;
}

/* ===== 底部咨询 CTA 横幅 ===== */
.bottom-cta {
  margin: 0 auto 68px;
  background: linear-gradient(135deg, #0f62fe, #1649a7);
  color: #fff;
  border-radius: 24px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 36px rgba(15, 98, 254, 0.18);
}
.bottom-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}
.bottom-cta p {
  margin: 0;
  color: #dbe7ff;
  font-size: 15px;
}
.btn-light {
  background: #ffffff;
  color: #101828;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-light:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
}

/* ==========================================================================
   移动端与平板自适应安全规则 (严格遵守 web_1_template_guide.md 边距规范)
   ========================================================================== */
@media (max-width: 1000px) {
  .container {
    width: min(1220px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }
  .summary-grid,
  .judgement {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
    margin-left: auto;
    margin-right: auto;
  }
  .breadcrumb {
    padding: 14px 0;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
  }
  .section {
    padding: 48px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .image-grid,
  .related-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .table-wrap {
    border-radius: 14px;
  }
  .bottom-cta {
    margin-bottom: 50px;
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom-cta h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .result-grid,
  .image-grid,
  .related-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
