/* footer.css - bottom + floating sidebar */
/* =====================================================
   Footer
   ===================================================== */
.byc-ftr { background: var(--byc-bg-dark); color: rgba(255,255,255,0.7); padding-top: 64px; }
.byc-ftr-grid {
  display: grid; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .byc-ftr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .byc-ftr-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: 48px; } }

.byc-ftr-brand { max-width: 320px; }
@media (min-width: 640px) and (max-width: 1023px) { .byc-ftr-brand { grid-column: span 2; max-width: 100%; } }
.byc-ftr-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.byc-ftr-logo-text { font-size: 18px; font-weight: 700; color: #fff; }
.byc-ftr-logo-img { max-height: 44px; width: auto; display: block; }
.byc-ftr-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.byc-ftr-social { display: flex; gap: 12px; }
.byc-ftr-social-link {
  width: 40px; height: 40px; border-radius: var(--byc-r-md);
  background: rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--byc-trans);
}
.byc-ftr-social-link .ico { width: 20px; height: 20px; display: block; }
.byc-ftr-social-link:hover { background: var(--byc-primary); color: #fff; transform: translateY(-3px); }

.byc-ftr-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.byc-ftr-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); padding: 6px 0; transition: var(--byc-trans); }
.byc-ftr-col a:hover { color: #fff; padding-left: 6px; }

.byc-ftr-contact h4 { margin-bottom: 20px; }
.byc-ftr-citem { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.byc-ftr-cico {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--byc-r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--byc-primary-light);
}
.byc-ftr-cico .ico { width: 18px; height: 18px; display: block; }

.byc-ftr-bottom {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 0;
  text-align: center; font-size: 12px;
}
@media (min-width: 768px) {
  .byc-ftr-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.byc-ftr-copy a { color: rgba(255,255,255,0.6); }
.byc-ftr-copy a:hover { color: #fff; }
.byc-ftr-links { display: flex; gap: 24px; justify-content: center; }
.byc-ftr-links a { color: rgba(255,255,255,0.6); }
.byc-ftr-links a:hover { color: #fff; }

/* 友情链接区 (admin friend_link → SeoMeta::loadFriends → footer; 无友链时模板 {if} 整区隐藏) */
.byc-ftr-flink {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.byc-ftr-flink-label { color: rgba(255,255,255,0.85); font-weight: 600; flex-shrink: 0; }
.byc-ftr-flink-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.byc-ftr-flink-list a { color: rgba(255,255,255,0.6); }
.byc-ftr-flink-list a:hover { color: #fff; }

/* =====================================================
   Floating Sidebar
   ===================================================== */
.byc-side { position: fixed; right: 16px; bottom: 96px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.byc-side-btn {
  position: relative;
  width: 56px; height: 56px;
  background: #fff;
  border: 1px solid var(--byc-border);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: var(--byc-sd-md);
  color: var(--byc-text-sec);
  transition: var(--byc-trans);
  font-size: 11px;
  cursor: pointer;
}
.byc-side-btn .ico { width: 22px; height: 22px; color: inherit; display: block; }
.byc-side-btn:hover { background: #3860F4; border-color: #3860F4; color: #fff; transform: translateX(-3px); box-shadow: 0 4px 15px rgba(56,96,244,.40); }
/* hover popup (微信二维码 / 电话号码) — 动态客服信息 */
.byc-side-pop {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .25s ease;
  white-space: nowrap;
  color: #292929;
  z-index: 10;
}
.byc-side-pop::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  border-right: 1px solid #e5eaf3; border-top: 1px solid #e5eaf3;
}
.byc-side-pop img { width: 130px; height: 130px; display: block; border-radius: 4px; }
.byc-side-pop strong { font-size: 17px; color: #3860F4; font-weight: 700; letter-spacing: .5px; }
.byc-side-pop i { font-style: normal; font-size: 11px; color: #888; }
.byc-side-btn:hover .byc-side-pop { opacity: 1; visibility: visible; transform: translate(0, -50%); color: #292929; }
.byc-side-top { opacity: 0; visibility: hidden; transform: translateY(20px); }
.byc-side-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
/* mobile (<768): sidebar 完全隐藏避免遮挡内容; 联系方式可走 footer 或 mnav */
@media (max-width: 767px) {
  .byc-side { display: none; }
}
/* tablet (768-1199): 紧凑模式 */
@media (min-width: 768px) and (max-width: 1199px) {
  .byc-side { right: 10px; bottom: 80px; gap: 6px; }
  .byc-side-btn { width: 48px; height: 48px; border-radius: 8px; }
  .byc-side-btn .ico { width: 18px; height: 18px; }
  .byc-side-btn span { font-size: 10px; }
}


/* =====================================================
   Footer Icons — mask-image + Data URI 内嵌
   - 撤 inline SVG / PNG <img>, 改 CSS mask-image
   - background-color: currentColor 跟父类 color (hover 变色保留)
   - 11 个 icon: 3 social + 3 contact + 5 side bar
   ===================================================== */
.byc-ftr-social-link .ico,
.byc-ftr-cico .ico,
.byc-side-btn .ico {
  background-color: currentColor;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-image: var(--byc-ico);
          mask-image: var(--byc-ico);
}

/* footer social 3 (微信/QQ/邮箱) */
.ico-social-wechat {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 4.5c-3.8 0-7 2.6-7 5.7 0 1.8 1.1 3.4 2.7 4.4l-.7 2.2 2.5-1.3c.8.2 1.7.3 2.5.3.3 0 .5 0 .8-.1-.2-.4-.3-.9-.3-1.4 0-2.7 2.7-4.8 6-4.8h.4C15.3 6.7 12.4 4.5 9 4.5zM6.5 8c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zm5 0c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1z'/><path d='M22 14c0-2.6-2.7-4.7-6-4.7s-6 2.1-6 4.7c0 2.7 2.7 4.7 6 4.7.7 0 1.4-.1 2-.3l2 1-.5-1.8c1.5-.9 2.5-2.2 2.5-3.6zm-8-1c-.5 0-.9-.4-.9-.9s.4-.8.9-.8.8.4.8.8c0 .5-.4.9-.8.9zm4 0c-.5 0-.9-.4-.9-.9s.4-.8.9-.8.8.4.8.8c0 .5-.4.9-.8.9z'/></svg>");
}
.ico-social-qq {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c-3.5 0-6 2.5-6 6 0 1 .3 2 .3 2-1 .8-1.8 2.2-1.8 3.2 0 .7.5 1.3 1 1.5l1 .3c-.3 1-.5 2-.5 2.5 0 1 .5 2 1 2 .3 0 .6-.3.8-.8 1.4.6 2.8.8 4.2.8s2.8-.2 4.2-.8c.2.5.5.8.8.8.5 0 1-1 1-2 0-.5-.2-1.5-.5-2.5l1-.3c.5-.2 1-.8 1-1.5 0-1-.8-2.4-1.8-3.2 0 0 .3-1 .3-2 0-3.5-2.5-6-6-6z'/></svg>");
}
.ico-social-mail {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 5h18v14H3V5zm9 7L4 7v10h16V7l-8 5z'/></svg>");
}

/* footer contact 3 (电话/邮箱/时间) */
.ico-contact-phone {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M3.6 7.8c1.2 2.4 3.2 4.4 5.6 5.6l1.9-1.9c.2-.2.6-.3.9-.2 1 .3 2 .5 3.1.5.5 0 .9.4.9.9v3c0 .5-.4.9-.9.9C7.2 16.6 1.4 10.8 1.4 3.3c0-.5.4-.9.9-.9h3c.5 0 .9.4.9.9 0 1.1.2 2.1.5 3.1.1.3 0 .7-.2.9L4.6 7.8z'/></svg>");
}
.ico-contact-mail {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M2 4h14v10H2V4zm7 5.5L3 5v8h12V5L9 9.5z'/></svg>");
}
.ico-contact-clock {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M9 1.5C4.86 1.5 1.5 4.86 1.5 9S4.86 16.5 9 16.5 16.5 13.14 16.5 9 13.14 1.5 9 1.5zM12 10H8V4.5h1.5v4H12V10z'/></svg>");
}

/* side bar 5 (QQ/微信/电话/工单/TOP) */
.ico-side-qq {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c-3.5 0-6 2.5-6 6 0 1 .3 2 .3 2-1 .8-1.8 2.2-1.8 3.2 0 .7.5 1.3 1 1.5l1 .3c-.3 1-.5 2-.5 2.5 0 1 .5 2 1 2 .3 0 .6-.3.8-.8 1.4.6 2.8.8 4.2.8s2.8-.2 4.2-.8c.2.5.5.8.8.8.5 0 1-1 1-2 0-.5-.2-1.5-.5-2.5l1-.3c.5-.2 1-.8 1-1.5 0-1-.8-2.4-1.8-3.2 0 0 .3-1 .3-2 0-3.5-2.5-6-6-6z'/></svg>");
}
.ico-side-wechat {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 4.5c-3.8 0-7 2.6-7 5.7 0 1.8 1.1 3.4 2.7 4.4l-.7 2.2 2.5-1.3c.8.2 1.7.3 2.5.3.3 0 .5 0 .8-.1-.2-.4-.3-.9-.3-1.4 0-2.7 2.7-4.8 6-4.8h.4C15.3 6.7 12.4 4.5 9 4.5z'/><path d='M22 14c0-2.6-2.7-4.7-6-4.7s-6 2.1-6 4.7c0 2.7 2.7 4.7 6 4.7.7 0 1.4-.1 2-.3l2 1-.5-1.8c1.5-.9 2.5-2.2 2.5-3.6z'/></svg>");
}
.ico-side-phone {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 4.7c1.5 3 4 5.5 7 7l2.3-2.3c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1.1.5 1.1 1.1v3.8c0 .6-.5 1.1-1.1 1.1C8.8 15.7 1.3 8.2 1.3 1.1 1.3.5 1.8 0 2.4 0h3.8c.6 0 1.1.5 1.1 1.1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L5 4.7z'/></svg>");
}
.ico-side-ticket {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16v18H4V3zm2 3v2h12V6H6zm0 4v2h12v-2H6zm0 4v2h8v-2H6z'/></svg>");
}
.ico-side-top {
  --byc-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 6l-7 7h4v6h6v-6h4l-7-7z'/></svg>");
}

