/* ============================================================
 * footer.css
 * 上海禹亮信息科技有限公司 - 全站 footer 专属样式
 * 设计语言对齐 service.css / contact.css —— 深色 + 青蓝高亮
 * ============================================================ */

/* CSS 变量定义在 :root 上方，让 footer 模块在所有页面统一可用 */
.ftr_cta,
#ftr_main,
.ftr_copyright {
  --ftr-bg-dark: #0f172a;
  --ftr-bg-darker: #0a1426;
  --ftr-bg-mid: #1e293b;
  --ftr-text: #ffffff;
  --ftr-text-2: rgba(255, 255, 255, 0.78);
  --ftr-text-3: rgba(255, 255, 255, 0.55);
  --ftr-text-4: rgba(255, 255, 255, 0.40);
  --ftr-border: rgba(255, 255, 255, 0.10);
  --ftr-border-strong: rgba(0, 212, 255, 0.30);
  --ftr-accent: #00d4ff;
  --ftr-accent-2: #0ea5e9;
  --ftr-accent-soft: rgba(0, 212, 255, 0.12);
  --ftr-radius: 12px;
  --ftr-radius-lg: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}

.ftr_cta .containe,
#ftr_main .containe,
.ftr_copyright .containe {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}


/* ============================================================
 * Section 1: Footer CTA 大区块
 * ============================================================ */
.ftr_cta {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  overflow: hidden;
}
.ftr_cta::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18) 0%, rgba(0, 212, 255, 0) 60%);
  pointer-events: none;
}
.ftr_cta::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0) 60%);
  pointer-events: none;
}

.ftr_cta_inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  z-index: 1;
}

.ftr_cta_text {
  flex: 1;
  min-width: 0;
  color: var(--ftr-text);
}
.ftr_cta_eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--ftr-accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: var(--ftr-accent-soft);
  border-radius: 4px;
}
.ftr_cta_text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.ftr_cta_text p {
  font-size: 15px;
  color: var(--ftr-text-2);
  margin: 0;
  line-height: 1.8;
}

.ftr_cta_actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.ftr_cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 260px;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}
.ftr_cta_btn.primary {
  background: linear-gradient(135deg, var(--ftr-accent) 0%, var(--ftr-accent-2) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.32);
}
.ftr_cta_btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.42);
}
.ftr_cta_btn.primary i.iconfont {
  font-size: 22px;
  flex-shrink: 0;
}
.ftr_cta_btn.primary > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  line-height: 1.2;
}
.ftr_cta_btn.primary .btn_label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.ftr_cta_btn.primary .btn_value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ftr_cta_btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ftr_cta_btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.ftr_cta_btn.ghost svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.ftr_cta_btn.ghost:hover svg {
  transform: translateX(2px);
}


/* ============================================================
 * Section 2: Footer 主信息区
 * ============================================================ */
#ftr_main {
  background: var(--ftr-bg-darker);
  padding: 64px 0 48px;
  border-top: 1px solid var(--ftr-border);
}

.ftr_grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 48px;
  align-items: flex-start;
}

/* 列 1：Brand + 公司信息 */
.ftr_col_brand .ftr_logo {
  display: inline-block;
  margin-bottom: 20px;
}
.ftr_col_brand .ftr_logo img {
  height: 42px;
  display: block;
  filter: brightness(0) invert(1);
  /* 注意：filter 会让 logo 变成纯白色，如果原 logo 已经是白色或透明背景适合深色，请删除上一行 filter */
}

.ftr_company_name {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ftr_company_name strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ftr-text);
  letter-spacing: -0.005em;
}
.ftr_company_name span {
  font-size: 12px;
  color: var(--ftr-text-4);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ftr_contact_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ftr_contact_list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ftr-text-2);
  line-height: 1.6;
}
.ftr_contact_list li i.iconfont {
  font-size: 15px;
  color: var(--ftr-accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.ftr_contact_list li svg {
  color: var(--ftr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.ftr_contact_list li a {
  color: var(--ftr-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ftr_contact_list li a:hover {
  color: var(--ftr-accent);
}


/* 列 2：栏目导航 - 6 列横排 */
.ftr_nav_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 16px;
}
.ftr_nav_group {
  margin: 0;
  min-width: 0;
}
.ftr_nav_group dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ftr-text);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ftr_nav_group dt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--ftr-accent) 0%, var(--ftr-accent-2) 100%);
  border-radius: 1px;
}
.ftr_nav_group dt a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ftr_nav_group dt a:hover {
  color: var(--ftr-accent);
}
.ftr_nav_group dd {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 子项只显示前 4 个，超出隐藏 */
.ftr_nav_group dd:nth-child(n+6) {
  display: none;
}
.ftr_nav_group dd a {
  color: var(--ftr-text-3);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftr_nav_group dd a:hover {
  color: var(--ftr-accent);
  padding-left: 3px;
}


/* 列 3：双二维码 */
.ftr_col_qr {
  display: flex;
  flex-direction: column;
}
.ftr_qr_head {
  font-size: 14px;
  font-weight: 700;
  color: var(--ftr-text);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: -0.005em;
}
.ftr_qr_head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--ftr-accent) 0%, var(--ftr-accent-2) 100%);
  border-radius: 1px;
}

.ftr_qr_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.ftr_qr_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ftr_qr_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 120px;
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.ftr_qr_img:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(0, 212, 255, 0.25);
}
.ftr_qr_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.ftr_qr_placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 4px;
  color: #94a3b8;
}
.ftr_qr_placeholder svg {
  width: 70%;
  height: 70%;
}

.ftr_qr_label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ftr_qr_label .qr_role {
  font-size: 11px;
  color: var(--ftr-text-4);
  letter-spacing: 0.05em;
}
.ftr_qr_label .qr_name {
  font-size: 13px;
  color: var(--ftr-text-2);
  font-weight: 600;
}

.ftr_qr_hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ftr-text-4);
  letter-spacing: 0.02em;
  line-height: 1.5;
}


/* ============================================================
 * Section 3: 版权条
 * ============================================================ */
.ftr_copyright {
  background: var(--ftr-bg-darker);
  border-top: 1px solid var(--ftr-border);
  padding: 18px 0;
}
.ftr_copyright_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ftr_copyright_text {
  font-size: 12.5px;
  color: var(--ftr-text-4);
  line-height: 1.6;
}
.ftr_copyright_text a {
  color: var(--ftr-text-3);
  text-decoration: none;
  margin-left: 8px;
  transition: color 0.2s ease;
}
.ftr_copyright_text a:hover {
  color: var(--ftr-accent);
}
.ftr_copyright_extra {
  font-size: 12px;
  color: var(--ftr-text-4);
}


/* ============================================================
 * 响应式
 * ============================================================ */

/* 平板 */
@media (max-width: 1280px) {
  .ftr_cta .containe,
  #ftr_main .containe,
  .ftr_copyright .containe {
    padding: 0 28px;
  }
  .ftr_grid {
    grid-template-columns: 240px 1fr 240px;
    gap: 32px;
  }
  /* 中等屏幕栏目导航降为 3 列 2 行 */
  .ftr_nav_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }
  .ftr_qr_img {
    max-width: 110px;
  }
}

@media (max-width: 1024px) {
  .ftr_cta {
    padding: 48px 0;
  }
  .ftr_cta_inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 32px;
  }
  .ftr_cta_actions {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ftr_cta_btn {
    min-width: 220px;
    flex: 1;
    max-width: 320px;
  }

  #ftr_main {
    padding: 48px 0 36px;
  }
  .ftr_grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .ftr_col_qr {
    grid-column: span 2;
    max-width: 480px;
  }
}

/* 移动端 - 大幅简化：只保留 logo + 联系信息 + 双二维码 + 版权 */
@media (max-width: 768px) {
  /* 容器内边距收紧 */
  .ftr_cta .containe,
  #ftr_main .containe,
  .ftr_copyright .containe {
    padding: 0 20px;
  }

  /* 隐藏 CTA 大区块（移动端右下角悬浮+toolbar 已有拨号入口） */
  .ftr_cta {
    display: none;
  }

  /* 隐藏栏目导航（移动端有侧滑菜单，重复） */
  .ftr_col_nav {
    display: none;
  }

  /* 隐藏公司英文名 */
  .ftr_company_name span {
    display: none;
  }

  #ftr_main {
    padding: 40px 0 28px;
  }
  .ftr_grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ftr_col_qr {
    grid-column: auto;
    max-width: none;
  }

  /* logo 居中显示 */
  .ftr_col_brand {
    text-align: center;
  }
  .ftr_col_brand .ftr_logo img {
    margin: 0 auto;
  }
  .ftr_company_name {
    align-items: center;
  }
  .ftr_contact_list li {
    justify-content: flex-start;
  }

  /* 二维码区头部居中 */
  .ftr_qr_head {
    text-align: center;
  }
  .ftr_qr_head::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .ftr_qr_grid {
    max-width: 320px;
    margin: 0 auto;
  }
  .ftr_qr_hint {
    text-align: center;
  }

  .ftr_copyright_inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .ftr_copyright_text a {
    margin-left: 4px;
    margin-right: 4px;
  }

  /* 给底部 toolbar 留空间，避免版权条被遮挡 */
  .ftr_copyright {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .ftr_qr_grid {
    max-width: 280px;
    gap: 12px;
  }
}
