@charset "UTF-8";
/* =============================================================================
 * sjfc-core.css — 盛家房产 · 公共页头 / 页脚（全站加载）
 * 基准：蓝湖设计稿 1920×6990，内容栅格 1400px 居中（左右留白 260px）
 * 命名：统一 .sj- 前缀，与旧模板 .nl-* 样式完全隔离
 * 断点：1440 / 1200 / 992 / 768 / 480
 * ========================================================================== */

/* ── 设计变量（仅本套样式使用，不污染内页的 --nl-* 变量） ───────────────── */
:root {
    --sj-blue: #01539c;      /* 主蓝：蓝色友链区底色 */
    --sj-blue-d: #08447f;    /* 深蓝：banner 主标题 */
    --sj-blue-n: #002068;    /* 藏蓝：banner 正文 */
    --sj-navy: #101635;      /* 页脚深色区 */
    --sj-red: #cf0000;       /* 强调红 */
    --sj-text: #333333;
    --sj-gray: #666666;
    --sj-line: #e6e9ef;
    --sj-wrap: 1400px;       /* 内容栅格宽度 */
    --sj-gutter: 20px;
    --sj-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── 内容容器：≥1440px 时内容恒为 1400px 居中 ─────────────────────────── */
.sj-wrap {
    box-sizing: border-box;
    max-width: calc(var(--sj-wrap) + var(--sj-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--sj-gutter);
}

/* ── 可访问性：统一键盘焦点环（不改变设计稿视觉，仅键盘可见） ──────────── */
.sj-header a:focus-visible,
.sj-footer a:focus-visible,
.sj-mnav a:focus-visible,
.sj-burger:focus-visible {
    outline: 2px solid var(--sj-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =============================================================================
 * ① 页头 —— 蓝湖 .section_7（logo 165×40 / 导航 18px / 电话 24px），高 60px
 * ========================================================================== */
/* 吸顶：下拉时页头始终可见（sticky 而非 fixed，避免脱离文档流后正文顶部被盖住）。
 * 依赖：body / html 上不能有 overflow:hidden —— 有则 sticky 会失效成普通定位。 */
.sj-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 80;
    background: #fff;
    transition: box-shadow .28s var(--sj-ease);
}

/* 离开首屏后才加投影：用阴影而不是实心描边，分层清楚又不抢视线 */
.sj-header.is-stuck {
    box-shadow: 0 6px 20px rgba(1, 35, 66, .10);
}

/* 吸顶页头会盖住页内锚点的落位（如招商页 #zsMode），统一留出页头高度。
 * scroll-margin 只影响"滚动进视口"这类操作，不改变元素本身布局。 */
[id] {
    scroll-margin-top: 74px;
}

.sj-header__inner {
    display: flex;
    align-items: center;
    height: 60px;
}

/* logo */
.sj-header__logo {
    display: block;
    flex: none;
}

.sj-header__logo img {
    display: block;
    width: 165px;
    height: 40px;
}

/* 主导航：占据 logo 与电话之间的剩余宽度并居中。
 * 原来 margin-left 写死 116px + 固定 41px 间距，8 个一级菜单在 1100~1280 视口
 * 会把右上电话整块挤出屏幕（实测 tel.right 1373 > 页头右缘 1265）。
 * 现在间距与字号都随视口收缩，两侧留白自动均分。 */
.sj-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    margin: 0 clamp(16px, 3vw, 48px);
}

.sj-nav__list,
.sj-nav__sub,
.sj-mnav__list,
.sj-mnav__sub,
.sj-footer__quick {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sj-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(13px, 2.2vw, 40px);
}

.sj-nav__item {
    position: relative;
}

/* 一级菜单：热区撑满页头高度（原来只有 8px 上下内边距、高 38px，鼠标得对准字才点得到） */
.sj-nav__item > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 2px;
    color: var(--sj-text);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color .22s var(--sj-ease);
}

/* 挂子菜单时补一个细箭头（当前导航无子菜单，样式惰性存在） */
.sj-nav__item.has-sub > a::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-left: 8px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s var(--sj-ease);
}

.sj-nav__item.has-sub:hover > a::before {
    margin-top: 3px;
    transform: rotate(225deg);
}

/* 居中短线指示器：悬停与当前页共用，从中心向两侧展开（比整条下划线克制） */
.sj-nav__item > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 13px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--sj-blue);
    opacity: 0;
    transform: translateX(-50%) scaleX(.25);
    transform-origin: center;
    transition: opacity .24s var(--sj-ease), transform .24s var(--sj-ease);
}

/* 当前页与悬停统一为主蓝 + 指示器：原来 is-cur 只是加粗、颜色不变，几乎看不出在哪一页 */
.sj-nav__item:hover > a,
.sj-nav__item.is-cur > a {
    color: var(--sj-blue);
}

.sj-nav__item.is-cur > a {
    font-weight: 700;
}

.sj-nav__item:hover > a::after,
.sj-nav__item.is-cur > a::after,
.sj-nav__item:focus-within > a::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

/* 二级下拉（导航管理里挂子菜单时自动出现） */
.sj-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    min-width: 168px;
    padding: 8px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 36px rgba(1, 35, 66, .14), 0 2px 6px rgba(1, 35, 66, .06);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .22s var(--sj-ease), transform .22s var(--sj-ease), visibility .22s;
}

/* 顶部 2px 品牌蓝条：用伪元素画，圆角处不会像 border-top 那样露直角 */
.sj-nav__sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    border-radius: 12px 12px 0 0;
    background: var(--sj-blue);
}

.sj-nav__item.has-sub:hover .sj-nav__sub,
.sj-nav__item.has-sub:focus-within .sj-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.sj-nav__sub a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--sj-text);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, color .18s;
}

.sj-nav__sub a:hover {
    background: #f2f6fb;
    color: var(--sj-blue);
}

/* 右上服务热线：图标 24×24 + 号码（数据来自「设置中心 → 公司信息」）
 * 左侧 1px 淡竖线把「菜单区」与「拨号区」分开；字号随视口收缩，窄屏不再跟菜单抢宽度 */
.sj-header__tel {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: none;
    text-decoration: none;
}

.sj-header__tel::before {
    content: '';
    flex: none;
    width: 1px;
    height: 22px;
    margin-right: clamp(12px, 1.4vw, 24px);
    background: var(--sj-line);
}

.sj-header__tel b {
    margin-left: 9px;
    color: var(--sj-text);
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .05em;   /* 设计稿号码文本块宽 180px，11 位数字需补偿字距 */
    transition: color .2s var(--sj-ease);
}

.sj-header__tel:hover b {
    color: var(--sj-blue);
}

/* 电话图标：内联 base64，省一次请求（设计稿原始切片 icon_phone.png 24×24） */
.sj-ic-tel {
    display: block;
    flex: none;
    width: 24px;
    height: 24px;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADJklEQVR4AayVW2hUVxSGv7VPRsm0SVOppYq90IdS2tIKhdAnHyz0glhqwvjU2saqtENpVRBEXyII+mC83xKMAS8RDJgYiAg+KAjiiw8+e0G8i4IGNZpk5iz/E41MJo7JqHvWmrP3v/Za/957rbNPYHbze9S3Lrf61lvSPqvf1Uvdrp38smUqb6AFUmGRuWfB35dWAtVm1FFR+Rs/7HlL49eSYNgSjA+Lokw242+qB76DxlBkK2uYOFeV8PgI90XMnjKphH1ccMAsLjEzMuxLQio5thJTxoYDuJWY1udux7SA+yXs44JFwOCome79Dj3EA5vo+rN3lL0MIOicT2t+EYmdIxca6frnEpi4eOUW3Gy/SO6OiGAEbLCfN9C0A06I5IxiFSZ7GlHUwM+bq4W/lgQOXb2C57eB33geyalS5n8nnZ5JJhM9x1+hE6Axpj9/ShVzWP6PpWD6wTSDVeR+qqV0pTFWE4Gm9GTv4fEm9c7i+qkjSWxfmXmT7qrpGotP/2VKEiRxcToXnnOLV2m1FxPgmQaMWtzXMaf1a9nKJgnPAumhcryTOu5Gk/ZwXcCwRGY2g+AbqN/9LZmDo3OSFEOm7QNmbX8XRt5dBQSKd6LhMfkHBxx2aNV3hAxLhcEMw7cQ9/5IZtvbwwZ+bfuEyvQKi/P7mJhaS93UmYW38EiCxKtryT2i0CySliKSZOW1hm0nnvA/c1o+I9MynYrcejP+lev3Bn+YhWaqBrND3xmBowkE0jH/NlG0UflW4gvKF72A8LFhyyyETsvbAXObJZen3w2ziep/qp0uIxUtpa55yosJNGuIJH641d1Xa6jEe+GL+I6wLzD7XM8J0mKZLJL5hGheaYLEZei4atp0XItxTkr7EnhcakwK7t+8nCCJ1DH3EaH6iOdsgWM7VKrXlJtcYnq52pU45ujYBEmUjrl5uhecJw6rdWRZlXK34JvSAemL5LIWs5Z86BwfwXCIrgZVWE2PviBZ91hKu0zntavkNn6o/gMd4wUnXkM61U73X/fLI1AEhnaz8BZRTTe5Rys9H//n0GTQrudeN2+kL93O3nkJIU8AAAD//0uxjgkAAAAGSURBVAMA/egMLhX8Zs8AAAAASUVORK5CYII=") center / contain no-repeat;
}

/* 汉堡按钮：仅移动端出现 */
.sj-burger {
    display: none;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.sj-burger i {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sj-blue);
    border-radius: 2px;
    transition: transform .28s var(--sj-ease), opacity .2s;
}

.sj-burger.is-open i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sj-burger.is-open i:nth-child(2) {
    opacity: 0;
}

.sj-burger.is-open i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端抽屉导航：默认 [hidden]，JS 切换 .is-open */
.sj-mnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 79;
    display: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--sj-line);
    box-shadow: 0 14px 30px rgba(1, 35, 66, .12);
    -webkit-overflow-scrolling: touch;
}

.sj-mnav.is-open {
    display: block;
}

.sj-mnav__inner {
    padding: 6px 20px 20px;
}

.sj-mnav__list > li {
    border-bottom: 1px solid var(--sj-line);
}

.sj-mnav__list > li > a {
    position: relative;
    display: block;
    min-height: 48px;
    padding: 14px 2px 14px 14px;
    color: var(--sj-text);
    font-size: 16px;
    text-decoration: none;
    transition: color .2s var(--sj-ease), background-color .2s var(--sj-ease);
}

/* 左侧竖条：轻按时是一截短亮条，当前页是常驻长条 */
.sj-mnav__list > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: var(--sj-blue);
    opacity: .38;
    transform: translateY(-50%);
    transition: height .22s var(--sj-ease), opacity .22s var(--sj-ease);
}

.sj-mnav__list > li > a:hover,
.sj-mnav__list > li > a:active {
    color: var(--sj-blue);
    background: #f7fafd;
}

.sj-mnav__list > li > a:hover::before,
.sj-mnav__list > li > a:active::before {
    height: 18px;
}

.sj-mnav__list > li.is-cur > a {
    color: var(--sj-blue);
    font-weight: 700;
    background: linear-gradient(90deg, rgba(1, 83, 156, .07), rgba(1, 83, 156, 0) 72%);
}

.sj-mnav__list > li.is-cur > a::before {
    height: 22px;
    opacity: 1;
}

.sj-mnav__sub {
    padding: 0 0 10px 14px;
}

.sj-mnav__sub a {
    display: block;
    padding: 9px 0;
    color: var(--sj-gray);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s var(--sj-ease);
}

.sj-mnav__sub a:hover,
.sj-mnav__sub a:active {
    color: var(--sj-blue);
}

.sj-mnav__tel {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 0;
    background: var(--sj-blue);
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.sj-mnav__tel .sj-ic-tel {
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

/* =============================================================================
 * ② 页脚 · 蓝色友链区 —— 蓝湖 .box_25（1920×210，底色 #01539C）
 * ========================================================================== */
.sj-footer__link {
    padding: 24px 0 18px;
    background: var(--sj-blue);
    color: #fff;
}

/* 顶行：左「扫一扫关注我们」，右快捷导航（设计稿 x=651 起） */
.sj-footer__link-top {
    display: flex;
    align-items: center;
    margin-left: 391px;
    width: 798px;
}

.sj-footer__scan {
    flex: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 17px;
}

.sj-footer__quick {
    display: flex;
    align-items: center;
    margin-left: 155px;
}

.sj-footer__quick li + li {
    margin-left: 36px;
}

.sj-footer__quick a {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}

.sj-footer__quick a:hover {
    opacity: .78;
}

/* 主行：页脚 logo(297×72) + 二维码(120×120) + 友情链接(703) */
.sj-footer__link-main {
    display: flex;
    align-items: flex-start;
    margin-top: 18px;
    margin-left: -3px;
}

.sj-footer__logo {
    display: block;
    flex: none;
    margin-top: 18px;
}

.sj-footer__logo img {
    display: block;
    width: 297px;
    height: 72px;
}

.sj-footer__qr {
    flex: none;
    margin-left: 92px;
}

.sj-footer__qr img {
    display: block;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 4px;
}

.sj-footer__fl {
    /* 可缩的弹性基准：宽屏仍是设计稿的 703px（1400 栅格下三块合计 1363 放得下），
       1200～1440 之间空间不够时按比例收缩。
       原先是 flex: none + width: 703px —— 写死不可缩，1280 视口下整站横向溢出 118px
       （1200 断点以下的规则救不到 1200～1440 这一段） */
    flex: 0 1 703px;
    min-width: 0;
    margin-left: 151px;
    margin-top: 6px;
}

/* 「友情链接」白底蓝字标签 100×28 */
.sj-footer__fl-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 28px;
    background: #fff;
    border-radius: 4px;
    color: var(--sj-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* 友链列表：网格化排布 —— 列宽均分、行高一致，
   彻底消除旧版流式折行导致的「第二行整体缩进 26px + 行尾犬牙」问题 */
.sj-footer__fl-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    column-gap: 24px;
    row-gap: 0;
    margin-top: 16px;
    font-size: 16px;
}

.sj-footer__fl-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 33px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s;
}

/* 项目符：4×4 小方块，悬停转品牌红（与页脚红条呼应） */
.sj-footer__fl-list a::before {
    content: "";
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: rgba(255, 255, 255, .42);
    transition: background .2s, transform .2s;
}

.sj-footer__fl-list a:hover {
    color: #fff;
    text-decoration: none;
}

.sj-footer__fl-list a:hover::before {
    background: var(--sj-red);
    transform: scale(1.5);
}

/* =============================================================================
 * ③ 页脚 · 三家公司深色区 —— 蓝湖 .box_26（1920×240，底色 #101635）
 * ========================================================================== */
.sj-footer__store {
    background: var(--sj-navy);
    color: #fff;
}

.sj-footer__store-inner {
    display: flex;
    /* 竖标 / 分隔线随公司内容块等高拉伸 → 线底与文字底部齐平 */
    align-items: stretch;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* 左侧白色竖标 3×N（N 随内容自适应）+ 顶部 3×27 红条 */
.sj-footer__bar {
    position: relative;
    flex: none;
    align-self: stretch;
    width: 3px;
    /* 底部让出行高下行留白，使线底压到文字字形底部（而非行盒底部） */
    margin-bottom: 7px;
    background: #fff;
}

/* 公司之间 1px 白色竖分隔线（与左侧竖标同高）+ 顶部 3×27 红条 */
.sj-footer__div {
    position: relative;
    flex: none;
    align-self: stretch;
    width: 1px;
    margin-bottom: 7px;
    background: rgba(255, 255, 255, .9);
}

.sj-footer__div--1 {
    margin-left: 43px;
}

.sj-footer__div--2 {
    margin-left: 53px;
}

/* 红条：3px 宽，贴所在竖线顶部下方 20px；左竖标居中、1px 分隔线居中 */
.sj-footer__bar i,
.sj-footer__div i {
    position: absolute;
    top: 20px;
    display: block;
    width: 3px;
    height: 27px;
    background: var(--sj-red);
}

.sj-footer__bar i {
    left: 0;
}

.sj-footer__div i {
    left: -1px;
}

.sj-footer__company {
    padding-top: 12px;
    min-width: 0;
}

.sj-footer__company--1,
.sj-footer__company--3 {
    width: 401px;
    margin-left: 19px;
}

.sj-footer__company--2 {
    width: 392px;
    margin-left: 21px;
}

/* 三家公司字段结构相同，逐行锁定高度 → 「名称 / 地址 / 联系人」三行横向对齐 */
.sj-footer__company h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 31px;
    min-height: 31px;
}

.sj-footer__company p {
    margin: 0;
    font-size: 16px;
    line-height: 31px;
    word-break: break-word;
}

/* 地址统一按两行预留：三家地址长短不一（1 行 / 2 行），不留白则下方「联系人」行错位 */
.sj-footer__addr {
    margin-top: 21px !important;
    min-height: 62px;
}

.sj-footer__tel {
    margin-top: 22px !important;
    min-height: 31px;
}

/* 设计稿把「联系人 / 联系电话」与「投诉电话」放在同一段落内连续两行，
   故第二行不再重复 22px 上边距，避免深色区被无谓拉高 */
.sj-footer__tel + .sj-footer__tel {
    margin-top: 0 !important;
}

.sj-footer__company a {
    color: #fff;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.sj-footer__company a:hover {
    text-decoration: underline;
}

/* 「联系人：X」与「联系电话：Y」同行排布，间距固定 16px（设计稿为两个全角空格，
   但托克逊门店联系人姓名较长，全角空格会把手机号挤到下一行） */
.sj-footer__ct {
    display: inline-block;
    white-space: nowrap;
}

.sj-footer__ct + .sj-footer__ct {
    margin-left: 16px;
}

/* =============================================================================
 * ④ 页脚 · 版权栏
 * ========================================================================== */
.sj-footer__copy {
    padding: 21px 0 34px;
    background: #fff;
    color: var(--sj-text);
    font-size: 14px;
    line-height: 24px;
}

.sj-footer__copy p {
    margin: 0;
    text-align: center;
}

.sj-footer__copy a {
    color: var(--sj-text);
    text-decoration: none;
}

.sj-footer__copy a:hover {
    color: var(--sj-blue);
    text-decoration: underline;
}

/* GEO 收录核验码（geo_canary_tag 输出）
   —— 页面上不显示，但文本节点保留在 DOM 里供大模型抓取（核验靠「抓得到」，不靠「看得见」）。
   主样式写在 helpers.php 的内联 style 上，这里是同口径的兜底规则，别改成 display:none
   —— 那样会把文本一起摘掉，收录核验就失效了。 */
.sj-canary {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =============================================================================
 * ③ 回到顶部 —— 右下角常驻按钮，滚过一屏后浮现
 *    外圈是一道随滚动进度充能的细环（--sj-top-p），内芯为箭头
 * ========================================================================== */
.sj-top {
    position: fixed;
    right: 26px;
    bottom: 34px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    /* 默认隐藏：用 visibility 而非 display，才能保留入场过渡 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s var(--sj-ease), transform .3s var(--sj-ease),
        visibility .3s, box-shadow .28s var(--sj-ease), background .28s var(--sj-ease);
}

.sj-top.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 悬停整体上浮：用独立的 translate 属性，不占用入场动画的 transform */
.sj-top:hover {
    translate: 0 -3px;
}

.sj-top:active {
    translate: 0 0;
}

/* 内芯：浅蓝→主蓝的竖向渐变，比纯色更有厚度；它同时负责"盖住圆环中心" */
.sj-top__core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0a68b8 0%, var(--sj-blue) 100%);
    box-shadow: 0 6px 16px rgba(1, 83, 156, .30);
    transition: background .28s var(--sj-ease), box-shadow .28s var(--sj-ease);
}

.sj-top:hover .sj-top__core {
    background: linear-gradient(180deg, #0d74cb 0%, #0163b8 100%);
    box-shadow: 0 9px 20px rgba(1, 83, 156, .40);
}

/* 圆环 = 一整块进度盘 − 中间被内芯盖住的 40px。
 * 这样不需要 mask，尺寸怎么缩都不会露馅。 */
.sj-top::before,
.sj-top::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

/* 白色底衬：保证进度环落在深色页脚上也能读出来 */
.sj-top::before {
    background: #fff;
    box-shadow: 0 4px 14px rgba(1, 35, 66, .12);
}

/* 滚动进度盘：已滚过的一段画深蓝，剩余画浅蓝轨道 */
.sj-top::after {
    background: conic-gradient(var(--sj-blue) calc(var(--sj-top-p, 0) * 1%),
            rgba(1, 83, 156, .16) 0);
    transition: background .12s linear;
}

.sj-top__arrow {
    display: block;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

/* =============================================================================
 * 响应式
 * ========================================================================== */

/* ≤1440：内容栅格开始收缩，页脚绝对定位块归位到栅格左缘 */
@media screen and (max-width: 1440px) {
    .sj-footer__link-top {
        margin-left: 0;
        width: auto;
        max-width: 798px;
    }

    .sj-footer__link-main {
        margin-left: 0;
    }
}

/* ≤1200：页脚友链块改为自适应占满（导航间距与字号已由 clamp 自动收缩，无需再写死） */
@media screen and (max-width: 1200px) {
    .sj-footer__fl {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin-left: 60px;
    }

    .sj-footer__qr {
        margin-left: 48px;
    }

    .sj-footer__quick {
        margin-left: 60px;
    }
}

/* ≤1100：收缩到 1100 时 8 个一级菜单已贴到电话边上（只剩约 30px），提前切抽屉导航 */
@media screen and (max-width: 1100px) {
    .sj-nav {
        display: none;
    }

    .sj-burger {
        display: flex;
        margin-left: auto;
    }

    .sj-mnav {
        max-height: calc(100dvh - 60px);
    }
}

/* ≤992：页头矮化并隐藏电话；页脚三家公司改为纵向堆叠 */
@media screen and (max-width: 992px) {
    .sj-header__tel {
        display: none;
    }

    .sj-header__inner {
        height: 56px;
    }

    .sj-mnav {
        max-height: calc(100dvh - 56px);
    }

    .sj-footer__link {
        padding: 22px 0 24px;
    }

    .sj-footer__link-top {
        flex-wrap: wrap;
        gap: 10px 0;
        max-width: none;
    }

    .sj-footer__quick {
        flex-wrap: wrap;
        gap: 8px 24px;
        margin-left: 0;
        margin-top: 10px;
    }

    .sj-footer__quick li + li {
        margin-left: 0;
    }

    .sj-footer__link-main {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 20px;
        margin-top: 16px;
    }

    .sj-footer__logo img {
        width: 240px;
        height: auto;
    }

    .sj-footer__qr {
        margin-left: 40px;
    }

    .sj-footer__fl {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .sj-footer__store-inner {
        flex-direction: column;
        padding-top: 6px;
        padding-bottom: 10px;
    }

    .sj-footer__bar,
    .sj-footer__div {
        display: none;
    }

    .sj-footer__company {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 16px 0 18px;
    }

    .sj-footer__company + .sj-footer__company {
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .sj-footer__addr {
        margin-top: 12px !important;
    }

    .sj-footer__tel {
        margin-top: 10px !important;
    }

    .sj-footer__company p,
    .sj-footer__company h3 {
        line-height: 28px;
        /* 单列堆叠布局下不再需要逐行对齐，取消行高占位 */
        min-height: 0;
    }
}

/* ≤768：移动端细节（触控热区、字号、换行） */
@media screen and (max-width: 768px) {
    :root {
        --sj-gutter: 16px;
    }

    .sj-header__logo img {
        width: 140px;
        height: 34px;
    }

    .sj-footer__logo img {
        width: 200px;
    }

    .sj-footer__qr {
        margin-left: 24px;
    }

    .sj-footer__qr img {
        width: 100px;
        height: 100px;
    }

    .sj-footer__fl-list {
        margin-top: 14px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        column-gap: 20px;
        font-size: 14px;
    }

    .sj-footer__fl-list a {
        gap: 8px;
        min-height: 28px;
    }

    .sj-footer__company h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .sj-footer__company p {
        font-size: 14px;
        line-height: 24px;
    }

    .sj-footer__copy {
        padding: 16px 0 24px;
        font-size: 12px;
        line-height: 22px;
    }

    .sj-footer__scan,
    .sj-footer__quick a {
        font-size: 14px;
    }

    /* 移动端放大点击热区（用负外边距抵消，视觉位置不变） */
    .sj-footer__quick a {
        display: inline-block;
        padding: 9px 0;
        margin-top: -9px;
        margin-bottom: -9px;
    }

    .sj-footer__fl-tag {
        width: 88px;
        height: 26px;
        font-size: 16px;
    }

    /* 回到顶部：贴角收近一档，内芯同步缩小，环宽保持 4px */
    .sj-top {
        right: 16px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }

    .sj-top__core {
        width: 36px;
        height: 36px;
    }

    .sj-top__arrow {
        width: 10px;
        height: 10px;
    }
}

/* ≤480：小屏进一步收敛 */
@media screen and (max-width: 480px) {
    .sj-header__logo img {
        width: 122px;
        height: 30px;
    }

    .sj-footer__logo img {
        width: 168px;
    }

    .sj-footer__qr {
        margin-left: 16px;
    }

    .sj-footer__qr img {
        width: 84px;
        height: 84px;
    }

    .sj-mnav__inner {
        padding: 4px 16px 16px;
    }

    .sj-top {
        right: 12px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .sj-top__core {
        width: 34px;
        height: 34px;
    }
}

/* 尊重系统「减弱动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
    .sj-header *,
    .sj-footer *,
    .sj-mnav *,
    .sj-top * {
        transition-duration: .01ms !important;
    }

    /* 入场位移与悬浮上移一并取消，只保留显隐本身 */
    .sj-top {
        transform: none !important;
        transition: none !important;
    }

    .sj-top:hover,
    .sj-top:active {
        translate: none;
    }

    .sj-top::after {
        transition: none;
    }
}
