:root {
    --site-chrome-purple: #3d1e58;
    --site-chrome-purple-2: #6c3a96;
    --site-chrome-amber: #efa95a;
    --site-chrome-muted: #8a8294;
    --site-chrome-line: rgba(61, 30, 88, .1);
    --site-chrome-gradient: linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%);
    --site-chrome-shadow: 0 12px 28px -14px rgba(74, 35, 117, .18);
    --site-chrome-gutter: clamp(14px, 4vw, 70px);
}

body .site-chrome-header,
body .site-chrome-header *,
body .site-chrome-footer,
body .site-chrome-footer *,
body .new_affixed,
body .new_affixed *,
body .site-chrome-drawer,
body .site-chrome-drawer * {
    box-sizing: border-box;
}

body .site-chrome-header a,
body .site-chrome-footer a,
body .new_affixed a,
body .site-chrome-drawer a {
    color: inherit;
    text-decoration: none;
}

body .n6-shell.site-chrome-header {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--n6-gutter, var(--site-chrome-gutter));
    padding-left: var(--n6-gutter, var(--site-chrome-gutter));
}

body .n6-header.site-chrome-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    height: 76px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--site-chrome-shadow);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    /* 头部字体以首页为准（layouts.app body 内联 Microsoft Yahei + 首页 #n6-home 的 14px/1.6），
       显式钉死，避免各页面 body 字体差异（ucenter/sm 的 -apple-system 链、16px 默认字号）渗入头部 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* 移动端抽屉同属头部插件，字体同样以首页为准（首页抽屉继承 #n6-home 14px/1.6） */
body .site-chrome-drawer {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

body .site-chrome-header .n6-brand,
body .site-chrome-header .n6-top-nav,
body .site-chrome-header .n6-nav-links,
body .site-chrome-header .n6-utilities,
body .site-chrome-header .n6-utility {
    display: flex;
    align-items: center;
}

body .site-chrome-header .n6-brand {
    height: 46px;
    overflow: hidden;
}

body .site-chrome-header .n6-brand img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 100%;
    object-fit: contain;
}

body .site-chrome-header .n6-top-nav {
    min-width: 0;
    justify-content: flex-start;
    gap: 16px;
    white-space: nowrap;
}

body .site-chrome-header .n6-nav-links {
    flex: 0 0 auto;
    gap: 16px;
}

body .site-chrome-header .n6-nav-link {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 12px 8px 13px;
    border-radius: 10px;
    color: #4a4460;
    font-size: 16px;
    font-weight: 700;
    transition: color .2s, background-color .2s, box-shadow .2s, transform .2s;
}

body .site-chrome-header .n6-nav-link:hover,
body .site-chrome-header .n6-nav-link.is-active {
    color: var(--site-chrome-purple) !important;
}

body .site-chrome-header .n6-nav-link:hover {
    background: #f3eff7;
    box-shadow: inset 0 0 0 1px rgba(108, 58, 150, .08);
    transform: translateY(-1px);
}

body .site-chrome-header .n6-nav-link.is-active {
    background: #eee6f5;
    box-shadow: inset 0 0 0 1px rgba(108, 58, 150, .12);
    font-weight: 800;
}

body .site-chrome-header .n6-nav-link.is-active::after {
    position: absolute;
    right: 9px;
    bottom: 5px;
    left: 9px;
    height: 3px;
    border-radius: 4px;
    background: var(--site-chrome-gradient);
    content: "";
}

body .site-chrome-header .n6-search {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(470px, 34vw);
    height: 46px;
    overflow: hidden;
    margin: 0;
    border: 1.5px solid rgba(74, 35, 117, .18);
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 1px 4px rgba(74, 35, 117, .04);
    transform: translate(-50%, -50%);
    transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

body .site-chrome-header .n6-search:focus-within {
    border-color: rgba(108, 58, 150, .34);
    box-shadow:
        inset 0 0 8px rgba(239, 169, 90, .12),
        0 0 0 3px rgba(108, 58, 150, .08),
        0 0 16px 5px rgba(108, 58, 150, .22),
        0 0 34px 10px rgba(239, 169, 90, .1),
        0 14px 34px -12px rgba(74, 35, 117, .52);
}

body .site-chrome-header .n6-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #333;
    background: #fff !important;
    box-shadow: none !important;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

body .site-chrome-header .n6-search input:focus,
body .site-chrome-header .n6-search input:active {
    background: #fff !important;
    box-shadow: none !important;
}

body .site-chrome-header .n6-search input:-webkit-autofill,
body .site-chrome-header .n6-search input:-webkit-autofill:hover,
body .site-chrome-header .n6-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: #333;
}

/* Firefox 不识别 :-webkit-autofill：用标准 :autofill 写同样式，
 * 避免自动填充时出现 Firefox 默认的淡黄底（两内核观感一致） */
body .site-chrome-header .n6-search input:autofill,
body .site-chrome-header .n6-search input:autofill:hover,
body .site-chrome-header .n6-search input:autofill:focus {
    color: #333;
    box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: #333;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #333;
}

body .site-chrome-header .n6-search button {
    position: relative;
    display: grid;
    width: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--site-chrome-gradient);
    background-size: 180% 180%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    cursor: pointer;
    isolation: isolate;
    transition: transform .16s ease, box-shadow .25s ease, background-position .35s ease;
}

body .site-chrome-header .n6-search button svg {
    display: block;
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(30, 12, 48, .32));
    transform-origin: 48% 48%;
}

body .site-chrome-header .n6-search button::before,
body .site-chrome-header .n6-search button::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

body .site-chrome-header .n6-search button::before {
    z-index: 1;
    inset: 5px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.55);
}

body .site-chrome-header .n6-search button::after {
    z-index: 3;
    top: -70%;
    bottom: -70%;
    left: -35%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    opacity: 0;
    transform: translateX(-150%) rotate(18deg);
}

body .site-chrome-header .n6-search button:hover {
    background-position: 100% 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), 0 6px 16px -7px rgba(74, 35, 117, .72);
    transform: scale(1.06) rotate(2deg);
}

body .site-chrome-header .n6-search button:hover .n6-search-icon {
    animation: n6-search-icon-orbit .7s cubic-bezier(.2, .85, .3, 1);
}

body .site-chrome-header .n6-search button:hover::before {
    animation: n6-search-radar .72s ease-out;
}

body .site-chrome-header .n6-search button:hover::after {
    animation: n6-search-shine .72s ease-out;
}

body .site-chrome-header .n6-search:focus-within button::before {
    animation: n6-search-focus-pulse 1.6s ease-out infinite;
}

body .site-chrome-header .n6-search button:active {
    box-shadow: inset 0 2px 7px rgba(30, 12, 48, .28);
    transform: scale(.92);
}

body .site-chrome-header .n6-search button:focus-visible {
    outline: 2px solid rgba(239, 169, 90, .88);
    outline-offset: -4px;
}

@keyframes n6-search-icon-orbit {
    0% { transform: rotate(0) scale(1); }
    38% { transform: rotate(-18deg) scale(.86); }
    72% { transform: rotate(372deg) scale(1.14); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes n6-search-radar {
    0% { opacity: 0; transform: scale(.45); }
    35% { opacity: .8; }
    100% { opacity: 0; transform: scale(1.25); }
}

@keyframes n6-search-shine {
    0% { opacity: 0; transform: translateX(-150%) rotate(18deg); }
    35% { opacity: .85; }
    100% { opacity: 0; transform: translateX(520%) rotate(18deg); }
}

@keyframes n6-search-focus-pulse {
    0% { opacity: 0; transform: scale(.58); }
    35% { opacity: .6; }
    85%, 100% { opacity: 0; transform: scale(1.18); }
}

body .site-chrome-header .n6-utilities {
    flex: 0 0 auto;
    gap: 0;
    margin-left: auto;
}

/* 顶栏工具区统一高度 38px：主题切换、服务热线（双行）、各入口悬停高亮同高 */
body .site-chrome-header .n6-utility {
    gap: 8px;
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: #4a4460;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s, background-color .2s, box-shadow .2s;
}

body .site-chrome-header .yys-theme-toggle {
    height: 38px;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}

body .site-chrome-header .n6-utility:hover {
    color: var(--site-chrome-purple);
    background: #f3eff7;
}

body .site-chrome-header .n6-user-menu.is-open > .n6-utility,
body .site-chrome-header .n6-user-menu > .n6-utility:focus-visible {
    color: var(--site-chrome-purple);
    background: #f3eff7;
    box-shadow: 0 4px 12px -8px rgba(74, 35, 117, .45);
    outline: 0;
}

body .site-chrome-header .n6-utility + .n6-utility,
body .site-chrome-header .n6-user-menu > .n6-utility {
    border-left: 1px solid var(--site-chrome-line);
    border-radius: 0;
    padding-left: 17px;
}

body .site-chrome-header .n6-icon,
body .site-chrome-header .n6-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

body .site-chrome-header .n6-badge-wrap {
    position: relative;
}

body .site-chrome-header .n6-badge {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    color: #fff;
    /* 红色提醒徽标：与站内既有红色强调色 (#ff1a2b) 一致 */
    background: #ff1a2b;
    box-shadow: 0 3px 8px rgba(255, 26, 43, .4);
    font-size: 10px;
    font-style: normal;
    line-height: 18px;
    text-align: center;
}

body .site-chrome-header .n6-hotline strong,
body .site-chrome-header .n6-hotline small {
    display: block;
    /* 17px × 2 + 2px 间距 = 36px，保证双行内容装进 38px 的统一高度 */
    line-height: 17px;
}

body .site-chrome-header .n6-hotline strong {
    font-size: 14px;
}

body .site-chrome-header .n6-hotline small {
    margin-top: 2px;
    color: var(--site-chrome-muted);
    font-size: 14px;
}

body .site-chrome-header .n6-user-menu {
    position: relative;
    min-width: 0;
}

body .site-chrome-header .n6-user-menu::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 14px;
    content: "";
}

body .site-chrome-header .n6-user-menu > .n6-utility > span:last-child {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .site-chrome-header .n6-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    display: none;
    min-width: 184px;
    padding: 8px 0;
    border: 1px solid var(--site-chrome-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--site-chrome-shadow);
}

body .site-chrome-header .n6-user-menu.is-open .n6-user-dropdown {
    display: block;
}

body .site-chrome-header .n6-user-dropdown a {
    position: relative;
    display: flex;
    min-height: 38px;
    align-items: center;
    margin: 2px 8px;
    padding: 8px 14px 8px 18px;
    border-radius: 9px;
    color: #4a4460;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s, background-color .2s, transform .2s;
}

body .site-chrome-header .n6-user-dropdown a::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--site-chrome-purple-2);
    content: "";
    opacity: 0;
    transform: scaleY(.55);
    transition: opacity .2s, transform .2s;
}

body .site-chrome-header .n6-user-dropdown a:hover,
body .site-chrome-header .n6-user-dropdown a:focus-visible {
    color: var(--site-chrome-purple);
    background: #f3eff7;
    outline: 0;
    transform: translateX(2px);
}

body .site-chrome-header .n6-user-dropdown a.is-active {
    color: var(--site-chrome-purple);
    background: #eee6f5;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(108, 58, 150, .08);
}

body .site-chrome-header .n6-user-dropdown a.is-active::before,
body .site-chrome-header .n6-user-dropdown a:hover::before,
body .site-chrome-header .n6-user-dropdown a:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

body .site-chrome-header .n6-mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--site-chrome-gradient);
    box-shadow: 0 8px 16px -6px rgba(74, 35, 117, .5);
    cursor: pointer;
}

body .site-chrome-header .n6-mobile-menu svg {
    width: 22px;
    height: 22px;
}

body .site-chrome-overlay,
body .site-chrome-drawer {
    display: none;
}

body .n6-footer.site-chrome-footer {
    width: 100%;
    min-height: 300px;
    margin: 22px 0 0;
    border-radius: 24px 24px 0 0;
    color: #fff;
    background: linear-gradient(165deg, #2f1550 0%, #4a2375 55%, #5e3489 100%);
}

body .site-chrome-footer .n6-footer-main {
    display: grid;
    width: min(1200px, calc(100% - var(--site-chrome-gutter) * 2));
    min-height: 190px;
    grid-template-columns: repeat(4, 1fr) 92px 1.45fr;
    gap: 28px;
    margin: auto;
    padding-top: 36px;
}

body .site-chrome-footer h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

body .site-chrome-footer a {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 14px;
}

body .site-chrome-footer a:hover {
    color: #fff;
}

body .site-chrome-footer .n6-footer-contact {
    display: grid;
    grid-column: 5 / 7;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

body .site-chrome-footer .n6-footer-qr {
    display: block;
    width: 92px;
    height: 92px;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px -8px rgba(20, 8, 34, .5);
    object-fit: contain;
}

body .site-chrome-footer .n6-footer-caption {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    text-align: center;
}

body .site-chrome-footer .n6-footer-contact strong,
body .site-chrome-footer .n6-footer-contact small {
    display: block;
}

body .site-chrome-footer .n6-footer-contact strong {
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
}

body .site-chrome-footer .n6-footer-contact small {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

body .site-chrome-footer .n6-footer-bottom {
    display: flex;
    width: min(1200px, calc(100% - var(--site-chrome-gutter) * 2));
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

body .site-chrome-footer .n6-footer-bottom-copy {
    min-width: 0;
    line-height: 1.9;
}

body .site-chrome-footer .n6-footer-bottom-copy a {
    display: inline;
    margin: 0 6px;
    color: #fff;
    white-space: nowrap;
}

body .site-chrome-footer .n6-footer-tags {
    flex: 0 0 auto;
    white-space: nowrap;
}

body .site-chrome-footer .n6-footer-custom {
    width: min(1200px, calc(100% - var(--site-chrome-gutter) * 2));
    margin: 4px auto 0;
    padding: 0 0 24px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

body .site-chrome-footer .n6-footer-custom a {
    display: inline;
    margin: 0 6px;
}

/* ---- 右侧悬浮工具条（new_affixed）：结构与样式对齐线上正式站
   （基础布局来自旧系统 new_style.css，紫色主题来自 next-chrome/site-chrome.css，
   扫一扫二维码弹层卡片与线上页面内联覆盖一致） ---- */
body .new_affixed ul {
    position: fixed;
    z-index: 100;
    top: 240px;
    right: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: -4px 5px 7px 0 rgba(106, 106, 106, .15);
    list-style: none;
}

body .new_affixed ul li {
    width: 52px;
    text-align: center;
    line-height: normal;
    list-style: none;
}

body .new_affixed ul li[data-site-chrome-top] {
    cursor: pointer;
}

body .new_affixed ul li.new_affixed_help a {
    display: block;
}

body .new_affixed ul li i,
body .new_affixed ul li span {
    display: block;
    color: #666;
    font-style: normal;
}

body .new_affixed ul li i {
    padding-top: 12px;
    font-size: 24px;
}

body .new_affixed ul li span {
    padding-top: 2px;
    padding-bottom: 4px;
    font-size: 12px;
}

body .new_affixed > ul > li:hover {
    color: #fff;
    background: linear-gradient(160deg, #4a2375, #6c3a96);
}

body .new_affixed > ul > li:first-child:hover {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

body .new_affixed > ul > li:last-child:hover {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

body .new_affixed ul > li:hover > i,
body .new_affixed ul > li:hover > span,
body .new_affixed ul > li:hover > a > i,
body .new_affixed ul > li:hover > a > span {
    color: #fff;
}

body .new_affixed > ul > li:first-child > span {
    display: block;
    width: 34px;
    padding-right: 0;
    margin: 0 auto;
}

body .new_affixed ul > li:first-child > i,
body .new_affixed ul > li:first-child > span {
    color: var(--site-chrome-purple, #3d1e58);
}

body .new_affixed ul > li:first-child:hover > i,
body .new_affixed ul > li:first-child:hover > span {
    color: #fff;
}

body .new_affixed ul > li:last-child span {
    padding-bottom: 12px;
}

/* 扫一扫：悬浮展示公众号二维码弹层卡片（带右向箭头） */
body .new_affixed ul li.new_affixed_scan {
    position: relative;
}

body .new_affixed ul li.new_affixed_scan .new_code {
    position: absolute;
    z-index: 101;
    top: 50%;
    right: 64px;
    left: auto;
    display: none;
    box-sizing: border-box;
    width: 174px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transform: translateY(-50%);
}

body .new_affixed ul li.new_affixed_scan:hover .new_code {
    display: block;
}

body .new_affixed ul li.new_affixed_scan .new_code::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -9px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #fff;
    filter: drop-shadow(2px 1px 1px rgba(0, 0, 0, .12));
    transform: translateY(-50%);
}

body .new_affixed ul li.new_affixed_scan .new_code img {
    display: block;
    width: 150px !important;
    height: 150px !important;
}

body .new_affixed ul li.new_affixed_scan .new_code p {
    margin: 8px 0 0;
    padding: 0;
    color: #333;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    body .n6-shell.site-chrome-header {
        padding-right: 26px;
        padding-left: 26px;
    }

    body .site-chrome-header .n6-brand img {
        height: 38px;
    }

    body .site-chrome-header .n6-top-nav,
    body .site-chrome-header .n6-nav-links {
        gap: 10px;
    }

    body .site-chrome-header .n6-nav-link {
        font-size: 15px;
    }

    body .site-chrome-header .n6-search {
        width: min(420px, 38vw);
    }
}

@media (max-width: 820px) {
    body .n6-header.site-chrome-header {
        min-height: 76px;
        height: auto;
        gap: 8px;
        padding: 0 12px;
        border-radius: 0 0 18px 18px;
    }

    body .site-chrome-header .n6-brand img {
        height: 34px;
    }

    body .site-chrome-header .n6-nav-links,
    body .site-chrome-header .n6-utilities {
        display: none;
    }

    body .site-chrome-header .n6-search {
        width: min(400px, calc(100% - 116px));
        height: 42px;
    }

    body .site-chrome-header .n6-search button {
        width: 42px;
        flex-basis: 42px;
    }

    body .site-chrome-header .n6-mobile-menu {
        display: grid;
        margin-left: 0;
        margin-right: auto;
    }

    body .site-chrome-overlay.is-open {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        background: rgba(30, 12, 48, .42);
    }

    body .site-chrome-drawer {
        position: fixed;
        z-index: 120;
        top: 0;
        left: 0;
        bottom: 0;
        display: block;
        width: min(85vw, 360px);
        padding: 24px;
        overflow: auto;
        background: #fff;
        box-shadow: 20px 0 50px rgba(30, 12, 48, .25);
        transform: translateX(-105%);
        transition: transform .25s;
    }

    body .site-chrome-drawer.is-open {
        transform: none;
    }

    body .site-chrome-drawer header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        color: var(--site-chrome-purple);
        font-size: 20px;
        font-weight: 800;
    }

    body .site-chrome-drawer header button {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 0;
        color: var(--site-chrome-purple);
        background: transparent;
        cursor: pointer;
    }

body .site-chrome-drawer header button svg {
    width: 24px;
    height: 24px;
}

body .site-chrome-drawer .n6-mobile-theme-toggle {
    margin: 0 0 10px;
}

body .site-chrome-drawer .n6-mobile-theme-toggle .yys-theme-toggle {
    width: 100%;
}

    body .site-chrome-drawer .n6-mobile-category {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--site-chrome-line);
        color: #3a3550;
        font-weight: 700;
    }

    body .site-chrome-drawer .n6-mobile-category small {
        display: block;
        margin-top: 6px;
        color: var(--site-chrome-muted);
        font-size: 14px;
        font-weight: 400;
    }

body .site-chrome-footer .n6-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    body .site-chrome-footer .n6-footer-contact {
        grid-column: 1 / 3;
    }

    body .site-chrome-footer .n6-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    body .site-chrome-footer .n6-footer-tags {
        white-space: normal;
    }

    body .new_affixed {
        display: none;
    }
}

@media (max-width: 520px) {
    body .site-chrome-footer .n6-footer-main {
        width: calc(100% - 32px);
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
    }

    body .site-chrome-footer .n6-footer-contact {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 18px;
    }

    body .site-chrome-footer .n6-footer-qr {
        width: 82px;
        height: 82px;
    }

    body .site-chrome-footer .n6-footer-bottom {
        width: calc(100% - 32px);
    }

    body .site-chrome-footer .n6-footer-custom {
        width: calc(100% - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body .site-chrome-header *,
    body .site-chrome-footer *,
    body .new_affixed *,
    body .site-chrome-drawer {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

body .site-chrome-header.has-search-placement .n6-search {
    left: var(--site-chrome-search-left);
    width: var(--site-chrome-search-width);
}

body .site-chrome-header.is-nav-collapsed .n6-nav-links {
    overflow: visible;
}

body .site-chrome-header.is-nav-collapsed .n6-nav-link.n6-configured-guide {
    display: none;
}

body .site-chrome-header .n6-guide-menu {
    position: relative;
    display: none;
    flex: 0 0 auto;
    z-index: 140;
}

body .site-chrome-header.is-nav-collapsed .n6-guide-menu {
    display: block;
}

body .site-chrome-header .n6-guide-trigger {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4a4460;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

body .site-chrome-header .n6-guide-trigger::-webkit-details-marker {
    display: none;
}

body .site-chrome-header .n6-guide-trigger::after {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

body .site-chrome-header .n6-guide-menu[open] .n6-guide-trigger {
    color: var(--site-chrome-purple);
    background: #f3eff7;
}

body .site-chrome-header .n6-guide-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: max(220px, 100%);
    max-height: min(60vh, 420px);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--site-chrome-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--site-chrome-shadow);
}

body .site-chrome-header .n6-guide-menu:not([open]) .n6-guide-dropdown {
    display: none;
}

body .site-chrome-header .n6-guide-dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: #4a4460;
    font-size: 14px;
    font-weight: 600;
}

body .site-chrome-header .n6-guide-dropdown a:hover,
body .site-chrome-header .n6-guide-dropdown a:focus-visible {
    color: var(--site-chrome-purple);
    background: #f3eff7;
    outline: 0;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-dropdown {
    border-color: rgba(235, 224, 201, .16);
    background: #303334;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-trigger,
html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-dropdown a {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-menu[open] .n6-guide-trigger,
html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-dropdown a:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-guide-dropdown a:focus-visible {
    color: #f3dfb1;
    background: rgba(255, 255, 255, .06);
}

/* 单行模式：汉堡按钮在最左列，logo 第二列，搜索框第三列（与左侧抽屉呼应） */
body .n6-header.site-chrome-header.is-single-line {
    grid-template-columns: 44px minmax(60px, max-content) minmax(0, 1fr);
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
}

body .site-chrome-header.is-single-line .n6-brand {
    grid-column: 2;
    min-width: 0;
    max-width: min(30vw, 170px);
}

/* 手机端 logo 按视口宽度等比缩放（源图 523x120），窄机型取 96px 下限防过小 */
body .site-chrome-header.is-single-line .n6-brand img {
    width: clamp(96px, 26vw, 160px);
    max-width: 100%;
    height: auto;
}

body .site-chrome-header.is-single-line .n6-top-nav {
    display: contents;
}

body .site-chrome-header.is-single-line .n6-nav-links,
body .site-chrome-header.is-single-line .n6-utilities {
    display: none;
}

body .site-chrome-header.is-single-line .n6-search {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    transform: none;
}

body .site-chrome-header.is-single-line .n6-mobile-menu {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 0;
}

body.site-chrome-menu-available .site-chrome-overlay.is-open {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: block;
    background: rgba(30, 12, 48, .42);
}

body.site-chrome-menu-available .site-chrome-drawer {
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    bottom: 0;
    display: block;
    width: min(85vw, 360px);
    padding: 24px;
    overflow: auto;
    background: #fff;
    box-shadow: 20px 0 50px rgba(30, 12, 48, .25);
    transform: translateX(-105%);
    transition: transform .25s;
}

body.site-chrome-menu-available .site-chrome-drawer.is-open {
    transform: none;
}

body.site-chrome-menu-available .site-chrome-drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--site-chrome-purple);
    font-size: 20px;
    font-weight: 800;
}

body.site-chrome-menu-available .site-chrome-drawer header button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    color: var(--site-chrome-purple);
    background: transparent;
}

body.site-chrome-menu-available .site-chrome-drawer header button svg {
    width: 24px;
    height: 24px;
}

body.site-chrome-menu-available .site-chrome-drawer .n6-mobile-theme-toggle {
    margin-bottom: 10px;
}

body.site-chrome-menu-available .site-chrome-drawer .n6-mobile-theme-toggle .yys-theme-toggle {
    width: 100%;
}

body.site-chrome-menu-available .site-chrome-drawer .n6-mobile-category {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--site-chrome-line);
    color: #3a3550;
    font-weight: 700;
}

body.site-chrome-menu-available .site-chrome-drawer .n6-mobile-category small {
    display: block;
    margin-top: 6px;
    color: var(--site-chrome-muted);
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 820px) {
    body .site-chrome-header.is-single-line { padding-right: 10px; padding-left: 10px; }
    body .site-chrome-header.is-single-line .n6-brand { max-width: 22vw; }
    body .site-chrome-header.is-single-line .n6-search { height: 40px; }
    body .site-chrome-header.is-single-line .n6-search input { padding-right: 10px; padding-left: 10px; font-size: 14px; }
    body .site-chrome-header.is-single-line .n6-search button { width: 38px; flex-basis: 38px; }
    body .site-chrome-header.is-single-line .n6-mobile-menu { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (max-width: 1500px) {
    body .site-chrome-header .n6-utility > span:not(.n6-icon):not(.n6-badge-wrap),
    body .site-chrome-header .yys-theme-toggle-label {
        display: none;
    }

    body .site-chrome-header .n6-utility,
    body .site-chrome-header .yys-theme-toggle {
        width: 42px;
        min-width: 42px;
        justify-content: center;
        padding-right: 8px;
        padding-left: 8px;
    }
}


/* 购物车悬浮汇总窗：对齐 ww2 线上头部购物车 hover 浮窗
   （旧 style.css .cart-block + next-chrome-patch.css 的 380px 右对齐形态） */
body .site-chrome-header .n6-cart-menu {
    position: relative;
}

body .site-chrome-header .n6-cart-menu::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 14px;
    content: "";
}

body .site-chrome-header .n6-cart-dropdown {
    position: absolute;
    top: 100%;
    right: -1px;
    z-index: 60;
    display: flex;
    width: 380px;
    max-height: 520px;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 18px;
    border: 1px solid var(--site-chrome-line);
    border-radius: 12px;
    color: #666;
    background: #fff;
    box-shadow: var(--site-chrome-shadow);
    font-size: 14px;
    line-height: normal;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 40px);
    transition: opacity .5s, transform .5s;
}

body .site-chrome-header .n6-cart-menu.is-open .n6-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

body .site-chrome-header .n6-cart-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 14px 0 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #d9d2e3 transparent;
}

body .site-chrome-header .n6-cart-list::-webkit-scrollbar {
    width: 6px;
}

body .site-chrome-header .n6-cart-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d9d2e3;
}

body .site-chrome-header .n6-cart-list::-webkit-scrollbar-track {
    background: transparent;
}

body .site-chrome-header .n6-cart-list li {
    display: block;
    margin-top: 10px;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    padding-bottom: 10px;
}

body .site-chrome-header .n6-cart-thumb-wrap {
    float: left;
    width: 100px;
}

body .site-chrome-header .n6-cart-thumb-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

body .site-chrome-header .n6-cart-info {
    margin-left: 110px;
    line-height: 25px;
}

body .site-chrome-header .n6-cart-info {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

body .site-chrome-header .n6-cart-total-row {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin: 10px 20px 0;
    white-space: nowrap;
}

body .site-chrome-header .n6-cart-sum-label b.n6-cart-sum {
    margin-left: auto;
    color: #ff1a2b;
}

body .site-chrome-header .n6-cart-checkout {
    display: block;
    flex: 0 0 auto;
    margin: 12px 20px 0;
    border-radius: 10px;
    color: #fff !important;
    background: var(--site-chrome-purple);
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    padding: 10px 0;
    text-align: center;
    text-transform: uppercase;
    transition: opacity .2s, background-color .2s;
}

body .site-chrome-header .n6-cart-checkout:hover {
    color: #fff !important;
    background: #5a2e85;
}

body .site-chrome-header .n6-cart-empty {
    display: none;
    padding: 20px;
}

body .site-chrome-header .n6-cart-dropdown.is-empty .n6-cart-list,
body .site-chrome-header .n6-cart-dropdown.is-empty .n6-cart-total-row,
body .site-chrome-header .n6-cart-dropdown.is-empty .n6-cart-checkout {
    display: none;
}

body .site-chrome-header .n6-cart-dropdown.is-empty .n6-cart-empty {
    display: block;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-cart-dropdown {
    border-color: rgba(235, 224, 201, .16);
    color: #e6e0d5;
    background: #303334;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-cart-list li {
    border-bottom-color: rgba(235, 224, 201, .14);
}

/* 手机端页脚：栏目文案在各自盒子内居中，二维码标签保持单行；友链区隐藏 | 分隔符并按三列居中排布 */
@media (max-width: 520px) {
    body .site-chrome-footer .n6-footer-main > section {
        text-align: center;
    }

    body .site-chrome-footer .n6-footer-contact .n6-footer-caption {
        font-size: 12px;
    }

    /* 客服热线文字列相对整块（含二维码）上下居中 */
    body .site-chrome-footer .n6-footer-contact {
        align-items: center;
    }

    body .site-chrome-footer .n6-footer-custom,
    body .site-chrome-footer .n6-footer-custom p {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    body .site-chrome-footer .n6-footer-custom > span:not(:has(a)),
    body .site-chrome-footer .n6-footer-custom p > span:not(:has(a)),
    body .site-chrome-footer .n6-footer-custom p > span:has(a) > span:not(:has(a)) {
        display: none;
    }

    /* 带链接的包装 span 打平，使其内部链接与普通链接形成同构的三列格子 */
    body .site-chrome-footer .n6-footer-custom p > span:has(a) {
        display: contents;
    }

    body .site-chrome-footer .n6-footer-custom > a,
    body .site-chrome-footer .n6-footer-custom p > a,
    body .site-chrome-footer .n6-footer-custom p > span:has(a) > a {
        flex: 0 0 33.333%;
        box-sizing: border-box;
        margin: 0;
        padding: 3px 4px;
        text-align: center;
    }
}


/* 手机端 header logo 等比缩放（源图 523x120）：随视口平滑缩放，窄机型设 108px 下限。
   选择器带 .n6-header 提高特异性，覆盖 1500px 断点的 22vw 压缩规则 */
@media (max-width: 520px) {
    body .n6-header.site-chrome-header.is-single-line .n6-brand {
        max-width: none;
    }

    body .n6-header.site-chrome-header.is-single-line .n6-brand img {
        width: clamp(108px, 30vw, 150px);
        height: auto;
    }
}

/* 图标快捷组仅手机端展示（桌面保持 PC 工具组） */
body .site-chrome-header .n6-mobile-quick {
    display: none;
}

/* 手机抽屉「全部商品分类」轻量对齐 PC 菜单：一级分类 + 广播公告占位 + 二级分类（图标+链接）+ 三级分类/推荐商品（角标） */
@media (max-width: 820px) {
    /* 与 1142 行的 body.site-chrome-menu-available 前缀同特异性，靠源顺序取胜 */
    body.site-chrome-menu-available .site-chrome-drawer .n6-mobile-category {
        padding: 18px 2px 16px;
    }

    body .site-chrome-drawer .n6-mobile-category > .n6-mobile-category-name {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 16px;
        letter-spacing: .02em;
    }

    /* 一级分类名前的小方块装饰（与汉堡按钮同款紫色渐变） */
    body .site-chrome-drawer .n6-mobile-category > .n6-mobile-category-name::before {
        content: '';
        flex: none;
        width: 8px;
        height: 8px;
        border-radius: 2px;
        background: var(--site-chrome-gradient);
    }

    /* 分类广播公告：有公告展示粉底红字卡片，无公告保留空槽位不占视觉高度 */
    body .site-chrome-drawer .n6-mobile-category-notice {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 0;
        margin-top: 0;
        padding: 0;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 400;
    }

    body .site-chrome-drawer .n6-mobile-category-notice.has-notice {
        min-height: 34px;
        margin-top: 12px;
        padding: 7px 12px;
        color: #ff1a2b;
        background: #fff6f7;
    }

    body .site-chrome-drawer .n6-mobile-category-notice svg {
        flex: none;
        width: 14px;
        height: 14px;
    }

    body .site-chrome-drawer .n6-mobile-category-subs {
        display: grid;
        gap: 16px;
        margin-top: 16px;
    }

    body .site-chrome-drawer .n6-mobile-subcategory {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 9px;
        font-weight: 400;
    }

    body .site-chrome-drawer .n6-mobile-subcategory img {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: #f1ecf5;
        object-fit: cover;
    }

    body .site-chrome-drawer .n6-mobile-subcategory > a {
        font-size: 14.5px;
        font-weight: 600;
    }

    body .site-chrome-drawer .n6-mobile-sub-links {
        flex: 1 1 100%;
        padding-left: 33px;
        margin-top: 3px;
        line-height: 2;
    }

    body .site-chrome-drawer .n6-mobile-sub-links a {
        position: relative;
        display: inline-block;
        margin: 0 26px 0 0;
        color: var(--site-chrome-muted);
        font-size: 12.5px;
        font-weight: 400;
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.is_special {
        color: #ff1a2b !important;
        -webkit-text-fill-color: #ff1a2b;
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.is_special::after {
        position: absolute;
        top: 1px;
        right: -20px;
        display: block;
        width: 18px;
        height: 11px;
        content: '';
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.menu_hot::after {
        background-image: url(/views/yys/skin/default/new_image/menu_hot.png);
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.menu_new::after {
        background-image: url(/views/yys/skin/default/new_image/menu_new.png);
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.menu_con::after {
        background-image: url(/views/yys/skin/default/new_image/menu_con.png);
    }

    body .site-chrome-drawer .n6-mobile-sub-links a.menu_sale::after {
        background-image: url(/views/yys/skin/default/new_image/menu_sale.png);
    }


    /* 手机端头部：搜索栏移入抽屉，头部右侧以图标展示购物车/消息/登录 */
    body .site-chrome-header.is-single-line .n6-search {
        display: none;
    }

    body .site-chrome-header .n6-mobile-quick {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    body .site-chrome-header .n6-mobile-quick-btn {
        position: relative;
        display: grid;
        width: 38px;
        height: 38px;
        flex: none;
        place-items: center;
        border-radius: 12px;
        color: #3a3550;
    }

    body .site-chrome-header .n6-mobile-quick-btn svg {
        width: 21px;
        height: 21px;
    }

    /* 主题切换：头部图标化（仅保留 ☀/☾ 图标，去掉文字与胶囊底） */
    body .site-chrome-header .n6-mobile-quick .yys-theme-toggle {
        width: 38px;
        height: 38px;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        color: #3a3550;
        background: transparent;
    }

    body .site-chrome-header .n6-mobile-quick .yys-theme-toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    body .site-chrome-header .n6-mobile-quick .yys-theme-toggle-label {
        display: none;
    }

    html[data-yys-theme="dark"] body .site-chrome-header .n6-mobile-quick .yys-theme-toggle {
        border: 0;
        color: #e6e0d5;
        background: transparent;
    }

    /* 抽屉搜索框 */
    body .site-chrome-drawer .n6-mobile-search {
        display: flex;
        margin-bottom: 14px;
    }

    body .site-chrome-drawer .n6-mobile-search input {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0 14px;
        border: 1px solid var(--site-chrome-line);
        border-right: 0;
        border-radius: 12px 0 0 12px;
        color: #3a3550;
        background: #fff;
        font-size: 14px;
        outline: none;
    }

    body .site-chrome-drawer .n6-mobile-search input:focus {
        border-color: var(--site-chrome-purple);
    }

    body .site-chrome-drawer .n6-mobile-search button {
        display: grid;
        width: 46px;
        height: 40px;
        flex: none;
        place-items: center;
        border: 0;
        border-radius: 0 12px 12px 0;
        color: #fff;
        background: var(--site-chrome-purple);
        cursor: pointer;
    }

    body .site-chrome-drawer .n6-mobile-search button svg {
        width: 18px;
        height: 18px;
    }

    html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-search input {
        color: #e6e0d5;
        background: #303334;
        border-color: rgba(235, 224, 201, .16);
    }

    html[data-yys-theme="dark"] body .site-chrome-header .n6-mobile-quick-btn {
        color: #e6e0d5;
    }
}

/* 手机端隐藏全站尾部 */
@media (max-width: 820px) {
    body #site-footer.n6-footer.site-chrome-footer {
        display: none !important;
    }
}

/* 手机端头部用户图标：点击展开用户浮窗（复用 .n6-user-dropdown 外观与夜间主题样式）。
   桌面端 n6-mobile-quick 整体隐藏，无需再按视口区分 */
body .site-chrome-header .n6-mobile-user-menu {
    position: relative;
    min-width: 0;
}

body .site-chrome-header .n6-mobile-user-menu > .n6-mobile-quick-btn {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

body .site-chrome-header .n6-mobile-user-menu .n6-user-dropdown {
    z-index: 70;
}

body .site-chrome-header .n6-mobile-user-menu.is-open .n6-user-dropdown {
    display: block;
}

body .site-chrome-header .n6-mobile-user-menu .n6-user-dropdown a.is-active {
    color: var(--site-chrome-purple);
    font-weight: 800;
}


