/* ============================================================
   内页样式（列表 / 文章 / 产品 / 联系）
   接在 style.css 之后加载
   ============================================================ */

/* ---------- 内页页头 ---------- */
.page-head {
  position: relative;
  background: linear-gradient(105deg, var(--blue-deep) 0%, #0d4f95 58%, #1a6ab8 100%);
  color: #fff;
  padding: 74px 0 62px;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .09) 0%, transparent 68%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.page-head .crumb {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-head .crumb a { transition: color .22s var(--ease); }
.page-head .crumb a:hover { color: var(--orange); }
.page-head .crumb span.sep { opacity: .45; }

/* ---------- 内页两栏布局 ---------- */
.inner {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 56px;
  padding: 72px 0 96px;
  align-items: start;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.side-title {
  padding: 22px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
}
.side-nav { padding: 8px 0; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-left: 3px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.side-nav a:hover {
  background: var(--bg-soft);
  color: var(--blue);
  border-left-color: var(--orange);
}
.side-nav a.on {
  background: var(--bg-soft);
  color: var(--blue);
  font-weight: 600;
  border-left-color: var(--orange);
}
.side-nav a::after {
  content: "›";
  color: var(--muted);
  font-size: 15px;
  transition: transform .22s var(--ease);
}
.side-nav a:hover::after { transform: translateX(3px); }

.side-contact {
  margin-top: 24px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.side-contact h5 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--ink);
}
.side-contact p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.side-contact b { color: var(--blue); font-weight: 600; }
.side-contact .tel {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .01em;
}

/* ---------- 列表页 ---------- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-thumb {
  flex: none;
  width: 108px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card-item:hover .card-thumb img { transform: scale(1.07); }
.card-body { min-width: 0; }
.card-body h3 {
  font-size: 15.5px;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color .22s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-item:hover .card-body h3 { color: var(--blue); }
.card-body time {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 纯文字列表（新闻） */
.news-rows { border-top: 1px solid var(--line); }
.news-rows a {
  display: grid;
  grid-template-columns: 108px 1fr 20px;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .22s var(--ease), padding-left .22s var(--ease);
}
.news-rows a:hover { background: var(--bg-soft); padding-left: 14px; }
.news-rows time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-rows h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  transition: color .22s var(--ease);
}
.news-rows a:hover h3 { color: var(--blue); }
.news-rows .arrow { color: var(--muted); transition: transform .22s var(--ease), color .22s var(--ease); }
.news-rows a:hover .arrow { transform: translateX(4px); color: var(--orange); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-2);
  transition: all .22s var(--ease);
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}
.pager .disabled { opacity: .4; pointer-events: none; }

/* ---------- 文章页 ---------- */
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-head h1 {
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.article-body p { margin: 0 0 20px; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px auto;
  display: block;
}
.article-body h2,
.article-body h3 { margin: 34px 0 16px; color: var(--ink); font-size: 21px; }
.article-body ul,
.article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 9px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article-body th { background: var(--bg-soft); font-weight: 600; }
.article-body a { color: var(--blue); border-bottom: 1px solid rgba(13, 79, 149, .3); }
/* 证书墙（资质荣誉）：原站用的是 Bootstrap 栅格（col-sm-4 / col-md-3），
   那套类我们没搬过来，结果每张图占满一行，再叠上 .article-body img 的
   24px 上下外边距 → 一张证书之间隔出两百多像素空白。
   这里用 Grid 重排成卡片墙，只作用于 .product_list，不影响其它正文页。 */
.article-body .product_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 6px 0 26px;
}
.article-body .product_list .product_img {
  margin: 0;
  padding: 14px 14px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body .product_list img,
.article-body .product_list .opacity_img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin: 0;
  border-radius: 8px;
  background: var(--bg-soft);
  display: block;
}
.article-body .product_list .product_title {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}
.article-body .product_list .product_title a {
  color: var(--ink-2);
  border-bottom: none;
}
.article-body .product_list .product_title a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .article-body .product_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .article-body .product_list img,
  .article-body .product_list .opacity_img { height: 200px; }
}
@media (max-width: 620px) {
  .article-body .product_list { grid-template-columns: 1fr; }
  .article-body .product_list img,
  .article-body .product_list .opacity_img { height: 220px; }
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--orange);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
  transition: all .25s var(--ease);
}
.article-nav a:hover { border-color: var(--blue); color: var(--blue); }
.article-nav a small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.article-nav .next { text-align: right; }
.article-nav .empty { opacity: .45; pointer-events: none; }

/* ---------- 产品页 ---------- */
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.product-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.product-gallery .main {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: #fff; }
.product-thumbs button {
  flex: none;
  width: 68px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color .2s var(--ease);
}
.product-thumbs button.on { border-color: var(--orange); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 18px;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.product-tags span {
  font-size: 12.5px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 13px;
  border-radius: 999px;
}
.product-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
  padding: 22px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  margin-bottom: 26px;
}
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-card h4 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.contact-card p {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}
.contact-card p.small { font-size: 14.5px; font-weight: 400; color: var(--ink-2); line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 72px; }
  .side { position: static; }
  .side-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: 1fr; }
  .product-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .page-head { padding: 52px 0 44px; }
  .list-grid { gap: 16px; }
  .card-item { padding: 16px; gap: 14px; }
  .card-thumb { width: 84px; height: 66px; }
  .card-body h3 { font-size: 14.5px; }
  .news-rows a { grid-template-columns: 1fr 16px; gap: 10px; }
  .news-rows time { grid-column: 1 / -1; font-size: 12px; }
  .article-body { font-size: 15.5px; line-height: 1.95; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .side-nav { grid-template-columns: 1fr; }
  .product-thumbs button { width: 58px; height: 46px; }
}

/* ============================================================
   侧栏已取消，内页改为单栏通栏（2026-10-26）
   ============================================================ */
.inner {
  grid-template-columns: 1fr;
  gap: 0;
}
.inner > div { min-width: 0; }

/* nav-clearance：顶栏悬浮，页头让出高度 */
.page-head { padding: 168px 0 62px; }
@media (max-width: 900px) {
  .page-head { padding: 128px 0 52px; }
}
@media (max-width: 620px) {
  .page-head { padding: 116px 0 44px; }
}

/* 内页动效补充 */
.article-body a { transition: color .2s var(--ease), border-color .2s var(--ease); }
.news-rows h3 { transition: color .22s var(--ease); }
.pager a, .pager span { transition: all .22s var(--ease); }
.pager a:hover { transform: translateY(-2px); }
.article-nav a { transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.article-nav a:hover { transform: translateY(-2px); }
.contact-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }

/* 栏目总览卡片（「关于我们」等栏目的入口页） */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.hub-card {
  display: block; padding: 18px 20px; border: 1px solid #e3e9ef; border-radius: 10px;
  background: #fff; text-decoration: none;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.hub-card b { display: block; font-size: 16px; color: #16212c; margin-bottom: 6px; }
.hub-card span { display: block; font-size: 13.5px; color: #6f7e8d; line-height: 1.6; }
.hub-card:hover { transform: translateY(-3px); border-color: #0d4f95; box-shadow: 0 10px 24px rgba(13, 79, 149, .10); }
.hub-card:hover b { color: #0d4f95; }
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* 分页省略号：不要边框和底色 */
.pager .gap { border: 0; background: none; min-width: 22px; padding: 0 2px; color: var(--muted); }
