/* ==========================================================
   扩展样式：二维码 / 页脚链接 / 富文本内容 / 通用板块 / 详情页
   与原站 styles.css 配合使用，不覆盖其设计令牌
   ========================================================== */

/* ---------- 页脚二维码 ---------- */
.footer-qr .qr-img {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3e9f3;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(8, 24, 60, 0.12);
}

/* ---------- 页脚底部右侧链接 ---------- */
.footer-bottom .fb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom .fb-links {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.footer-bottom .fb-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.2s;
}
.footer-bottom .fb-links a:hover {
  color: #fff;
}
.footer-bottom .fb-links .sep {
  color: rgba(255, 255, 255, 0.18);
}

/* ---------- 富文本块（后台粘贴的图文内容） ---------- */
.rich-block {
  font-size: 16px;
  line-height: 1.95;
  color: #3f4753;
  max-width: 980px;
  margin: 26px auto 0;
}
.rich-block.center {
  text-align: center;
  margin-bottom: 8px;
}
.rich-block > *:first-child {
  margin-top: 0;
}
.rich-block > *:last-child {
  margin-bottom: 0;
}
.rich-block p {
  margin: 0 0 16px;
}
.rich-block h1,
.rich-block h2,
.rich-block h3,
.rich-block h4 {
  color: #0f2a5e;
  line-height: 1.4;
  margin: 30px 0 14px;
  font-weight: 800;
}
.rich-block h1 { font-size: 28px; }
.rich-block h2 { font-size: 24px; }
.rich-block h3 { font-size: 20px; }
.rich-block h4 { font-size: 17px; }
.rich-block ul,
.rich-block ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.rich-block li {
  margin-bottom: 8px;
}
.rich-block a {
  color: #076ce0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 18px auto;
}
.rich-block figure {
  margin: 22px 0;
}
.rich-block figcaption {
  text-align: center;
  font-size: 13px;
  color: #8b93a1;
  margin-top: 8px;
}
.rich-block blockquote {
  border-left: 4px solid #076ce0;
  background: #f4f8ff;
  margin: 22px 0;
  padding: 16px 20px;
  color: #33415c;
  border-radius: 0 10px 10px 0;
}
.rich-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}
.rich-block th,
.rich-block td {
  border: 1px solid #e3e9f3;
  padding: 10px 12px;
  text-align: left;
}
.rich-block th {
  background: #f4f8ff;
  color: #0f2a5e;
  font-weight: 700;
}
.rich-block hr {
  border: 0;
  border-top: 1px solid #e3e9f3;
  margin: 30px 0;
}
.rich-block code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* ---------- 视频容器（自适应 16:9） ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 24px auto;
  aspect-ratio: 16 / 9;
  background: #0b1b33;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(8, 24, 60, 0.16);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(3, 14, 33, 0.55);
  box-shadow: 0 20px 50px rgba(2, 10, 28, 0.45);
}
.hero-video video,
.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

/* ---------- 通用统计条 ---------- */
.gen-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.gen-stat {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 32, 68, 0.05);
}
.gen-stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #076ce0;
  line-height: 1.1;
}
.gen-stat span {
  display: block;
  margin-top: 8px;
  color: #4b5563;
  font-size: 14px;
}
.gen-stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #97a1b0;
}

/* ---------- 通用卡片 ---------- */
.gen-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.gen-card {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: 0.28s;
  box-shadow: 0 4px 16px rgba(15, 32, 68, 0.04);
}
.gen-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 32, 68, 0.12);
  border-color: #cfe1fb;
}
.gen-card-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #eef4ff;
}
.gen-card-img img,
.gen-card-img video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.gen-card-img iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}
.gen-card-emoji {
  font-size: 30px;
  margin-bottom: 12px;
}
.gen-card h3 {
  font-size: 19px;
  color: #0f2a5e;
  margin-bottom: 10px;
}
.gen-card-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 10px;
}
.gen-card-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.9;
  flex: 1;
}
.gen-card-text p {
  margin: 0 0 10px;
}
.gen-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- 图集 ---------- */
.gen-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.gen-gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.28s;
}
.gen-gallery-item:hover {
  box-shadow: 0 16px 36px rgba(15, 32, 68, 0.12);
  transform: translateY(-4px);
}
.gen-gallery-item img,
.gen-gallery-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gen-gallery-item iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}
.gen-gallery-item figcaption {
  padding: 14px 16px;
  font-size: 14px;
  color: #33415c;
  line-height: 1.7;
}
.gen-gallery-item figcaption span {
  color: #6b7280;
}

/* ---------- 视频区 ---------- */
.gen-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 34px;
}
.gen-video-item .video-frame {
  margin: 0;
}
.gen-video-title {
  margin-top: 14px;
  font-weight: 700;
  color: #0f2a5e;
  font-size: 16px;
}
.gen-video-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 6px;
}

/* ---------- 区块配图 ---------- */
.gen-cover {
  max-width: 980px;
  margin: 30px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 32, 68, 0.12);
}
.gen-cover img {
  width: 100%;
  display: block;
}

/* ---------- 产品卡片补充 ---------- */
.prod-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eef4ff;
}
.prod-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.prod-price {
  font-size: 20px;
  font-weight: 800;
  color: #e0533b;
  margin: 4px 0 14px;
}

/* ---------- 客户案例补充 ---------- */
.case-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #0b1b33;
}
.case-video video,
.case-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.quote-text {
  padding: 26px 24px;
  font-size: 15px;
  line-height: 1.9;
  color: #33415c;
}
.news-title {
  font-size: 16px;
  color: #3f4753;
}
.news-image {
  max-width: 100%;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}
.about-image img {
  width: 100%;
  border-radius: 14px;
  margin-top: 24px;
}
.qr-inline {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3e9f3;
  display: block;
  margin-bottom: 10px;
}
.pain-ic.emoji,
.sol-ic-emoji {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ---------- 详情页 ---------- */
.detail-hero {
  background: linear-gradient(160deg, #0f2a5e 0%, #0a56c4 100%);
  color: #fff;
  padding: 150px 0 70px;
}
.detail-hero .crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.detail-hero .crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.detail-hero h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.25;
}
.detail-hero .detail-sub {
  margin-top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
  line-height: 1.8;
}
.detail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.detail-body {
  padding: 60px 0 80px;
}
.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

@media (max-width: 1080px) {
  .gen-cards,
  .gen-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
@media (max-width: 640px) {
  .footer-qr .qr-img {
    width: 96px;
    height: 96px;
  }
  .rich-block {
    font-size: 15px;
  }
  .gen-stats {
    grid-template-columns: 1fr 1fr;
  }
  .gen-stat strong {
    font-size: 26px;
  }
}
