/* ===========================================================
   站点外壳：页脚 .site-footer / 浮窗 .float-window / 回顶 .back-top
   -----------------------------------------------------------
   头部已拆分到 site-header.css（2026-11-24），本文件只保留外壳底座。
   依赖：modern.css 的 --container-max 与容器系统。
   =========================================================== */

/* 2026-10-27 自适应：定宽下探 1250 → 992（折叠屏展开/小平板），更窄视口由跳转规则送移动版。
   992-1250 区间容器内模块按流式收缩（.container width:100%），定宽模块见各模块断点 */
html,
body {
    min-width: 620px;
    background-color: #f6f8fa;
}
/* ============================================================
   页脚 (.site-footer) —— 深色双层主题 #101014 / #0b0b0e
   ------------------------------------------------------------
   结构（主流页脚范式：上层多列导航 + 右侧联系区，下层版权备案栏）：
     .footer-primary      上层主区（flex：导航为主 flex:1 + 右侧联系区固定宽）
       .footer-columns    多列导航分组容器（cake_nav_menu placement='footer'）
         .footer-column   单列（一级分组名 + 二级子项）
       .footer-contact    联系方式（客服热线 / 业务邮箱）
       .footer-qrcode     公众号二维码
     .footer-friendlinks  友情链接（仅首页显示，数据来自 cake_promotion 广告位 ADGLOBAL00）
     .footer-bottom       下层信息栏（更深一档底色，含分隔线 + 辅助链接 + 版权/备案）
   实现约定：
   - 外层沿用 float:left + width:100% + clear:both 建立 BFC 包含内部浮动，
     对齐旧版 .bfb 行为；不用 ::after 清除方案（会清除外部 float 导致背景拉长）。
   - 内层改用 flex。注意 global.css 有 *{margin:0 auto} —— flex 子项若残留
     auto 外边距会吞掉 space-between 的间距，故每个子项都显式 margin:0。
   - 文本一律用 <div> 而非 <p>，规避 global.css 的 p{margin:2pt 0 0 0}。
   - 列标题品牌色短划线：用 border-bottom 实现（不能用 ::after，需兼容 global.css）。
   ============================================================ */
.site-footer {
    float: left;
    width: 100%;
    clear: both;
    background-color: #101014;
    padding: 56px 0 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

/* CTA 宣言区（2026-11-01 β 设计）：全端 DOM 统一输出，默认隐藏——
   仅 ≤659 极简档显示（该档由宣言区替代品牌 logo/desc 行）。 */
.site-footer .footer-cta {
    display: none;
}

/* ---------- 上层主区：左侧品牌区 + 右侧多列导航 ---------- */
.site-footer .footer-primary {
    display: flex;
    align-items: stretch;
    margin: 0;
    width: 100%;
    padding: 0 0 44px 0;
}

/* 左：品牌区（logo + 简介 + 二维码 + 联系），justify-content 撑满高度对齐右侧 */
.site-footer .footer-brand {
    margin: 0;
    flex: 0 0 32%;
    max-width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* 品牌行：仅品牌名（原 slogan「让好资产被看见」已按产品要求移除，flex/gap 一并去掉） */
    .site-footer .footer-brand__head {
        margin: 0 0 18px 0;
    }

        .site-footer .footer-brand__logo {
            color: #ffffff;
            font-size: 26px;
            font-weight: 700;
            line-height: 1.2;
        }

    .site-footer .footer-brand__desc {
        margin: 0 0 22px 0;
        color: rgba(255, 255, 255, .55);
        font-size: 13px;
        line-height: 1.9;
        max-width: 250px;
        /* 两行均衡断行：默认断点会把「专利」拆成「专 / 利」，balance 后断在顿号处；
           Chrome 114+ / Safari 16.4+ 生效，旧浏览器回落普通断行 */
        text-wrap: balance;
        -webkit-text-wrap: balance;
    }

    .site-footer .footer-brand__qrcodes {
        margin: 0 0 22px 0;
        display: flex;
        gap: 40px;
    }

        .site-footer .footer-brand__qrcode {
            margin: 0;
            text-align: center;
        }

            .site-footer .footer-brand__qrcode-img {
                margin: 0;
                width: 92px;
                height: 92px;
                padding: 0;
                box-sizing: border-box;
                background-color: #ffffff;
                border-radius: 4px;
            }

                .site-footer .footer-brand__qrcode-img img {
                    width: 100%;
                    height: 100%;
                    display: block;
                    object-fit: contain;
                }

            .site-footer .footer-brand__qrcode-name {
                margin: 10px 0 0 0;
                color: rgba(255, 255, 255, .75);
                font-size: 13px;
            }

    .site-footer .footer-brand__contact {
        margin: 0;
    }

        .site-footer .footer-brand__contact-line {
            color: rgba(255, 255, 255, .55);
            font-size: 13px;
            line-height: 2;
        }

        /* tel:/mailto: 链接（模板已包 a，2026-11-01）：inherit 保证桌面观感与纯文本一致 */
        .site-footer .footer-brand__contact-line a {
            color: inherit;
            text-decoration: none;
        }

/* 右：多列导航分组容器（占满剩余宽度，均分，左缘分隔线） */
.site-footer .footer-columns {
    margin: 0;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 40px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

    /* 单列导航分组（固定宽 150px，文字距分隔线统一 20px，整组靠右） */
    .site-footer .footer-column {
        margin: 0;
        padding: 0 0 0 20px;
        flex: 0 0 150px;
        text-align: left;
        list-style: none;
        box-sizing: border-box;
    }

    /* 列间细分隔线（相邻选择器，首列自然豁免） */
    .site-footer .footer-column + .footer-column {
        border-left: 1px solid rgba(255, 255, 255, .08);
    }

        .site-footer .footer-column__title {
            height: auto;
            padding: 0 0 10px 0;
            display: inline-block;
        }

            .site-footer .footer-column__title a {
                font-size: 15px;
                color: #ffffff;
                font-weight: 700;
                line-height: 28px;
            }

        .site-footer .footer-column__link {
            margin: 16px 0 0 0;
        }

            .site-footer .footer-column__link a {
                display: block;
                color: rgba(255, 255, 255, .55);
                line-height: 26px;
                transition: color .2s linear;
            }

                .site-footer .footer-column__link a:hover {
                    color: #ffffff;
                }

/* ---------- 友情链接（仅首页渲染） ---------- */
/* 友情链接：底部片段已整合为单一 bottom.php，HTML 全站统一输出，
   此处改为「默认隐藏、仅首页 body.theme-home 显示」——
   默认隐藏是安全兜底：任何未写入主题类的页面都不会误显友链。 */
.site-footer .footer-friendlinks {
    display: none;
    float: left;
    width: 100%;
    margin: 0 0 0 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
    line-height: 24px;
}

    .site-footer .footer-friendlinks__label {
        color: rgba(255, 255, 255, .55);
    }

body.theme-home .site-footer .footer-friendlinks {
    display: block;
}

    .site-footer .footer-friendlinks__item {
        display: inline-block;
        margin: 0 18px 0 0;
        color: rgba(255, 255, 255, .6);
        transition: color .2s linear;
    }

        .site-footer .footer-friendlinks__item:hover {
            color: #ffffff;
        }

/* ---------- 下层信息栏：更深一档底色，含分隔线 + 辅助链接 + 版权/备案 ---------- */
.site-footer .footer-bottom {
    float: left;
    width: 100%;
    margin: 0;
    padding: 22px 0 26px 0;
    background-color: #0b0b0e;
    text-align: center;
}

    /* 辅助链接行 */
    .site-footer .footer-bottom__links {
        margin: 0;
        color: rgba(255, 255, 255, .5);
        line-height: 24px;
    }

        .site-footer .footer-bottom__links a {
            color: rgba(255, 255, 255, .5);
            margin: 0 12px;
            transition: color .2s linear;
        }

            .site-footer .footer-bottom__links a:hover {
                color: #ffffff;
            }

    /* 版权 / 备案 / 公安备案 */
    .site-footer .footer-bottom__legal {
        color: rgba(255, 255, 255, .38);
        margin: 8px 0 0 0;
        line-height: 22px;
    }

        .site-footer .footer-bottom__legal a {
            color: rgba(255, 255, 255, .38);
        }

        .site-footer .footer-bottom__police {
            margin: 0 0 0 16px;
        }

        .site-footer .footer-bottom__copyright {
            margin: 0 0 0 16px;
        }

/* ---------- 触屏热区外扩：页脚链接行高仅 22~26px，触屏远低于 44px 标准 ----------
   ::before 铺满链接盒并垂直外扩（不水平外扩：列链接已全列宽、bottom 链接间有 12px）：
   列链接 26px ±8=42（项间距 26+16=42，恰好衔接不重叠）、分组标题 28px ±8=44
   （与首项 16px 间距中 8+8 衔接）、bottom 链接 24px ±10=44、legal 链接 22px ±8=38
   （页脚最底行保守取值）、友链条目 ±8（当前无数据，防御性一致）。
   外扩伪元素属链接自身 → hover 变色 / 点击命中均正常；桌面热区同步扩大，无视觉变化。 */
.site-footer .footer-column__title a,
.site-footer .footer-bottom__links a,
.site-footer .footer-bottom__legal a {
    position: relative;
    display: inline-block;
}

.site-footer .footer-column__link a,
.site-footer .footer-friendlinks__item {
    position: relative;
}

.site-footer .footer-column__title a::before,
.site-footer .footer-column__link a::before,
.site-footer .footer-bottom__links a::before,
.site-footer .footer-bottom__legal a::before,
.site-footer .footer-friendlinks__item::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: 0;
    right: 0;
}

.site-footer .footer-bottom__links a::before {
    top: -10px;
    bottom: -10px;
}

/* 邮箱行内链接热区（tel 胶囊热区已足；tel a::before 被图标占用故单列） */
.site-footer .footer-brand__contact-line--mail a {
    position: relative;
}

.site-footer .footer-brand__contact-line--mail a::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}

/* ============================================================
   右侧浮窗 (.float-window)
   ------------------------------------------------------------
   - 4 项：智能客服 / 人工客服 / 购物袋 / 回到顶部
   - 客服微信 hover 展示二维码（纯 CSS :hover，无需 JS）
   - 图标为内联 Tabler SVG（线性，stroke=currentColor），字体图标方案已整体下线
   - ≤768px 整体隐藏
   - z-index 900：低于 header 的 1000/1001，避免遮挡导航下拉
   ============================================================ */
.float-window {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-40%);
    z-index: 900;
    width: 60px;
    margin: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(15, 23, 42, .16);
}

.float-window__list {
    display: flex;
    flex-direction: column;
}

.float-window__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* 主轴（纵向）居中：图标+文字整体上下等距 */
    gap: 5px;
    width: 100%;
    /* 宽高相等：.float-window 宽 60 → 项高同为 60（正方形）。
       内容高 = 图标 22 + gap 5 + 文字 11 = 38，上下各留 11px */
    height: 60px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11px;
    color: #656565;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s linear, background-color .2s linear;
}

    .float-window__item:hover {
        color: #423dff;
        background-color: #f6f8ff;
    }

    /* 分隔线：除第一项外都有 */
    .float-window__item + .float-window__item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 1px;
        background-color: #eeeeee;
    }

/* 图标：内联 Tabler SVG（24 网格缩放到 22px，stroke=currentColor，随 item 颜色变化） */
.float-window__icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.float-window__label {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    /* 11px 小字在 400 下偏单薄，加粗到 600：
       Windows(微软雅黑) 无 Medium，500 与 400 渲染相同，600 落到 Bold；
       macOS/iOS(苹方) 有真 Semibold，600 比 700 更精致。中文 advance 宽度不变，60px 卡内不换行 */
    font-weight: 600;
}

/* ---------- 客服微信二维码浮层（相对浮窗项垂直居中） ---------- */
.wx-popup {
    position: absolute;
    top: 50%;
    right: 100%;
    margin: 0;
    padding-right: 14px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.float-window__item--wx:hover .wx-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.wx-popup__inner {
    position: relative;
    margin: 0;
    width: 140px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e8e8e8;
    background-color: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .16);
}

.wx-popup__code {
    margin: 0;
    width: 124px;
    height: 124px;
    overflow: hidden;
    background-color: #fafafa;
}

.wx-popup__code-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 右侧小箭头：挂在 .wx-popup__inner 上（不能放 .wx-popup__code 内，
   该容器 overflow:hidden 会把箭头裁掉） */
.wx-popup__arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #e8e8e8;
}

    .wx-popup__arrow::before {
        content: '';
        position: absolute;
        left: -8px;
        top: -7px;
        width: 0;
        height: 0;
        border: 7px solid transparent;
        border-left-color: #ffffff;
    }

.wx-popup__tip {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #656565;
    text-align: center;
    line-height: 1.4;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1250px) {
    .site-footer > .container {
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

/* ≤992 极简页脚 β 版（2026-11-01 用户拍板「方向 β · CTA 转化式」，同一 DOM 双端重构；
   分界跟随全站 992 体系：≤992 全部走本形态，993+ 桌面形态 + 993–1120 收缩块）：
   信息架构（自上而下，完全重排，非旧版微调）：
     ① 宣言区（footer-cta：标题「让好资产被看见」+ 业务描述 + 双 CTA——主按钮 tel:
        一键拨打、副按钮 task/publish.php 发布需求）
     ② 2×2 导航卡（四列组卡片化：整卡热区，卡内标题 + 静态副标题 + › 箭头）
     ③ 品牌底行（双二维码 56px 左 + 联系方式右对齐：号码 15px 白 / 邮箱 / 服务时间）
     ④ 单行备案栏（links 与 legal 合并流式一行）
   品牌 logo/desc 行由宣言区替代（display:none）；footer 高：手机档 ≈490px / 平板档（660–992）≈520px。
   ⛔ 副标题用 nth-child content 注入（静态文案）——后台栏目改名/增删时须同步本节 4 条 content。 */
@media (max-width: 992px) {
    .site-footer {
        padding-top: 26px;
    }

    /* -------- ① 宣言区 -------- */
    .site-footer .footer-cta {
        display: block;
        margin: 0 0 20px 0;
    }

    .site-footer .footer-cta__title {
        font-size: 22px;
        font-weight: 500;
        line-height: 1.4;
        color: #ffffff;
        margin-bottom: 6px;
    }

    .site-footer .footer-cta__desc {
        font-size: 12px;
        line-height: 1.7;
        color: rgba(255, 255, 255, .55);
        margin-bottom: 16px;
    }

    .site-footer .footer-cta__actions {
        display: flex;
        gap: 10px;
    }

    .site-footer .footer-cta__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        line-height: 1.2;
        color: rgba(255, 255, 255, .9);
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 999px;
        padding: 13px 20px;
        box-sizing: border-box;
    }

    .site-footer .footer-cta__btn:active {
        transform: translateY(1px);
    }

    .site-footer .footer-cta__btn--primary {
        background: #6d5fe0;
        border-color: #6d5fe0;
        color: #ffffff;
    }

    .site-footer .footer-primary {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 18px;
    }

    /* -------- ③ 品牌底行（宣言区替代 logo/desc 后，仅剩 QR + 联系横排） -------- */
    .site-footer .footer-brand {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        text-align: left;
    }

    .site-footer .footer-brand__head,
    .site-footer .footer-brand__desc {
        display: none;
    }

    .site-footer .footer-brand__qrcodes {
        margin: 0;
        gap: 30px;
    }

    .site-footer .footer-brand__qrcode-img {
        width: 80px;
        height: 80px;
        padding: 0;
    }

    .site-footer .footer-brand__qrcode-name {
        font-size: 11px;
        margin-top: 5px;
        color: rgba(255, 255, 255, .7);
    }

    .site-footer .footer-brand__contact {
        text-align: right;
    }

    .site-footer .footer-brand__contact-line--tel {
        font-size: 0;
        margin: 0 0 4px 0;
    }

    .site-footer .footer-brand__contact-line--tel a {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: .5px;
        color: #ffffff;
    }

    .site-footer .footer-brand__contact-line--mail {
        display: block;
        font-size: 0;
        margin: 0 0 3px 0;
    }

    .site-footer .footer-brand__contact-line--mail a {
        font-size: 11px;
        color: rgba(255, 255, 255, .6);
    }

    .site-footer .footer-brand__contact-line--mail::after {
        content: none;
    }

    .site-footer .footer-brand__contact-line--time {
        display: block;
        font-size: 11px;
        color: rgba(255, 255, 255, .4);
    }

    /* -------- ② 2×2 导航卡（整卡热区） -------- */
    .site-footer .footer-columns {
        order: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin: 0 0 18px 0;
        padding: 0;
        border: 0;
    }

    .site-footer .footer-column {
        display: block;
        flex: none;
        min-width: 0;
        margin: 0;
        padding: 13px 14px;
        background: rgba(255, 255, 255, .05);
        border-radius: 10px;
        position: relative;
    }

    .site-footer .footer-column:hover {
        background: rgba(255, 255, 255, .07);
    }

    .site-footer .footer-column + .footer-column {
        border-left: 0;
    }

    .site-footer .footer-column__link {
        display: none;
    }

    .site-footer .footer-column__title {
        display: block;
        padding: 0;
    }

    .site-footer .footer-column__title a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
        color: rgba(255, 255, 255, .9);
        border: 0;
        border-radius: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .site-footer .footer-column__title a:hover {
        color: #ffffff;
    }

    .site-footer .footer-column__title a:active {
        transform: none;
    }

    .site-footer .footer-column__title a::after {
        content: '›';
        font-size: 14px;
        line-height: 1;
        color: rgba(255, 255, 255, .45);
        margin-left: 6px;
    }

    /* 整卡热区：铺满卡片（覆盖全局 ±8px 外扩规则，卡片化后以整卡为热区） */
    .site-footer .footer-column__title a::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* 副标题（静态文案，nth-child 注入；⛔ 栏目调整须同步这 4 条） */
    .site-footer .footer-column__title::after {
        display: block;
        font-size: 11px;
        line-height: 1.5;
        color: rgba(255, 255, 255, .4);
        margin-top: 5px;
    }

    .site-footer .footer-column:nth-child(1) .footer-column__title::after {
        content: '购买 · 支付 · 售后保障';
    }

    .site-footer .footer-column:nth-child(2) .footer-column__title::after {
        content: '新手指南 · FAQ · 交易规则';
    }

    .site-footer .footer-column:nth-child(3) .footer-column__title::after {
        content: '无形资产知识库 · 政策与实务';
    }

    .site-footer .footer-column:nth-child(4) .footer-column__title::after {
        content: '平台介绍 · 资质信息';
    }

    /* -------- ④ 单行备案栏（links + legal 合并流式一行） -------- */
    .site-footer .footer-bottom {
        padding: 14px 0 16px 0;
    }

    .site-footer .footer-bottom__links {
        display: inline;
    }

    .site-footer .footer-bottom__links a {
        margin: 0 6px;
        font-size: 11px;
    }

    .site-footer .footer-bottom__legal {
        display: inline-block;
        white-space: nowrap;
        margin: 4px 0 0 0;
        font-size: 11px;
    }

    .site-footer .footer-bottom__police {
        margin-left: 8px;
    }

    .site-footer .footer-bottom__copyright {
        margin-left: 8px;
    }
}

/* 平板档（660–992）β 适配：容器 612–944 宽，卡片/字号/二维码同步放大一档，
   避免「大卡小字」；手机档（≤659）保持 14/11/56 的紧凑比例。 */
@media (min-width: 660px) and (max-width: 992px) {
    .site-footer .footer-cta__title {
        font-size: 24px;
    }

    .site-footer .footer-cta__desc {
        font-size: 13px;
    }

    .site-footer .footer-cta__btn {
        font-size: 14px;
        padding: 14px 24px;
    }

    .site-footer .footer-column {
        padding: 16px 18px;
    }

    .site-footer .footer-column__title a {
        font-size: 15px;
    }

    .site-footer .footer-column__title::after {
        font-size: 12px;
        margin-top: 6px;
    }

    .site-footer .footer-brand__qrcode-name {
        font-size: 12px;
    }

    .site-footer .footer-brand__contact-line--tel a {
        font-size: 16px;
    }

    .site-footer .footer-brand__contact-line--mail a {
        font-size: 12px;
    }

    .site-footer .footer-brand__contact-line--time {
        font-size: 12px;
    }
}

/* 993–1120：桌面页脚布局（品牌区 32% + 4 列 ×150px + 40px 间距）在此区间放不下——
   .footer-column 原本 flex:0 0 150px 完全不可收缩 → 右侧溢出 33~50px，
   产生整页横向滚动（1024 档实测 33px、1000 档 50px，此前被误记为「历史遗留」）。
   仅放开列的收缩能力 + 收窄列距，不改布局结构；≥1121 桌面观感完全不变。 */
@media (min-width: 993px) and (max-width: 1120px) {
    .site-footer .footer-columns {
        gap: 24px;
    }
    .site-footer .footer-column {
        flex: 0 1 150px;
        min-width: 0;
    }
}

/* ========== 浮窗显隐（2026-11-01 用户拍板：跟「两侧有无空隙」走）==========
   ① 浮窗（60px 宽 4 项）显示条件 = 页面两侧有留白 或 大屏：
      - 留白来自 --container-max：1180–1339 的 min(1250px,94vw)（3vw/侧）、
        ≥1340 的 1250 封顶 → 宽 ≥1180 即有空隙，横置平板/iPad 显示浮窗；
      - 高 >1400 排除竖置大显示器（1080×1920 鼠标大屏场景，浮窗应显示）。
      隐藏条件 = 宽 ≤1179 且 高 ≤1400（无留白档，浮窗会压满宽内容）→
      此时由 .back-top 玻璃回顶按钮接管（见下方其显隐块，两处条件逐字一致）。
      ⚠ 已知取舍（用户知情）：1180–1339 留白 35~40px < 浮窗宽 60，
      浮窗贴视口右缘会压内容右缘 20~25px（1280 档实测压 hub 右缘 21px）。
   ② 搜索收起条件（v6）：由 site-nav.js 按「菜单真实宽度 + 预算」决定
      —— 放得下 260px 就常开；只能压间距就默认收起、点击展开；连 140 都放不下才直链。
   ③ P1：图标按钮热区用 ::after 外扩 14px（视觉零变化，触屏兜底）。
   交互见 /assets/js/site-nav.js 的 HeaderSearch（zoom / metrics / solve / apply / open / close）。 */
@media (max-width: 1179px) and (max-height: 1400px) {
    .float-window { display: none; }
}

/* ============================================================
   返回顶部按钮（P5；2026-11-01 按用户纠正重构显隐）—— iOS 26 液态玻璃质感
   ------------------------------------------------------------
   ⛔ 显隐与 .float-window 互补（用户拍板，勿改回「贴浮窗下方」）：
     浮窗第 4 项「回到顶部」已承担「有留白」场景的入口；浮窗隐藏档
     （宽 ≤1179 且 高 ≤1400，即无留白的竖置/小横置）本按钮显示、
     浮窗 display:none —— 否则同屏出现两个回顶入口。
   - 显示条件 = @media (max-width:1179px) and (max-height:1400px)，
     与浮窗隐藏条件（上方媒体查询）逐字一致，两处必须同步改。
   - 位置：右下角右/下各 20（一致，用户拍板）+ 底边叠加 iOS safe-area；该档位无浮窗可对齐。
   - 时机：scrollY > 视口高 ×0.9（滚过约一屏，首屏离开视野才出现）——
     旧固定 600px 在手机/平板竖屏不足一屏就出现，2026-11-01 用户反馈后修正；
     resize / orientationchange / bfcache pageshow 均重算（JS）。阈值改动只动 JS。
   - 滚动 >600px 淡入（/assets/js/site-nav.js initBackTop 控制 .is-visible）；
     页面顶部 / 无 JS 时 opacity:0 + visibility:hidden，不占交互不误触。
   - 玻璃配方：半透白底 + backdrop blur/saturate + 顶部 inset 高光 +
     1px 亮边 + 柔影；@supports 兜底不支持 backdrop-filter 的浏览器
     （背景提到 .94 不透明度，保证图标可读）。z-index 900 与浮窗同层。
   ============================================================ */
.back-top {
    position: fixed;
    right: 20px;
    /* 右/下边距一致 = 20（用户拍板；桌面主流 20~40、移动 12~16 的折中）；
       env(safe-area-inset-bottom)：iOS 全面屏 Home 条不遮按钮（仅叠加在底边） */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    /* 斜向反光渐变 + ::before 顶部高光弧 —— iOS 26 液态玻璃的两个关键特征；
      透射内容由 backdrop blur(20px) saturate(1.8) 承担 */
    background: linear-gradient(152deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .26) 46%, rgba(255, 255, 255, .42));
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14),
                inset 0 1px 1px rgba(255, 255, 255, .72),
                inset 0 -1px 2px rgba(255, 255, 255, .18);
    color: #334155;
    cursor: pointer;
    display: none;   /* 默认隐藏：仅浮窗隐藏档（下方媒体查询）恢复 flex */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .7, .3, 1),
                visibility 0s linear .28s,
                background-color .2s ease, box-shadow .2s ease;
}

.back-top::before {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, 0) 46%);
    pointer-events: none;   /* 高光弧不拦截点击（热区仍是整圆） */
}

.back-top__icon { width: 22px; height: 22px; display: block; position: relative; }

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .7, .3, 1),
                background-color .2s ease, box-shadow .2s ease;
}

.back-top:hover {
    background: linear-gradient(152deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .40) 46%, rgba(255, 255, 255, .56));
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18),
                inset 0 1px 1px rgba(255, 255, 255, .8),
                inset 0 -1px 2px rgba(255, 255, 255, .2);
}

.back-top:active { transform: translateY(0) scale(.94); }

.back-top:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .back-top { background: rgba(255, 255, 255, .94); }
}

/* P5：浮窗隐藏档（≤1179×1400，即无留白场景）恢复按钮显示。
   ⛔ 与浮窗隐藏条件逐字一致；必须写在 .back-top 主块之后（同特异性后者胜）。 */
@media (max-width: 1179px) and (max-height: 1400px) {
    .back-top { display: flex; }
}

