/* 公共布局：CSS 变量、图标工具类、页头、页脚（html 模块各页面共用，先于页面专属 css 加载） */

:root {
    /* 与效果图 / moban4 主色一致；后台基本配置可内联覆盖 --cat-primary / --cat-text / --cat-menu */
    --cat-primary: #4267b2;
    /* 询价页等使用，与主色一致，避免单独写死 #1a56b0 */
    --cat-accent: var(--cat-primary);
    /* 制造商页等（mfg-）历史变量名，与主色一致 */
    --color-primary: var(--cat-primary);
    /* 主导航链接默认字色（可由后台「菜单字体颜色」覆盖） */
    --cat-menu: #000;
    --cat-primary-text: #fff;
    --cat-primary-hover: #c80000a1;
    --cat-primary-active: #c80000cc;
    --cat-bg: #f6f8fc;
    --cat-text: #333;
    --cat-border: #dfe4ed;
    --cat-border-lighter: #e6ebf5;
    --cat-muted: #666;
    --cat-max: 1320px;
    --cat-header-z: 10009;
    --cat-border-radius: 0px;
    --danger-color: #c80000;
}

/* 去掉 UA 默认外边距，避免 body 与 --cat-bg 在页头顶部露出一条灰边（分类页 .cat-page 曾单独 margin:0，首页未设） */
html,
body {
    margin: 0;
    padding: 0;
}

/* 产品金额：币种 + 数字同色同字重（各页用 .site-product-price 包裹） */
.site-product-price {
    color: var(--danger-color, #c80000);
    font-weight: 400;
}

/* 全站链接无下划线（含 :hover / :focus / :visited） */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

/* ----- 图标（页头/页脚内联 SVG 用 currentColor） ----- */
.cat-ico {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    color: var(--cat-primary);
}

.cat-ico--muted {
    color: var(--cat-muted);
}

.cat-ico--white {
    color: #fff;
}

/* ----- 页头（对齐 moban4 header.blade 三层结构） ----- */
/* 使用 relative 随页面滚动，不吸顶（若需吸顶可改回 sticky） */
.site-header.app-header {
    position: relative;
    z-index: var(--cat-header-z);
    background: #fff;
    color: #000;
    border-bottom: 1px solid var(--cat-primary);
}

@media (max-width: 991.98px) {
    .site-header.app-header {
        border-bottom: 0;
        background: #fff;
    }
}

.site-header__inner.app-container {
    box-sizing: border-box;
    max-width: 100%;
    width: var(--cat-max);
    margin: 0 auto;
    padding: 0 10px;
}

.site-header__topbar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    height: 40px;
    font-size: 14px;
    color: #333;
}

.site-header__topbar > li {
    list-style: none;
}

@media (min-width: 992px) {
    .site-header__topbar {
        display: flex;
    }
}

.site-header__topbar-start {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    flex: 0 1 auto;
    min-width: 0;
    list-style: none;
    padding: 0;
}

.site-header__topbar-end {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.site-header__topbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__topbar-links li {
    position: relative;
    font-size: 14px;
    line-height: 1.25;
    padding: 0 10px;
}

.site-header__topbar-links li:last-child {
    padding-right: 0;
}

.site-header__topbar-links li + li::before {
    content: "|";
    position: absolute;
    left: -1px;
    color: #333;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

.site-header__topbar-links a {
    color: #333;
    text-decoration: none;
}

.site-header__topbar-links a:hover {
    color: var(--cat-primary);
    text-decoration: none;
}

.site-header__topbar-tools {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    /* 取消右侧竖线，仅保留与后续内容的间距 */
    border-right: 0;
    margin-right: 0;
}

.site-header__topbar-tools > li {
    cursor: pointer;
    position: relative;
    font-size: 14px;
    line-height: 1.25;
    padding: 0 6px;
    margin: 0;
}

.site-header__topbar-tools-currency {
    border-right: 0;
}

/* 货币与语言之间的 “|”（原 border 在部分环境下不明显） */
.site-header__topbar-tools-lang {
    display: flex;
    align-items: center;
    border-right: 0;
}

.site-header__topbar-tools-lang::before {
    content: "|";
    margin-right: 6px;
    color: #333;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

.site-header__topbar select {
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
}

.site-header__topbar-link {
    margin: 0;
    /* 竖线左右间距类似 “ | ” 视觉效果 */
    padding: 0 8px;
    /* 竖线左侧留一点空隙，避免紧贴前一个文字 */
    margin-left: 8px;
    border-left: 1px solid #333;
    font-size: 14px;
    line-height: 1.25;
}

.site-header__topbar-link a {
    display: inline-block;
    /* 增加文字与竖线之间的左间距 */
    padding: 0 0 0 6px;
    color: #333;
    text-decoration: none;
}

.site-header__topbar-link a:hover {
    color: var(--cat-primary);
}

.site-header__contact {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    margin-left: 0;
    border-left: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.25;
}

/* 顶栏：语言与「联系我们」之间的 “|” */
.site-header__topbar-start .site-header__contact {
    display: flex;
    align-items: center;
}

.site-header__topbar-start .site-header__contact::before {
    content: "|";
    margin-right: 6px;
    color: #333;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

.site-header__contact-panel li {
    list-style: none;
}

.site-header__contact-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 14px;
    line-height: 1.25;
}

.cat-ico--chev {
    color: #333;
    opacity: 0.85;
}

.site-header__contact-panel {
    display: none;
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    margin-top: 4px;
    min-width: 220px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 50;
    list-style: none;
    /* 避免父级 text-transform: capitalize 把邮箱域名显示成 Qq.com 等 */
    text-transform: none;
}

.site-header__contact:hover .site-header__contact-panel {
    display: block;
}

.site-header__contact.is-open .site-header__contact-panel {
    display: block;
}

.site-header__contact-panel a {
    display: block;
    padding: 4px 0 4px 10px;
    white-space: nowrap;
    color: var(--cat-text);
    text-decoration: none;
    line-height: 20px;
    text-transform: none;
}

.site-header__contact-panel li + li {
    margin-top: 2px;
}

.site-header__contact-panel a:hover {
    color: var(--cat-primary);
    text-decoration: none;
}

.site-header__nav {
    padding: 0;
}

.site-header__nav-inner {
    width: 100%;
}

.site-header__row-top.nav-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 35px;
    height: 40px;
}

@media (max-width: 991.98px) {
    .site-header__row-top.nav-top {
        padding: 0;
    }
}

.site-header__toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #000;
}

@media (max-width: 991.98px) {
    .site-header__toggler {
        display: flex;
        color: #fff;
    }
}

/* 手机版：点前横线式菜单图标 */
.site-header__menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 22px;
    height: 18px;
    color: inherit;
}

.site-header__menu-icon-row {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 2px;
}

.site-header__menu-icon-row::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    align-self: center;
}

.site-header__menu-icon-row::after {
    content: "";
    flex: 1;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* 内联“汉堡”三线，等同 moban4 iconfont */
.site-header__iconfont--menu {
    display: inline-block;
    width: 20px;
    height: 14px;
    vertical-align: middle;
    color: #000;
    background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat;
}

.site-header__iconfont--inverse {
    color: #fff;
    background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat;
}

.site-header__logo {
    flex-shrink: 0;
    width: auto;
    max-width: 280px;
    min-height: 52px;
    margin-right: 10px;
}

@media (max-width: 991.98px) {
    .site-header__logo {
        max-width: min(220px, 55vw);
        width: auto;
        min-height: 0;
        margin: 0;
        position: static;
        left: auto;
        right: auto;
    }

    .site-header__row-top.nav-top {
        position: relative;
    }

    .site-header__logo-img {
        height: 36px;
        max-width: 120px;
    }

    .site-header__brand.is-fallback .site-header__logo-img {
        display: none;
    }

    .site-header__brand.is-fallback .site-header__logo-graphic::before,
    .site-header__brand.is-fallback .site-header__logo-graphic::after {
        background: #fff;
    }

    .site-header__brand.is-fallback .site-header__logo-graphic {
        box-shadow: 14px -6px 0 -2px rgba(255, 255, 255, 0.45);
    }
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.site-header__logo-img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 效果图左侧三块叠放图形 Logo（无图或加载失败时仅显示图形 + 文案） */
.site-header__logo-graphic {
    display: none;
    position: relative;
    width: 36px;
    height: 32px;
    flex-shrink: 0;
}

.site-header__brand.is-fallback .site-header__logo-graphic {
    display: block;
    box-shadow: 14px -6px 0 -2px rgba(66, 103, 178, 0.45);
}

.site-header__logo-graphic::before,
.site-header__logo-graphic::after {
    content: "";
    position: absolute;
    background: var(--cat-primary);
    border-radius: 1px;
}

.site-header__logo-graphic::before {
    width: 22px;
    height: 12px;
    left: 0;
    top: 2px;
    transform: skewY(-16deg);
    opacity: 0.95;
}

.site-header__logo-graphic::after {
    width: 22px;
    height: 12px;
    left: 8px;
    top: 10px;
    transform: skewY(-16deg);
    opacity: 0.75;
}

/* 有官方 logo 图时只展示图片（与 moban4 一致）；无图时展示效果图里的图形+文字 */
.site-header__brand:not(.is-fallback) .site-header__logo-text {
    display: none;
}

.site-header__logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.site-header__logo-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--cat-primary);
    letter-spacing: 0.02em;
}

.site-header__logo-domain {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: #5a7fd0;
    letter-spacing: 0.04em;
}

/* 手机顶栏蓝色背景上：显示 logo 文案且为白色（需写在 desktop 隐藏 logo-text 规则之后） */
@media (max-width: 991.98px) {
    .site-header__brand:not(.is-fallback) .site-header__logo-text {
        display: flex;
    }

    .site-header__logo-title {
        color: #fff;
        font-size: 16px;
    }

    .site-header__logo-domain {
        color: rgba(255, 255, 255, 0.92);
        font-size: 10px;
    }
}

.site-header__search.search-box {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    max-width: 629px;
    height: 38px;
    border: 1px solid var(--cat-primary);
    border-radius: 2px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    /* 手机：蓝色顶栏 + 第二行圆角搜索（效果图） */
    .site-header__row-top.nav-top {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 10px;
        padding: 12px 10px 14px;
        margin: 0 -10px 0;
        width: calc(100% + 20px);
        max-width: none;
        box-sizing: border-box;
        background: var(--cat-primary);
        color: #fff;
    }

    .site-header__row-top.nav-top .site-header__toggler {
        grid-column: 1;
        grid-row: 1;
    }

    .site-header__row-top.nav-top .site-header__logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .site-header__row-top.nav-top .site-header__actions {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }

    .site-header__row-top.nav-top .site-header__search.search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 44px;
        margin: 12px 0 6px;
        border: 0;
        border-radius: 22px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: visible;
        background: #fff;
    }

    .site-header__row-top.nav-top .site-header__shopping {
        display: none;
    }

    .site-header__row-top.nav-top .site-header__user-entry {
        color: #fff;
        padding: 6px 4px;
        min-height: auto;
    }

    .site-header__row-top.nav-top .site-header__user-entry:hover {
        color: #fff;
        opacity: 0.88;
    }

    .site-header__row-top.nav-top .site-header__user-entry .cat-ico {
        display: none;
    }

    .site-header__row-top.nav-top .site-header__user-label {
        font-size: 15px;
        font-weight: 500;
        color: #fff;
    }
}

.site-header__search input {
    flex: 1;
    min-width: 0;
    padding: 6px 14px;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #333;
}

.site-header__search input::placeholder {
    color: #b0b0b0;
}

.site-header__search button,
.site-header__search .site-header__search-submit {
    width: 80px;
    flex-shrink: 0;
    border: 0;
    background: var(--cat-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__search .site-header__search-submit-ico {
    color: #fff;
}

.site-header__search button:hover,
.site-header__search .site-header__search-submit:hover {
    filter: brightness(1.06);
}

@media (max-width: 991.98px) {
    .site-header__search input {
        background: #fff;
        border-radius: 22px 0 0 22px;
        padding-left: 16px;
    }

    .site-header__search .site-header__search-submit {
        width: 48px;
        min-width: 48px;
        background: transparent;
        border-radius: 0 22px 22px 0;
        filter: none;
    }

    .site-header__search .site-header__search-submit:hover {
        filter: none;
        opacity: 0.8;
    }

    .site-header__search .site-header__search-submit-ico {
        color: #888;
    }
}

.site-header__actions.nav-icon {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .site-header__actions.nav-icon {
        margin-left: auto;
        gap: 4px;
    }
}

/* 顶栏购物车：图标链接，无底色 */
.site-header__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    min-width: 44px;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    text-decoration: none;
    box-sizing: border-box;
    color: inherit;
}

.site-header__cart-btn svg {
    width: 26px;
    height: 26px;
    display: block; /* 解决 svg 默认 baseline 导致的视觉高度差 */
    flex-shrink: 0;
}

.site-header__cart-btn:hover {
    background: transparent;
    opacity: 0.85;
}

.site-header__user {
    position: relative;
    margin-left: 28px;
}

@media (max-width: 991.98px) {
    .site-header__user {
        margin-left: 8px;
    }
}

.site-header__user-btn {
    display: flex;
    align-items: center;
}

.site-header__user-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    cursor: pointer;
}

.site-header__user-entry:hover {
    color: var(--cat-primary);
}

.site-header__user-label {
    color: #000;
}

.site-header__user-label--email {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.site-header__user:hover .site-header__user-panel,
.site-header__user.is-user-menu-open .site-header__user-panel {
    display: flex;
}

.site-header__user-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    width: 250px;
    flex-direction: column;
    padding: 19px 15px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.site-header__user-panel-title {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d4d4d4;
    font-weight: 600;
    font-size: 15px;
}

.site-header__user-panel .site-header__user-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.site-header__user-panel .site-header__user-links a:hover {
    background: rgba(153, 153, 153, 0.1);
}

.site-header__user-panel .site-header__user-links a .cat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 22px;
    height: 22px;
    margin-right: 0;
    color: #666;
}

.site-header__user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #eee;
}

.site-header__user-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 100%;
    background: var(--cat-bg);
    border-radius: 4px;
    text-decoration: none;
    color: var(--cat-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__user-actions a:hover {
    background: var(--cat-primary);
    color: #fff;
}

/* 主导航行：所有产品（汉堡+蓝底）+ 横向链接，对应 moban4 menu-list */
.site-header__row-menu.menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    border-top: 0;
    margin: 0;
}

@media (max-width: 991.98px) {
    .site-header__row-menu.menu-list {
        display: none;
    }
}

.site-header__all-cats-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 0 0 310px;
    width: 310px;
    max-width: 310px;
    margin-right: 20px;
}

.site-header__all-cats.menu-title {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    margin-bottom: 0;
    background: var(--cat-primary);
    color: #fff;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    gap: 12px;
}

.site-header__all-cats-link:hover .site-header__all-cats {
    filter: brightness(1.06);
}

.site-header__navbar-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.site-header__main-nav.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-header__main-nav .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__main-nav .nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 16px;
    color: var(--cat-menu);
    text-decoration: none;
    /* 与 moban4 / 分类页 .cat-page 一致：Roboto + 中文回退 */
    font-family: Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, Helvetica, Tahoma, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.site-header__main-nav .nav-link:hover {
    background: rgba(212, 212, 212, 0.35);
    color: var(--cat-primary);
}

.site-header__main-nav .nav-link.is-active {
    background: rgba(212, 212, 212, 0.35);
    font-weight: 600;
    color: var(--cat-primary);
}

/* 移动端遮罩与抽屉 */
.site-header__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

.site-header__overlay.is-visible {
    display: block;
}

.site-header__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: min(312px, 88vw);
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.site-header__drawer.is-open {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .site-header__drawer {
        display: none;
    }

    .site-header__overlay {
        display: none !important;
    }
}

.site-header__drawer-head {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.site-header__drawer-close {
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #000;
}

.site-header__drawer-all {
    text-decoration: none;
    color: inherit;
}

.site-header__drawer-all-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding-left: 16px;
    background: var(--cat-primary);
    color: #fff;
    font-weight: 500;
}

.site-header__drawer-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.site-header__drawer-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__drawer-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--cat-text);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-family: Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, Helvetica, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.site-header__drawer-nav a:hover,
.site-header__drawer-nav a.is-active {
    background: var(--cat-bg);
    color: var(--cat-primary);
}

.site-header__drawer-extra {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 8px solid var(--cat-bg);
}

.site-header__drawer-extra > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--cat-text);
    border-bottom: 1px solid #f0f0f0;
}

.site-header__drawer-extra select {
    margin: 8px 16px 16px;
    width: calc(100% - 32px);
    padding: 8px;
    border: 1px solid var(--cat-border);
    border-radius: 4px;
}

/* ----- 页脚 ----- */
.site-footer {
    position: relative;
    background: var(--cat-primary);
    color: #fff;
}

.site-footer__inner {
    box-sizing: border-box;
    max-width: 100%;
    width: var(--cat-max);
    margin: 0 auto;
    padding: 30px 10px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer__col {
    width: 30%;
    padding: 0 10px;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .site-footer__col {
        width: 100%;
    }
}

.site-footer__title {
    display: block;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    /* 去掉 Koulen（无 CJK 字形对中文会静默 fallback），用中英文都通顺的系统字体栈 */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.site-footer__col a {
    display: block;
    font-size: 14px;
    line-height: 1.9;
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    /* 与页头一致：避免父级 capitalize 影响邮箱显示 */
    text-transform: none;
    transition: opacity 0.15s ease;
}

.site-footer__col a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 联系列里「热线 / 邮箱」这类前缀标签淡化，让电话与邮箱本身是视觉重点 */
.site-footer__col a > span {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.site-footer__utils {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: none;
}

.site-footer__utils-col {
    width: 30%;
    padding: 0 10px;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .site-footer__utils-col {
        width: 100%;
    }
}

/* utils 区的标题与上方 nav 区共享 .site-footer__title 的所有样式，仅去掉下边线 */
.site-footer__utils-col .site-footer__title {
    border-bottom: none;
}

/* 关闭「隐藏技术支持」时：桌面仍占第三列宽度；小屏不保留空列避免多出一块空白 */
.site-footer__cert-slot {
    min-height: 1px;
}

@media (max-width: 991.98px) {
    .site-footer__utils-col--cert-placeholder {
        display: none;
    }
}

.site-footer__subscribe {
    display: block;
    max-width: 100%;
}

.site-footer__subscribe-msg {
    margin: 0 0 8px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.45;
    border-radius: 4px;
    box-sizing: border-box;
}

.site-footer__subscribe-msg.is-success {
    color: #d8f5e4;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer__subscribe-msg.is-error {
    color: #ffd6d6;
    background: rgba(196, 18, 48, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__subscribe-bar {
    display: flex;
    align-items: stretch;
    height: 36px;
    max-width: 100%;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-sizing: border-box;
}

.site-footer__subscribe-bar input {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.site-footer__subscribe-bar input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.site-footer__subscribe-bar button {
    flex-shrink: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 17px;
    background: #fff;
    color: var(--cat-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    height: -webkit-fill-available;
}

.site-footer__prove,
.site-footer__prove a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.9;
    text-decoration: none;
}

.site-footer__pay {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__pay li {
    display: inline-flex;
}

.site-footer__pay img {
    display: block;
    width: auto;
    height: 25px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}
