/* AsoRank 统一页脚组件 —— 全站共用
   与 site-nav.css 对称：变量前缀 --asofooter-，主色沿用站内紫 #6153ff，
   全部使用自有命名空间，不污染各模板（templets / layui）既有样式。
   响应式：桌面四列 → 991px 两列 → 767px 单列堆叠；CTA 区窄屏纵向排列。 */

:root {
  --asofooter-primary: #6153ff;
  --asofooter-primary-dark: #4a3ce0;
  --asofooter-ink: #1e183f;
  --asofooter-muted: #6b6a80;
  --asofooter-border: #ece9f5;
  --asofooter-bg: #faf9ff;
}

.asofooter {
  display: block;
  background: var(--asofooter-bg);
  border-top: 1px solid var(--asofooter-border);
  font-family: Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--asofooter-ink);
}

/* ---------- CTA 区 ---------- */
.asofooter__cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--asofooter-border);
}

.asofooter__cta-text {
  flex: 1 1 auto;
  min-width: 0;
}

.asofooter__cta-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--asofooter-ink);
}

.asofooter__cta-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--asofooter-muted);
  max-width: 660px;
}

/* CTA 按钮（客户指定的 53kf 在线咨询入口，链接原样保留） */
.asofooter__btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 14px 30px;
  background: var(--asofooter-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .18s ease;
}
.asofooter__btn:hover {
  background: var(--asofooter-primary-dark);
  color: #fff;
}

/* ---------- 主体四列 ---------- */
.asofooter__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

/* 品牌列 */
.asofooter__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.asofooter__logo {
  display: inline-flex;
  text-decoration: none;
}
.asofooter__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.asofooter__email {
  font-size: 14px;
  color: var(--asofooter-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.asofooter__email:hover {
  color: var(--asofooter-primary);
}

.asofooter__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.asofooter__social a {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--asofooter-muted);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--asofooter-border);
  border-radius: 8px;
  transition: color .15s ease, border-color .15s ease;
}
.asofooter__social a:hover {
  color: var(--asofooter-primary);
  border-color: var(--asofooter-primary);
}

/* 链接列 */
.asofooter__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* 栏目标题用 p（不用 h2/h3，避免占用正文 H 标签层级） */
.asofooter__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--asofooter-ink);
}

.asofooter__col a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--asofooter-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.asofooter__col a:hover {
  color: var(--asofooter-primary);
}

/* ---------- 底部 ---------- */
.asofooter__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--asofooter-border);
  font-size: 13px;
  color: var(--asofooter-muted);
}

.asofooter__copy {
  font-size: 13px;
  color: var(--asofooter-muted);
}

.asofooter__lang {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--asofooter-muted);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--asofooter-border);
  border-radius: 8px;
  transition: color .15s ease, border-color .15s ease;
}
.asofooter__lang:hover {
  color: var(--asofooter-primary);
  border-color: var(--asofooter-primary);
}

/* ---------- 平板：两列 ---------- */
@media (max-width: 991px) {
  .asofooter__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .asofooter__cta {
    padding: 32px 20px;
    gap: 20px;
  }
  .asofooter__cta-title {
    font-size: 20px;
  }
}

/* ---------- 手机：单列堆叠 + CTA 纵向 ---------- */
@media (max-width: 767px) {
  .asofooter__main {
    /* 品牌块占满首行，三个链接列两列排布，避免右侧大片留白 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
    padding: 32px 20px;
  }
  .asofooter__brand {
    grid-column: 1 / -1;
  }
  /* Service(6项) 与 Company(6项) 并排，单项 Resources 挪到后一行 */
  .asofooter__col:nth-of-type(3) { order: 2; }
  .asofooter__col:nth-of-type(2) { order: 3; }
  .asofooter__cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
    gap: 16px;
  }
  .asofooter__cta-title {
    font-size: 19px;
  }
  .asofooter__btn {
    width: 100%;
    /* width:100% + horizontal padding would otherwise render the button wider
       than the CTA card at 375px (335px content + 40px padding = 375px). */
    box-sizing: border-box;
    text-align: center;
    padding: 13px 20px;
  }
  .asofooter__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 28px;
  }
}

/* ---- 底栏 Sitemap / RSS 链接组 ---- */
.asofooter__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.asofooter__meta-link {
  font-size: 13px;
  color: var(--asofooter-muted);
  text-decoration: none;
}
.asofooter__meta-link:hover { color: var(--asofooter-primary); }
.asofooter__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}
.asofooter__links a {
  font-size: 13px;
  color: var(--asofooter-muted);
  text-decoration: none;
}
.asofooter__links a:hover { color: var(--asofooter-primary); }
