/* 改版页公共底部：按设计稿像素 — 左 35|180|40|150×3|40|180 / 右咨询 / 关于我们 / 底版权 */
.kerui-site-footer {
  --ksf-text: #4d4d4d;
  --ksf-muted: #919193;
  --ksf-line: #e6e8ee;
  --ksf-link: #919193;
  --ksf-link-hover: #1b45a6;
  --ksf-bg: #f5f6f8;
  --ksf-max: 87.5rem;
  --ksf-pad-x: 80px; /* 整体左右边距，与改版页内容区对齐 */
  --ksf-col1: 180px;
  --ksf-col-m: 150px;
  --ksf-col5: 180px;
  --ksf-gutter: 40px;
  --ksf-nav-w: calc(var(--ksf-col1) + var(--ksf-gutter) + var(--ksf-col-m) * 3 + var(--ksf-gutter) + var(--ksf-col5)); /* 890px */
  --ksf-consult-w: calc(22.5rem * 1.1); /* 360px → 396px，内部 gap 不变 */
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--ksf-line);
  color: var(--ksf-text);
  font-family: var(--kerui-font, "Microsoft YaHei", "PingFang SC", sans-serif);
}

.kerui-site-footer *,
.kerui-site-footer *::before,
.kerui-site-footer *::after {
  box-sizing: border-box;
}

.kerui-site-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem 105px 2rem;
}

/* 上半：左五列贴左 | 右咨询贴右，中间拉开 */
.kerui-site-footer__body {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 3.5rem;
}

.kerui-site-footer__left {
  flex: 0 0 var(--ksf-nav-w);
  width: var(--ksf-nav-w);
  max-width: 100%;
  min-width: 0;
}

/* 五列：180 | 40 | 150 | 150 | 150 | 40 | 180（中间三列无缝隙） */
.kerui-site-footer__cols,
.kerui-site-footer__descs {
  display: grid;
  width: 100%;
  grid-template-columns:
    var(--ksf-col1)
    var(--ksf-gutter)
    var(--ksf-col-m)
    var(--ksf-col-m)
    var(--ksf-col-m)
    var(--ksf-gutter)
    var(--ksf-col5);
  column-gap: 0;
}

.kerui-site-footer__col:nth-child(1) { grid-column: 1; }
.kerui-site-footer__col:nth-child(2) { grid-column: 3; }
.kerui-site-footer__col:nth-child(3) { grid-column: 4; }
.kerui-site-footer__col:nth-child(4) { grid-column: 5; }
.kerui-site-footer__col:nth-child(5) { grid-column: 7; }

.kerui-site-footer__col-title {
  margin: 0 0 0.7rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ksf-text);
  line-height: 1.3;
}

.kerui-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.kerui-site-footer__links a {
  color: var(--ksf-link);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kerui-site-footer__links a:hover {
  color: var(--ksf-link-hover);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* 说明：第1列180 | 第2–4列450 | 第5列180；左/右整段顶对齐，中间两段 */
.kerui-site-footer__descs {
  margin-top: 1.5rem;
  align-items: start;
  row-gap: 0;
}

.kerui-site-footer__desc {
  margin: 0;
  color: var(--ksf-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kerui-site-footer__desc-block {
  min-width: 0;
}

.kerui-site-footer__desc-block .kerui-site-footer__desc + .kerui-site-footer__desc {
  margin-top: 0.35em;
}

.kerui-site-footer__desc--1 {
  grid-column: 1 / 2;
  width: calc(var(--ksf-col1) + 12px);
  justify-self: start;
  align-self: start;
}

.kerui-site-footer__desc-block--mid {
  grid-column: 3 / 6;
  align-self: start;
}

.kerui-site-footer__desc--3 {
  grid-column: 7 / 8;
  align-self: start;
}

/* 右侧咨询合作：顶对齐标题，二维码底与左侧说明底对齐 */
.kerui-site-footer__consult {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--ksf-consult-w);
  width: var(--ksf-consult-w);
  min-width: 0;
  margin-left: auto;
  margin-right: 30px;
  padding-top: 0;
}

.kerui-site-footer__consult .kerui-site-footer__col-title {
  margin-bottom: 0.85rem;
  font-size: 18px;
}

.kerui-site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kerui-site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--ksf-link);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kerui-site-footer__contact .ksf-ico {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  object-fit: contain;
}

.kerui-site-footer__contact .ksf-num {
  font-family: var(--kerui-font-digits, Arial, "Helvetica Neue", Helvetica, sans-serif);
  font-weight: 400;
  color: inherit;
}

/* 仅主联系电话放大加粗 */
.kerui-site-footer__contact .ksf-num--hotline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ksf-text);
  line-height: 1.2;
}

/* 张经理：姓名旁电话/邮箱两行左对齐 */
.kerui-site-footer__contact-person {
  align-items: flex-start;
}

.kerui-site-footer__contact-person .ksf-person-name {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 400;
  color: inherit;
}

.kerui-site-footer__contact-person .ksf-person-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.kerui-site-footer__contact-person .ksf-person-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  line-height: 1.45;
}

.kerui-site-footer__contact-person .ksf-person-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.kerui-site-footer__qr {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 0.35rem;
  margin-top: auto;
  align-self: stretch;
}

.kerui-site-footer__qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.kerui-site-footer__qr-item img {
  display: block;
  width: 4rem;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
}

.kerui-site-footer__qr-item span {
  color: var(--ksf-muted);
  font-size: 0.6875rem;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

/* 关于我们：通栏（左缘对齐五列，右缘到咨询列） */
.kerui-site-footer__about {
  margin-top: 2.75rem;
  padding-top: 0;
  width: 100%;
  max-width: none;
}

.kerui-site-footer__about h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--ksf-text);
}

.kerui-site-footer__about p {
  margin: 0;
  margin-top: 0;
  padding-top: 0;
  max-width: 100%;
  color: var(--ksf-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* 底版权条：全宽浅底 + 居中认证与备案 */
.kerui-site-footer__legal {
  border-top: 1px solid var(--ksf-line);
  background: #eef1f5;
}

.kerui-site-footer__legal-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem var(--ksf-pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1rem;
}

.kerui-site-footer__trust {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.kerui-site-footer__trust img {
  display: block;
  width: 145px;
  height: 30px;
  object-fit: contain;
  border: 0;
}

.kerui-site-footer__legal-text {
  display: inline;
  color: var(--ksf-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
}

.kerui-site-footer__rest {
  margin-right: 0.35rem;
}

.kerui-site-footer__clause {
  color: inherit;
  text-decoration: none;
}

.kerui-site-footer__clause:hover {
  text-decoration: underline;
}

.kerui-site-footer__icp {
  color: var(--ksf-muted);
  text-decoration: none;
  white-space: nowrap;
}

.kerui-site-footer__icp:hover {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .kerui-site-footer {
    --ksf-pad-x: 48px;
    --ksf-consult-w: calc(20rem * 1.1);
  }
}

@media (max-width: 1100px) {
  .kerui-site-footer {
    --ksf-pad-x: 1.75rem;
    --ksf-consult-w: 100%;
  }

  .kerui-site-footer__body {
    flex-direction: column;
    gap: 1.75rem;
  }

  .kerui-site-footer__left,
  .kerui-site-footer__consult {
    flex: none;
    width: 100%;
    max-width: var(--ksf-nav-w);
    margin-left: 0;
    margin-right: 0;
  }

  .kerui-site-footer__consult {
    display: block;
  }

  .kerui-site-footer__qr {
    margin-top: 1.15rem;
  }

  .kerui-site-footer__qr {
    max-width: 22rem;
  }
}

@media (max-width: 960px) {
  .kerui-site-footer__cols,
  .kerui-site-footer__descs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .kerui-site-footer__col:nth-child(1),
  .kerui-site-footer__col:nth-child(2),
  .kerui-site-footer__col:nth-child(3),
  .kerui-site-footer__col:nth-child(4),
  .kerui-site-footer__col:nth-child(5) {
    grid-column: auto;
  }

  .kerui-site-footer__desc--1 { grid-column: 1 / 2; width: auto; }
  .kerui-site-footer__desc-block--mid { grid-column: 2 / 4; }
  .kerui-site-footer__desc--3 { grid-column: 1 / 4; }

  .kerui-site-footer__left,
  .kerui-site-footer__about {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .kerui-site-footer__inner {
    padding: 1.75rem 1.1rem 1.35rem;
  }

  .kerui-site-footer__cols,
  .kerui-site-footer__descs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kerui-site-footer__desc--1,
  .kerui-site-footer__desc-block--mid,
  .kerui-site-footer__desc--3 {
    grid-column: 1 / -1;
    width: auto;
  }

  .kerui-site-footer__qr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 14rem;
  }

  .kerui-site-footer__legal-inner {
    padding: 0.75rem 1.1rem;
  }
}
