/* =========================================================
   HOSONIC 首页同款底部 · ShopXO 原生商城页统一版（2026-11-14）
   - 仅由 public/footer.html 在启用 hs_footer 的页面条件加载，未启用页不会引入本文件，零污染
   - 首页 .public-footer 的等价实现（前缀 hs-footer，避免与 ShopXO 官方 CSS 冲突）
   - 保留官方 .am-footer 的 Powered by / ICP 备案等后台配置，收敛为同色深蓝细条
   - 不改动 .body-content-container 的 flex 布局，短内容页页脚仍自然贴底
   ========================================================= */

/* 让官方底部容器与首页页脚之间不留浅色空隙 */
.body-content-footer-container {
    margin-top: 0;
    padding-top: 0;
    background: #061a35;
}

/* 官方页脚主体：保留备案 / Powered by 文案与链接，只改成同色深蓝细条 */
.body-content-footer-container .am-footer.am-footer-default,
.body-content-footer-container .am-footer.footer-base-content {
    background: #061a35 !important;
    border-top: 0 !important;
    color: rgba(228, 238, 250, .44) !important;
    margin: 0 !important;
    padding: 12px 0 18px !important;
}
.body-content-footer-container .am-footer .am-footer-miscs,
.body-content-footer-container .am-footer .footer-nav-content,
.body-content-footer-container .am-footer .am-container {
    background: transparent !important;
    border: 0 !important;
}
/* 官方四栏导航与首页 HOSONIC 四栏重复，隐藏；保留备案条 */
.body-content-footer-container .am-footer .footer-nav-content {
    display: none !important;
}
.body-content-footer-container .am-footer .am-footer-miscs {
    margin: 0 !important;
    padding: 0 !important;
}
.body-content-footer-container .am-footer p,
.body-content-footer-container .am-footer span,
.body-content-footer-container .am-footer b {
    color: rgba(228, 238, 250, .44) !important;
}
.body-content-footer-container .am-footer a {
    color: rgba(228, 238, 250, .66) !important;
    text-decoration: none;
}
.body-content-footer-container .am-footer a:hover {
    color: #0a58b3 !important;
}
.body-content-footer-container .am-footer .footer-filing-content {
    /* Powered by 与备案信息融合为同一行（居中、允许窄屏换行） */
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
}
.body-content-footer-container .am-footer .footer-filing-content > p,
.body-content-footer-container .am-footer .footer-filing-content > b {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}
.body-content-footer-container .am-footer .footer-icp img {
    max-height: 20px;
    filter: brightness(0) invert(1);
    opacity: .7;
}

/* ---- 以下为首页 .public-footer 的等价实现 ---- */
.hs-footer {
    --hs-ft-cyan: #0a58b3;
    display: block;
    width: 100%;
    margin: 0;
    color: rgba(228, 238, 250, .74);
    background: #061a35;
    font-size: 12px;
    line-height: 1.8;
}
.hs-footer__container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hs-footer__main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 42px; padding: 58px 0 42px; }
.hs-footer__brand img {
    display: block;
    width: clamp(132px, 42vw, 172px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 352 / 84;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .92;
}
.hs-footer__brand p { max-width: 330px; margin: 18px 0 0; font-size: 12px; line-height: 1.8; }
.hs-footer__col h4 { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 600; }
.hs-footer__col a, .hs-footer__col span {
    display: block; margin: 8px 0;
    color: rgba(228, 238, 250, .66);
    font-size: 12px;
    text-decoration: none;
}
.hs-footer__col a:hover { color: var(--hs-ft-cyan); }
.hs-footer__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: rgba(228, 238, 250, .44);
    font-size: 11px;
}
.hs-footer__bottom a { color: inherit; text-decoration: none; }
.hs-footer__bottom a:hover { color: var(--hs-ft-cyan); }

/* 响应式：与首页 styles.css 三档断点保持一致 */
@media (max-width: 980px) {
    .hs-footer__main { grid-template-columns: 1.3fr 1fr 1fr; }
    .hs-footer__col:last-child { grid-column: 2 / 4; }
}
@media (max-width: 760px) {
    .hs-footer__main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hs-footer__brand { grid-column: 1 / -1; }
    .hs-footer__col:last-child { grid-column: 1 / -1; }
    .hs-footer__bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
    .hs-footer__container { width: calc(100% - 32px); }
    .hs-footer__main { grid-template-columns: 1fr; padding: 42px 0 30px; }
    .hs-footer__col:last-child, .hs-footer__brand { grid-column: auto; }
    .hs-footer__brand p { max-width: 100%; }
    .hs-footer__bottom { padding: 16px 0 20px; }
}
