@charset "utf-8";
/* ==========================================================================
   企业官网通用样式 — 设计变量集中在 :root，换主题只改这一段
   ========================================================================== */

:root {
  /* 主题色 */
  --theme: #005f93;
  --theme-dark: #004a74;
  --theme-light: #e8f2f8;
  --theme-alpha: rgba(0, 95, 147, .12);

  /* 文字 */
  --text: #333333;
  --text-sub: #666666;
  --text-muted: #999999;
  --text-invert: #ffffff;

  /* 背景与线条 */
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --border: #eeeeee;
  --border-strong: #dddddd;

  /* 页脚 */
  --foot-bg: #005f93;
  --foot-msg-bg: #004877;
  --foot-link-bg: #2b8fc5;
  --foot-text: #ffffff;

  /* 尺寸 */
  --maxw: 1360px;
  --radius: 6px;
  --header-h: 84px;

  /* 字体 */
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden; /* 移动端防长链接/表格溢出产生横向滚动 */
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--theme); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { text-align: center; margin-bottom: 28px; }
.section__title {
  font-size: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(92deg, #0b3c5d 0%, var(--theme) 55%, #00a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--theme); /* fallback: 不支持渐变文字时 */
}
/* 科技风：渐变辉光下划线 */
.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 132px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--theme) 25%, #00a6ff 50%, var(--theme) 75%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 166, 255, .45);
}
/* 科技风：下划线中缝菱形光点 */
.section__title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--theme), #00a6ff);
  box-shadow: 0 0 10px rgba(0, 166, 255, .65);
  z-index: 1;
}
.section__sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--theme-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a:hover { color: #fff; }

/* ---------- 头部 / 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { max-height: 46px; width: auto; }
.logo__text {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme);
  line-height: 1.2;
}
.logo__text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__item > a {
  display: block;
  padding: 10px 13px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.nav__item > a:hover,
.nav__item.is-active > a { color: var(--theme); }
.nav__item.is-active > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--theme);
}

.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--theme);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  padding: 6px 0;
  z-index: 10;
}
.nav__item:hover .nav__sub { display: block; }
.nav__sub a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-sub);
}
.nav__sub a:hover { background: var(--theme-light); color: var(--theme); }

.header__hotline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.3;
}
.header__hotline span { font-size: 12px; color: var(--text-muted); }
.header__hotline strong {
  font-size: 20px;
  color: var(--theme);
  font-weight: 700;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
  transition: all .2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- 顶部搜索框 ---------- */
/* 桌面端（≥1280px）显示：站内搜索为纯静态前端检索（/search/ 页 + search-data.json 全文索引），
   提交 GET /search/?q=… 由页面 JS 实时渲染结果。901~1279px 收进折叠菜单（空间优先给服务热线）。 */
.nav__search {
  display: flex;
  align-items: center;
  margin-left: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav__search:focus-within {
  border-color: var(--theme);
  background: #fff;
  box-shadow: 0 0 0 3px var(--theme-alpha);
}
.nav__search input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 7px 6px 7px 14px;
  width: 120px;
  font-size: 13px;
  color: var(--text);
  transition: width .25s;
}
.nav__search input:focus { width: 165px; }
.nav__search input::placeholder { color: var(--text-muted); }
.nav__search button {
  flex-shrink: 0;
  border: 0;
  background: var(--theme);
  color: #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.nav__search button:hover { background: var(--theme-dark); }
.nav__search button svg { display: block; }

/* ---------- 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero__track { display: flex; transition: transform .6s ease; }
.hero__slide { flex: 0 0 100%; position: relative; }
.hero__slide img {
  width: 100%;
  aspect-ratio: 12 / 5; /* 与 1920×800 源图一致，常规屏完整显示不裁剪 */
  max-height: 600px;
  object-fit: cover;
  object-position: center;
}
.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hero__dot.is-active { background: #fff; width: 26px; border-radius: 5px; }

/* 无轮播图时的占位首屏（模板空态）：主题渐变 + 站点标语，不依赖图片 */
.hero--blank {
  background: linear-gradient(120deg, var(--theme) 0%, var(--theme-dark) 100%);
  padding: 64px 16px;
  text-align: center;
  color: #fff;
}
.hero--blank h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.hero--blank p {
  margin: 0;
  font-size: 15px;
  opacity: .88;
  letter-spacing: 4px;
}
@media (max-width: 768px) {
  .hero--blank { padding: 48px 16px; }
  .hero--blank h2 { font-size: 24px; }
  .hero--blank p { font-size: 13px; }
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .09);
}
.card__media {
  position: relative;
  padding-top: 68%;
  overflow: hidden;
  background: var(--bg-soft);
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 14px 16px 18px; }
.card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
  color: var(--text);
}
.card:hover .card__title { color: var(--theme); }
.card__meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.card__desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  height: 4.4em;
  overflow: hidden;
}

/* 图文横向条目（新闻列表） */
.entry {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}

/* ---------- 站内搜索页 ---------- */
.search-bar { display: flex; gap: 10px; margin: 26px 0 12px; }
.search-bar input[type="search"] {
  flex: 1; padding: 10px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px;
}
.search-bar button {
  padding: 10px 26px; background: var(--theme); color: #fff; border: 0;
  border-radius: var(--radius); font-size: 15px; cursor: pointer;
}
.search-meta { font-size: 13px; color: var(--text-sub); margin: 0 0 8px; }
.search-tip { color: var(--text-sub); }
.search-group {
  font-size: 15px; color: var(--theme); margin: 20px 0 2px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.search-group:first-child { margin-top: 6px; }
.search-results .entry:last-child { border-bottom: 0; }
mark {
  background: #ffe58f; color: inherit;
  padding: 0 2px; border-radius: 2px;
}

/* ---------- 静态搜索页结果行（search/index.html 由 search.js 渲染） ---------- */
.s-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
}
.s-item:last-child { border-bottom: 0; }
.s-item__date {
  flex: 0 0 62px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 4px;
}
.s-item__main { flex: 1; min-width: 0; }
.s-item__main b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}
.s-item:hover .s-item__main b { color: var(--theme); }
.s-item__x {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 6px;
}
.s-item__foot {
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
}
.entry:last-child { border-bottom: 0; }
.entry__date {
  flex: 0 0 78px;
  text-align: center;
  background: var(--theme-light);
  border-radius: var(--radius);
  padding: 10px 0;
  color: var(--theme);
}
.entry__date b { display: block; font-size: 26px; line-height: 1; }
.entry__date span { font-size: 12px; }
.entry__media {
  flex: 0 0 220px;
  border-radius: var(--radius);
  overflow: hidden;
}
.entry__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.entry__main { flex: 1; min-width: 0; }
.entry__title {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.entry__title a:hover { color: var(--theme); }
.entry__summary {
  color: var(--text-sub);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 知识分享列表页：文字排版放大 */
.mod-knowledge .entry__title { font-size: 20px; }
.mod-knowledge .entry__summary { font-size: 16px; }
.mod-knowledge .entry__date b { font-size: 30px; }
.mod-knowledge .entry__date span { font-size: 13px; }

.entry__tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--theme);
  background: var(--theme-light);
  border-radius: 3px;
  padding: 2px 8px;
}

/* ---------- 关于我们（首页） ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about__img { border-radius: var(--radius); overflow: hidden; }
.about__img img,
.about__img video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: #000;
  display: block;
}
.about__title { font-size: 26px; margin-bottom: 16px; }
.about__text { color: var(--text-sub); line-height: 1.85; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.about__stat { text-align: center; }
.about__stat b {
  display: block;
  font-size: 28px;
  color: var(--theme);
  line-height: 1.2;
}
.about__stat span { font-size: 13px; color: var(--text-muted); }

.btn {
  display: inline-block;
  padding: 11px 30px;
  background: var(--theme);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  transition: background .2s;
}
.btn:hover { background: var(--theme-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--theme);
  border: 1px solid var(--theme);
}
.btn--ghost:hover { background: var(--theme); color: #fff; }

/* ---------- 分类筛选 ---------- */
.cates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.cates a {
  padding: 8px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-size: 16px;
  color: var(--text-sub);
}
.cates a:hover { border-color: var(--theme); color: var(--theme); }
.cates a.is-active {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* ---------- 面包屑 / 内页 ---------- */
.crumb {
  background: var(--theme);
  color: rgba(255, 255, 255, .9);
  padding: 22px 0;
}
.crumb h1, .crumb__title { font-size: 26px; color: #fff; margin: 0; }
.crumb__path {
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.crumb__path a { color: rgba(255, 255, 255, .8); }
.crumb__path a:hover { color: #fff; }
/* 首页带 home 图标、分隔符用 chevron 图标，替代原来的裸 " / " */
.crumb__home { display: inline-flex; align-items: center; gap: 4px; }
.crumb__home svg { display: block; opacity: .95; }
.crumb__sep { display: inline-flex; align-items: center; opacity: .5; }
.crumb__sep svg { display: block; }

/* 视觉隐藏但保留给屏幕阅读器 / 搜索引擎语义（用于首页唯一 h1） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-body { padding: 42px 0 56px; min-height: 320px; }

.sidebar + .main { display: block; }
.inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}
.side { position: sticky; top: calc(var(--header-h) + 20px); }
.side__title {
  background: var(--theme);
  color: #fff;
  padding: 14px 18px;
  font-size: 17px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.side__list {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.side__list a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}
.side__list a:last-child { border-bottom: 0; }
.side__list a:hover,
.side__list a.is-active {
  background: var(--theme-light);
  color: var(--theme);
  border-left: 3px solid var(--theme);
  padding-left: 15px;
}

/* ---------- 文章正文 ---------- */
.article__title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}
.article__meta {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.article__meta span + span { margin-left: 18px; }
.article__content { font-size: 18px; line-height: 1.9; color: var(--text); }
.article__content img { margin: 16px auto; border-radius: var(--radius); }
.article__content p { margin-bottom: 1.2em; }
/* 正文富文本视频：与图片一致宽度、圆角、黑底 */
.article__content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: var(--radius);
  background: #000;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

/* 关于我们子页视频墙 */
.about-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.about-video { margin: 0; }
.about-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius);
  display: block;
}

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
}
.prevnext a { color: var(--text-sub); }
.prevnext a:hover { color: var(--theme); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-sub);
}
.pager a:hover { border-color: var(--theme); color: var(--theme); }
.pager .is-current {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* ---------- 联系页 ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
}

/* 快捷联系卡（电话 / 微信） */
.contact__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--theme);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.contact__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.contact__card--wx { border-left-color: #07c160; }
.contact__card-ico {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-light);
  color: var(--theme);
}
.contact__card--wx .contact__card-ico { background: rgba(7, 193, 96, .12); color: #07c160; }
.contact__card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact__card-name { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.contact__card-val {
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  line-height: 1.3;
}
.contact__card--tel .contact__card-val { color: var(--theme); }

/* 左侧热线 + 明细表 */
.contact__list h3 { font-size: 15px; font-weight: 400; color: var(--text-muted); margin-bottom: 8px; }
/* 标题与明细行前缀图标：随主题着色，行内 SVG 用 vertical-align 对齐，不破坏 table 布局 */
.contact__list-title { display: flex; align-items: center; gap: 7px; }
.contact__list-title svg { color: var(--theme); flex-shrink: 0; }
.contact__table th svg { vertical-align: -3px; margin-right: 5px; color: var(--theme); opacity: .9; }
.contact__tel {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  color: var(--theme);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.contact__tel:hover { color: var(--theme-dark); }
.contact__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.contact__table th {
  /* width:1% + nowrap = 列收缩到「图标+标签」的自然宽度，剩余空间全给 td；
     加前缀图标后若仍写死 84px 会把标签挤成省略或换行 */
  width: 1%;
  text-align: left;
  font-weight: 400;
  color: var(--text-muted);
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: top;
}
.contact__table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  vertical-align: top;
}
.contact__table td a { color: var(--theme); }
.contact__table td a:hover { text-decoration: underline; }

/* ---------- 联系我们-公司位置地图 ---------- */
.contact-map { margin-top: 26px; }
.contact-map__box {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.contact-map__tip {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 20px;
  text-align: center;
}
.contact-map__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 20px;
}
.contact-map__pin { color: var(--theme); }
.contact-map__name { font-size: 18px; color: var(--text); }
.contact-map__addr { font-size: 14px; color: var(--text-muted); margin: 0; }
.contact-map__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}
.contact-map__bar .contact-map__addr { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.contact-map__bar .contact-map__addr svg { color: var(--theme); flex-shrink: 0; }
.contact-map__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--theme);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.contact-map__nav svg { flex-shrink: 0; }
.contact-map__nav:hover { background: var(--theme-dark); }
@media (max-width: 640px) {
  .contact-map__box { height: 300px; }
  .contact-map__bar { flex-direction: column; align-items: stretch; }
  .contact-map__nav { justify-content: center; }
}


/* ---------- 关于我们-业务范围卡片 ---------- */
.biz-scope { margin: 28px 0 8px; }
.biz-scope__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.biz-scope__item {
  background: var(--theme-light);
  border: 1px solid rgba(0, 95, 147, .16);
  border-radius: 10px;
  padding: 18px 20px;
  transition: transform .2s, box-shadow .2s;
}
.biz-scope__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 95, 147, .1);
}
.biz-scope__item h4 {
  font-size: 17px;
  color: var(--theme);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 95, 147, .25);
}
.biz-scope__item h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--theme);
  vertical-align: 2px;
}
.biz-scope__item p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--text-sub); }

/* ---------- 页脚 ---------- */
.footer { background: var(--foot-bg); color: var(--foot-text); }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 46px 0 36px;
}
.footer__col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, .6);
}
.footer__col li { padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
/* 栏目子页在页脚「内容栏目」列下的缩进层级 */
.footer__col li.sub { padding: 2px 0 2px 14px; position: relative; }
.footer__col li.sub::before { content: '└'; position: absolute; left: 0; color: rgba(255, 255, 255, .4); font-size: 12px; }
.footer__col li.sub a { font-size: 13px; color: rgba(255, 255, 255, .68); }
.footer__contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 8px;
}
.footer__contact strong { font-size: 22px; color: #fff; display: block; }
.footer__qr { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.footer__qr figure { margin: 0; text-align: center; font-size: 12px; }
.footer__qr img {
  width: 92px;
  height: 92px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  object-fit: contain;
}
.footer__bottom {
  background: var(--foot-msg-bg);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
.footer__bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__stats {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}
.footer__stats b {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 悬浮工具 ---------- */
/* 首页「知识分享」板块：文字排版放大 */
.sec-knowledge .entry__title { font-size: 20px; }
.sec-knowledge .entry__summary { font-size: 16px; }
.sec-knowledge .entry__date b { font-size: 30px; }
.sec-knowledge .entry__date span { font-size: 13px; }

/* 右侧透明悬浮联系窗（二维码 + 热线） */
.float-contact {
  position: fixed;
  right: 18px;
  top: 46%;
  z-index: 90;
  width: 132px;
  padding: 16px 12px 12px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 60, 93, .14);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 60, 93, .16);
  text-align: center;
}
.float-contact__close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.float-contact__close:hover { color: var(--theme); }
.float-contact__qr img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: #fff;
}
.float-contact__qr span { display: block; font-size: 12px; color: var(--text-sub); }
.float-contact__tel {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 60, 93, .18);
  color: var(--theme);
  text-decoration: none;
}
.float-contact__tel svg { vertical-align: -3px; }
.float-contact__tel span { display: block; font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.float-contact__tel strong { display: block; font-size: 16px; letter-spacing: .5px; }

@media (max-width: 768px) {
  .float-contact {
    top: auto;
    bottom: 84px;
    right: 12px;
    width: 104px;
    padding: 12px 8px 8px;
  }
  .float-contact__qr img { width: 76px; height: 76px; }
  .float-contact__tel strong { font-size: 14px; }
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 95, 147, .35);
  transition: background .2s;
}
.fab button:hover { background: var(--theme-dark); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 34px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

/* ---------- 响应式 ---------- */
/* 901~1279px 窄桌面压缩档：logo/导航收紧 + 搜索框收进折叠菜单（空间优先给服务热线，避免被视口右侧裁切） */
@media (max-width: 1279px) and (min-width: 901px) {
  .header .wrap { gap: 14px; }
  .logo__text { font-size: 18px; }
  .logo img { max-height: 40px; }
  .nav { gap: 0; }
  .nav__item > a { padding: 9px 10px; font-size: 14px; }
  .nav__search { display: none; }
}
/* ≤1080px：header 大号热线收进折叠层（由顶部条「服务热线」承担展示，避免被视口右侧裁切） */
@media (max-width: 1080px) {
  .header__hotline { display: none; }
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .topbar { display: none; }
  .header__hotline { display: none; }
  .nav__toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px 0;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav__item > a { padding: 13px 20px; border-bottom: 1px solid var(--border); }
  .nav__item.is-active > a::after { display: none; }
  .nav__sub {
    display: none;
    position: static;
    border: 0;
    border-top: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__sub a { padding: 10px 20px 10px 34px; background: var(--bg-soft); }
  .nav__search {
    display: flex;
    margin: 12px 16px 6px;
    order: -1;
  }
  .nav__search input { flex: 1; width: auto; }
  .nav__search input:focus { width: auto; }

  .grid, .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hero__slide img { height: 240px; }
  .section { padding: 40px 0; }
  .section__title { font-size: 24px; }
  .about, .contact { grid-template-columns: 1fr; gap: 24px; }
  .inner { grid-template-columns: 1fr; }
  .side { position: static; }
  .entry { flex-wrap: wrap; }
  .entry__media { flex: 0 0 100%; }
  .entry__date { flex: 0 0 62px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-videos { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  /* 正文富文本表格：窄屏改为可横向滚动，避免撑破版面 */
  .article__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .contact__table td { word-break: break-word; }
}

@media (max-width: 520px) {
  .grid, .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__title { font-size: 14px; }
  .article__content { font-size: 16px; }
  .biz-scope__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
}

@media print {
  .header, .footer, .fab, .topbar { display: none; }
}

/* ============== FAQ 页面样式 ==============
   与「知识分享」共用 .cates 胶囊筛选条 + .entry 横条骨架，此处做问答专属的精致化：
   左侧块改为「Q + 序号」，答案默认两行渐隐预览，点击平滑展开为浅底答案块。 */
.faq-intro {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 26px;
  padding: 14px 18px;
  background: var(--theme-light);
  border-left: 3px solid var(--theme);
  border-radius: var(--radius);
}

/* 左侧块：大 Q + 两位序号（知识分享同位置放日期）。悬停 / 展开时填充主题色 */
.faq-entry .entry__date { transition: background-color .25s ease, color .25s ease; }
.faq-entry .entry__date b { font-size: 27px; line-height: 1.1; }
.faq-entry .entry__date span { font-size: 12px; opacity: .8; }
.faq-entry:hover .entry__date,
.faq-entry.is-open .entry__date { background: var(--theme); color: #fff; }

.faq-entry .entry__title a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  transition: color .18s ease;
}
.faq-entry:hover .entry__title a { color: var(--theme); }

/* 答案：默认两行并渐隐（用遮罩代替省略号，更柔和），点击后展开为浅底答案块。
   高度由 JS 驱动 max-height 做过渡，所以这里不能用 line-clamp，需覆盖掉基础样式。 */
.faq-entry .entry__summary {
  display: block;
  -webkit-line-clamp: unset;
  position: relative;
  max-height: 3.4em;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  transition: max-height .32s ease, padding .25s ease, background-color .25s ease, color .2s ease;
}
.faq-entry:not(.is-open) .entry__summary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg) 88%);
  pointer-events: none;
}
.faq-entry.is-open .entry__summary {
  overflow: visible;
  color: var(--text);
  white-space: pre-wrap;
  padding: 13px 15px;
  margin-top: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--theme);
}
.faq-entry.is-open .entry__summary::after { display: none; }

/* 展开箭头 */
.faq-arr {
  flex-shrink: 0;
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform .28s ease, color .2s ease;
}
.faq-entry:hover .faq-arr { color: var(--theme); }
.faq-entry.is-open .faq-arr { transform: rotate(180deg); color: var(--theme); }

/* 行业标签：展开时填充主题色 */
.faq-entry .entry__tag { transition: background-color .25s ease, color .25s ease; }
.faq-entry.is-open .entry__tag { background: var(--theme); color: #fff; }

/* 筛选后可见的末条：去掉与下方内容重复的虚线 */
.faq-entry.is-last { border-bottom: 0; }

@media (max-width: 520px) {
  .faq-intro { font-size: 14px; padding: 12px 14px; }
  .faq-entry { gap: 14px; padding: 16px 0; }
  .faq-entry .entry__date { flex: 0 0 62px; }
  .faq-entry .entry__date b { font-size: 22px; }
}


/* ============================================================
   区块标题：统一改为中性灰
   ------------------------------------------------------------
   原因：原标题渐变为「深蓝 #0b3c5d → 主题金 → 亮蓝 #00a6ff」杂色，
        下划线与菱形光点带蓝色辉光，与本站金色主题冲突（客户反馈配色不搭）。
   范围：本站全部区块标题（首页 4 处 + 内页各栏目/关于/联系/FAQ）。
   说明：原规则一行未改，本段为追加覆盖；如需还原，删除本段即可。
   ============================================================ */
.section__title {
  background: linear-gradient(92deg, #555b63 0%, #868d95 58%, #aab0b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #868d95; /* 不支持渐变文字时的回退色 */
}
.section__title::after {
  background: linear-gradient(90deg, transparent, #a2a8af 25%, #c9ced4 50%, #a2a8af 75%, transparent);
  box-shadow: 0 0 8px rgba(162, 168, 175, .4);
}
.section__title::before {
  background: linear-gradient(135deg, #a2a8af, #c9ced4);
  box-shadow: 0 0 10px rgba(162, 168, 175, .5);
}

/* ============================================================
   手机端适配修复 —— 2026-09-14
   ------------------------------------------------------------
   问题① 页脚文字顶到屏幕左右边缘（"页脚太宽"）
     原因：模板是 <div class="wrap footer__top">，一个元素同时带两个类。
           .footer__top{padding:46px 0 36px} 在 CSS 中位置比 .wrap{padding:0 20px} 靠后，
           同等优先级下后者被覆盖 → 左右内边距变 0。
     修法：把左右内边距补回 20px，与全站 .wrap 保持一致。

   问题② 手机端右侧出现空白 / 汉堡按钮被切掉一半、页面能左右滑
     实测：390px 视口下文档 scrollWidth = 401px，溢出 11px；
           .logo{flex-shrink:0} 宽达 335px（图片 143 + 文字 180），
           + 24px 间距 + 40px 汉堡按钮 = 399px，超过 350px 可用宽度，
           把汉堡按钮挤出屏幕。
     修法：手机端隐藏 logo 下的长标语（small）、允许 logo 收缩、
           汉堡按钮禁止收缩，并收紧 header 间距与 logo 图高度。
   ============================================================ */

/* —— 修复①：页脚左右内边距 —— */
.footer__top { padding: 46px 20px 36px; }

/* —— 修复②：手机端头部 —— */
@media (max-width: 900px) {
  .header .wrap { gap: 12px; }

  .logo { flex-shrink: 1; min-width: 0; gap: 8px; }
  .logo img { max-height: 38px; }

  .logo__text {
    font-size: 17px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 手机端不显示 logo 下的长标语，避免挤爆标题栏（标语本身较长，改回内容也容易超宽） */
  .logo__text small { display: none; }

  /* 汉堡按钮永不收缩，保证完整可见可点 */
  .nav__toggle { flex-shrink: 0; }
}

/* —— 修复③：手机端隐藏整页页脚（用户要求精简手机端底部） —— */
@media (max-width: 767px) {
  .footer { display: none !important; }
}

/* —— 修复④（改）：首页首屏下方「在线下单」CTA 条，置于轮播图与关于我们之间 —— */
.order-cta { text-align: center; padding: 30px 16px; background: var(--theme-light, #f5f7fa); }
.order-cta .btn { font-size: 16px; padding: 13px 44px; }
@media (max-width: 767px) {
  .order-cta .btn { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
}

/* —— 修复⑤：联系卡片支持多张时自适应等宽换行 —— */
.contact__cards { display: flex; flex-wrap: wrap; gap: 16px; }
.contact__card { flex: 1 1 200px; min-width: 180px; }

/* ============================================================
   二维码放大扫（2026-09-16）
   ------------------------------------------------------------
   需求：联系页 / 页脚 / 右下悬浮窗的二维码原图只有 96~140px，手机凑近也难扫。
   做法：这些图统一带 class="qr-img"，点一下由 app.js 的灯箱全屏放大到可扫尺寸。
   说明：本段为追加，不改任何原有规则；删掉本段 + 去掉 img 的 qr-img 类即可还原。
   ============================================================ */
.qr-img { cursor: zoom-in; }
.qr-img:hover { box-shadow: 0 0 0 3px rgba(11, 60, 93, .18); }
.lightbox.is-qr img {
  width: auto;
  height: auto;
  max-width: min(86vw, 520px);
  max-height: 76vh;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  image-rendering: pixelated;   /* 保留二维码硬边，比平滑插值更好扫 */
}
.lightbox__tip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}
.lightbox__tip[hidden] { display: none !important; }
