/* ==========================================================
   产品详情页样式 product-detail.css
   2026.05 v1.0
   ========================================================== */

/* ===== 面包屑 ===== */
.detail-breadcrumb {
  padding: 18px 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.detail-breadcrumb a {
  color: #6b7280;
  transition: color .25s ease;
}
.detail-breadcrumb a:hover { color: #0e4081; }
.detail-breadcrumb .sep { margin: 0 6px; color: #c0c5cc; }
.detail-breadcrumb .current { color: #1b2c42; }

/* ===== 主体两栏布局 ===== */
/* 详情页主容器收窄,避免太宽不聚焦 */
.gf7 > .containe {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.detail-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 50px;
  width: 100%;
}
.detail-main {
  flex: 1 1 auto;
  min-width: 0;          /* 关键:让 flex 子元素能正确缩小,不会撑破父容器 */
  width: 0;              /* 关键:配合 flex: 1 实现真正的响应式收缩 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 32px 36px;
  box-sizing: border-box;
  overflow: hidden;      /* 防止内部元素(如表格、长 URL)撑破布局 */
}
.detail-side {
  width: 300px;
  flex-shrink: 0;
}

/* 强制正文里所有元素不撑破容器 */
.detail-content,
.detail-content * {
  max-width: 100%;
  box-sizing: border-box;
}
.detail-content img,
.detail-content table,
.detail-content pre,
.detail-content iframe {
  max-width: 100%;
  height: auto;
}
.detail-content .table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}



@media (max-width: 1024px) {
  .detail-layout { flex-direction: column; gap: 20px; }
  .detail-side { width: 100%; }
  .detail-main {
    padding: 24px 20px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-main { padding: 18px 14px; }
  .gf7 > .containe { padding: 0 12px; }
}

/* ===== 文章头部:标题 + 元信息 ===== */
.detail-header {
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #1b2c42;
  line-height: 1.4;
  margin: 0 0 14px;
}
@media (max-width: 768px) {
  .detail-title { font-size: 20px; }
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #8d95a0;
}
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.detail-meta i {
  font-size: 13px;
  color: #b0b6bf;
}

/* ===== 导读 ===== */
.detail-intro {
  background: linear-gradient(135deg, #f0f7ff 0%, #f7f8fa 100%);
  border-left: 3px solid #00d4ff;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: #4e5968;
  line-height: 1.75;
  margin-bottom: 24px;
}
.detail-intro-label {
  color: #0e4081;
  font-weight: 600;
  margin-right: 6px;
}

/* ===== 正文内容 ===== */
.detail-content {
  font-size: 15px;
  line-height: 1.85;
  color: #2c3e50;
}
.detail-content p { margin: 0 0 1em; }
.detail-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 6px;
  margin: 12px 0;
}
.detail-content h2,
.detail-content h3,
.detail-content h4 {
  color: #1b2c42;
  margin: 1.6em 0 0.8em;
  font-weight: 600;
}
.detail-content h2 {
  font-size: 20px;
  padding-left: 12px;
  border-left: 4px solid #00d4ff;
}
.detail-content h3 { font-size: 17px; }
.detail-content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 18px 0;
  table-layout: auto;
  font-size: 14px;
}
.detail-content table th,
.detail-content table td {
  border: 1px solid #e0e6ed;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
}
.detail-content table th {
  background: linear-gradient(135deg, #0e4081 0%, #1a5cb8 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.detail-content table tr:nth-child(even) td {
  background: #fafbfc;
}
.detail-content table tr:hover td {
  background: #f0f7ff;
  transition: background .25s ease;
}

/* 在前面 detail-content table 那一段(改动 1 里的)需要同步去掉 display:block */

/* ===== 上一篇/下一篇 ===== */
.detail-skip {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eef0f4;
}
.detail-skip .skip-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 14px 18px;
  transition: all .3s ease;
  overflow: hidden;
}
.detail-skip .skip-item:hover {
  background: #eef5ff;
  transform: translateY(-2px);
}
.detail-skip .skip-label {
  font-size: 12px;
  color: #8d95a0;
  margin-right: 12px;
  flex-shrink: 0;
}
.detail-skip .skip-item a {
  color: #1b2c42;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.detail-skip .skip-next { text-align: right; }
.detail-skip .skip-next .skip-label {
  margin-right: 0;
  margin-left: 12px;
  order: 2;
}

@media (max-width: 640px) {
  .detail-skip { flex-direction: column; }
}

/* ===== 免责声明 ===== */
.detail-disclaimer {
  margin-top: 22px;
  padding: 10px 14px;
  background: #fafbfc;
  border-radius: 6px;
  font-size: 12px;
  color: #8d95a0;
  line-height: 1.7;
}
.detail-disclaimer a { color: #6b7280; word-break: break-all; }

/* ===== 猜你喜欢 ===== */
.detail-maylike {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 24px 36px;
  margin-top: 20px;
}
.detail-maylike h3 {
  font-size: 17px;
  color: #1b2c42;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
  font-weight: 600;
}
.detail-maylike h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #00d4ff;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}
.detail-maylike ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-maylike li {
  padding-left: 16px;
  background: url(../images/i26.png) no-repeat 0 center;
  line-height: 2.4;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-maylike li a {
  color: #4e5968;
  transition: color .25s ease;
}
.detail-maylike li a:hover { color: #0e4081; }

@media (max-width: 640px) {
  .detail-maylike ul { grid-template-columns: 1fr; }
  .detail-maylike { padding: 20px; }
}

/* ==========================================================
   右侧栏样式
   ========================================================== */

/* ===== 通用卡片容器 ===== */
.side-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.side-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1b2c42;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f4;
  position: relative;
  padding-left: 12px;
}
.side-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 3px;
  height: 16px;
  background: #00d4ff;
  border-radius: 2px;
}

/* ===== 侧栏 - 栏目导航 ===== */
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li { border-bottom: 1px dashed #eef0f4; }
.side-nav li:last-child { border-bottom: none; }
.side-nav li a {
  display: block;
  padding: 12px 8px 12px 4px;
  color: #4e5968;
  font-size: 14px;
  position: relative;
  transition: all .25s ease;
}
.side-nav li a::after {
  content: "→";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0c5cc;
  font-size: 14px;
  transition: all .25s ease;
}
.side-nav li a:hover,
.side-nav li a.act {
  color: #0e4081;
  padding-left: 12px;
}
.side-nav li a:hover::after,
.side-nav li a.act::after {
  color: #00d4ff;
  right: 4px;
}

/* ===== 侧栏 - 热门推荐 ===== */
.side-hot { list-style: none; padding: 0; margin: 0; }
.side-hot li {
  padding: 12px 0;
  border-bottom: 1px dashed #eef0f4;
}
.side-hot li:last-child { border-bottom: none; }
.side-hot li a {
  display: flex;
  gap: 12px;
  width: 100%;
  color: inherit;
}
.side-hot .pic {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8fa;
}
.side-hot .pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.side-hot .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-hot .info h4 {
  font-size: 13px;
  color: #1b2c42;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-hot li:hover .info h4 { color: #0e4081; }
.side-hot .date {
  font-size: 11px;
  color: #b0b6bf;
  margin-top: 4px;
  font-family: Arial, sans-serif;
}

/* ===== 侧栏 - 最新文章(竖向列表样式,匹配案例页风格)===== */
.side-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-tags a {
  display: -webkit-box;
  padding: 10px 14px;
  background: #f7f8fa;
  color: #4e5968;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 6px;
  transition: all .25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;          /* 改成 3 行 */
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;          /* 长单词强制断行 */
}
.side-tags a:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
  color: #0e4081;
}
/* 第一个/当前文章高亮(可选,如果你想标记当前页) */
.side-tags a.current {
  background: linear-gradient(135deg, #0e4081 0%, #1a5cb8 100%);
  color: #fff;
}

/* ===== 侧栏 - 立即咨询卡片(B2B 转化核心) ===== */
.side-contact {
  background: linear-gradient(135deg, #050f23 0%, #0d1b3a 60%, #1a2f5c 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(5, 15, 35, 0.25);
}
.side-contact::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0,212,255,.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.side-contact::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.side-contact h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  position: relative;
}
.side-contact .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
  position: relative;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  position: relative;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li i {
  width: 30px;
  height: 30px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #00d4ff;
  flex-shrink: 0;
}
.contact-list .phone-num {
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.contact-list a {
  color: inherit;
  transition: color .2s ease;
}
.contact-list a:hover { color: #00d4ff; }
.contact-btn {
  display: block;
  text-align: center;
  background: #00d4ff;
  color: #050f23;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all .3s ease;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
}
.contact-btn:hover {
  background: #fff;
  color: #050f23;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* ==========================================================
   附件下载框
   ========================================================== */
.enclosure-action-box {
  margin: 25px 0;
  padding: 20px;
  background: #f7f8fa;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.enclosure-title {
  font-size: 15px;
  font-weight: 600;
  color: #1b2c42;
}
.enclosure-title i { color: #0e4081; margin-right: 6px; }
.enclosure-buttons { display: flex; gap: 12px; }
.btn-action {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-view {
  background-color: #fff;
  color: #495057 !important;
  border: 1px solid #ced4da;
}
.btn-view:hover { background-color: #eef0f4; border-color: #adb5bd; }
.btn-down {
  background-color: #0e4081;
  color: #ffffff !important;
  border: 1px solid #0e4081;
}
.btn-down:hover {
  background-color: #00d4ff;
  border-color: #00d4ff;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}
.btn-action i { margin-right: 6px; }

@media (max-width: 768px) {
  .enclosure-buttons { flex-direction: column; }
  .btn-action { justify-content: center; }
}


/* ==========================================================
   FAQ 可视化样式 (匹配案例页风格)
   ========================================================== */
.detail-faq {
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #eef0f4;
}

.detail-faq-title {
  font-size: 18px;
  font-weight: 600;
  color: #1b2c42;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #00d4ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-faq-title i {
  color: #0e4081;
  font-size: 18px;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px dashed #eef0f4;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1b2c42;
  line-height: 1.65;
}

.faq-question .qa-tag {
  color: #0e4081;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.faq-question .qa-label {
  color: #4e5968;
  flex-shrink: 0;
}

.faq-answer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #4e5968;
}

.faq-answer .qa-tag {
  color: #8d95a0;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.faq-answer .qa-label {
  color: #8d95a0;
  flex-shrink: 0;
}

.faq-answer .qa-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .detail-faq-title { font-size: 16px; }
  .faq-question { font-size: 14px; }
  .faq-answer { font-size: 13px; }
}