/* ==========================================================================
   Footer  v1  ·  2026-11-06
   覆盖 style.css 里第 92-129 行的 footer 段落。
   本文件必须在 style.css 之后加载（foot.html 末尾引入），所以此处普通
   选择器即可覆盖，不需要 !important。
   结构见 template/dafeult/foot.html：
   footer > .l-wrap > .foot-main(.foot-info / .foot-nav) + .copyright
   ========================================================================== */

footer{
  position:relative;
  padding-top:0;
  /* 比首页 .home-cta(#0f171e→#1b2732) 更深一档，避免两个深色区块连成一片。
     左上那团暖橙光晕直接画在背景层，不再用 z-index:-1 的伪元素 —— 那样需要
     isolation:isolate 兜底，而 isolation 会把内部 position:fixed 元素的 z-index
     关在这一层里，导致移动端底部固定栏被上面的内容压住。 */
  background:
    radial-gradient(760px 340px at 4% -10%,rgba(240,133,25,.10),transparent 70%),
    #080d11;
  color:rgba(255,255,255,.66);
  overflow:hidden;
}

/* 顶部 2px 橙色渐变线：从左边淡入，到 45% 处消失，不抢主体内容 */
footer::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;z-index:3;
  background:linear-gradient(90deg,#f08519 0%,#f08519 26%,rgba(240,133,25,0) 78%);
}

footer a{color:rgba(255,255,255,.66);text-decoration:none}
footer a:hover{color:#f08519}

/* -------------------------------------------------------------- 主区 */
footer .foot-main{
  display:grid;
  grid-template-columns:minmax(228px,.82fr) minmax(0,2.18fr);
  gap:46px 60px;
  padding:62px 0 54px;
}

/* ------------------------------------------------- 左列：品牌 / 联系 / 社交 */
.foot-info{width:auto;margin:0;min-width:0}

/* logo 是红蓝+黑字透明 PNG，深底上会看不清，所以给它一块白色圆角底座 */
.foot-info .foot-logo{margin:0 0 26px}
.foot-info .foot-logo a{
  display:inline-block;padding:12px 16px;background:#fff;border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.32);
  transition:transform .25s ease,box-shadow .25s ease;
}
.foot-info .foot-logo a:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(0,0,0,.44)}
.foot-info .foot-logo img{display:block;width:auto;height:auto;max-height:74px;max-width:170px}

.foot-info .foot-tel{
  margin:0;font-size:14.5px;line-height:1.5;
  display:flex;flex-direction:column;gap:11px;
}
.foot-info .foot-tel p{
  margin:0;display:flex;align-items:flex-start;gap:11px;
  color:rgba(255,255,255,.6);
}
.foot-info .foot-tel em{
  flex:0 0 auto;width:30px;height:30px;margin-top:-2px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;background:rgba(240,133,25,.12);
  color:#f08519;font-size:14px;
}
.foot-info .foot-tel a{
  color:#fff;font-weight:600;
  border-bottom:1px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.foot-info .foot-tel a:hover{color:#f08519;border-bottom-color:rgba(240,133,25,.5)}

.foot-info .foot-share{margin-top:26px}
.foot-info .foot-share ul{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0;list-style:none}
.foot-info .foot-share ul li{margin:0}
.foot-info .foot-share ul a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;margin:0;border-radius:10px;font-size:16px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.82);
  transition:background .22s ease,border-color .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.foot-info .foot-share ul a:hover{
  background:#f08519;border-color:#f08519;color:#fff;
  transform:translateY(-3px);box-shadow:0 8px 18px rgba(240,133,25,.34);
}

/* ------------------------------------------------------- 右列：三组导航 */
.foot-nav{
  flex:none;display:grid;
  grid-template-columns:1.45fr 1fr auto;
  gap:36px clamp(24px,3vw,56px);
  min-width:0;
}
.foot-nav .foot-item{width:auto;min-width:0}

.foot-nav .foot-item .foot-title{
  position:relative;
  margin:0;padding-bottom:14px;
  font-size:13px;line-height:1.3;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:#fff;
}
.foot-nav .foot-item .foot-title::after{
  content:"";position:absolute;left:0;bottom:0;
  width:26px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,#f08519,rgba(240,133,25,.22));
}

.foot-nav .foot-item .foot-list{
  display:flex;flex-direction:column;gap:1px;
  padding:0;margin:22px 0 0;list-style:none;
}
.foot-nav .foot-item .foot-list a{
  display:inline-block;padding:5px 0;
  font-size:14.5px;line-height:1.45;opacity:1;
  color:rgba(255,255,255,.64);
  transition:color .18s ease,transform .18s ease;
}
.foot-nav .foot-item .foot-list a:hover{color:#f08519;opacity:1;transform:translateX(3px)}

/* Quick Navigation：8 个入口排成整齐两列 */
.foot-nav .foot-item.foot-quick{width:auto}
.foot-nav .foot-item.foot-quick .foot-list{
  display:grid;grid-template-columns:1fr 1fr;gap:1px 22px;
}
.foot-nav .foot-item.foot-quick .foot-list li{width:auto}

/* ------------------------------------------------------------- 二维码 */
.foot-code{width:auto}
.foot-qrimg{margin-top:22px}
.foot-qrimg img{
  width:118px;height:auto;padding:9px;background:#fff;border-radius:12px;
  box-shadow:0 12px 26px rgba(0,0,0,.34);
  transition:transform .25s ease,box-shadow .25s ease;
}
.foot-qrimg img:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(0,0,0,.46)}
.foot-qr-note{
  margin:12px 0 0;max-width:136px;
  font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.44);
}

/* --------------------------------------------------------------- 版权条 */
footer .copyright{
  position:relative;
  display:block;
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0 24px;
  font-size:13px;line-height:1.7;text-align:center;
  color:rgba(255,255,255,.46);
}
/* 左右各留 56px：左侧让出返回顶部按钮，右侧让出右下角询价抽屉，
   文字在剩余区域内仍是真正居中 */
footer .copyright>p:nth-child(1){margin:0;padding:0 56px}
footer .copyright a{margin:0;color:rgba(255,255,255,.6)}
footer .copyright a:hover{color:#f08519}
footer .copyright .gotop{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  /* 桌面端返回顶部已并入右侧 #ab-mkf 竖栏，这里只给手机端兜底 */
  display:none;align-items:center;justify-content:center;
  width:40px;height:40px;margin:0;border-radius:50%;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.8);font-weight:400;cursor:pointer;
  transition:background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease;
}
footer .copyright .gotop:hover{
  opacity:1;background:#f08519;border-color:#f08519;
  transform:translateY(calc(-50% - 3px));box-shadow:0 8px 18px rgba(240,133,25,.34);
}
footer .copyright .gotop em{
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;height:auto;color:inherit;font-size:14px;
}

/* ------------------------------------------------- 手机端固定底栏（白底版） */
/* 移动端底部固定栏：纯白实底，不能有任何透明度/毛玻璃。
   style.css 里它自带 background:var(--color)（橙），所以这里用 !important 钉死；
   已经在 foot.html 中移到 </footer> 之后，不再受 footer 的 overflow 与层叠上下文影响。 */
.bottom-btn{
  background:#fff !important;
  background-image:none !important;
  opacity:1 !important;
  z-index:9999;
  border-top:1px solid rgba(15,22,28,.08);
  box-shadow:0 -6px 20px rgba(9,14,19,.1);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.bottom-btn .btn-item{
  flex:1 1 0;width:auto;height:64px;
  background:#fff;
  border-right:1px solid rgba(15,22,28,.07);
}
.bottom-btn .btn-item:last-child{border-right:0}
.bottom-btn .btn-item em,.bottom-btn .btn-item i{font-size:19px;color:#f08519;line-height:1}
.bottom-btn .btn-item a,.bottom-btn .btn-item div{color:#0f161c}
.bottom-btn .btn-item a p,.bottom-btn .btn-item div p{font-size:12.5px;color:#0f161c}


/* ============================ 右侧竖栏 #ab-mkf：返回顶部 ============================ */
/* 基础布局在 style.css（right:5px / top:40% / 白底 78px 宽），
   其余三项的图标是 ab-ico23.png 精灵图，没有向上的箭头，这里改用 iconfont。 */
#ab-mkf .ab-gotop .iconfont{
  display:inline-block;width:28px;height:28px;line-height:28px;text-align:center;
  font-size:15px;color:#f08519;
  background:rgba(240,133,25,.12);border-radius:50%;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
#ab-mkf .ab-gotop:hover{background:#f08519}
#ab-mkf .ab-gotop:hover .iconfont{color:#fff;background:rgba(255,255,255,.2);transform:translateY(-1px)}

/* ============================================================== 响应式 */

/* 平板：左列压到上面，导航仍三列 */
@media (max-width:1024px){
  footer .foot-main{grid-template-columns:1fr;gap:42px;padding:52px 0 44px}
  .foot-nav{grid-template-columns:1.45fr 1fr auto;gap:32px 28px}
  .foot-info .foot-logo{margin-bottom:22px}
}

/* 手机：全部单列；二维码在小屏继续隐藏（原主题逻辑），底部固定栏可替代 */
@media (max-width:768px){
  footer .l-wrap{padding-bottom:70px}
  footer .foot-main{display:block;padding:40px 0 28px}
  .foot-info{margin-bottom:32px}
  /* style.css 在 <=768 把 .foot-logo 关掉了，这里恢复（白底卡片在深色页脚上是品牌锚点） */
  .foot-info .foot-logo{display:block}
  .foot-nav{display:block}
  .foot-nav .foot-item{width:auto;margin:0 0 26px}
  .foot-nav .foot-item:last-child{margin-bottom:0}
  .foot-nav .foot-item.foot-quick .foot-list{display:grid;grid-template-columns:1fr 1fr;gap:1px 20px}
  .foot-nav .foot-item .foot-list{display:flex;flex-direction:column;margin-top:18px}
  .foot-nav .foot-item .foot-list li{width:auto}
  .foot-nav .foot-item .foot-list li a{width:auto;padding:5px 0;white-space:normal}
  .foot-nav .foot-item.foot-code{display:none}
  footer .copyright{padding:18px 0 20px;font-size:12.5px}
  footer .copyright>p:nth-child(1){padding:0 46px}
  /* 手机上 .ab_message 抽屉被隐藏，右下角没人占用，按钮挪回右侧更平衡 */
  /* <=768 时 #ab-mkf 竖栏是隐藏的，返回顶部回到版权条右侧 */
  footer .copyright .gotop{display:inline-flex;left:auto;right:0;width:36px;height:36px}
}

@media (max-width:500px){
  footer .foot-main{padding:36px 0 26px}
  .foot-info .foot-logo a{padding:10px 14px;border-radius:10px}
  .foot-info .foot-logo img{max-height:62px;max-width:146px}
  .foot-info .foot-share ul a{width:36px;height:36px}
  .foot-nav .foot-item.foot-quick .foot-list{grid-template-columns:1fr 1fr;gap:1px 14px}
  .foot-nav .foot-item .foot-list a{font-size:14px}
  footer .copyright{font-size:12px;line-height:1.65}
}
