/* ===========================================================
   资讯中心 · 文章页 / 列表页样式
   独立文件，不覆盖原站任何规则
   =========================================================== */

/* ── 顶部导航适配 ──────────────────────────────────────────
   原站 header 是 position:fixed 的透明浮层，靠深色 banner 衬托白字。
   文章页是浅色 hero，必须切成白底深字；且 header.js 会在 scrollTop<20
   时 removeClass('bg_white')，所以不能靠加 class，只能用 body.art-page
   提高选择器权重把样式钉死。
   ───────────────────────────────────────────────────────── */
body.art-page header.header-nav {
  background: #fff;
  box-shadow: 0 2px 16px rgba(16, 42, 84, 0.08);
}
body.art-page header.header-nav .logo1 { display: none; }
body.art-page header.header-nav .logo2 { display: block; }
body.art-page header.header-nav .nav-head .nav-fir h3 a { color: #252b3a; }
body.art-page header.header-nav .nav-head .nav-fir:hover h3 a,
body.art-page header.header-nav .nav-head .nav-fir.active h3 a { color: #2386ee; }
/* 原站未给 .pc_buy 写样式，两张电话图标会同时显示；
   白底上白色图标不可见，这里只保留灰色版 */
body.art-page header.header-nav .pc_buy .white_phone { display: none; }
body.art-page header.header-nav .pc_buy .gray_phone { display: inline-block; }

.art-hero {
  background: linear-gradient(120deg, #eaf4ff 0%, #f5fcff 60%, #ffffff 100%);
  border-bottom: 1px solid #e6eef8;
  /* 82px = fixed header 高度，避免导航压住面包屑 */
  padding: 128px 0 40px;
}
.art-hero-inner {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}
.art-crumb {
  font-size: 14px;
  color: #8794a8;
  margin-bottom: 16px;
}
.art-crumb a { color: #6b7c93; }
.art-crumb a:hover { color: #0064ff; }
.art-crumb span { margin: 0 8px; color: #c2ccd9; }
.art-crumb em { font-style: normal; color: #4a5a72; }

.art-h1 {
  font-size: 34px;
  line-height: 1.38;
  color: #16233a;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 900px;
}
.art-hero-sub {
  font-size: 16px;
  color: #6b7c93;
  margin: 0;
  max-width: 820px;
  line-height: 1.7;
}
.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #8794a8;
}
.art-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #c2ccd9; display: inline-block;
}

/* ---------- 正文布局 ---------- */
.art-body {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 40px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.art-main { min-width: 0; }

.art-content {
  font-size: 16.5px;
  line-height: 1.95;
  color: #2b3a52;
  word-break: break-word;
}
.art-content > *:first-child { margin-top: 0; }
.art-content h1,
.art-content h2,
.art-content h3,
.art-content h4 {
  color: #16233a;
  font-weight: 700;
  line-height: 1.45;
  margin: 38px 0 16px;
}
.art-content h1 { font-size: 27px; }
.art-content h2 {
  font-size: 23px;
  padding-left: 14px;
  border-left: 4px solid #0064ff;
}
.art-content h3 { font-size: 19px; }
.art-content h4 { font-size: 17px; }
.art-content p { margin: 0 0 18px; }
.art-content a {
  color: #0064ff;
  border-bottom: 1px solid rgba(0, 100, 255, .28);
}
.art-content a:hover { border-bottom-color: #0064ff; }
.art-content strong { color: #16233a; font-weight: 700; }
.art-content ul,
.art-content ol { margin: 0 0 20px; padding-left: 24px; }
.art-content li { margin-bottom: 9px; }
.art-content li::marker { color: #0064ff; }
.art-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: #f3f8ff;
  border-left: 4px solid #7fb2ff;
  border-radius: 0 8px 8px 0;
  color: #3d4d66;
}
.art-content blockquote p:last-child { margin-bottom: 0; }
.art-content code {
  background: #f1f4f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #b4325a;
}
.art-content pre {
  background: #16233a;
  color: #e8eef8;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.7;
}
.art-content pre code { background: none; color: inherit; padding: 0; }
.art-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 24px auto;
}
.art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.art-content th,
.art-content td {
  border: 1px solid #e3e8f0;
  padding: 11px 14px;
  text-align: left;
}
.art-content th { background: #f5f8fd; font-weight: 600; color: #16233a; }
.art-content tr:nth-child(even) td { background: #fafcff; }
.art-content hr {
  border: 0;
  border-top: 1px solid #e6eef8;
  margin: 36px 0;
}

/* ---------- 文末 ---------- */
.art-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.art-tags span {
  display: inline-block;
  font-size: 13px;
  color: #4a5a72;
  background: #f1f5fb;
  border-radius: 20px;
  padding: 5px 13px;
}
.art-share { font-size: 13px; color: #97a3b6; }

.art-cta {
  margin-top: 30px;
  padding: 24px 26px;
  background: linear-gradient(120deg, #eef6ff, #f7fbff);
  border: 1px solid #dbe9fb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.art-cta-txt { display: flex; flex-direction: column; gap: 6px; }
.art-cta-txt strong { font-size: 17px; color: #16233a; }
.art-cta-txt span { font-size: 14px; color: #6b7c93; line-height: 1.7; }
.art-cta-btn {
  flex: 0 0 auto;
  background: #0064ff;
  color: #fff !important;
  border: 0 !important;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.art-cta-btn:hover { background: #0049c4; }

/* ---------- 侧栏 ---------- */
.art-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.art-side-card {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 12px;
  padding: 20px 20px 22px;
}
.art-side-h {
  font-size: 15px;
  font-weight: 700;
  color: #16233a;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f4fa;
  position: relative;
}
.art-side-h::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: #0064ff;
}
.art-side-list { list-style: none; margin: 0; padding: 0; }
.art-side-list li { margin-bottom: 13px; }
.art-side-list li:last-child { margin-bottom: 0; }
.art-side-list a {
  font-size: 14px;
  color: #3d4d66;
  line-height: 1.6;
  display: block;
}
.art-side-list a:hover { color: #0064ff; }
.art-side-contact { text-align: center; }
.art-side-contact .art-side-h { text-align: left; }
.art-side-tel { margin: 4px 0 6px; }
.art-side-tel a {
  font-size: 24px;
  font-weight: 700;
  color: #0064ff;
  letter-spacing: .5px;
}
.art-side-name { font-size: 13px; color: #8794a8; margin: 0 0 16px; }
.art-side-qr img {
  width: 132px;
  height: 132px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 8px;
}
.art-side-qr span { font-size: 12.5px; color: #8794a8; }

/* ---------- 列表页 ---------- */
.news-list-wrap {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 40px auto 70px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  padding: 26px 24px 22px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
}
.news-card:hover {
  box-shadow: 0 12px 32px rgba(22, 35, 58, .09);
  transform: translateY(-3px);
  border-color: #cfe1fb;
}
.news-card .cat {
  display: inline-block;
  font-size: 12.5px;
  color: #0064ff;
  background: #eaf2ff;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.news-card h2 {
  font-size: 17px;
  line-height: 1.55;
  color: #16233a;
  font-weight: 700;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .sum {
  font-size: 14px;
  line-height: 1.75;
  color: #6b7c93;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .meta {
  font-size: 13px;
  color: #97a3b6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f2f5fa;
}
.news-card .meta .more { color: #0064ff; }
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: #97a3b6;
  font-size: 15px;
  background: #fff;
  border: 1px dashed #dbe4f0;
  border-radius: 14px;
}

/* ---------- 产品中心：列表页 ---------- */
.prod-group { margin-bottom: 46px; }
.prod-group:last-child { margin-bottom: 0; }
.prod-group-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: #16233a;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid #0064ff;
  line-height: 1.3;
}
.prod-group-h span { font-size: 13px; font-weight: 400; color: #97a3b6; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
}
.prod-card:hover {
  box-shadow: 0 12px 32px rgba(22, 35, 58, .09);
  transform: translateY(-3px);
  border-color: #cfe1fb;
}
.prod-thumb {
  height: 168px;
  background: #f5f8fd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumb-empty span {
  font-size: 30px;
  font-weight: 700;
  color: #b9c8dd;
  letter-spacing: 2px;
}
.prod-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 {
  font-size: 17px;
  line-height: 1.5;
  color: #16233a;
  font-weight: 700;
  margin: 0 0 10px;
}
.prod-body .sum {
  font-size: 13.5px;
  line-height: 1.75;
  color: #6b7c93;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid #f2f5fa;
  font-size: 13px;
  color: #97a3b6;
}
.prod-meta .price { color: #e5484d; font-weight: 700; font-size: 14.5px; }
.prod-meta .more { color: #0064ff; }

/* ---------- 产品中心：详情页 ---------- */
.pd-main { margin-bottom: 30px; }
.pd-cover {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9eef6;
  margin-bottom: 26px;
  background: #f5f8fd;
}
.pd-cover img { width: 100%; display: block; }
.pd-feat {
  list-style: none;
  margin: 0 0 26px;
  padding: 22px 24px;
  background: #f7faff;
  border: 1px solid #dce9fb;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}
.pd-feat li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #33475f;
}
.pd-feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0064ff;
}
.pd-feat li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 10.5px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .art-body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .art-side { position: static; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-h1 { font-size: 26px; }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-feat { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .art-h1 { font-size: 22px; }
  .art-content { font-size: 16px; }
  .art-hero { padding: 104px 0 26px; }
  .art-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- 移动端宽度兜底 ----------
   资讯/产品页的 header 是从首页抽的 PC 版（.w1440 固定 1100px），
   在小屏会把 body 撑到 1210px，html 的 overflow-x:hidden 只是把它裁掉，
   于是手机上看到的是「PC 版布局被切掉右边」。
   这里把 body 宽度钉回视口，让内部的自适应规则（media query）真正生效。 */
body.art-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
