/* =============================================================
   竞流智能科技 · 官网 DEMO（Bootstrap 5.3.8）
   site.css —— 品牌主题与自定义区块
   依赖：assets/css/bootstrap.min.css（必须在本文件之前）
   ============================================================= */

/* ---------- 品牌变量 ---------- */
:root {
  --brand:        #0f3d75;
  --brand-700:    #0a2e5a;
  --brand-500:    #1a5aa8;
  --brand-100:    #e8f0fa;
  --accent:       #d92b2f;
  --ink:          #14202e;
  --muted:        #5f6d80;
  --line:         #e4e9f1;
  --soft:         #f5f8fc;
  --radius:       0;

  /* 方角工业风：把 Bootstrap 组件自带的圆角一并清零 */
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
  --shadow-sm:    0 .25rem .75rem rgba(15, 61, 117, .06);
  --shadow-md:    0 .75rem 2rem rgba(15, 61, 117, .12);
  --nav-h:        70px;

  /* 覆盖 Bootstrap 的排版基础 */
  --bs-body-font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-emphasis-color: var(--ink);
  --bs-link-color: var(--brand-500);
  --bs-link-hover-color: var(--brand);
  --bs-border-color: var(--line);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 0;
}

::selection { background: var(--brand-100); color: var(--brand); }

/* 图片默认不溢出容器 */
img { max-width: 100%; }

/* 中文小标题的英文辅助字距 */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* =============================================================
   按钮：用 Bootstrap 5.3 的按钮 CSS 变量做品牌色
   ============================================================= */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  font-weight: 600;
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b91f23;
  --bs-btn-hover-border-color: #b91f23;
  font-weight: 600;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: rgba(15, 61, 117, .35);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand);
  font-weight: 600;
}

.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .6);
  --bs-btn-hover-color: var(--brand);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--brand);
  --bs-btn-active-bg: #fff;
  font-weight: 600;
}

/* =============================================================
   头部：灰条 + logo/居中搜索 + 深蓝导航
   （对齐原站三段式：50px 灰条 / logo 行 / 70px #133982 导航）
   ============================================================= */

/* ---- 1) 顶部灰条 ---- */
.head-top {
  height: 50px;
  background: #f6f6f6;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  font-size: 14px;
}
.head-top .container,
.head-top-inner { height: 100%; }
.head-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.head-top .welcome { color: #4a4a4a; font-size: 14px; min-width: 0; }

.head-top .top-links { display: flex; align-items: center; }
.head-top .top-links a,
.head-top .top-links span {
  color: #333;
  font-size: 14px;
  line-height: 1;
  padding: 0 12px;
  border-left: 1px solid #cfcfcf;
  text-decoration: none;
  transition: color .2s ease;
}
.head-top .top-links a:first-child { border-left: 0; }
.head-top .top-links a:last-child { padding-right: 0; }
.head-top .top-links a:hover { color: #133982; }

/* ---- 2) logo / 搜索 / 电话 ---- */
.head-main {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e9edf3;
}
.head-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.head-grid .brand { justify-self: start; }
.head-grid .brand img { height: 46px; width: auto; display: block; }

/* 居中搜索框（原站 390×43 的比例，去掉外面的深蓝厚边框） */
.head-search {
  justify-self: center;
  display: flex;
  width: 430px;
  max-width: 100%;
  height: 44px;
  border: 1px solid #d3dcea;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.head-search:focus-within {
  border-color: #133982;
  box-shadow: 0 0 0 3px rgba(19, 57, 130, .08);
}
.head-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 14px;
  color: #333;
}
.head-search input::placeholder { color: #9aa4b2; }
.head-search button {
  flex: 0 0 96px;
  border: 0;
  background: #133982;
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.head-search button:hover { background: #0f2f6b; }

/* 右侧电话 */
.head-tel {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: #133982;
}
.head-tel .tel-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #edf2fb;
  color: #133982;
}
.head-tel .tel-text { display: flex; flex-direction: column; line-height: 1.15; }
.head-tel .tel-label { font-size: 12px; color: #8b95a5; letter-spacing: .08em; }
.head-tel .tel-num { font-size: 20px; font-weight: 800; color: #133982; }
.head-tel:hover .tel-num { color: #0f2f6b; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: #133982;
}

/* ---- 3) 深蓝导航 ---- */
.main-nav { background: #133982; }
.main-nav .nav-list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav .nav-list li { flex: 0 0 12%; }
.main-nav .nav-list a {
  position: relative;
  display: block;
  text-align: center;
  line-height: 70px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: background-color .25s ease;
}
.main-nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav .nav-list a:hover { background: rgba(255, 255, 255, .08); }
.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after { transform: scaleX(1); }

/* ---- 移动端菜单抽屉 ---- */
.drawer-search {
  display: flex;
  height: 42px;
  border: 1px solid #d3dcea;
}
.drawer-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 14px;
}
.drawer-search button {
  flex: 0 0 56px;
  border: 0;
  background: #133982;
  color: #fff;
  display: grid;
  place-items: center;
}
.drawer-nav li + li { border-top: 1px solid var(--line); }
.drawer-nav a {
  display: block;
  padding: .85rem .25rem;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
.drawer-nav a:hover { color: #133982; }

@media (max-width: 991.98px) {
  .head-main { padding: 14px 0; }
  .head-grid { grid-template-columns: 1fr auto; }
  .head-grid .brand { grid-column: 1; }
  .head-grid .head-tel { display: none; }
  .menu-btn { display: grid; grid-column: 2; }
  .head-top { height: 42px; font-size: 13px; }
  .head-top .welcome { font-size: 13px; }
  .head-top .top-links a, .head-top .top-links span { font-size: 13px; padding: 0 9px; }
}

/* =============================================================
   Hero 轮播
   ============================================================= */
.hero-carousel .carousel-item { height: clamp(420px, 58vh, 620px); }

.hero-slide {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide--1 { background-image: url("../img/banner-1.jpg"); }
.hero-slide--2 { background-image: url("../img/banner-2.jpg"); }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 20, 38, .82) 0%, rgba(5, 20, 38, .58) 45%, rgba(5, 20, 38, .18) 100%);
}
.hero-slide > .container { position: relative; z-index: 2; }

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.25;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hero-lead {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 34rem;
}
/* 副文里第一次出现的核心词（H1 的词）加粗 */
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .08em;
  backdrop-filter: blur(4px);
}
.hero-carousel .carousel-indicators { margin-bottom: 1.1rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 26px; height: 3px; border-radius: 0;
  background: rgba(255, 255, 255, .45); border: 0; opacity: 1;
}
.hero-carousel .carousel-indicators .active { background: #fff; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 5%; opacity: .55; }
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover { opacity: 1; }

/* =============================================================
   信任条（整线规划 / 非标定制 / 安装调试 / 售后维护）
   ============================================================= */
.trust-strip {
  background: var(--brand-700);
  color: #fff;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem .25rem;
}
.trust-strip .item + .item { border-left: 1px solid rgba(255, 255, 255, .12); }
.trust-strip .icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 0;
  background: rgba(255, 255, 255, .1);
}
.trust-strip .icon svg { width: 20px; height: 20px; }
.trust-strip .label { font-size: .95rem; font-weight: 600; }
.trust-strip .sub { font-size: .74rem; color: rgba(255, 255, 255, .62); letter-spacing: .06em; }

/* =============================================================
   长尾词条（首页轮播下方）：一排文字链接，无论窗口多宽最多显示两行
   ============================================================= */
.kw-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.6;
  padding-block: .85rem;
}
.kw-strip .kw-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .4rem;
  /* 最多两行：每行高 2rem，行距 .45rem；排到第三行的词整体裁掉（链接仍在页面里） */
  max-height: calc(4rem + .45rem);
  overflow: hidden;
}
.kw-strip .kw-label { color: var(--muted); white-space: nowrap; margin-right: .3rem; }
.kw-strip a {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.kw-strip a:hover { color: var(--brand); border-color: var(--brand); }

/* =============================================================
   区块通用标题
   ============================================================= */
.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section-soft { background: var(--soft); }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .02em;
  margin: .6rem 0 .5rem;
}
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head .rule {
  width: 46px; height: 3px; margin: 1rem auto 0;
  background: var(--brand); border-radius: 0;
}
.section-head.text-start .rule { margin-left: 0; }

/* =============================================================
   核心优势 6 卡
   ============================================================= */
.adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 61, 117, .18);
  box-shadow: var(--shadow-md);
}
.adv-card .num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .02em;
  line-height: 1;
}
.adv-card .num::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  margin: .65rem 0 .9rem;
  background: var(--accent);
}
.adv-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; }
.adv-card p { font-size: .875rem; color: var(--muted); line-height: 1.75; margin-bottom: 0; }

/* =============================================================
   产品展示：图在上、标题在下居中，不做图上压字
   （图片底色不确定，白底图上的白字会看不见）
   ============================================================= */
.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease;
}
.product-card:hover,
.product-card:focus-visible {
  border-color: var(--brand);
  color: inherit;
}
.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-title {
  display: block;
  /* 产品名用 h3 输出（长尾词进标题），这里抵消标题标签自带的外边距 */
  margin: 0;
  padding: .9rem .8rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s ease;
}
.product-card:hover .product-title,
.product-card:focus-visible .product-title { color: var(--brand); }

/* =============================================================
   工程案例（深色背景带）
   ============================================================= */
.cases {
  position: relative;
  /* 原站用了一张带宣传文案的底图，拉伸后残影很明显，这里改成纯渐变 + 光晕 */
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(26, 90, 168, .55), transparent 70%),
    radial-gradient(700px 380px at 88% 100%, rgba(217, 43, 47, .18), transparent 70%),
    linear-gradient(135deg, #07213d, var(--brand-700) 45%, #0d3562);
  color: #fff;
}
.cases::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 34, .35), rgba(4, 18, 34, .55));
}
.cases > .container { position: relative; z-index: 2; }
.cases .section-head h2 { color: #fff; }
.cases .section-head p { color: rgba(255, 255, 255, .7); }
.cases .section-head .rule { background: var(--accent); }

.case-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  color: #fff;
}
.case-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.case-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 20, 38, .9), rgba(5, 20, 38, .15) 60%, transparent);
}
.case-card .case-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.15rem 1.15rem 1.05rem;
}
.case-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.case-card:hover img { transform: scale(1.06); }

/* =============================================================
   关于我们
   ============================================================= */
.about-lead { color: var(--muted); line-height: 1.9; font-size: .95rem; }
.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}
.about-media .floating-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: var(--brand);
  color: #fff;
  border-radius: 0;
  padding: .85rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-media .floating-badge .big { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.about-media .floating-badge .small { font-size: .72rem; color: rgba(255, 255, 255, .75); letter-spacing: .08em; }

.stat { text-align: center; padding: .35rem .25rem; }
.stat .value {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .value .suffix { font-size: .9rem; font-weight: 700; margin-left: .1rem; color: var(--brand-500); }
.stat .label { font-size: .8rem; color: var(--muted); margin-top: .3rem; letter-spacing: .04em; }

/* =============================================================
   新闻资讯
   ============================================================= */
.news-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.news-card:hover {
  border-color: rgba(15, 61, 117, .18);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}
.news-date {
  flex: 0 0 64px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: .85rem;
}
.news-date .day { font-size: 1.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.news-date .ym { font-size: .7rem; color: var(--muted); margin-top: .25rem; letter-spacing: .04em; }
.news-body h3 { font-size: .98rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.5; }
.news-body p { font-size: .82rem; color: var(--muted); margin-bottom: 0; line-height: 1.7; }

/* 新闻区底部多留一段空白，跟深灰版权带之间拉开呼吸感 */
#news { padding-bottom: clamp(5.5rem, 10vw, 9rem); }

/* 有收尾正文时，新闻区底部按普通区块留白即可 */
.has-seo-text #news { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }

/* =============================================================
   收尾正文（核心词 + 长尾词，首页新闻区下方）
   ============================================================= */
.seo-text { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 4.5vw, 4rem); }
.seo-text-inner { max-width: 56rem; margin: 0 auto; }
.seo-text h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; margin-bottom: 1.1rem; }
.seo-text p {
  margin-bottom: .8rem;
  font-size: .9rem;
  line-height: 1.95;
  color: var(--muted);
  text-align: justify;
}
.seo-text p:last-child { margin-bottom: 0; }
.seo-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 61, 117, .35);
  transition: color .2s ease, border-color .2s ease;
}
.seo-text a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* 底部版权区：深灰单列自由文本带
   （单列、不限行数，关键词/备案/友链/版权都直接往里写）
   字号统一 14px，上下留足高度，别再小家子气 */
.foot-free {
  background: #33363b;
  border-top: 1px solid #24272b;
  padding: clamp(2.4rem, 4.2vw, 3.4rem) 0 clamp(2.6rem, 4.6vw, 3.8rem);
  font-size: 14px;
  line-height: 2.15;
  color: #b6bcc4;
  text-align: center;
}
.foot-free .free-line { margin: 0; }
.foot-free .free-line + .free-line { margin-top: .3rem; }
.foot-free .sep { margin: 0 .85rem; color: #5c6269; }
.foot-free a { color: #d6dbe2; text-decoration: none; }
.foot-free a:hover { color: #fff; text-decoration: underline; }
.foot-free .copyright { color: #a2a8b0; font-size: 14px; }
.foot-free .nw,
.foot-free a { white-space: nowrap; }

/* 友情链接（城市分站）：同一条深灰带里，用一条极细的分隔线跟版权信息分开 */
.foot-links {
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  line-height: 2.2;
}
.foot-links .links-label {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .1em;
  color: #9aa1a9;
  margin-right: .8rem;
  white-space: nowrap;
}
.foot-links .links-items { display: inline; }
.foot-links a {
  display: inline-block;
  color: #b3bac2;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}
.foot-links a:hover { color: #fff; }
/* 分隔点放在链接后面，换行时不会出现行首一个孤零零的「·」 */
.foot-links a:not(:last-child)::after {
  content: "·";
  margin: 0 .5rem;
  color: #5f656c;
}

/* 窄屏：去掉竖线分隔符，靠留白断行，避免出现孤零零的一截数字 */
@media (max-width: 575.98px) {
  .foot-free {
    font-size: 13px;
    line-height: 2;
    padding: 2rem .85rem 2.2rem;
    word-spacing: .18em;
  }
  .foot-free .sep { display: none; }
  .foot-free .free-line a { margin: 0 .2rem; }
  .foot-links { padding-bottom: 1rem; margin-bottom: 1.15rem; }
  .foot-links .links-label,
  .foot-links a { font-size: 13px; }
}

/* =============================================================
   移动端底部操作条 / 回到顶部
   ============================================================= */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1035;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -.25rem 1rem rgba(15, 61, 117, .08);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .55rem 0 .5rem;
  font-size: .72rem;
  color: var(--muted);
  text-decoration: none;
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar a.primary { color: #fff; background: var(--brand); }
.mobile-bar a:hover { color: var(--brand); }
.mobile-bar a.primary:hover { color: #fff; }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 1030;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 0;
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-700); }

@media (max-width: 991.98px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 58px; }
  .to-top { bottom: 4.5rem; }
  .trust-strip .item + .item { border-left: 0; }
  .about-media .floating-badge { right: 10px; bottom: 10px; }
}

/* =============================================================
   内页通用：标题带 / 面包屑 / 正文排版
   （刻意做得很轻：没有筛选、没有分页、没有标签云，全靠内容填）
   ============================================================= */
/* 内页 banner：整幅图片，按原图 1920×351 的比例自适应，和原站一致 */
.page-banner {
  width: 100%;
  overflow: hidden;
  background: #0f3d75;
  line-height: 0;
}
.page-banner img { display: block; width: 100%; height: auto; }

@media (max-width: 767.98px) {
  .page-banner { height: 150px; }
  .page-banner img { height: 100%; object-fit: cover; }
}

/* 标题条：白底，左边页面标题，右边面包屑 */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  padding-block: 1.7rem;
}
.page-head-text { min-width: 0; }
.page-title {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 .35rem;
}
.page-sub { margin: 0; color: var(--muted); font-size: .9rem; }

.crumbs { font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; color: #8b95a5; }
.crumbs li + li::before { content: "›"; margin: 0 .45rem; color: #b9c2ce; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

@media (max-width: 767.98px) {
  .page-head-inner { padding-block: 1.2rem; }
  .page-head .crumbs { margin-top: .25rem; }
}

/* 内页内容区：上下留白加大，页面更松 */
.page-main .section { padding-block: clamp(4.5rem, 8vw, 7rem); }

/* 纯内容页（如公司简介）：灰底 + 白色内容卡 + 阴影，内容多少都不塌 */
.page-main--card { background: #f3f5f9; }
.page-main--card .section { padding-block: clamp(3rem, 5.5vw, 4.8rem); }
.content-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 2px 18px rgba(15, 61, 117, .06);
  padding: clamp(2rem, 3.6vw, 3.2rem);
}

.content-title {
  position: relative;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  padding-left: .9rem;
  margin-bottom: 1.5rem;
}
.content-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  background: var(--brand);
}

.page-lead { color: var(--muted); font-size: 1rem; line-height: 2.05; max-width: 52rem; margin-bottom: 2.8rem; }

/* 页尾咨询条：给每个内页一个收口，别让内容直接怼到页脚 */
.page-cta {
  background: var(--brand-700);
  color: #fff;
  padding-block: clamp(2.2rem, 4vw, 3rem);
}
.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.page-cta h2 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; color: #fff; margin: 0; }
.page-cta p { margin: .4rem 0 0; color: rgba(255, 255, 255, .68); font-size: .9rem; }
.page-cta .cta-tel {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
}
.page-cta .cta-tel:hover { color: #fff; opacity: .85; }

/* 侧栏补充提示 */
.side-tips { list-style: none; margin: 0; padding: .6rem 1.15rem .95rem; }
.side-tips li {
  position: relative;
  padding: .42rem 0 .42rem .95rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
}
.side-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 4px;
  height: 4px;
  background: var(--brand);
}

/* 侧栏「最新产品」：2×2 缩略图，缩略图比文字链更能带点击 */
.side-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem .6rem;
  padding: .9rem 1.15rem 1.15rem;
}
.side-product { display: block; text-decoration: none; color: var(--ink); }
.side-product .thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.side-product .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-product .name {
  display: block;
  margin-top: .4rem;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  transition: color .2s ease;
}
.side-product:hover .thumb { border-color: var(--brand); }
.side-product:hover .name { color: var(--brand); }

/* 新闻列表行 */
.news-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.news-row:first-of-type { border-top: 1px solid var(--line); }
.news-row:hover { color: inherit; }
.news-row .news-body h2 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: .45rem;
  transition: color .2s ease;
}
.news-row:hover .news-body h2 { color: var(--brand); }
.news-row .news-body p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.8;
  /* 摘要固定两行，长短不一也整齐；超出部分省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row .arrow { display: inline-block; margin-top: .5rem; font-size: .82rem; color: var(--brand-500); }

/* =============================================================
   分页条（列表页）：总数 + 首页/上一页/页码/下一页/尾页 + 跳转
   跳转用 GET 表单提交到本页 ?page=N，后端接上即可用，不需要额外 JS
   ============================================================= */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.pager-total { margin: 0; font-size: .88rem; color: var(--muted); }
.pager-total strong { color: var(--ink); font-weight: 700; }

.pager-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .88rem;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pager-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pager-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-link.is-active:hover { color: #fff; }
.pager-link.is-disabled { color: #b9c2ce; background: #f7f9fc; cursor: not-allowed; }
.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 40px;
  color: #9aa4b2;
}

.pager-jump { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; color: var(--muted); }
.pager-jump input {
  width: 64px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 .4rem;
  font-size: .85rem;
  text-align: center;
  color: var(--ink);
}
.pager-jump input:focus { outline: 0; border-color: var(--brand); }
.pager-jump button {
  height: 40px;
  padding: 0 1.05rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.pager-jump button:hover { background: var(--brand-700); border-color: var(--brand-700); }

@media (max-width: 767.98px) {
  .pager { justify-content: center; }
  .pager-total { width: 100%; text-align: center; }
  .pager-jump { width: 100%; justify-content: center; }
  .pager-list { justify-content: center; }
  /* 手机上把文字链的点击区撑到 40px 以上 */
  .crumbs a { display: inline-block; padding: .45rem 0; }
  .foot-links a { display: inline-block; padding: .3rem .05rem; }
  .side-list a { padding: .8rem 0; }
}

@media (max-width: 575.98px) {
  .pager-link { min-width: 38px; height: 38px; padding: 0 .5rem; font-size: .82rem; }
  .pager-jump input,
  .pager-jump button { height: 38px; }
  .pager-list { gap: .35rem; }
  .foot-free .free-line a { display: inline-block; padding: .3rem .15rem; }
}

/* 分页条下面的补充说明 */
.pager-note { margin-top: clamp(3rem, 5vw, 4.5rem) !important; }

/* 文章正文 */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.55; margin-bottom: .9rem; }
.article-meta { font-size: .82rem; color: var(--muted); padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.prose { color: #3c4a5c; font-size: 1rem; line-height: 2.05; }
.prose > p { margin-bottom: 1.15rem; }
.prose h2 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 2rem 0 .8rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.15rem; }
.prose li { margin-bottom: .45rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }

/* 产品详情 */
.detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #dfe6ef; }
.detail-media img { width: 100%; height: auto; display: block; }
.detail-spec { list-style: none; margin: 1.2rem 0 1.5rem; padding: 0; }
.detail-spec li { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.detail-spec li:first-child { border-top: 1px dashed var(--line); }
.detail-spec .k { flex: 0 0 5.4rem; color: var(--muted); }
.detail-spec .v { color: var(--ink); }

/* 流程 4 步 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.flow .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.1rem; }
.flow .step .n { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.flow .step h3 { font-size: .98rem; font-weight: 700; margin: .5rem 0 .35rem; }
.flow .step p { font-size: .84rem; color: var(--muted); line-height: 1.75; margin: 0; }

/* 联系方式块 */
.contact-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
}
.contact-block .ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: var(--brand-100);
  color: var(--brand);
  margin-bottom: .9rem;
}
.contact-block h2 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.contact-block .val { font-size: .92rem; color: var(--muted); line-height: 1.85; margin: 0; }
.contact-block .val a { color: var(--brand); font-weight: 700; text-decoration: none; }
.contact-block .val.big { font-size: 1.25rem; font-weight: 800; color: var(--brand); }

@media (max-width: 767.98px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}

/* 侧边栏：列表页 / 详情页 / 单页共用 */
.side-sticky { position: sticky; top: 1.25rem; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.3rem;
  overflow: hidden;
}
.side-card:last-child { margin-bottom: 0; }

/* 标题条：深蓝色块 + 白字，和主导航同一套色，前面一个菱形小色块 */
.side-card h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .85rem 1.15rem;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-500) 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.side-card h2::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #fff;
  opacity: .85;
  transform: rotate(45deg);
}

.side-list { list-style: none; margin: 0; padding: .45rem 1.15rem .8rem; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .68rem 0;
  font-size: .88rem;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.side-list a:hover,
.side-list a.active { color: var(--brand); }
.side-list .date { flex: 0 0 auto; font-size: .76rem; color: #9aa4b2; }

.side-contact { padding-bottom: 1.15rem; }
.side-contact .tel {
  display: block;
  margin: 1rem 1.15rem .5rem;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: .02em;
}
.side-contact .tel:hover { color: var(--brand-700); }
.side-contact p { margin: 0 1.15rem .55rem; font-size: .84rem; color: var(--muted); line-height: 1.8; }
.side-contact .btn { display: block; margin: .5rem 1.15rem 0; }

.side-note { margin: 0; padding: .95rem 1.15rem 1.15rem; font-size: .84rem; color: var(--muted); line-height: 1.85; }

@media (max-width: 991.98px) {
  .side-sticky { position: static; }
}

/* 顺手补一个 Bootstrap 没有的间距类（关于页用到） */
.mt-6 { margin-top: 4rem; }

/* =============================================================
   入场动画（尊重 prefers-reduced-motion）
   ============================================================= */
/* 只有 JS 生效时才隐藏，避免禁用 JS 或脚本出错时内容不可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .product-media img, .case-card img, .adv-card, .news-card { transition: none; }
  .product-card:hover .product-media img,
  .case-card:hover img { transform: none; }
}
