/* kenda 页脚：深色底 + 上/中/下三段，右侧悬浮订阅按钮 */
/* 说明：本主题 public.css 未提供 --gap-* / --font-* 变量，间距字号按设计稿直接写 px */

.kenda_foot {
  /* 深色底为组件自身视觉，非主题背景色语义，故直接写色值 */
  background: #0f172a;
  font-family: var(--font-family);
  position: relative;
}

/* ---------- 上部：logo + 描述 ---------- */
.kenda_foot .kd-foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 514px;
  padding: 83px 0;
  padding-right: 147px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.kenda_foot .kd-foot-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.kenda_foot .kd-foot-logo img {
  width: auto;
  height: 84px;
  aspect-ratio: 80/21;
  object-fit: contain;
}

.kenda_foot .kd-foot-desc {
  flex: 1;
  max-width: 559px;
  margin: 0;
  color: #c2cbd7;
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  /* 160% */
  text-transform: capitalize;
}

/* ---------- 中部：四列 ---------- */
.kenda_foot .kd-foot-mid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 98px 147px 75px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.kenda_foot .kd-foot-col-title {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  /* 140% */
  text-transform: capitalize;
}

.kenda_foot .kd-foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kenda_foot .kd-foot-links li {
  margin-bottom: 10px;
}

.kenda_foot .kd-foot-links li:last-child {
  margin-bottom: 0;
}

.kenda_foot .kd-foot-links a {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 114.286% */
  text-transform: capitalize;
  text-decoration: none;
  transition: color 0.3s;
}

.kenda_foot .kd-foot-links a:hover {
  color: #fff;
}

/* ---------- 第四列：联系方式 ---------- */
.kenda_foot .kd-foot-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kenda_foot .kd-foot-contact-item {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.kenda_foot .kd-foot-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.kenda_foot .kd-foot-contact-item a:hover {
  color: #fff;
}

/* 地址较长，标签独占一行 */
.kenda_foot .kd-foot-contact-address .kd-foot-contact-label {
  display: block;
}

.kenda_foot .kd-foot-contact-address .kd-foot-contact-text {
  display: block;
  line-height: 20px;
}

/* ---------- 社媒图标 ---------- */
.kenda_foot .kd-foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.kenda_foot .kd-foot-social-item {
  margin: 0;
}

.kenda_foot .kd-foot-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  transition: background-color 0.3s;
}

.kenda_foot .kd-foot-social-link:hover {
  background: #fff;
  border: 1px solid transparent;
}

.kenda_foot .kd-foot-social-link:hover svg path {
  fill: #289fd2;
  fill-opacity: 1;
}

.kenda_foot .kd-foot-social-link svg {
  width: 16px;
  height: 16px;
}

.kenda_foot .kd-foot-social-text {
  font-size: 12px;
  line-height: 1;
  text-transform: capitalize;
}

/* ---------- 下部：版权 ---------- */
.kenda_foot .kd-foot-bottom {
  padding: 55px 0;
  text-align: center;
}

.kenda_foot .kd-foot-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 114.286% */
  text-transform: capitalize;
}

.kenda_foot .kd-foot-divider {
  margin: 0 6px;
}

.kenda_foot .kd-foot-sitemap {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.kenda_foot .kd-foot-sitemap:hover {
  color: #fff;
}

/* ---------- 右侧悬浮订阅按钮 ---------- */
.kd-foot-float-btn {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 0.3s;
}

.kd-foot-float-btn:hover {
  background: #e5582d;
}

.kd-foot-float-btn:active {
  background: #156eb0;
}

.kd-foot-float-btn svg {
  width: 28px;
  height: 28px;
}

/* ---------- 订阅弹窗 ---------- */
/* 必填校验 */
#kd-subscribe-popup .crmFormVali-error {
  right: unset !important;
  top: unset !important;
}

/* fancybox 容器去掉默认内边距，弹窗自带留白 */
.fancybox-content .kd-subscribe-popup,
.kd-subscribe-popup {
  padding: 0;
  background: transparent;
}

.fancybox-slide .kd-subscribe-popup {
  width: 100%;
  max-width: 880px;
  padding: 0;
  overflow: visible;
  border-radius: 10px;
}

.kd-subscribe-inner {
  /* ★ 斜对角白带位置：只调这两个变量（单位 px，对应 viewBox 870×714 的坐标）
     --kd-band-x：负数 → 往【左】移；正数 → 往【右】移（每 87px ≈ 弹窗宽度的 10%）
     --kd-band-y：正数 → 往【下】移；负数 → 往【上】移（每 71px ≈ 弹窗高度的 10%） */
  --kd-band-x: -485px;
  --kd-band-y: 107px;
  position: relative;
  padding: 50px;
  padding-top: 80px;
  padding-right: 40px;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 10px;
  font-family: var(--font-family);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

/* 斜对角白色装饰带：SVG 铺满弹窗（preserveAspectRatio="none" 让白带角度跟随弹窗宽高），
   位移作用在 path 上而不是整个 svg —— 视口不动、原 path 范围远超 viewBox
   （x -263~1757，y -478~791），所以怎么移都不会露出白带断边 */
.kd-subscribe-band {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.kd-subscribe-band path {
  transform: translate(var(--kd-band-x), var(--kd-band-y));
}

.kd-subscribe-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
}

.kd-subscribe-text {
  flex: 1;
  min-width: 0;
}

.kd-subscribe-title {
  margin: 0 0 10px;
  color: #222;
  font-family: var(--font-family);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}

.kd-subscribe-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #222;
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.6px;
  text-transform: capitalize;
}

.kd-subscribe-tip-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  line-height: 1;
}

.kd-subscribe-desc {
  margin: 0;
  color: #666;
  font-family: var(--second-font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-transform: capitalize;
}

.kd-subscribe-pic {
  flex-shrink: 0;
  width: 305px;
  line-height: 0;
}

.kd-subscribe-pic img {
  width: 100%;
  height: 224px;
  aspect-ratio: 143/105;
  border-radius: 5px;
  object-fit: cover;
}

.kd-subscribe-form {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  margin-right: 8px;
}

.kd-subscribe-label {
  display: block;
  margin-bottom: 10px;
  color: #000;
  /* 正文 */
  font-family: var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
  margin-top: 20px;
}

.kd-subscribe-label.require::after {
  content: '*';
  color: #d00;
  font-size: 20px;
  line-height: normal;
  text-transform: capitalize;
  font-family: var(--font-family);
  display: inline-block;
}

.kd-subscribe-label:nth-child(1) {
  margin-top: 0px;
}

.kd-subscribe-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #fff;
  color: #999;
  font-family: var(--font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-transform: capitalize;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.kd-subscribe-input::placeholder {
  color: #9aa1ac;
}

.kd-subscribe-input:focus {
  border-color: var(--color-primary);
}

.kd-subscribe-agree {
  padding: 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

/* 隐藏原生 checkbox，用自定义 SVG 图标替代 */
.kd-subscribe-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.kd-subscribe-checkbox-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-primary);
  cursor: pointer;
}

.kd-subscribe-checkbox-icon svg {
  width: 16px;
  height: 16px;
}

/* 默认显示未选中图标 */
.kd-checkbox-unchecked {
  display: block;
}

.kd-checkbox-checked {
  display: none;
}

/* 选中后切换图标 - 使用相邻兄弟选择器 */
.kd-subscribe-checkbox:checked
  + .kd-subscribe-checkbox-icon
  .kd-checkbox-unchecked {
  display: none;
}

.kd-subscribe-checkbox:checked
  + .kd-subscribe-checkbox-icon
  .kd-checkbox-checked {
  display: block;
}

.kd-subscribe-agree-text {
  color: #999;
  font-family: var(--second-font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-transform: capitalize;
}

.kd-subscribe-agree-text a {
  color: #1e6aa8;
  text-decoration: underline;
}

.kd-subscribe-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  cursor: pointer;
  transition:
    background-color 0.3s,
    opacity 0.3s;
  border-radius: 12px;
  background: #ff6232;
  box-shadow: 0 20px 25px 0 rgba(255, 98, 50, 0.2);
}

.kd-subscribe-submit:hover:not(:disabled) {
  background: var(--btn-hover, var(--color-primary));
  box-shadow: none;
}

.kd-subscribe-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #d1d5db;
  box-shadow: none;
}
.fancybox-slide--html .fancybox-close-small {
  width: 50px;
  height: 50px;
  /* right: 20px!important; */
  /* top: 10px!important; */
}



@media screen and (max-width: 1280px) {
  .kenda_foot .kd-foot-mid {
    padding: 60px;
  }
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
  .kenda_foot .kd-foot-top {
    gap: 40px;
  }

  .kenda_foot .kd-foot-mid {
    gap: 24px;
  }
}

@media screen and (max-width: 992px) {
  /* 上部转纵向堆叠，中部收为两列 */
  .kenda_foot .kd-foot-top {
    flex-direction: column;
    gap: 24px;
    padding: 40px 0 30px;
  }

  .kenda_foot .kd-foot-mid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
    padding: 36px 0;
  }

  .kd-foot-float-btn {
    right: 0;
    width: 48px;
    height: 48px;
  }

  .kd-foot-float-btn svg {
    width: 24px;
    height: 24px;
  }

  .kd-subscribe-inner {
    padding: 30px 24px;
  }

  /* 弹窗头部转纵向，配图移到文字下方 */
  .kd-subscribe-head {
    flex-direction: column;
    gap: 20px;
  }

  .kd-subscribe-pic {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .kenda_foot .kd-foot-mid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .kenda_foot .kd-foot-logo img {
    height: 44px;
  }

  .kd-subscribe-inner {
    padding: 24px 18px;
  }
}
