/*
 * www-legacy-compat.css
 * 旧版页面（layouts/main.php 布局）引入新版头部 / 页脚 / 右侧悬浮窗时加载，置于 www-common.css 之后。
 * 旧页面没有 tailwind-preflight 的全局 reset；旧 css（common.css 等）的头部/页脚/悬浮窗样式已移除，
 * 这里补齐新官网在新页面上下文（.ec-marketing-shell / preflight）里才生效的差异。
 */

/* 头部：层级对齐旧头部（z-index 999），避免旧页面自带的固定元素遮挡；链接补下划线重置 */
.headerbox {
    z-index: 999;
}

.headerbox a {
    text-decoration: none;
}

/* 页脚：旧页面正文里 .layout-center 原本无样式（about / wms_new 等页面），还原默认；新页脚容器不受影响 */
.layout-center {
    max-width: none;
    margin: 0;
}

.ec-footer .layout-center {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页脚标题与列表：对齐 preflight 在新官网的渲染结果（h4 默认字号/加粗/外边距、ul 默认缩进与符号） */
.ec-footer .foot-item h4 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

.ec-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 页脚版权栏：www-common.css 中对应规则 scoped 在 .ec-marketing-shell 下，旧页面 body 无该类，补一份等效的 */
.ec-footer,
.float_tool_bar {
    font-size: 14px;
    line-height: normal;
}

.ec-footer .copy-right {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

.ec-footer .copy-right a {
    color: #4CB4E7;
}

/* 悬浮窗：旧 common.js 滚动时给 .float_tool_bar 写 inline top / 圆角，用 !important 固定新官网样式 */
.float_tool_bar {
    top: 50vh !important;
}

.float_tool_bar > a:nth-child(4) {
    border-radius: 0 0 8px 8px !important;
}

/* 原旧页脚遗留：隐藏第三方邀请挂件（防御性保留） */
#nb_invite_wrap {
    display: none !important;
}
