html[data-yys-theme="dark"] {
    color-scheme: dark;
}

.yys-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(74, 35, 117, .16);
    border-radius: 999px;
    color: #4a4460;
    background: rgba(255, 255, 255, .78);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}

.yys-theme-toggle:hover,
.yys-theme-toggle:focus-visible {
    border-color: rgba(74, 35, 117, .34);
    color: #3d1e58;
    background: #f3eff7;
    outline: 0;
}

.yys-theme-toggle-icon {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    font-size: 15px;
    line-height: 1;
}

.yys-theme-toggle-icon::before {
    content: "\2600";
}

html[data-yys-theme="dark"] .yys-theme-toggle {
    border-color: rgba(234, 220, 185, .22);
    color: #f3dfb1;
    background: rgba(54, 49, 43, .82);
}

html[data-yys-theme="dark"] .yys-theme-toggle:hover,
html[data-yys-theme="dark"] .yys-theme-toggle:focus-visible {
    border-color: rgba(234, 220, 185, .42);
    color: #fff1c9;
    background: rgba(73, 64, 53, .94);
}

html[data-yys-theme="dark"] .yys-theme-toggle-icon::before {
    content: "\263E";
}

html[data-yys-theme="dark"] body:not(.fi-body) {
    color: #e6e0d5;
    background-color: #242628 !important;
}

/* Front header and modern content use a low-contrast warm dark surface. */
html[data-yys-theme="dark"] body .site-chrome-header {
    border-color: rgba(235, 224, 201, .14);
    background: rgba(43, 45, 45, .94);
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .45);
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-nav-link,
html[data-yys-theme="dark"] body .site-chrome-header .n6-utility {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-nav-link:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-nav-link.is-active,
html[data-yys-theme="dark"] body .site-chrome-header .n6-utility:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-menu.is-open > .n6-utility,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-menu > .n6-utility:focus-visible {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-nav-link:hover {
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(239, 169, 90, .16);
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-nav-link.is-active {
    background: rgba(255, 255, 255, .09);
    box-shadow: inset 0 0 0 1px rgba(239, 169, 90, .24);
}

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

html[data-yys-theme="dark"] body .site-chrome-header .n6-search:focus-within {
    border-color: rgba(239, 169, 90, .38);
    box-shadow:
        inset 0 0 10px rgba(243, 223, 177, .1),
        0 0 0 3px rgba(239, 169, 90, .08),
        0 0 18px 6px rgba(239, 169, 90, .2),
        0 0 36px 11px rgba(108, 58, 150, .16),
        0 14px 34px -12px rgba(0, 0, 0, .72);
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-search input,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-category {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-search input,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:focus,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:active {
    background: #303334 !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:-webkit-autofill,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:-webkit-autofill:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e6e0d5;
    -webkit-box-shadow: 0 0 0 1000px #303334 inset !important;
    caret-color: #e6e0d5;
}

/* Firefox 标准 :autofill 对应（暗色），防止默认淡黄底破坏暗色头部 */
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:autofill,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:autofill:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-search input:autofill:focus {
    color: #e6e0d5;
    box-shadow: 0 0 0 1000px #303334 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #303334 inset !important;
    -webkit-text-fill-color: #e6e0d5;
    caret-color: #e6e0d5;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-hotline small,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-category small {
    color: #aaa497;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a:focus-visible,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a.is-active,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-category:hover {
    color: #f3dfb1;
    background: rgba(255, 255, 255, .06);
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a.is-active {
    box-shadow: inset 0 0 0 1px rgba(239, 169, 90, .22);
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a::before {
    background: #efa95a;
}

html[data-yys-theme="dark"] body .site-chrome-header .yys-theme-toggle {
    border-left-color: rgba(235, 224, 201, .16);
}

html[data-yys-theme="dark"] body .new_affixed ul {
    background: #303334;
    box-shadow: -4px 5px 7px 0 rgba(0, 0, 0, .45);
}

html[data-yys-theme="dark"] body .new_affixed ul li i,
html[data-yys-theme="dark"] body .new_affixed ul li span {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body .new_affixed ul > li:first-child > i,
html[data-yys-theme="dark"] body .new_affixed ul > li:first-child > span {
    color: #f3dfb1;
}

html[data-yys-theme="dark"] body .new_affixed ul li.new_affixed_scan .new_code {
    background: #303334;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
}

html[data-yys-theme="dark"] body .new_affixed ul li.new_affixed_scan .new_code p {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body .new_affixed ul li.new_affixed_scan .new_code::after {
    border-left-color: #303334;
}

/* Home and legacy-modern pages keep their own light palette, so map their main surfaces here. */
html[data-yys-theme="dark"] body.n6-page {
    --n6-purple: #f3dfb1;
    --n6-purple-2: #fff1c9;
    --n6-muted: #c7c1b7;
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.n6-page .n6-header,
html[data-yys-theme="dark"] body.n6-page .n6-search,
html[data-yys-theme="dark"] body.n6-page .n6-categories,
html[data-yys-theme="dark"] body.n6-page .nh-categories,
html[data-yys-theme="dark"] body.n6-page .n6-notice,
html[data-yys-theme="dark"] body.n6-page .nh-notice,
html[data-yys-theme="dark"] body.n6-page .n6-panel,
html[data-yys-theme="dark"] body.n6-page .nh-panel,
html[data-yys-theme="dark"] body.n6-page .n6-ranking,
html[data-yys-theme="dark"] body.n6-page .n6-assurances,
html[data-yys-theme="dark"] body.n6-page .nh-assurances,
html[data-yys-theme="dark"] body.n6-page .n6-product,
html[data-yys-theme="dark"] body.n6-page .n6-thumb,
html[data-yys-theme="dark"] body.n6-page .n6-mobile-drawer {
    border-color: rgba(235, 224, 201, .16);
    background: #303334;
}

html[data-yys-theme="dark"] body.n6-page .n6-nav-link,
html[data-yys-theme="dark"] body.n6-page .n6-utility,
html[data-yys-theme="dark"] body.n6-page .n6-category,
html[data-yys-theme="dark"] body.n6-page .nh-category,
html[data-yys-theme="dark"] body.n6-page .n6-search input,
html[data-yys-theme="dark"] body.n6-page .n6-user-dropdown a,
html[data-yys-theme="dark"] body.n6-page .n6-article-title,
html[data-yys-theme="dark"] body.n6-page .nh-article-title,
html[data-yys-theme="dark"] body.n6-page .n6-product-copy b {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body.n6-page .n6-category:hover,
html[data-yys-theme="dark"] body.n6-page .nh-category:hover,
html[data-yys-theme="dark"] body.n6-page .n6-category.is-open,
html[data-yys-theme="dark"] body.n6-page .nh-category.is-open,
html[data-yys-theme="dark"] body.n6-page .n6-utility:hover,
html[data-yys-theme="dark"] body.n6-page .n6-product:hover {
    color: #f3dfb1;
    background: #3a3d3d;
}

/* 公告列表行 hover 高亮：浅紫白 (#f3eff7) 在夜间模式下过亮，换用深色表面 */
html[data-yys-theme="dark"] body.n6-page .nh-announcement:hover {
    background: #3a3d3d;
}

html[data-yys-theme="dark"] body.n6-page .n6-rank-side,
html[data-yys-theme="dark"] body.n6-page .n6-login-link,
html[data-yys-theme="dark"] body.n6-page .nh-login-link,
html[data-yys-theme="dark"] body.n6-page .n6-category-icon,
html[data-yys-theme="dark"] body.n6-page .nh-category-icon,
html[data-yys-theme="dark"] body.n6-page .n6-gift-card {
    background: #3a3d3d;
}

html[data-yys-theme="dark"] body.n6-page .n6-submenu,
html[data-yys-theme="dark"] body.n6-page .nh-submenu,
html[data-yys-theme="dark"] body.n6-page .n6-user-dropdown {
    border-color: rgba(235, 224, 201, .16);
    background: #303334;
}

html[data-yys-theme="dark"] body.n6-page :where(
    .n6-welcome strong,
    .nh-welcome strong,
    .n6-gift-card p,
    .n6-notice strong,
    .nh-notice strong,
    .n6-rank-point b,
    .n6-product-copy b,
    .n6-assurance b,
    .nh-assurance b
) {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body:has(.legacy-modern-main) {
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] .legacy-modern-main .breadcrumb,
html[data-yys-theme="dark"] .legacy-modern-main .panel,
html[data-yys-theme="dark"] .legacy-modern-main .ly-content-page,
html[data-yys-theme="dark"] .legacy-modern-main .left-module,
html[data-yys-theme="dark"] .legacy-modern-main .center_column > .page-heading,
html[data-yys-theme="dark"] .legacy-modern-main .center_column > .news_box_list,
html[data-yys-theme="dark"] .legacy-modern-main .entry-detail,
html[data-yys-theme="dark"] .legacy-modern-main .main,
html[data-yys-theme="dark"] .legacy-modern-main .ly_main,
html[data-yys-theme="dark"] .legacy-modern-main .central_box,
html[data-yys-theme="dark"] .legacy-modern-main .product-list.grid > li,
html[data-yys-theme="dark"] .legacy-modern-main .product-list-new {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5;
    background: #303334 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main .panel-heading,
html[data-yys-theme="dark"] .legacy-modern-main .page-heading,
html[data-yys-theme="dark"] .legacy-modern-main .title_block,
html[data-yys-theme="dark"] .legacy-modern-main .tle_block,
html[data-yys-theme="dark"] .legacy-modern-main .cart_new_t_title,
html[data-yys-theme="dark"] .legacy-modern-main .lys_orange,
html[data-yys-theme="dark"] .legacy-modern-main .uc_title,
html[data-yys-theme="dark"] .legacy-modern-main .legacy-modern-main a {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main dl.sorting,
html[data-yys-theme="dark"] .legacy-modern-main .subcategories,
html[data-yys-theme="dark"] .legacy-modern-main dl.sorting dd a,
html[data-yys-theme="dark"] .legacy-modern-main .subcategories li a,
html[data-yys-theme="dark"] .legacy-modern-main .pointsRule li a {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #c8c0b4;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page {
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > .main,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > .ly_main,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > [class=""],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > [class$="-page"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > [class$="_page"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content table {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content table th,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content table td {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content input[type="text"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content input[type="password"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content input[type="email"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content input[type="number"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content select,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content textarea {
    border-color: rgba(235, 224, 201, .22) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

/* Seller pages have many legacy inline colors; these shared surfaces keep the mode coherent. */
html[data-yys-theme="dark"] body .seller-topbar,
html[data-yys-theme="dark"] body .seller-top-stats,
html[data-yys-theme="dark"] body .seller-sidebar,
html[data-yys-theme="dark"] body .seller-card,
html[data-yys-theme="dark"] body .seller-topbar-actions a,
html[data-yys-theme="dark"] body .seller-top-stat {
    color: #e6e0d5;
    border-color: rgba(234, 220, 185, .16);
    background: #303334;
}

html[data-yys-theme="dark"] body .seller-topbar,
html[data-yys-theme="dark"] body .seller-top-stats,
html[data-yys-theme="dark"] body .seller-sidebar {
    background-image: none;
}

html[data-yys-theme="dark"] body .seller-topbar-meta,
html[data-yys-theme="dark"] body .seller-brand-copy span,
html[data-yys-theme="dark"] body .seller-topnav a,
html[data-yys-theme="dark"] body .seller-top-stat {
    color: #b8b1a5;
}

html[data-yys-theme="dark"] body .seller-topnav a:hover,
html[data-yys-theme="dark"] body .seller-topnav a.is-active,
html[data-yys-theme="dark"] body .seller-topbar-actions a {
    color: #f3dfb1;
}

html[data-yys-theme="dark"] body .seller-main input,
html[data-yys-theme="dark"] body .seller-main select,
html[data-yys-theme="dark"] body .seller-main textarea {
    color: #e6e0d5;
    border-color: rgba(234, 220, 185, .22);
    background-color: #292c2d;
}

html[data-yys-theme="dark"] body.seller-login-page {
    color: #e6e0d5;
    background: #242628;
}

html[data-yys-theme="dark"] body.seller-login-page .topbar,
html[data-yys-theme="dark"] body.seller-login-page .panel,
html[data-yys-theme="dark"] body.seller-login-page .switch-links a {
    color: #e6e0d5;
    border-color: rgba(234, 220, 185, .16);
    background: #303334;
}

html[data-yys-theme="dark"] body.seller-login-page .crumb,
html[data-yys-theme="dark"] body.seller-login-page .intro p {
    color: #b8b1a5;
}

/* Keep the custom Filament topbar switch aligned with the existing toolbar. */
.fi-topbar .fi-yys-theme-toggle {
    position: relative;
    top: -2px;
    margin-left: .75rem;
}

html[data-yys-theme="dark"] .fi-topbar {
    --admin-top-tab-text: #cfc8bb;
    --admin-top-tab-hover: rgba(255, 255, 255, .06);
    --admin-top-tab-active: #343838;
    --admin-top-tab-active-text: #f3dfb1;
    --admin-top-tab-line: rgba(234, 220, 185, .16);
    background: #292c2d;
}

html[data-yys-theme="dark"] .fi-topbar .fi-yys-theme-toggle {
    margin-left: .75rem;
}

html[data-yys-theme="dark"] .fi-topbar .admin-top-brand-slot .truncate {
    color: #e6e0d5 !important;
}

@media (max-width: 900px) {
    html[data-yys-theme="dark"] body .new_affixed {
        display: none !important;
    }

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

    body .site-chrome-header .yys-theme-toggle {
        width: 34px;
        padding: 7px;
    }
}

@media (max-width: 640px) {
    .fi-topbar .fi-yys-theme-toggle {
        width: 34px;
        padding: 7px;
    }

    .fi-topbar .fi-yys-theme-toggle .yys-theme-toggle-label {
        display: none;
    }
}

body[data-yys-area="frontend"] .yys-theme-transition {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(35, 30, 45, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .42s cubic-bezier(.22, 1, .36, 1), visibility .42s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body[data-yys-area="frontend"] .yys-theme-transition[hidden] {
    display: none;
}

body[data-yys-area="frontend"] .yys-theme-transition.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body[data-yys-area="frontend"] .yys-theme-transition[data-theme-target="dark"] {
    background: rgba(10, 12, 13, .48);
}

body[data-yys-area="frontend"] .yys-theme-transition-panel {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    color: #332d3b;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 54px rgba(14, 16, 18, .24);
    transform: translateY(8px) scale(.98);
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

body[data-yys-area="frontend"] .yys-theme-transition.is-visible .yys-theme-transition-panel {
    transform: translateY(0) scale(1);
}

body[data-yys-area="frontend"] .yys-theme-transition-spinner {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 3px solid rgba(74, 35, 117, .18);
    border-top-color: #6c3a96;
    border-radius: 50%;
    animation: yys-theme-transition-spin .72s linear infinite;
}

body[data-yys-area="frontend"] .yys-theme-transition-message {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

body[data-yys-area="frontend"] .yys-theme-transition[data-theme-target="dark"] .yys-theme-transition-panel {
    border-color: rgba(235, 224, 201, .2);
    color: #f3dfb1;
    background: #303334;
}

body[data-yys-area="frontend"] .yys-theme-transition[data-theme-target="dark"] .yys-theme-transition-spinner {
    border-color: rgba(243, 223, 177, .2);
    border-top-color: #efa95a;
}

body[data-yys-area="frontend"] .yys-theme-transition[data-theme-target="light"] .yys-theme-transition-panel {
    border-color: rgba(61, 30, 88, .12);
    color: #332d3b;
    background: #fff;
}

body[data-yys-area="frontend"] .yys-theme-transition[data-theme-target="light"] .yys-theme-transition-spinner {
    border-color: rgba(74, 35, 117, .18);
    border-top-color: #6c3a96;
}

@keyframes yys-theme-transition-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body[data-yys-area="frontend"] .yys-theme-transition,
    body[data-yys-area="frontend"] .yys-theme-transition-panel {
        transition-duration: .01ms;
    }

    body[data-yys-area="frontend"] .yys-theme-transition-spinner {
        animation-duration: 1.5s;
    }
}

/* Page-level surfaces. These rules are intentionally after the shared light theme
 * and use important declarations because several legacy pages define white panels
 * in inline styles or late-rendered component styles. */
html[data-yys-theme="dark"] body:not(.fi-body) {
    background: #242628 !important;
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body.help-page,
html[data-yys-theme="dark"] body.notice-page,
html[data-yys-theme="dark"] body.sm-page,
html[data-yys-theme="dark"] body.pay-page,
html[data-yys-theme="dark"] body.cart3-page,
html[data-yys-theme="dark"] body.order-success-page,
html[data-yys-theme="dark"] body.cart-page,
html[data-yys-theme="dark"] body.cart2-page {
    background: #242628 !important;
}

/* Cart list page and its component-local stylesheet. */
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell {
    --cart-v2-ink: #e6e0d5 !important;
    --cart-v2-purple: #e6c98b !important;
    --cart-v2-purple-2: #d7ad6d !important;
    --cart-v2-muted: #aaa497 !important;
    --cart-v2-line: rgba(235, 224, 201, .16) !important;
    --cart-v2-shadow: 0 24px 60px -28px rgba(0, 0, 0, .5) !important;
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .n6-header,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-header-inner,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-topbar {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: rgba(43, 45, 45, .96) !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-header,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-main {
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .n6-nav-link,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .n6-utility,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-navigation a,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-account,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-product-info h3,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-recommend-card h3,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-summary-meta b {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-search,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-mini-panel,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-board,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-factory,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-empty,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-recommend-grid,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-recommend-card,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-modal {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-crumb,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-column-head,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-factory-head,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-recommend-thumb,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-empty-icon,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-quantity button,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-modal-actions button {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-item:hover,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-recommend-card:hover {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-product-image,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-quantity,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-quantity input,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-mini-cart > a,
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-popover {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-summary {
    border-top-color: rgba(239, 169, 90, .5) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

/* Checkout page: retain the purple hero and amber actions, darken all work areas. */
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .checkout-page-card,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_o_c_c_sender > div,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-seller-card,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-contact-panel,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-coupon-panel,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_o_c_c_pay,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-footer-top,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-factory-footer > .mt-6,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-checkout-bar,
html[data-yys-theme="dark"] body.cart2-page .cart2-address-dialog,
html[data-yys-theme="dark"] body.cart2-page .cart2_pop,
html[data-yys-theme="dark"] body.cart2-page .tip,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .deliveryOneBox_ul,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .deliveryOneBox .n_addressMsg_list_d {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-factory-header,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .deliveryOneBox_ul_head,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-order-table-head,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-factory-footer,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-bottom-module,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_o_c_c_pay .new_pay_item,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-action-area,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-coupon-panel label,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .deliveryOneBox .new_logistic,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .deliveryOneBox .new_logistic > ul > li.n_delivery_list {
    border-color: rgba(235, 224, 201, .14) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-order-line,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-coupon-panel,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_o_c_c_pay .new_pay_item,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-coupon-panel input,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-contact-panel input,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-contact-panel textarea,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-factory-footer textarea {
    border-color: rgba(235, 224, 201, .18) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-order-line:hover,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-coupon-panel label:hover {
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .section-title,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .checkout-section-title,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-order-line .text-gray-700,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-footer-details,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .cart2-footer-summary,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_o_c_c_pay,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_deli_p,
html[data-yys-theme="dark"] body.cart2-page #new_order_confirm .n_addressMsg_list_d {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.cart2-page .introjs-tooltip.intro-tooltip,
html[data-yys-theme="dark"] body.cart2-page .cart2-address-dialog,
html[data-yys-theme="dark"] body.cart2-page .cart2_pop,
html[data-yys-theme="dark"] body.cart2-page .tip {
    color: #e6e0d5 !important;
}

/* Shared modern front pages. */
html[data-yys-theme="dark"] body.help-page,
html[data-yys-theme="dark"] body.notice-page,
html[data-yys-theme="dark"] body.sm-page,
html[data-yys-theme="dark"] body.pay-page,
html[data-yys-theme="dark"] body.cart3-page,
html[data-yys-theme="dark"] body.order-success-page {
    --help-ink: #e6e0d5 !important;
    --help-muted: #aaa497 !important;
    --help-line: rgba(235, 224, 201, .16) !important;
    --sm-ink: #e6e0d5 !important;
    --sm-muted: #aaa497 !important;
    --sm-line: rgba(235, 224, 201, .16) !important;
    --pay-ink: #e6e0d5 !important;
    --pay-muted: #aaa497 !important;
    --pay-line: rgba(235, 224, 201, .16) !important;
    --cart3-ink: #e6e0d5 !important;
    --cart3-muted: #aaa497 !important;
    --cart3-line: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.help-page .help-main,
html[data-yys-theme="dark"] body.notice-page .notice-main,
html[data-yys-theme="dark"] body.sm-page .sm-main,
html[data-yys-theme="dark"] body.pay-page .pay-main,
html[data-yys-theme="dark"] body.cart3-page .cart3-main,
html[data-yys-theme="dark"] body.order-success-page .order-success-main {
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.help-page .help-card,
html[data-yys-theme="dark"] body.help-page .help-content-card,
html[data-yys-theme="dark"] body.notice-page .notice-card,
html[data-yys-theme="dark"] body.notice-page .notice-list-card,
html[data-yys-theme="dark"] body.notice-page .notice-list-item,
html[data-yys-theme="dark"] body.sm-page .sm-filter-panel,
html[data-yys-theme="dark"] body.sm-page .sm-product-card,
html[data-yys-theme="dark"] body.pay-page .pay-card:not(.pay-summary),
html[data-yys-theme="dark"] body.cart3-page .cart3-success-card,
html[data-yys-theme="dark"] body.cart3-page .cart3-order-summary,
html[data-yys-theme="dark"] body.order-success-page .order-success-card {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.help-page .help-tree-row:hover,
html[data-yys-theme="dark"] body.help-page .help-tree-item.is-open > .help-tree-row,
html[data-yys-theme="dark"] body.help-page .help-tab,
html[data-yys-theme="dark"] body.help-page .help-list-item,
html[data-yys-theme="dark"] body.help-page .help-page-link,
html[data-yys-theme="dark"] body.notice-page .notice-list-item:hover,
html[data-yys-theme="dark"] body.sm-page .sm-filter-option,
html[data-yys-theme="dark"] body.sm-page .sm-search-form,
html[data-yys-theme="dark"] body.sm-page .sm-product-image,
html[data-yys-theme="dark"] body.pay-page .pay-method,
html[data-yys-theme="dark"] body.pay-page .pay-action-area,
html[data-yys-theme="dark"] body.pay-page .pay-qr-frame {
    border-color: rgba(235, 224, 201, .14) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.help-page .help-tree-row,
html[data-yys-theme="dark"] body.help-page .help-rich,
html[data-yys-theme="dark"] body.help-page .help-list-link,
html[data-yys-theme="dark"] body.notice-page .notice-list-link,
html[data-yys-theme="dark"] body.notice-page .notice-list-title,
html[data-yys-theme="dark"] body.sm-page .sm-catalog-heading,
html[data-yys-theme="dark"] body.sm-page .sm-product-copy,
html[data-yys-theme="dark"] body.pay-page .pay-method-copy strong,
html[data-yys-theme="dark"] body.pay-page .pay-method,
html[data-yys-theme="dark"] body.cart3-page .cart3-order-summary,
html[data-yys-theme="dark"] body.order-success-page .order-success-card {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.help-page :where(
    .help-breadcrumb strong,
    .help-card-title,
    .help-content-title,
    .help-article-title,
    .help-tree-item.is-parent > .help-tree-row,
    .help-list-link:hover
),
html[data-yys-theme="dark"] body.notice-page :where(
    .notice-breadcrumb strong,
    .notice-card-title,
    .notice-list-title,
    .notice-list-link:hover
),
html[data-yys-theme="dark"] body.sm-page :where(
    .sm-catalog-heading h2,
    .sm-products-head strong,
    .sm-filter-label,
    .sm-product-action
),
html[data-yys-theme="dark"] body.pay-page :where(
    .pay-breadcrumb strong,
    .pay-methods-title
),
html[data-yys-theme="dark"] body.cart3-page :where(
    .cart3-breadcrumb strong,
    .cart3-success-card h1,
    .cart3-order-summary strong
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-empty,
html[data-yys-theme="dark"] body.help-page .help-empty,
html[data-yys-theme="dark"] body.pay-page .pay-method-empty {
    color: #aaa497 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.help-page .help-hero {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #f3dfb1 !important;
    background: #303334 !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.help-page .help-hero-kicker,
html[data-yys-theme="dark"] body.help-page .help-hero p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.help-page .help-hero h1 {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.help-page .help-hero-badge {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

/* Help pages: recommend goods section. White grid/cards must turn dark
 * while the light-ink card copy stays readable. */
html[data-yys-theme="dark"] body.help-page .help-recommend-head h2 {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-head p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-grid {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    box-shadow: none !important;
    scrollbar-color: #9b6ab0 rgba(235, 224, 201, .14) !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-grid::-webkit-scrollbar-track {
    background: rgba(235, 224, 201, .12);
}

html[data-yys-theme="dark"] body.help-page .help-recommend-card {
    border-color: rgba(235, 224, 201, .14) !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-thumb {
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-card h3 {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-card p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.help-page .help-recommend-card p:last-child {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-hero {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #f3dfb1 !important;
    background: #303334 !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-hero-kicker,
html[data-yys-theme="dark"] body.notice-page .notice-hero p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-hero h1 {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-hero-badge {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

/* Notice pages: detail article card, sidebar recommend list and pagination. */
html[data-yys-theme="dark"] body.notice-page .notice-content-card {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-content-head,
html[data-yys-theme="dark"] body.notice-page .notice-detail-actions {
    border-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-content-title {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-content-meta,
html[data-yys-theme="dark"] body.notice-page .notice-breadcrumb {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-content-share,
html[data-yys-theme="dark"] body.notice-page .notice-detail-back,
html[data-yys-theme="dark"] body.notice-page .notice-pagination-link {
    border-color: rgba(235, 224, 201, .14) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-content-share:hover,
html[data-yys-theme="dark"] body.notice-page .notice-detail-back:hover,
html[data-yys-theme="dark"] body.notice-page a.notice-pagination-link:hover {
    border-color: rgba(185, 138, 224, .5) !important;
    color: #f3dfb1 !important;
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-pagination-link.is-current {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%) !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-rich {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-recommend-item:hover {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-recommend-thumb {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-recommend-copy a {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-recommend-copy a:hover {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.notice-page .notice-list-link::before {
    color: #f3dfb1 !important;
    background: #414444 !important;
}

/* Article, product and brand pages share the legacy-modern content shell. */
html[data-yys-theme="dark"] .legacy-modern-main .block,
html[data-yys-theme="dark"] .legacy-modern-main .block_content,
html[data-yys-theme="dark"] .legacy-modern-main .columns-container,
html[data-yys-theme="dark"] .legacy-modern-main #columns,
html[data-yys-theme="dark"] .legacy-modern-main #left_column,
html[data-yys-theme="dark"] .legacy-modern-main #center_column,
html[data-yys-theme="dark"] .legacy-modern-main .list_table,
html[data-yys-theme="dark"] .legacy-modern-main .products-block,
html[data-yys-theme="dark"] .legacy-modern-main .content_price {
    border-color: rgba(235, 224, 201, .14) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main .title_block,
html[data-yys-theme="dark"] .legacy-modern-main .page-heading,
html[data-yys-theme="dark"] .legacy-modern-main .navigation_page,
html[data-yys-theme="dark"] .legacy-modern-main .product-name,
html[data-yys-theme="dark"] .legacy-modern-main .product-name a,
html[data-yys-theme="dark"] .legacy-modern-main .help-title,
html[data-yys-theme="dark"] .legacy-modern-main .help-title a {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main .help-title,
html[data-yys-theme="dark"] .legacy-modern-main .subcategories,
html[data-yys-theme="dark"] .legacy-modern-main .pagination a,
html[data-yys-theme="dark"] .legacy-modern-main .pagination span {
    border-color: rgba(235, 224, 201, .12) !important;
    background: #3a3d3d !important;
}

/* The order-success template reuses the help center component names. */
html[data-yys-theme="dark"] body.order-success-page .help-card,
html[data-yys-theme="dark"] body.order-success-page .help-content-card,
html[data-yys-theme="dark"] body.order-success-page .help-list-item {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.order-success-page .help-tree-row:hover,
html[data-yys-theme="dark"] body.order-success-page .help-tree-item.is-open > .help-tree-row,
html[data-yys-theme="dark"] body.order-success-page .help-tab {
    color: #d1c9bd !important;
    background: #3a3d3d !important;
}

/* Fallbacks for legacy templates and Tailwind utilities that still emit light surfaces. */
html[data-yys-theme="dark"] body:not(.fi-body) :where(
    .bg-white,
    .bg-gray-50,
    .bg-gray-100,
    .bg-slate-50,
    .bg-slate-100,
    .modal-content,
    .ui-dialog,
    .ui-dialog-content,
    .layui-layer,
    .el-dialog,
    .el-message-box,
    .el-popover,
    .el-select-dropdown
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background-color: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body:not(.fi-body) :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    textarea,
    select,
    .form-control,
    .el-input__inner,
    .el-textarea__inner
) {
    border-color: rgba(235, 224, 201, .2) !important;
    color: #e6e0d5 !important;
    background-color: #292c2d !important;
}

html[data-yys-theme="dark"] body:not(.fi-body) :where(
    input,
    textarea
)::placeholder {
    color: #8f897f !important;
}

html[data-yys-theme="dark"] body:not(.fi-body) :where(
    table,
    thead,
    tbody,
    tfoot,
    tr,
    th,
    td
) {
    border-color: rgba(235, 224, 201, .12) !important;
}

html[data-yys-theme="dark"] body:not(.fi-body) :where(main, .legacy-modern-main, .ucenter-n6-content, .cart-v2-shell, #new_order_confirm)
    :where([style*="background: #fff"], [style*="background:#fff"], [style*="background-color: #fff"], [style*="background-color:#fff"]) {
    background-color: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body:not(.fi-body) :where(main, .legacy-modern-main, .ucenter-n6-content, .cart-v2-shell, #new_order_confirm)
    :where([style*="color: #333"], [style*="color:#333"], [style*="color: #666"], [style*="color:#666"], [style*="color: #000"], [style*="color:#000"]) {
    color: #e6e0d5 !important;
}

/* UCenter modules define their own pastel surfaces after the shared layout CSS. */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > * {
    --ucenter-n6-bg: #242628 !important;
    --ucenter-n6-ink: #e6e0d5 !important;
    --ucenter-n6-muted: #aaa497 !important;
    --ucenter-n6-line: rgba(235, 224, 201, .16) !important;
    --uc-account-ink: #e6e0d5 !important;
    --uc-account-muted: #aaa497 !important;
    --uc-account-line: rgba(235, 224, 201, .16) !important;
    --uc-account-soft: #3a3d3d !important;
    --uc-account-purple-light: #464048 !important;
    --uc-address-ink: #e6e0d5 !important;
    --uc-address-muted: #aaa497 !important;
    --uc-address-line: rgba(235, 224, 201, .16) !important;
    --uc-address-soft: #3a3d3d !important;
    --uc-address-purple-light: #464048 !important;
    --uc-archives-ink: #e6e0d5 !important;
    --uc-archives-muted: #aaa497 !important;
    --uc-archives-line: rgba(235, 224, 201, .16) !important;
    --uc-archives-purple-soft: #464048 !important;
    --uc-company-ink: #e6e0d5 !important;
    --uc-company-muted: #aaa497 !important;
    --uc-company-line: rgba(235, 224, 201, .16) !important;
    --uc-company-purple-soft: #464048 !important;
    --uc-company-amber-soft: #4a4034 !important;
    --uc-distribution-ink: #e6e0d5 !important;
    --uc-distribution-muted: #aaa497 !important;
    --uc-distribution-line: rgba(235, 224, 201, .16) !important;
    --uc-distribution-purple-soft: #464048 !important;
    --uc-invoice-ink: #e6e0d5 !important;
    --uc-invoice-muted: #aaa497 !important;
    --uc-invoice-line: rgba(235, 224, 201, .16) !important;
    --uc-invoice-soft: #3a3d3d !important;
    --uc-invoice-purple-light: #464048 !important;
    --uc-invoice-list-ink: #e6e0d5 !important;
    --uc-invoice-list-muted: #aaa497 !important;
    --uc-invoice-list-line: rgba(235, 224, 201, .16) !important;
    --uc-invoice-list-soft: #3a3d3d !important;
    --uc-invoice-list-purple-light: #464048 !important;
    --uc-title-ink: #e6e0d5 !important;
    --uc-title-muted: #aaa497 !important;
    --uc-title-line: rgba(235, 224, 201, .16) !important;
    --uc-title-soft: #3a3d3d !important;
    --uc-title-purple-light: #464048 !important;
    --uc-myshare-ink: #e6e0d5 !important;
    --uc-myshare-muted: #aaa497 !important;
    --uc-myshare-line: rgba(235, 224, 201, .16) !important;
    --uc-myshare-purple-light: #464048 !important;
    --uc-myshare-amber-light: #4a4034 !important;
    --uc-ticket-ink: #e6e0d5 !important;
    --uc-ticket-muted: #aaa497 !important;
    --uc-ticket-line: rgba(235, 224, 201, .16) !important;
    --uc-ticket-purple-soft: #464048 !important;
    --uc-recharge-ink: #e6e0d5 !important;
    --uc-recharge-muted: #aaa497 !important;
    --uc-recharge-line: rgba(235, 224, 201, .16) !important;
    --uc-recharge-purple-soft: #464048 !important;
    --uc-recharge-amber-soft: #4a4034 !important;
    --uc-customer-ink: #e6e0d5 !important;
    --uc-customer-muted: #aaa497 !important;
    --uc-customer-line: rgba(235, 224, 201, .16) !important;
    --uc-customer-purple-soft: #464048 !important;
    --uc-quote-ink: #e6e0d5 !important;
    --uc-quote-muted: #aaa497 !important;
    --uc-quote-line: rgba(235, 224, 201, .16) !important;
    --uc-quote-purple-soft: #464048 !important;
    --uc-urgent-ink: #e6e0d5 !important;
    --uc-urgent-muted: #aaa497 !important;
    --uc-urgent-line: rgba(235, 224, 201, .16) !important;
    --uc-urgent-purple-soft: #464048 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar-nav,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > [class$="-page"],
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content > [class$="_page"] {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    [class*="-card"],
    [class*="_card"],
    [class*="-panel"],
    [class*="_panel"],
    [class*="-toolbar"],
    [class*="_toolbar"],
    [class*="-table-shell"],
    [class*="-table-wrap"],
    [class*="-form-card"],
    .box,
    .main,
    .ly_main,
    .form_table,
    .news_box_list,
    table
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    [class*="-filter"],
    [class*="_filter"],
    [class*="-dialog"],
    [class*="_dialog"],
    [class*="-modal"],
    [class*="_modal"],
    [class*="-popover"],
    [class*="_popover"],
    [class*="-summary"],
    [class*="_summary"],
    [class*="-state"],
    [class*="_state"],
    [class*="-shell"],
    [class*="_shell"],
    [class*="-wrap"],
    [class*="_wrap"],
    .uc-info-identity,
    .uc-info-balance,
    .uc-info-fact,
    .uc-info-auth-state,
    .uc-info-toggle-field
) {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    [class*="-hero"],
    [class*="_hero"],
    [class*="-primary-action"],
    [class*="-secondary-action"],
    [class*="-button"],
    [class*="_button"]
) {
    background-image: initial !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    .uc-company-hero,
    .uc-invoice-balance-card,
    .uc-dashboard-hero
) {
    color: #fff !important;
    background: linear-gradient(120deg, #3d1e58, #6c3a96 65%, #8050a3) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    .uc-info-balance,
    .uc-invoice-balance-card.is-available,
    .uc-invoice-balance-card.is-orders,
    .uc-invoice-balance-card.is-locked
) {
    border-color: rgba(234, 220, 185, .18) !important;
    background: #4a4034 !important;
}

/* Raise specificity above per-module #page selectors and their important pastel rules. */
html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    #member_homepage,
    #ucenter_info_page,
    #ucenter_order_page,
    #ucenter_order_detail_page,
    #ucenter_all_message_page,
    #ucenter_address_page,
    #ucenter_archives_room_page,
    #ucenter_company_page,
    #ucenter_distribution_list_page,
    #ucenter_invoicing_page,
    #ucenter_invoicing_list_page,
    #invoice_title_page,
    #ucenter_ticket_page,
    #ucenter_ticket_center_page,
    #ucenter_recharge_page,
    #ucenter_myshare_page,
    #ucenter_wangpan_page,
    #integral_page,
    #refunds_page,
    #delay_order_page,
    #ucenter_account_log_page
) :where(
    [class*="-card"],
    [class*="_card"],
    [class*="-panel"],
    [class*="_panel"],
    [class*="-list"],
    [class*="_list"],
    [class*="-content"],
    [class*="_content"],
    [class*="-body"],
    [class*="_body"],
    [class*="-table"],
    [class*="_table"],
    [class*="-row"],
    [class*="_row"],
    [class*="-toolbar"],
    [class*="_toolbar"],
    [class*="-filter"],
    [class*="_filter"],
    .main,
    .box,
    .news_box_list,
    .uc-info-identity,
    .uc-info-balance,
    .uc-info-fact,
    .uc-info-auth-state,
    .uc-info-toggle-field,
    .goods_info,
    .goods_price
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    #member_homepage,
    #ucenter_order_page,
    #ucenter_order_detail_page
) :where(
    .order_goods_collect,
    .order_goods_repurchase,
    .product_d,
    .product_f,
    .product_b,
    .status_info button,
    .status_info .label,
    .status_info .order-wuliu
) {
    border-color: rgba(234, 220, 185, .2) !important;
    color: #f3dfb1 !important;
    background: #4a4540 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_order_detail_page :where(.mssage_box, .mssage_c) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-disabled,
html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-disabled:hover {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #8f897f !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .myorder_tital {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    box-shadow: 0 16px 36px -30px rgba(0, 0, 0, .72) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page form[name="timeData"].uc-order-filter,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter .uc-order-filter-item,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter-date-range,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter-action {
    color: #d1c9bd !important;
    background: transparent !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter-item > span,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter-date-separator {
    color: #aaa497 !important;
    background: transparent !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter select,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter input,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter select:focus,
html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter input:focus {
    border-color: rgba(235, 224, 201, .22) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-order-page #ucenter_order_page.uc-order-page .uc-order-filter-submit {
    color: #fff !important;
    background: linear-gradient(120deg, #4e2770, #8050a3) !important;
}

/* Favorite page (Vue) defines its own pastel palette; map it onto the dark surfaces. */
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-eyebrow {
    color: #c9a8e0 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search {
    border-color: rgba(235, 224, 201, .22) !important;
    background: #292c2d !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search:focus-within {
    border-color: rgba(201, 168, 224, .55) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 224, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search svg {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search input {
    color: #e6e0d5 !important;
    background: transparent !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search input::placeholder {
    color: #8f897f !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search-button {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(120deg, #4e2770, #8050a3) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-search-button:hover {
    background: linear-gradient(120deg, #5d3184, #8f5cb0) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-toolbar-divider {
    background: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-select-all {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-delete-selected {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-delete-selected:hover:not(:disabled) {
    border-color: rgba(240, 163, 171, .42) !important;
    color: #f0a3ab !important;
    background: #4a3034 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-categories {
    border-bottom-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-categories button {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-categories button:hover {
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-categories button.is-active {
    border-color: rgba(201, 168, 224, .35) !important;
    color: #f3dfb1 !important;
    background: #464048 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-card:hover {
    border-color: rgba(201, 168, 224, .4) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-card.is-selected {
    border-color: #c9a8e0 !important;
    box-shadow: 0 0 0 2px rgba(201, 168, 224, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-title {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-title:hover {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-product {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-updated {
    color: #8f897f !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-remove {
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-remove:hover:not(:disabled) {
    color: #f0a3ab !important;
    background: #4a3034 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-empty,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-loading,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-empty {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-empty strong {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-empty a {
    color: #c9a8e0 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-loading span {
    border-color: #3a3d3d !important;
    border-top-color: #c9a8e0 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-pagination {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-pagination strong {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-pagination button {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-pagination button:hover:not(:disabled) {
    border-color: rgba(201, 168, 224, .42) !important;
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-dialog-head {
    border-bottom-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-dialog-head p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-dialog-head > button,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-raw header button {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-dialog-head > button:hover,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-raw header button:hover {
    border-color: rgba(201, 168, 224, .42) !important;
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-meta {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-meta > div {
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-meta dt,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-parameters dt {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-meta dd,
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-parameters dd {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-parameters dl {
    border-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-parameters dl > div + div {
    border-top-color: rgba(235, 224, 201, .12) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-raw pre {
    color: #d1c9bd !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-detail-error {
    color: #f0a3ab !important;
}

/* "读取方案" keeps its gold pill with dark ink; the site-wide dark sweep would
 * otherwise force pale gold text onto the pale gold pill and make it unreadable.
 * The long structural chain out-specifies the sweep's :is() list, whose max
 * argument carries an id (e.g. #ucenter_quote_price_statistics_page ...). */
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-panel .uc-favorite-card .uc-favorite-card-overlay .uc-favorite-read {
    color: #432251 !important;
    background: #f5c77e !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-panel .uc-favorite-card .uc-favorite-card-overlay .uc-favorite-read:hover {
    color: #432251 !important;
    background: #ffd995 !important;
}

/* Ease the hover overlay on dark surfaces so the product thumbnail stays
 * recognizable while the overlay actions remain readable. The site-wide
 * [class*="-card"] sweep would otherwise paint this overlay opaque #303334
 * and hide the image; mobile keeps the component's transparent overlay. */
html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-card-overlay {
    background: rgba(24, 14, 32, .3) !important;
}

@media (max-width: 760px) {
    html[data-yys-theme="dark"] body.ucenter-n6-favorite-page #ucenter-favorite-page.uc-favorite .uc-favorite-card-overlay {
        background: transparent !important;
    }
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    table th,
    table td,
    [class*="-table"] th,
    [class*="-table"] td,
    [class*="-list-item"],
    [class*="_list_item"],
    [class*="-row"],
    [class*="_row"]
) {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
    textarea,
    select,
    .el-input__inner,
    .el-textarea__inner
) {
    border-color: rgba(235, 224, 201, .22) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    h1,
    h2,
    h3,
    h4,
    .uc-info-card-title,
    .uc-dashboard-section-title,
    .page-heading,
    .title_block
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(
    .uc-dashboard-stat-change,
    [class*="-badge"],
    [class*="_badge"],
    [class*="-tag"],
    [class*="_tag"],
    [class*="-status"],
    [class*="_status"]
) {
    border-color: rgba(234, 220, 185, .2) !important;
    color: #f3dfb1 !important;
    background: #4a4540 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose ul,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose li {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose h2 {
    color: #fff !important;
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > h1 a:hover,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > h1 a.is-current,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class a:hover,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class a.is-current {
    border-color: rgba(234, 220, 185, .18) !important;
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > div > h2,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > div.is-active-section > h2,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > h1 a > .uc-sidebar-icon,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > div > h2::before {
    border-color: rgba(235, 224, 201, .12) !important;
    color: #e6c98b !important;
    background: #343737 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > div + div {
    border-top-color: rgba(235, 224, 201, .12) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class::before {
    background: rgba(235, 224, 201, .18) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class li::before {
    border-color: #303334 !important;
    background: #69645d !important;
    box-shadow: 0 0 0 1px rgba(235, 224, 201, .2) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class li:has(a.is-current)::before {
    background: #eab15e !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .unread {
    color: #fff !important;
    background: #a94e68 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose li,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .purpose li a {
    color: #d1c9bd !important;
}

/* ROOT-CAUSE FIX: legacy new_style.css paints the ucenter sidebar white via
   `.member_c_l .member_c_t ul li`, `.member_c_l .member_c_t .member_class`
   and `.member_c_l .member_c_t h1`. Those load before yys-theme.css, so we
   must override the exact selectors here (not just the modern wrappers). */
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t .member_class,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t ul,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t ul li,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t h1,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t h2,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t .purpose,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t .purpose ul,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t .purpose li,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_class,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_class li,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_c_t > h1,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_c_t h2 {
    color: #d1c9bd !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t h1 {
    border-top-color: rgba(234, 220, 185, .24) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t ul li {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t h2 {
    color: #f3dfb1 !important;
}

/* Legacy (non-modern) ucenter shell used `.columns-container` with a light gray canvas. */
html[data-yys-theme="dark"] body.ucenter-n6-page .columns-container,
html[data-yys-theme="dark"] body.ucenter-n6-page #columns,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_r,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l {
    background: #242628 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_r {
    color: #e6e0d5 !important;
}

/* Readable menu text on the dark ucenter sidebar. */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_class a,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t ul li a,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav .member_class a {
    color: #d8d0c3 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_c_t > h1 a,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-sidebar .ucenter-sidebar-nav > h1 a,
html[data-yys-theme="dark"] body.ucenter-n6-page .member_c_l .member_c_t h1 a {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_class a:hover,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-sidebar .member_class a.is-current {
    color: #f3dfb1 !important;
}

/* Client-side native selects use the site purple palette; admin controls are excluded. */
:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) {
    appearance: none;
    box-sizing: border-box;
    align-items: center;
    min-height: 40px;
    padding: 0 42px 0 13px;
    border: 1px solid rgba(108, 58, 150, .22);
    border-radius: 9px;
    color: #352f42;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236c3a96' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
    box-shadow: 0 1px 2px rgba(61, 30, 88, .04);
    font: inherit;
    line-height: 1.2;
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select[class*="h-6"]:not([multiple]):not([size]) {
    min-height: 24px;
    padding-right: 24px;
    background-position: right 5px center;
    background-size: 12px;
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]):hover:not(:disabled) {
    border-color: rgba(108, 58, 150, .46);
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]):focus-visible {
    border-color: #6c3a96;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(108, 58, 150, .14);
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]):disabled {
    color: #a59baa;
    background-color: #f5f2f7;
    cursor: not-allowed;
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option {
    color: #352f42;
    background: #fff;
}

/* 支持 appearance: base-select 的内核会把选中项直接渲染进关闭态控件。
   选中项统一使用深色文字 + 浅紫底，避免白底白字；深色主题单独覆盖。 */
:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:checked {
    color: #352f42;
    background: #f3eff7;
}

:is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:hover {
    color: #4a2375;
    background: #f3eff7;
}

@supports (appearance: base-select) and selector(select::picker(select)) {
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]),
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker(select) {
        appearance: base-select;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) {
        display: flex;
        align-items: center;
        padding-right: 5px;
        background-image: none;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select[class*="h-6"]:not([multiple]):not([size]) {
        padding-right: 5px;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select[class*="h-6"]:not([multiple]):not([size]),
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select[class*="h-6"]:not([multiple]):not([size])::picker(select) {
        appearance: base-select;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker(select) {
        max-height: min(20rem, 50vh);
        overflow: auto;
        padding: 5px;
        border: 1px solid rgba(108, 58, 150, .18);
        border-radius: 10px;
        color: #352f42;
        background: #fff;
        box-shadow: 0 14px 34px -14px rgba(61, 30, 88, .28);
        opacity: 0;
        transform: translateY(-5px) scale(.985);
        transform-origin: top;
        transition: opacity .16s ease, transform .16s ease, display .16s allow-discrete, overlay .16s allow-discrete;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]):open::picker(select) {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    @starting-style {
        :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]):open::picker(select) {
            opacity: 0;
            transform: translateY(-5px) scale(.985);
        }
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker-icon {
        display: block;
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        align-self: center;
        margin-block: auto;
        margin-inline-start: auto;
        color: #6c3a96;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select[class*="h-6"]:not([multiple]):not([size])::picker-icon {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option {
        min-height: 36px;
        padding: 8px 10px;
        border-radius: 6px;
        transition: color .14s ease, background-color .14s ease;
    }

    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:hover {
        color: #4a2375;
        background: #f3eff7;
    }
}

html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) {
    border-color: rgba(184, 153, 208, .28);
    color: #e6e0d5;
    background-color: #303334;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23c9a9df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option {
    color: #e6e0d5;
    background: #303334;
}

html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:checked {
    color: #f3dfb1;
    background: #4a4034;
}

html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker(select) {
    border-color: rgba(184, 153, 208, .24);
    color: #e6e0d5;
    background: #303334;
}

@media (prefers-reduced-motion: reduce) {
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]),
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker(select),
    :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size])::picker-icon {
        transition-duration: .01ms;
    }
}

/* Old client templates retain light-theme gray text colors on dark surfaces. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :where(
    .text-gray-400,
    .text-gray-500,
    .text-gray-600,
    .text-gray-700,
    .text-gray-800,
    .text-gray-900,
    .text-slate-400,
    .text-slate-500,
    .text-slate-600,
    .text-slate-700,
    .text-slate-800,
    .text-slate-900,
    .text-neutral-400,
    .text-neutral-500,
    .text-neutral-600,
    .text-neutral-700,
    .text-neutral-800,
    .text-neutral-900,
    .text-zinc-400,
    .text-zinc-500,
    .text-zinc-600,
    .text-zinc-700,
    .text-zinc-800,
    .text-zinc-900,
    .text-black,
    .text-dark,
    .text-muted,
    .text-secondary,
    .text-body-secondary,
    .text-black-50,
    .help-block,
    .form-text,
    .small,
    small,
    .prompt,
    .description,
    .empty-row,
    .breadcrumb,
    .navigation_page
) {
    color: #c7c1b7 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#606"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #606"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#666"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #666"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#777"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #777"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#888"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #888"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#999"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #999"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#aaa"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #aaa"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#bbb"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #bbb"] {
    color: #c7c1b7 !important;
}

/* Improve text inherited from legacy light palettes across dark client surfaces. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :where(
    a:not(.n6-amber-button):not(.n6-login-row a):not(.n6-login-link):not(.nh-login-row a):not(.nh-login-link),
    h1,
    h2,
    h3,
    h4,
    .page-heading,
    .page-title,
    .panel-heading,
    [class*="-title"],
    [class*="_title"],
    [class*="title_block"],
    [class*="tle_block"],
    [class*="heading"]
) {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-panel-head,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-panel-head,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-panel-head > span,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-panel-head > span {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-panel-head > a,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-panel-head > a {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-home .nh-panel-head {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-home .nh-panel-head a {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-home :where(
    .nh-article-desc,
    .nh-empty,
    .nh-announcement time,
    .nh-category-arrow,
    .nh-assurance small,
    .nh-notice-track,
    .nh-welcome > div > span,
    .n6-hotline small
) {
    color: #c7c1b7 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :where(
    [class*="muted"],
    [class*="-desc"],
    [class*="_desc"],
    [class*="description"],
    [class*="-summary"],
    [class*="_summary"],
    [class*="-meta"],
    [class*="_meta"],
    [class*="caption"],
    [class*="placeholder"],
    [class*="empty"],
    [class*="-time"],
    [class*="_time"],
    time
) {
    color: #c7c1b7 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#333"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #333"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#444"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #444"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#555"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #555"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#756"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #756"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#857"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #857"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color:#8a8"],
html[data-yys-theme="dark"] body[data-yys-area="frontend"] [style*="color: #8a8"] {
    color: #c7c1b7 !important;
}

/* Notice rich text: keep editor hand-typed dark inks readable on the dark
 * article card. #000/#666/#999 duplicate the global sweeps at a narrower
 * scope to pin the card body ink; #111/#222/black have no sweep anywhere.
 * Scoped to .notice-rich only so other pages keep their sweep values. */
html[data-yys-theme="dark"] body.notice-page .notice-rich :is(
    [style*="color:#000"], [style*="color: #000"],
    [style*="color:#111"], [style*="color: #111"],
    [style*="color:#222"], [style*="color: #222"],
    [style*="color:#666"], [style*="color: #666"],
    [style*="color:#999"], [style*="color: #999"],
    [style*="color:black" i]
) {
    color: #d1c9bd !important;
}

/* Help rich text: same narrow sweep as .notice-rich above. Help articles
 * reuse the legacy editor markup, so hand-typed #000/#111/#222/black land
 * on the dark .help-content-card; #666/#999 are re-pinned to the card ink.
 * Scoped to body.help-page .help-rich so light mode and other pages
 * (e.g. order-success article embeds) keep their own colors. */
html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#000"], [style*="color: #000"],
    [style*="color:#111"], [style*="color: #111"],
    [style*="color:#222"], [style*="color: #222"],
    [style*="color:#666"], [style*="color: #666"],
    [style*="color:#999"], [style*="color: #999"],
    [style*="color:black" i]
) {
    color: #d1c9bd !important;
}

/* 夜间页脚文字统一走文末「暗色背景 + 渐金文字」规则；此处仅保留悬停反馈。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .site-chrome-footer .n6-footer-custom a:hover {
    color: #fff !important;
}

/* Client brand text: keep the accent separate from purple background tokens.
 * Module palettes use the same purple variables for text and filled buttons;
 * changing those variables would put white text on pale gold button surfaces.
 * :is() retains the page IDs' specificity above module-local important rules.
 * 站点页脚（#site-footer）的 h4 例外：页脚夜间为暗底白字（见文末页脚规则），
 * 不能被这里的裸 h4 参数染成金色。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    h1, h2, h3, h4:not(#site-footer *),
    [class*="-eyebrow"], [class*="__eyebrow"], .eyebrow,
    [class*="-section-kicker"], .hot-kicker,
    [class*="text-purple-"], [class*="text-violet-"],
    .n6-category-icon, .n6-tag, .n6-slider-arrow, .count-down,
    .nh-category-icon, .nh-tag, .nh-slider-arrow,
    .n6-notice strong, .n6-welcome strong, .n6-rank-point b,
    .nh-notice strong, .nh-welcome strong,
    .n6-product-copy b, .n6-assurance b, .nh-assurance b,
    .n6-submenu-main a, .nh-submenu-main a,
    .n6-submenu-links a:hover, .nh-submenu-links a:hover, .n6-rank-side > a,
    .n6-nav-link:hover, .n6-nav-link.is-active, .n6-utility:hover,
    .n6-category:hover, .n6-category.is-open,
    .nh-category:hover, .nh-category.is-open,
    .n6-user-dropdown a:hover, .n6-mobile-drawer header,
    .n6-mobile-drawer header button, .site-chrome-drawer header,
    .site-chrome-drawer header button,
    .front-auth-field label, .front-auth-button.secondary, .front-auth-link,
    .seller-apply-area legend, .password-restore-field label,
    .register-captcha.is-verified,
    .recovery-legacy-page .find_process .FF1A2b,
    .recovery-legacy-page .btn-yanzheng,
    .recovery-legacy-page .emit_info a,
    .article-retry, .help-retry, .article-detail-neighbor strong,
    .article-detail-related-card span, .article-neighbors strong,
    .article-detail-share-button, .article-share-button, .article-share-panel button,
    .help-tree-caret, .help-tree-item.is-parent > .help-tree-row,
    .help-tree-item.is-parent > details > summary,
    .help-tab:hover, .help-page-link:hover,
    .help-recommend-card p:last-child, .help-detail-back,
    .notice-pagination-link:hover, .search-filter-heading > span,
    .search-empty > span, .search-empty > a,
    .search-category-list a.is-active, .search-price-list a.is-active,
    .pay-methods-count, .pay-balance-row strong,
    .unified-qr-detail strong, .cart3-success-kicker,
    .cart3-progress-step.is-complete, .cart3-order-summary-item.is-amount strong,
    .cart3-secondary-button, .order-success-button:hover,
    .sm-filter-label, .sm-filter-option:hover, .sm-products-head strong,
    .sm-product-type, .sm-product-action, .sm-product-action svg,
    .sm-page-button, .sm-modal-close,
    .sm-denomination.is-selected, .sm-payment.is-selected,
    .sm-recharge-notes a,
    .company-info em, .command-nav, .comment-upload-btn,
    .quick-view .heart, .uc_title label.current a,
    .yys-modern-modal-button.is-secondary, .yys-modern-modal-close:hover,
    .yys-modern-notice-body strong, .yys-modern-notice-close:hover,
    .yys-ucenter-modal-button.is-cancel, .yys-ucenter-modal-close:hover,
    .uc-address-alias, .uc-address-actions button:hover,
    .uc-address-state button,
    .uc-address-empty strong, .invoice-paging li.active-paging,
    .btn-download, .tip-actions button:hover,
    .uc-agent-center__notices, .uc-agent-center__notices svg,
    .uc-agent-center__amount, .uc-agent-center__amount strong,
    .uc-agent-center__profile-link, .uc-agent-center__qrcode-button,
    .uc-agent-center__tab, .uc-agent-center__pagination button,
    .uc-agent-apply__welcome, .uc-agent-apply__status svg,
    .uc-agent-apply__section-title, .uc-agent-apply__upload-tip,
    .uc-agent-info__badge, .uc-agent-info__section-title,
    .uc-agent-info__upload-empty, .uc-agent-withdrawal__balances strong,
    .uc-agent-withdrawal__code-control button, .uc-agent-withdrawal__refresh,
    .uc-agent-withdrawal__state button, .uc-agent-withdrawal__pagination button,
    .uc-archives-button.is-secondary, .uc-archives-customer-mark,
    .uc-archives-money.is-digital, .uc-archives-view-button,
    .uc-archives-empty-icon, .uc-archives-page-controls button,
    .uc-archives-spending-table tfoot td,
    .uc-archives-spending-table tfoot td strong,
    .uc-complain-panel > header > button:hover,
    .uc-complain-summary:hover .uc-complain-title strong,
    .uc-complain-toggle, .uc-complain-state button,
    .uc-complain-empty > span, .uc-complain-empty strong,
    .uc-consult-panel > header button:hover, .uc-consult-product a,
    .uc-consult-status button, .uc-consult-state button, .uc-consult-empty strong,
    .uc-distribution-filter header span, .uc-distribution-list header span,
    .uc-cert-industry li.is-selected, .uc-evaluation-tabs a.is-active,
    .uc-evaluation-card header span, .uc-evaluation-table-wrap a,
    .uc-favorite-categories button:hover, .uc-favorite-categories button.is-active,
    .uc-favorite-remove, .uc-favorite-read, .uc-favorite-title,
    .uc-favorite-title:hover, .uc-favorite-empty-icon, .uc-favorite-empty a,
    .uc-favorite-pagination button:hover:not(:disabled),
    .uc-favorite-pagination strong, .uc-favorite-raw header button,
    .uc-title-card-top b, .uc-title-card-top em, .uc-title-card-content strong,
    .uc-title-card-bottom button, .uc-title-state strong,
    .uc-invoice-balance-grid strong, .uc-invoice-tabs a:hover,
    .uc-invoice-tabs a.is-active, .uc-invoice-table-wrap tfoot td,
    .uc-invoice-list-heading-icon, .uc-invoice-list-heading-mark strong,
    .uc-invoice-list-state button, .uc-invoice-table .is-type,
    .uc-invoice-view-button, .uc-invoice-list-page-controls button,
    .uc-short-message-panel > header button:hover,
    .uc-short-message-item.is-unread .uc-short-message-summary strong,
    .uc-short-message-actions button:not(.is-danger):hover, .uc-short-message-content > span,
    .uc-short-message-content a, .uc-short-message-state button,
    .uc-short-message-empty > span, .uc-short-message-empty strong,
    .uc-myshare-state strong, .uc-myshare-state button,
    .uc-myshare-share-preview strong, .uc-recharge-tabs button.is-active,
    .uc-recharge-amount-field b, .uc-recharge-plans strong,
    .uc-recharge-payments button > b, .uc-recharge-payments button.is-active i,
    .uc-recharge-total strong, .uc-recharge-state strong,
    .order-tabs button.active, .order-tabs button:hover:not(.active),
    .order-id-line a, .link-button, .link-button:hover, .file-name,
    .plain-button, .plain-button:hover, .secondary-button:hover:not(:disabled),
    .order-pagination button:hover:not(:disabled):not(.active),
    .icon-button:hover, .progress-step.is-complete, .modal-panel td a,
    .action-button.action-muted:hover, .uc-project-list-state strong,
    .uc-project-list-state button, .uc-project-list-actions a,
    .uc-project-list-actions button:hover, .refund-reason-editable a,
    .refund-edit-back, .refund-edit-back:hover, .refund-edit-summary-icon,
    .refund-edit-summary strong, .refund-edit-goods-copy a,
    .refund-edit-cancel:hover,
    #ucenter_customer_order_page .uc-customer-order-export,
    #ucenter_customer_order_page .uc-customer-order-list-meta,
    #ucenter_customer_order_page .uc-customer-order-number,
    #ucenter_customer_order_page .uc-customer-order-number:hover,
    #ucenter_customer_order_page .uc-customer-order-table .is-amount,
    #ucenter_customer_order_page .uc-customer-order-empty span,
    #ucenter_quote_price_statistics_page .uc-quote-date-trigger,
    #ucenter_quote_price_statistics_page .uc-quote-calendar-icon,
    #ucenter_quote_price_statistics_page .uc-quote-date-close,
    #ucenter_quote_price_statistics_page .uc-quote-calendar-heading button:hover,
    #ucenter_quote_price_statistics_page .uc-quote-calendar-grid button.is-in-range,
    #ucenter_quote_price_statistics_page .uc-quote-date-clear,
    #ucenter_quote_price_statistics_page .uc-quote-quick-filters button.is-active,
    #ucenter_quote_price_statistics_page .uc-quote-list-meta,
    #ucenter_quote_price_statistics_page .uc-quote-price,
    #ucenter_quote_price_statistics_page .uc-quote-empty > span,
    #ucenter_urgent_card_page .uc-urgent-card-list-meta,
    #ucenter_urgent_card_page .uc-urgent-card-number,
    #ucenter_urgent_card_page .uc-urgent-card-recipient small,
    #ucenter_urgent_card_page .uc-urgent-card-empty > span,
    .skyDrive_fileName:hover, .skyDrive_state button,
    #member_homepage .member_info, #member_homepage .member_name,
    #member_homepage .member_money, #member_homepage .cons_order span,
    #member_homepage .cons_single span, #member_homepage .two_word_check,
    #member_homepage .two_word_r, #member_homepage .four_word,
    #member_homepage .recommend_list li p:first-of-type,
    #member_homepage .uc-home-notice-mark,
    #member_homepage .uc-home-notice-copy > span,
    #member_homepage .uc-home-account-item a,
    #member_homepage .uc-home-service-card > strong,
    #member_homepage .uc-home-benefit strong,
    #member_homepage .uc-home-metric-icon,
    #member_homepage .uc-home-metric-card strong,
    #member_homepage .uc-home-banner-empty, #member_homepage .uc-home-empty a,
    #member_homepage .uc-order-product strong, #member_homepage .uc-order-actions button,
    #member_homepage .uc-home-recommend-item strong,
    #member_homepage.uc-dashboard .uc-dashboard-alert-icon,
    #member_homepage.uc-dashboard .uc-dashboard-alert-label,
    #member_homepage.uc-dashboard .uc-dashboard-account a,
    #member_homepage.uc-dashboard .uc-dashboard-service-heading strong,
    #member_homepage.uc-dashboard .uc-dashboard-benefits strong,
    #member_homepage.uc-dashboard .uc-dashboard-qr button,
    #member_homepage.uc-dashboard .uc-dashboard-stat-mark,
    #member_homepage.uc-dashboard .uc-dashboard-stat strong,
    #member_homepage.uc-dashboard .uc-dashboard-banner.is-empty strong,
    #member_homepage.uc-dashboard .uc-dashboard-empty a,
    #member_homepage.uc-dashboard .uc-dashboard-order-product strong,
    #member_homepage.uc-dashboard .uc-dashboard-order-actions button,
    #member_homepage.uc-dashboard .uc-dashboard-recommend-item strong,
    .uc-notice-detail__share, .uc-system-notice__share,
    .uc-unread-message__row a,
    #ucenter_account_log_page .account-log-heading > span,
    #ucenter_account_log_page .account-log-export-button,
    #ucenter_account_log_page .account-log-total,
    #ucenter_account_log_page .account-log-amount,
    #ucenter_all_message_page .uc-message-tabs button:hover,
    #ucenter_all_message_page .uc-message-tabs button.active_title,
    #ucenter_all_message_page .record_time .selectTime li:hover,
    #ucenter_all_message_page .record_time .selectTime li.is-selected,
    #ucenter_all_message_page .uc-message-item-icon,
    #ucenter_all_message_page .uc-message-type,
    #ucenter_all_message_page .uc-message-empty-icon,
    #ucenter_all_message_page .uc-notice-item a,
    .uc-announcement-empty-icon, .uc-company-section-index,
    .uc-company-map-empty svg, .uc-company-map-empty strong,
    #ucenter_info_page .uc-info-action, #ucenter_info_page .uc-info-auth-icon,
    #ucenter_info_page .uc-info-company-mark,
    #ucenter_info_page .uc-info-auth-state strong,
    #ucenter_info_page .uc-info-toggle-field strong,
    #ucenter_info_page .uc-info-edit-link, #ucenter_info_page .uc-info-company-tags span,
    .uc-inviter-list__pagination a, .uc-ticket-center-link,
    .uc-ticket-type-tab:hover, .uc-ticket-type-tab.is-active,
    .uc-ticket-status-tab:hover, .uc-ticket-status-tab.is-active,
    .uc-ticket-empty-icon, .uc-ticket-empty a,
    .uc-redpacket-link.is-secondary, .uc-redpacket-count, .uc-redpacket-empty-icon,
    .uc-redpacket-empty a, .uc-redpacket-pagination a, .uc-redpacket-pagination > span,
    .uc-ticket-center-hero-tags span, .uc-ticket-center-metrics strong,
    .uc-ticket-center-empty a, .uc-ticket-center-modal-cancel,
    #app.batch-index-app .el-menu-item:hover,
    #app.batch-index-app .el-menu-item.is-active,
    #app.batch-index-app .batch-index-section-title,
    #app.batch-index-app .batch-index-balance span,
    #app.batch-index-app .batch-index-total-line > strong,
    #batchmanagement .batch-management-summary .batch-management-amount,
    #quick_order_workspace .quick-order-brand-copy strong,
    #quick_order_workspace .quick-order-sidebar-heading strong,
    #quick_order_workspace .quick-order-side-item.is-active,
    #quick_order_workspace .quick-order-sidebar-note-icon,
    .cart-v2-count, .cart-v2-mini-list span, .cart-v2-mini-total .html_total,
    .cart-v2-mini-total a,
    .cart-v2-factory-head label, .cart-v2-select label, .cart-v2-disclosure > span,
    .cart-v2-price strong, .cart-v2-total strong, .cart-v2-total .count-down,
    .cart-v2-summary-select, .cart-v2-summary-total strong,
    .cart-v2-empty a, .cart-v2-recommend-card p:last-child,
    body.cart2-page #new_order_confirm .cart2-order-line > div:first-child > span,
    body.cart2-page #new_order_confirm .cart2-order-line .text-\[\#ff1a2b\],
    body.cart2-page #new_order_confirm .cart2-factory-footer .text-\[\#ff1a2b\],
    body.cart2-page #new_order_confirm .n_o_c_c_pay .new_pay_item.new_selected_gou,
    body.cart2-page #new_order_confirm .real_pay,
    body.cart2-page #new_order_confirm .delivery-loading .el-icon-loading,
    body.cart2-page #new_order_confirm .cart2-delivery-trigger span,
    body.cart2-page #new_order_confirm .bottom_delivery_val,
    body.cart2-page .cart2-address-popover .n_addressMsg_list .n_a_l_top > div:first-child,
    body.cart2-page .cart2-address-popover .icon-bianji,
    body.cart2-page .cart2-address-popover .cart2-address-edit-icon,
    body.cart2-page .cart2-address-popover .n_addressMsg_list.n_list_add,
    body.cart2-page .cart2-address-popover .new_address_more,
    body.cart2-page .cart2-address-popover .address_more_List li > button.new_address_gou
) {
    color: #f3dfb1 !important;
}

/* Historical inline brand colors and utility classes also occur in dialogs. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    [style*="color:#3d1e58" i], [style*="color: #3d1e58" i],
    [style*="color:#4a2375" i], [style*="color: #4a2375" i],
    [style*="color:#4e2770" i], [style*="color: #4e2770" i],
    [style*="color:#35194f" i], [style*="color: #35194f" i],
    [style*="color:#6c3a96" i], [style*="color: #6c3a96" i],
    [style*="color:#7653a4" i], [style*="color: #7653a4" i],
    [style*="color:#8050a3" i], [style*="color: #8050a3" i],
    [style*="color:#9d76b8" i], [style*="color: #9d76b8" i],
    [style*="color:rgb(61, 30, 88)" i], [style*="color: rgb(61, 30, 88)" i],
    [style*="color:rgb(61,30,88)" i], [style*="color: rgb(61,30,88)" i],
    [style*="color:rgb(78, 39, 112)" i], [style*="color: rgb(78, 39, 112)" i],
    [style*="color:rgb(78,39,112)" i], [style*="color: rgb(78,39,112)" i],
    [style*="color:rgb(108, 58, 150)" i], [style*="color: rgb(108, 58, 150)" i],
    [style*="color:rgb(108,58,150)" i], [style*="color: rgb(108,58,150)" i],
    [style*="color:purple" i], [style*="color: purple" i]
) {
    color: #f3dfb1 !important;
}

/* Pale brand badges need a dark surface behind their new gold foreground. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .n6-tag, .n6-category-icon, .n6-slider-arrow,
    .nh-tag, .nh-category-icon, .nh-slider-arrow,
    .uc-address-alias, .uc-agent-info__badge,
    .uc-invoice-list-heading-icon, .uc-invoice-table .is-type,
    .uc-invoice-view-button, .uc-recharge-plans,
    .uc-recharge-payments button, .uc-info-company-tags span,
    #ucenter_quote_price_statistics_page .uc-quote-calendar-grid button.is-in-range,
    .sm-denomination.is-selected, .sm-payment.is-selected,
    .uc-archives-view-button, .uc-archives-customer-mark,
    .uc-archives-empty-icon, .uc-info-auth-icon, .uc-info-company-mark
) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

/* Dialog headers keep a white→lavender gradient in source; flatten it. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    [class*="-dialog-head"], [class*="_dialog_head"]
) {
    background: #303334 !important;
}

/* Secondary actions and teleported panels must not leave gold text on white. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .front-auth-panel, .front-auth-account-option,
    .front-auth-button.secondary, .front-auth-link,
    .n6-login-row a:last-child,
    .nh-login-row a:last-child,
    .article-retry, .help-retry, .article-detail-share-button,
    .article-share-button, .article-share-panel button,
    .yys-modern-modal-panel, .yys-modern-notice, .yys-ucenter-modal-panel,
    .yys-modern-modal-close, .yys-modern-notice-close, .yys-ucenter-modal-close,
    .yys-modern-modal-button.is-secondary, .yys-ucenter-modal-button.is-cancel,
    .uc-address-state button, .uc-address-editor, .uc-address-confirm,
    .uc-agent-center__qrcode-button, .uc-agent-center__pagination button,
    .uc-agent-withdrawal__state button, .uc-agent-withdrawal__pagination button,
    .uc-archives-button.is-secondary, .uc-archives-page-controls button,
    .uc-complain-panel > header > button:hover, .uc-complain-state button,
    .uc-consult-panel > header button:hover, .uc-consult-status button,
    .uc-consult-state button, .uc-favorite-categories button,
    .uc-favorite-pagination button, .uc-favorite-raw header button,
    .uc-title-card-bottom button, .uc-invoice-dialog,
    .uc-invoice-list-state button, .uc-invoice-list-page-controls button,
    .uc-short-message-panel > header button,
    .uc-short-message-actions button:not(.is-danger),
    .uc-short-message-state button, .uc-short-message-empty > span,
    .uc-short-message-confirm,
    .uc-myshare-state button, .uc-myshare-dialog,
    .uc-project-list-state button, .uc-project-list-actions button,
    .refund-edit-back, .refund-edit-cancel,
    #ucenter_quote_price_statistics_page .uc-quote-date-trigger,
    #ucenter_quote_price_statistics_page .uc-quote-date-close,
    #ucenter_quote_price_statistics_page .uc-quote-date-clear,
    .skyDrive_state button, .skyDrive-dialog, .skyDrive-uploadDialog,
    .cart3-secondary-button, .sm-recharge-modal, .sm-modal-header, .sm-page-button,
    body.cart2-page .tip h2
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .yys-modern-modal-content, .yys-ucenter-modal-content,
    .front-auth-panel > p
) {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-login-row a:last-child,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-login-row a:last-child {
    color: #f3dfb1 !important;
}

/* 首页“我的钱包”主按钮：亮琥珀底在夜间面板上过亮，压暗底色并换成深色投影 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-login-row a:first-child {
    color: #4a2410 !important;
    background: #cb8c4d !important;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .nh-login-row a:first-child:hover {
    color: #4a2410 !important;
    background: #b3763d !important;
}

/* Apply the gold gradient to text-only title nodes, keeping a solid fallback. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
        .n6-panel-head > span,
        .nh-panel-head > span,
        .uc-dashboard-name-line h1,
        .uc-dashboard-section-head h2,
        .uc-invoice-list-heading h3,
        .uc-title-hero h1,
        .front-auth-panel h1
    ) {
        background-image: linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a) !important;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] select:not([multiple]):not([size])::picker-icon {
    color: #f3dfb1;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23f3dfb1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@supports (appearance: base-select) and selector(select::picker(select)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] select:not([multiple]):not([size]) {
        background-image: none;
    }
}

html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:hover,
html[data-yys-theme="dark"] :is(body[data-yys-area="frontend"], body.front-auth-body, body.ucenter-n6-page, #new_member) select:not([multiple]):not([size]) option:checked {
    color: #f3dfb1;
    background: #4a4034;
}

/* Readable secondary copy has its own text token in both client themes.
 * Keep background/brand tokens independent, including on purple hero panels. */
body[data-yys-area="frontend"] {
    --yys-client-secondary-text: #514359;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] {
    --yys-client-secondary-text: #f3dfb1;
}

/* These existing muted tokens are used exclusively for text. Module roots
 * redeclare them, so update both the body and the roots with shared values. */
html body[data-yys-area="frontend"],
html body[data-yys-area="frontend"] :is(
    [class*="-page"], [class*="_page"], [id$="_page"], [id$="-app"],
    #member_homepage, #new_member,
    .ucenter-n6-content, .ucenter-sidebar, .cart-v2-shell,
    .site-chrome-header, .site-chrome-drawer
) {
    --auth-muted: var(--yys-client-secondary-text) !important;
    --cart-v2-muted: var(--yys-client-secondary-text) !important;
    --cart3-muted: var(--yys-client-secondary-text) !important;
    --consult-muted: var(--yys-client-secondary-text) !important;
    --help-muted: var(--yys-client-secondary-text) !important;
    --message-muted: var(--yys-client-secondary-text) !important;
    --muted: var(--yys-client-secondary-text) !important;
    --n6-muted: var(--yys-client-secondary-text) !important;
    --notice-muted: var(--yys-client-secondary-text) !important;
    --pay-muted: var(--yys-client-secondary-text) !important;
    --recovery-muted: var(--yys-client-secondary-text) !important;
    --redpacket-muted: var(--yys-client-secondary-text) !important;
    --search-muted: var(--yys-client-secondary-text) !important;
    --site-chrome-muted: var(--yys-client-secondary-text) !important;
    --sm-muted: var(--yys-client-secondary-text) !important;
    --ticket-center-muted: var(--yys-client-secondary-text) !important;
    --uc-account-muted: var(--yys-client-secondary-text) !important;
    --uc-agent-muted: var(--yys-client-secondary-text) !important;
    --uc-apply-muted: var(--yys-client-secondary-text) !important;
    --uc-archives-muted: var(--yys-client-secondary-text) !important;
    --uc-company-muted: var(--yys-client-secondary-text) !important;
    --uc-customer-muted: var(--yys-client-secondary-text) !important;
    --uc-dashboard-muted: var(--yys-client-secondary-text) !important;
    --uc-home-muted: var(--yys-client-secondary-text) !important;
    --uc-info-muted: var(--yys-client-secondary-text) !important;
    --uc-inviter-muted: var(--yys-client-secondary-text) !important;
    --uc-invoice-list-muted: var(--yys-client-secondary-text) !important;
    --uc-notice-muted: var(--yys-client-secondary-text) !important;
    --uc-quote-muted: var(--yys-client-secondary-text) !important;
    --uc-sidebar-muted: var(--yys-client-secondary-text) !important;
    --uc-ticket-muted: var(--yys-client-secondary-text) !important;
    --uc-unread-muted: var(--yys-client-secondary-text) !important;
    --uc-urgent-muted: var(--yys-client-secondary-text) !important;
    --ucenter-n6-muted: var(--yys-client-secondary-text) !important;
    --wangpan-muted: var(--yys-client-secondary-text) !important;
}

/* Fixed gray-purple labels (#766b80) do not consume a palette variable.
 * Cover their actual consumers as well as the bill's descriptions/paging. */
html body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-guide-preference,
    body.cart2-page #new_order_confirm .deliveryOneBox_ul_head h3 > span,
    body.cart2-page #new_order_confirm .deliveryOneBox_ul_head .cart2-delivery-meta,
    body.cart2-page #new_order_confirm .delivery-loading,
    .product-cart-dialog .product-cart-dialog-close,
    .uc-address-confirm p, .uc-distribution-form label,
    .uc-distribution-toolbar label, .uc-distribution-table th,
    .uc-evaluation-table-wrap th, .uc-title-card-content p,
    .uc-title-type-switch label, .uc-title-form label,
    .uc-title-editor-actions button:first-child,
    .uc-invoice-table-wrap th, .uc-invoice-dialog-actions button:first-child,
    .uc-invoice-table th, .uc-short-message-confirm p,
    .uc-recharge-record-header select,
    .order-count, .order-tabs button:not(.active), table th,
    .order-filter label, .collect-panel label, .tracking-number,
    .goods-quantity, .goods-price, .order-recipient, .order-payment,
    .icon-button, .order-list-head, .goods-unit-price,
    .release-pass-table th, .release-pass-summary, .release-pass-form label,
    .parameter-label, .address-form-grid label, .address-switch span,
    .order-detail-meta, .associated-orders, .order-totals div,
    .two-columns p, .remarks-panel p, .address-form label,
    .goods-table-header, .goods-index, .goods-status .status-muted,
    .goods-table thead th, .refund-reason-link-form label,
    .refund-edit-heading p, .refund-edit-order-number,
    #ucenter_customer_order_page .uc-customer-order-button.is-secondary,
    #ucenter_customer_order_page .uc-customer-order-export,
    #ucenter_customer_order_page .uc-customer-order-filter-form label span,
    #ucenter_quote_price_statistics_page .uc-quote-button.is-secondary,
    #ucenter_quote_price_statistics_page .uc-quote-filter-form label span,
    #ucenter_quote_price_statistics_page .uc-quote-date-field > span,
    #ucenter_quote_price_statistics_page .uc-quote-date-times label > span,
    #ucenter_quote_price_statistics_page .uc-quote-quick-filters button:not(.is-active),
    #ucenter_urgent_card_page .uc-urgent-card-button.is-secondary,
    #ucenter_urgent_card_page .uc-urgent-card-filter-form label > span,
    #ucenter_urgent_card_page .uc-urgent-card-account-field > span,
    #member_homepage .uc-dashboard-orders .uc-home-parameter-item span,
    #ucenter_account_log_page .account-log-heading p,
    #ucenter_account_log_page .account-log-card-heading p,
    #ucenter_account_log_page .account-log-field > span,
    #ucenter_account_log_page .account-log-date-range > b,
    #ucenter_account_log_page .account-log-table-wrap th,
    #ucenter_account_log_page .account-log-time,
    #ucenter_account_log_page .account-log-order,
    #ucenter_account_log_page .account-log-channel,
    #ucenter_account_log_page .account-log-note,
    #ucenter_account_log_page .account-log-empty,
    #ucenter_account_log_page .account-log-pagination #page > ul > li:not(.xl-active):not(.xl-jumpButton):not(.xl-disabled),
    #ucenter_account_log_page .account-log-page-size-label
) {
    color: var(--yys-client-secondary-text) !important;
}

/* Shared light-surface copy, utility colors and legacy descriptions. Explicit
 * status colors, active actions, dark banners and footers keep their palettes. */
html body[data-yys-area="frontend"] :is(
    .text-gray-400, .text-gray-500, .text-gray-600, .text-gray-700,
    .text-slate-400, .text-slate-500, .text-slate-600, .text-slate-700,
    .text-neutral-400, .text-neutral-500, .text-neutral-600, .text-neutral-700,
    .text-zinc-400, .text-zinc-500, .text-zinc-600, .text-zinc-700,
    .text-muted, .text-secondary, .text-body-secondary, .text-black-50,
    .help-block, .form-text, .description, .empty-row, label, small,
    .breadcrumb, .breadcrumb a, .navigation_page, .ucenter-n6-breadcrumb,
    .unit-text, .num-unit, .ext-unit, .group-label, .group-label-inline,
    .price-label, .n6-category-arrow, .nh-category-arrow,
    .eyebrow, [class*="-eyebrow"], [class*="__eyebrow"],
    [class*="-field"] > span, [class*="_field"] > span,
    [class*="-tabs"] > a, [class*="-tabs"] > button,
    [class*="-pagination"] button:not(:disabled),
    [class*="-page-controls"] button:not(:disabled),
    [class*="-pagination"] > span, [class*="-pagination"] > label,
    [class*="-heading"] p:not([style*="color" i]),
    [class*="-section-head"] p:not([style*="color" i]),
    [class*="-card"] > p:not([style*="color" i]),
    [class*="-panel"] > p:not([style*="color" i]),
    [class*="-card"] > header p:not([style*="color" i]),
    [class*="-panel"] > header p:not([style*="color" i]),
    [class*="-desc"], [class*="_desc"], [class*="description"],
    [class*="-caption"], [class*="-meta"], [class*="_meta"],
    [class*="-muted"], [class*="-empty"], [class*="-time"],
    [class*="-copy"], [class*="-note"],
    .front-auth-panel > p, .front-auth-account-meta,
    .n6-hotline small, .n6-mobile-category small,
    .help-content-copy, .pay-method-copy small,
    .uc-invoice-list-heading p, .uc-invoice-list-heading-mark small
):not(:where(
    .is-error, .is-success, .is-warning, .is-danger, .is-primary,
    .is-active, .active, .active_title, [aria-selected="true"],
    .danger-text, .status-danger, .expire-text, .text-danger, .text-success,
    .is-error *, .is-success *, .is-warning *, .is-danger *,
    [role="alert"],
    footer, footer *, .cart-v2-footer, .cart-v2-footer *,
    .n6-coupon-copy,
    .site-chrome-footer, .site-chrome-footer *, .n6-footer, .n6-footer *,
    [class*="-hero"], [class*="-hero"] *,
    .uc-dashboard-hero, .uc-dashboard-hero *,
    /* 企业认证上传按钮是紫色品牌控件（金色渐变字 + 金色图标），
     * 不能被本规则压成日间墨色，否则 Firefox 图标、Chrome 文字都不可读 */
    .uc-cert-upload-button, .uc-cert-upload-button *
)) {
    color: var(--yys-client-secondary-text) !important;
}

html body[data-yys-area="frontend"] :is(input, textarea):not(:disabled)::placeholder {
    color: var(--yys-client-secondary-text) !important;
    opacity: 1;
}

html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"] :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(:disabled),
    textarea:not(:disabled), select:not(:disabled)
) {
    color: #352f42 !important;
}

/* Gold foregrounds need dark neutral surfaces behind the bill's controls. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_account_log_page :is(
    .account-log-export-button, .account-log-total, .account-log-empty,
    .account-log-page-size-label, .account-log-pagination,
    .account-log-pagination #page > ul,
    .account-log-pagination #page > ul > li:not(.xl-active):not(.xl-jumpButton)
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    [class*="-pagination"], [class*="-page-controls"]
) button:not(.is-active):not(.active):not(:disabled):not(:where(.category-paginator-jump > .is-primary)) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_account_log_page :is(
        .account-log-heading h2, .account-log-heading p,
        .account-log-card-heading h3, .account-log-card-heading p,
        .account-log-field > span
    ) {
        background-image: linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a) !important;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Some modules also hard-code dark purple-gray in primary text nodes rather
 * than consuming their ink token. Keep those readable on the dark surfaces. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .product-cart-dialog-message,
    .uc-archives-customer strong, .uc-archives-state strong,
    .uc-complain-title strong, .uc-complain-original p, .uc-complain-reply p,
    .uc-consult-question p, .uc-favorite-empty strong,
    .uc-favorite-detail-meta dd, .uc-favorite-parameters dd, .uc-favorite-raw pre,
    .uc-short-message-summary strong, .uc-short-message-content,
    .uc-myshare-link, .uc-myshare-dialog label span,
    .uc-recharge-amount-field > span, .uc-recharge-field-title,
    .uc-recharge-ladder > div:not(:first-child),
    .order-heading-tools strong, .order-payment strong, .goods-price > strong,
    .order-recipient-content, .order-amount > strong, .order-status > strong,
    .release-pass-table, .goods-meta-panel,
    .order_goods_meta .mssage_box, .order_goods_meta .mssage_c,
    .price-comparison > div, .price-comparison strong, .price-difference,
    .order-detail-meta strong, .order-totals strong, .goods-row,
    .feedback-dialog > p, .detail-floating-popover,
    .order-total-primary p, .order-total-details dd,
    .refund-reason-editable, .refund-edit-field-label,
    #ucenter_customer_order_page .uc-customer-order-empty strong,
    #ucenter_quote_price_statistics_page .uc-quote-calendar-heading strong,
    #ucenter_quote_price_statistics_page .uc-quote-customer-name,
    #ucenter_quote_price_statistics_page .uc-quote-product-name,
    #ucenter_quote_price_statistics_page .uc-quote-empty strong,
    #ucenter_urgent_card_page .uc-urgent-card-recipient > span,
    #ucenter_urgent_card_page .uc-urgent-card-empty strong,
    #ucenter_urgent_card_page .uc-urgent-card-account-results button,
    .skyDrive_fileDataRow, .skyDrive_fileName,
    #app.batch-index-app .batch-index-address-label,
    #app.batch-index-app .batch-index-rule-label,
    #app.batch-index-app .batch-index-file-drop-text,
    #app.batch-index-app .batch-index-upload-subtitle,
    #app.batch-index-app .batch-index-excel-drop-text,
    .takeself-option-text, .groupon-metrics, .groupon-countdown, .groupon-notice,
    .new_product_container, .comment, .products-block-right .product-name,
    .recommend .recommend_list p,
    #ucenter_company_page .uc-company-field > span,
    #member_homepage .uc-dashboard-orders .uc-home-meta-panel,
    #member_homepage .uc-dashboard-orders .order_collect_summary,
    .uc-ticket-empty strong, .uc-unread-message__content,
    .pan-con-lists .yys_fn_list
):not(:where(
    .is-error, .is-success, .is-warning, .is-danger,
    .danger-text, .status-danger, .text-danger, .text-success,
    .is-increase-text, .is-decrease-text
)) {
    color: #f3dfb1 !important;
}

/* Site-wide sweep: modules hard-code the same gray-purple captions (#776c80,
 * #6f6178, #65596e, ...) inside scoped styles. Map them to the shared token
 * so light mode gets readable ink and dark mode gets gold in one place. */
html body[data-yys-area="frontend"] :is(
    /* Address book (/ucenter/address). */
    .uc-address-phone, .uc-address-phone span, .uc-address-location,
    .uc-address-actions button:not(.is-danger), .uc-address-bulk,
    .uc-address-close, .uc-address-secondary, .uc-address-field,
    .uc-address-recognition p,
    .uc-agent-center__split, .uc-agent-center__available,
    .uc-agent-center__qrcode-title, .uc-agent-center__popup-close,
    .uc-agent-center__date-separator,
    .uc-agent-apply__confirm, .uc-agent-info__grid input[readonly],
    .uc-agent-withdrawal__header p, .uc-agent-withdrawal__mobile,
    .uc-agent-withdrawal__form input:read-only, .uc-agent-withdrawal__actions span,
    .uc-archives-username,
    .uc-archives-filter-form label > span, .uc-archives-pagination label > span,
    .uc-archives-dialog-filter label > span, .uc-archives-dialog-close,
    .uc-complain-status, .uc-complain-pending,
    .uc-complain-panel.is-form label > span,
    .uc-consult-row time,
    .uc-favorite-search svg, .uc-favorite-select-all, .uc-favorite-delete-selected,
    .uc-favorite-product, .uc-favorite-loading, .uc-favorite-dialog-head p,
    .uc-favorite-dialog-head > button, .uc-favorite-detail-empty, .uc-favorite-detail-error,
    .uc-title-list-card > header span,
    .uc-short-message-status,
    .uc-myshare-header p, .uc-myshare-dialog-copy, .uc-myshare-panel-header span,
    .uc-recharge-corporate p, .uc-recharge-corporate > span,
    .order-state, .dialog-state, .order-cell-label, .muted-text,
    .order-amount > span:not(.order-cell-label), .order-status > span:not(.order-cell-label),
    .goods-description dl, .file-list, .goods-note,
    .uc-project-list-code, .uc-project-list-panel-heading span,
    .refund-reason-link-form .refund-reason-link-cancel,
    .refund-edit-field-heading p, .refund-edit-empty, .refund-edit-field-meta,
    .uc-customer-order-loading, .uc-quote-loading, .uc-urgent-card-loading,
    .uc-urgent-card-status.is-used, .uc-urgent-card-modal-panel > p,
    .uc-urgent-card-modal-close,
    .skyDrive_fileHeader,
    .auth-card-tip, .auth-options, .auth-switch, .getOauthList h2,
    .getOauthList p a, .wechat-actions, .register-step-heading,
    .register-agreement, .password-restore-invalid,
    .hot-breadcrumb, .hot-card-description, .hot-empty,
    .batch-index-address-row, .batch-index-file-list, .batch-management-pagination,
    .quick-order-home-link, .quick-order-side-icon,
    .cart3-success-message, .cart3-privacy-toggle,
    .cart3-payment-dialog-panel p, .cart3-payment-dialog-actions button,
    .takeself-status, .new_p_nav, .sform_input li > span, .ly_lav .point-text,
    .comment-empty, .shareInfo .info_bottom .share-time,
    .remind, .upload-loading, .paging-wrap button,
    /* .notice-content-share/.notice-detail-back stay out: both themes manage
     * them fully (Blade light styles + dark-scoped notice rules), and the
     * !important ink here would kill the white-on-purple hover contrast. */
    .notice-rich, .help-page-current,
    .order-success-recommend-name, .search-vip-price,
    .kdlq-summary, .kdlq-orders, .kdlq-status,
    .unified-qr-nav, .unified-qr-kicker, .unified-qr-copy, .unified-qr-status,
    .unified-qr-panel-copy, .sm-bank-account,
    .product-cart-dialog-message,
    .cart2-address-popover .n_addressMsg_list .n_a_l_bottom,
    .cart2-address-popover .n_addressMsg_list.search_no p,
    .cart2-address-popover .address-default,
    .cart2-address-popover .address_more .address_more_List li > p,
    #new_order_confirm .deliveryOneBox .n_addressMsg_list_d .list_d_item,
    #member_homepage .info_li, #member_homepage .member_number,
    #member_homepage .member_c_h_r_p,
    #member_homepage .order_list_lsk .list_content > li,
    #member_homepage .uc-home-notice-list, #member_homepage .uc-order-header strong,
    #member_homepage .uc-order-cell strong, #member_homepage .uc-dashboard-alert-list,
    #member_homepage .uc-dashboard-order-detail strong,
    #member_homepage .uc-home-collect-dialog header h2,
    #member_homepage .uc-home-collect-dialog label,
    body.ucenter-n6-page #ucenter_info_page .uc-info-field > span,
    body.ucenter-n6-page #ucenter_info_page .uc-info-field > label,
    body.ucenter-n6-page #ucenter_info_page .uc-info-field.is-static p,
    body.ucenter-n6-page #ucenter_info_page .uc-info-auth-intro h3,
    body.ucenter-n6-page #ucenter_info_page .uc-info-company-heading h3,
    body.ucenter-n6-page #ucenter_info_page .uc-info-company-details dd,
    body.ucenter-n6-page #ucenter_all_message_page .record_time .timeval,
    body.ucenter-n6-page #ucenter_all_message_page .uc-message-loading,
    body.ucenter-n6-page #ucenter_announcement_page .uc-announcement-loading,
    #ucenter_company_page .uc-company-submit-bar > span,
    #ucenter_ticket_page .uc-ticket-card-condition,
    #ucenter_ticket_page .uc-ticket-card-date, #ucenter_ticket_page .uc-ticket-card-code,
    #ucenter_redpacket_page .uc-redpacket-card:not(.is-available) .uc-redpacket-status,
    [class*="-loading"], [class*="_loading"]
):not(:where(
    .is-error, .is-success, .is-warning, .is-danger,
    .danger-text, .status-danger, .text-danger, .text-success,
    footer, footer *, [class*="-hero"], [class*="-hero"] *,
    /* element-ui loading 遮罩内部（转圈图标/加载文字）不吃次级文字墨色：
       报价 $loading 深色遮罩上的红色图标与“报价中，请稍等...”依赖组件色和
       goods.data.js 的 jQuery 内联红，被本规则 !important 压成 #514359 后在
       深色遮罩上不可见（历史缺陷：报价 loading 只剩遮罩）。 */
    [class*="el-loading"], [class*="el-icon-loading"]
)) {
    color: var(--yys-client-secondary-text) !important;
}

/* Controls that now carry gold captions need dark neutral surfaces. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-actions button:not(.is-danger), .uc-address-secondary,
    .uc-address-close, .uc-address-check span, .uc-address-default-choice > span,
    .uc-address-search input, .uc-address-form input, .uc-address-form select,
    .uc-address-recognition textarea,
    .uc-agent-center__popup-close, .uc-archives-dialog-close,
    .uc-favorite-dialog-head > button, .uc-favorite-search input,
    .uc-myshare-actions button, .uc-myshare-refresh,
    .uc-myshare-dialog-actions button, .uc-myshare-social-actions button,
    .uc-project-list-header button,
    .refund-reason-toolbar button, .refund-reason-toolbar select,
    .uc-quote-pagination select, .uc-urgent-card-pagination select,
    .uc-urgent-card-modal-close, .cart3-payment-dialog-actions button,
    .paging-wrap button, .product-cart-dialog-actions button,
    .product-cart-dialog, .cart2-discount-tooltip,
    #member_homepage .uc-home-collect-dialog
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

/* Module roots paint near-black ink; inherit the shared dark body color. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-distribution-page, .uc-evaluation-page, .uc-invoice-title-page,
    .uc-invoicing-page, .uc-myshare-page, .uc-recharge-page,
    .uc-order-page, .order-detail-page, .uc-project-list-page,
    .uc-refund-edit, .new_product_container,
    #app.batch-index-app, #batchmanagement.batch-management-page
) {
    color: #e6e0d5 !important;
}

/* Second sweep pass: muted-token captions whose module roots fall outside the
 * shared remap, plus slate grays on marketing pages. */
html body[data-yys-area="frontend"] :is(
    .uc-agent-center__state, .uc-archives-list-meta, .uc-archives-date-separator,
    .uc-archives-dialog-state, .uc-archives-dialog-foot, .uc-distribution-state,
    .uc-evaluation-state, .uc-invoice-state, .uc-cert-help, .uc-cert-preview,
    .skyDrive_fileMeta, .skyDrive_empty, .cart-v2-factory-count, .cart-v2-config,
    .groupon-breadcrumb, .groupon-intro, .groupon-empty,
    .groupon-history-page .history-empty,
    .article-detail-meta, .article-share-status, .order-success-breadcrumb,
    .order-success-copy, .notice-content-meta,
    .notice-list-count, .notice-pagination-meta, .search-breadcrumb,
    .search-suggestions, .search-product-description,
    .pay-methods-copy, .pay-action-copy, .pay-unavailable,
    .sm-empty, .sm-pagination, .sm-payment-empty,
    .cart2-address-popover .n_o_c_c_addressMsg, .refund-reason-color,
    #member_homepage .member_qrcode div, #member_homepage .list_num,
    #member_homepage .uc-home-last-login,
    #member_homepage .uc-home-recommend-item > span:not(.uc-home-recommend-image),
    #member_homepage .uc-home-poster-close,
    #member_homepage .uc-dashboard-alert-login, #member_homepage .uc-dashboard-order-head,
    #member_homepage .uc-dashboard-recommend-item > span:not(.uc-dashboard-recommend-image),
    #member_homepage .uc-dashboard-poster-close,
    .uc-inviter-list__empty, .uc-redpacket-detail dl > div,
    .uc-ticket-center-group-count,
    #ucenter-home-app .uc-home-pagination-ellipsis, #ucenter-home-app .uc-home-pagination-jump
):not(:where(
    footer, footer *, [class*="-hero"], [class*="-hero"] *
)) {
    color: var(--yys-client-secondary-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .introjs-tooltip.intro-tooltip .introjs-tooltiptext,
    body.cart2-page #new_order_confirm > .checkout-page-card > header .bg-gray-200,
    #new_order_confirm .deliveryOneBox .n_deli_h4,
    .cart-v2-float, .new_p_special_title, .sale-section .pro_title,
    .uc-inviter-list__title, .n6-mobile-menu
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .introjs-tooltip.intro-tooltip, .cart-v2-float
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.hot-page, body.quick-order-body, .recovery-page
) {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].quick-order-body .batch-notice-panel {
    color: #e6e0d5 !important;
}

/* /ucenter/info and final sweep leftovers. Element selectors (dd, header p)
 * never match the class-based nets above, so list them explicitly. */
html body[data-yys-area="frontend"] :is(
    body.ucenter-n6-page #ucenter_info_page .uc-info-fact dd,
    body.ucenter-n6-page #ucenter_info_page .uc-info-fact-hint,
    body.ucenter-n6-page #ucenter_info_page .uc-info-form-card .uc-info-card-index,
    body.ucenter-n6-page #ucenter_info_page .uc-info-form-footer span,
    .uc-myshare-main p,
    .uc-recharge-card header p, .uc-recharge-balance-strip p,
    .groupon-page .groupon-history-item p,
    .groupon-history-page .history-card p,
    .hot-section-count, .hot-card-price,
    #app.batch-index-app .batch-index-upload-box .el-upload-dragger .el-upload__text,
    body.ucenter-n6-page #ucenter_account_log_page .account-log-pagination li.xl-jumpText,
    body.ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-jumpText,
    .quick-order-topbar-caption, .cart-v2-topbar-separator,
    .comment-upload-tip, .comment-meta, .uc-favorite-updated
) {
    color: var(--yys-client-secondary-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-title-close, .uc-invoice-close, .uc-myshare-close,
    .uc-ticket-center-modal-close, .uc-invoice-no-action,
    .uc-myshare-index, .uc-quote-index, .uc-urgent-card-index,
    .uc-ticket-filter-count,
    .uc-message-tab-icon, .uc-notice-arrow, .uc-announcement-arrow,
    body.ucenter-n6-page #ucenter_account_log_page .account-log-pagination li.xl-prevPage,
    body.ucenter-n6-page #ucenter_account_log_page .account-log-pagination li.xl-nextPage,
    body.ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-prevPage,
    body.ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-nextPage,
    .recovery-step-icon,
    #app.batch-index-app .batch-index-upload-box .batch-index-file-icon,
    #app.batch-index-app .batch-index-upload-box .batch-index-excel-icon,
    .quick-order-side-arrow, .cart3-progress-badge,
    .ly_lav .star-icons, .refunds-link,
    body.cart2-page #new_order_confirm .deliveryOneBox_ul_head .cart2-delivery-divider,
    body.cart2-page .introjs-tooltip.intro-tooltip .introjs-button,
    body.cart2-page .introjs-tooltip.intro-tooltip .introjs-button:hover,
    body.cart2-page .introjs-tooltip.intro-tooltip .introjs-button:focus
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-title-close, .uc-invoice-close, .uc-myshare-close,
    .uc-ticket-center-modal-close
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

/* Class-wide closeout: ucenter module panels, headers and secondary buttons
 * keep #fff surfaces in source (distribution list, myshare, invoicing,
 * all_message, customer order, quote filters). Darken the whole family at
 * once instead of listing every module twice. */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    [class*="-header"], [class*="_header"],
    [class*="-list"], [class*="_list"],
    [class*="-section"], [class*="_section"],
    article
):not(:where(
    [class*="-hero"], [class*="-hero"] *, [class*="-sidebar"], [class*="-sidebar"] *,
    .is-error, .is-success, .is-warning, .is-danger, .is-available,
    footer, thead, tbody, tr, th, td
)) {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-distribution-filter, .uc-distribution-list
) {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    [class*="-button"].is-secondary, [class*="_button"].is-secondary,
    [class*="-export"], [class*="_export"],
    .uc-quote-quick-filters button:not(.is-active),
    .uc-distribution-filter header button:not(.is-primary),
    .uc-distribution-toolbar button:not(.is-primary),
    .uc-invoice-toolbar button:not(:first-child),
    .uc-invoice-dialog-actions button:first-child,
    .uc-info-company-details > div,
    .uc-message-item, .uc-myshare-refresh
) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-invoice-notice, .uc-invoice-amount,
    .uc-message-item-icon, .uc-message-type
) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-invoice-notice, .uc-invoice-amount, .uc-invoice-amount strong
) {
    color: #f3dfb1 !important;
}

html body[data-yys-area="frontend"] :is(
    .uc-distribution-list > header strong,
    .uc-invoice-balance-grid span, .uc-invoice-balance-grid small,
    .uc-invoice-notice p, .uc-invoice-dialog small,
    .uc-quote-quick-filters > span
) {
    color: var(--yys-client-secondary-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-distribution-filter header span, .uc-distribution-list > header span,
    .uc-invoice-balance-grid strong, .uc-invoice-notice strong
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.ucenter-n6-page .ucenter-n6-content .uc-message-item .content
) {
    color: #e6e0d5;
    background: #292c2d;
}

/* Legacy rich-text (UEditor) content carries inline grays and pale chips. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    main, .legacy-modern-main, .ucenter-n6-content, .cart-v2-shell, #new_order_confirm
) :is([style*="color:rgb(51" i], [style*="color: rgb(51" i],
      [style*="color:rgb(102" i], [style*="color: rgb(102" i],
      [style*="color:rgb(153" i], [style*="color: rgb(153" i]) {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    main, .legacy-modern-main, .ucenter-n6-content, .cart-v2-shell, #new_order_confirm
) :is([style*="background-color:rgb(245" i], [style*="background-color: rgb(245" i],
      [style*="background-color:rgb(248" i], [style*="background-color: rgb(248" i],
      [style*="background:rgb(245" i], [style*="background: rgb(245" i]) {
    background-color: #303334 !important;
}

/* Company, cloud drive (skyDrive), recharge and ticket panels. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .skyDrive-workspace, .skyDrive-search, .skyDrive_fileHeader,
    .skyDrive-uploadDialog footer button,
    .skyDrive_fileDataRow:nth-child(even),
    .uc-company-submit-bar,
    .uc-recharge-balance-strip, .uc-recharge-corporate
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-company-location-note, .uc-recharge-notice, .uc-recharge-alert,
    .uc-recharge-balance-items > div:last-child b,
    .uc-recharge-plans button, .uc-company-section-index, .uc-ticket-center-link
) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-company-location-note, .uc-recharge-notice, .uc-recharge-alert
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-recharge-plans p, .uc-recharge-payments p
) {
    background: transparent !important;
}

/* Selected tabs and payment marks: gold tone instead of pale lavender. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab:hover,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab.is-active,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-status-tab:hover,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-status-tab.is-active
) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab:hover,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab.is-active,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab.is-active span,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-type-tab.is-active strong,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-status-tab:hover,
    body.ucenter-n6-page #ucenter_ticket_page .uc-ticket-status-tab.is-active
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-recharge-payments button > b, .uc-recharge-payments button.is-active i
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-recharge-payments button > b {
    background: #4a4034 !important;
}

/* Cloud drive rows: dark hover and a gold selected highlight instead of the
 * pale lavender zebra/hover, with gold form controls for readability. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow:hover {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow:has(input:checked) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow:has(input:checked) .skyDrive_fileName,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow:has(input:checked) .skyDrive_fileMeta {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #e6b86a;
}

/* all_message: time filter button and legacy notice tabs keep white surfaces. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.ucenter-n6-page #ucenter_all_message_page .record_time .timeval,
    body.ucenter-n6-page #ucenter_all_message_page .uc-message-tabs button
) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_all_message_page .uc-message-tabs button.active_title {
    background: #4a4034 !important;
}

/* Rich-text inline grays turn gradient gold inside message content. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"].ucenter-n6-page .ucenter-n6-content .uc-message-item .content p {
        background-image: linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a) !important;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    html[data-yys-theme="dark"] body[data-yys-area="frontend"].ucenter-n6-page .ucenter-n6-content .uc-message-item .content :is([style*="color:rgb(51" i], [style*="color: rgb(51" i], [style*="color:rgb(102" i], [style*="color: rgb(102" i], [style*="color:rgb(153" i], [style*="color: rgb(153" i]) {
        background-image: linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a) !important;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Inline editor chips must not paint over the paragraph gradient: their text
 * fill is inherited transparent, so an opaque background would hide them.
 * Carries the page ID because the generic inline-style net above contains an
 * :is(#new_order_confirm) argument that raises it to ID specificity. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"].ucenter-n6-page .ucenter-n6-content #ucenter_all_message_page .uc-message-item .content :is([style*="background-color:rgb(245" i], [style*="background-color: rgb(245" i], [style*="background-color:rgb(248" i], [style*="background-color: rgb(248" i], [style*="background:rgb(245" i]) {
    background-color: transparent !important;
}

/* /cart: chips, remove action, checkout text and footer copy. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .cart-v2-shell :is(
    .cart-v2-disclosure > span, .cart-v2-total .count-down
) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .cart-v2-shell .cart-v2-remove button {
    color: #e8aec0 !important;
    background: #453039 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .cart-v2-shell .cart-v2-checkout {
    color: #4a2410 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .cart-v2-shell :is(
    .cart-v2-footer-caption, .cart-v2-footer-contact small,
    .cart-v2-footer-bottom, .cart-v2-footer-bottom-copy a, .cart-v2-footer-section a
) {
    color: #d8d2c8 !important;
}

/* /ucenter/order: pale headers, meta triggers and comparison panels. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .order-list-head, .goods-meta-panel, .goods-meta-trigger,
    .parameter-trigger, .file-trigger, .note-trigger,
    .price-comparison, .price-comparison > div,
    .order_goods_meta .mssage_box, .order_goods_meta .mssage_c,
    .goods-image, .preview-grid img
) {
    border-color: rgba(243, 223, 177, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .goods-meta-trigger, .parameter-trigger, .file-trigger, .note-trigger
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .reviewed-tag, .urgent-label, .release-pass-warning
) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
}

/* /ucenter/order: pale row dividers, tab underline, mobile footer divider and
 * file list separators follow the dark line token instead of #f0eaf3/#e9e1ef. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .order-line,
    .order-tabs,
    .order-footer-cell,
    .file-name + .file-name
) {
    border-color: rgba(243, 223, 177, .16) !important;
}

/* /ucenter/order: the order-lines scrollbar is hard-coded pale purple in the
 * module styles; recolor thumb and clear the pale track in dark mode. */
html[data-yys-theme="dark"] body.ucenter-n6-page .order-lines.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(235, 224, 201, .25) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .order-lines.is-scrollable::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Firefox 没有 ::-webkit-scrollbar：容器级标准属性让两内核渲染一致
 * （Chrome 121+ 同样优先标准属性）。亮色用模块原 thumb/track 色。 */
html body.ucenter-n6-page .order-lines.is-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #c9b2d6 #f7f2fa;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .order-lines.is-scrollable {
    scrollbar-color: rgba(235, 224, 201, .25) transparent !important;
}

/* /simple/cart2: address popover, delivery panels and guide overlays. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-address-popover,
    body.cart2-page .cart2-address-popover .address_pop .address-recognition,
    body.cart2-page .cart2-address-popover .n_addressMsg_list.n_list_add,
    body.cart2-page .cart2-address-popover .n_addressMsg_list.search_no,
    body.cart2-page .cart2-address-popover .new_address_more,
    body.cart2-page .cart2-address-popover .address_more .address_more_List li,
    body.cart2-page .cart2-address-popover .address_more .address_more_List li > button,
    body.cart2-page .cart2-address-popover .cart2-address-dialog > footer .cart2-address-dialog-cancel,
    body.cart2-page .cart2-guide-image,
    .introjs-tooltip.intro-tooltip .introjs-tooltipbuttons,
    .introjs-tooltip.intro-tooltip .introjs-button,
    #new_order_confirm .cart2-urgent-card-checkbox,
    #new_order_confirm .order_goods_meta .mssage_box,
    #new_order_confirm .order_goods_meta .mssage_c
) {
    border-color: rgba(243, 223, 177, .16) !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-address-popover .address_pop h2,
    body.cart2-page .cart2-address-popover .address_more h2
) {
    color: #f3dfb1 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    #new_order_confirm .n_addressMsg_list.new_selected_gou,
    #new_order_confirm .n_addressMsg_list .n_a_l_bottom > div:first-child span,
    #new_order_confirm .new_pay_item.new_selected_gou,
    #new_order_confirm .cart2-footer-summary,
    #new_order_confirm .cart2-delivery-trigger span,
    #new_order_confirm .bottom_delivery_val,
    body.cart2-page .cart2-address-popover .n_addressMsg_list.new_selected_gou,
    body.cart2-page .cart2-address-popover .n_addressMsg_list .n_a_l_bottom > div:first-child span,
    body.cart2-page .cart2-address-popover .address_more .address_more_List li > button.new_address_gou,
    body.cart2-page .cart2-address-popover .address_more .allListdefault,
    body.cart2-page .cart2-address-popover .icon-bianji,
    body.cart2-page .cart2-address-popover .cart2-address-edit-icon
) {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-address-popover input[type="button"]:hover,
    body.cart2-page .cart2-address-popover button:hover,
    #new_order_confirm .deliveryOneBox_ul_head input[type="button"]:hover
) {
    background: #5a4426 !important;
}

/* Address popover panel rows: white panel and plain rows. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-address-popover .n_o_c_c_addressMsg,
    body.cart2-page .cart2-address-popover .n_addressMsg_list
):not(.new_selected_gou):not(.n_list_add) {
    border-color: rgba(243, 223, 177, .16) !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    body.cart2-page .cart2-address-popover .n_addressMsg_list:not(.new_selected_gou):hover,
    body.cart2-page .cart2-address-popover .address_more_List li:hover
) {
    background: #3a3d3d !important;
}

/* The light quantity chip uses #f3eff7 !important; dark mode must swap it for
 * the warm dark chip instead of letting the dark gold text sit on it. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .cart2-order-line > div:first-child > span {
    background: #4a4034 !important;
}

/* Purple summary panels: every descendant text renders the clipped gradient. */
html body[data-yys-area="frontend"] :is(
    body.pay-page .pay-summary,
    body.search-page .search-summary
) {
    -webkit-text-fill-color: transparent !important;
}

/* Hero coupon copy is gradient-clipped gold on the purple banner in BOTH
 * client themes; the plain secondary ink would be unreadable on it. */
html body[data-yys-area="frontend"] .n6-coupon-copy {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Bright chip backgrounds that carry gold text in dark mode: darken the chip,
 * keep the gold. Bright-background-with-dark-text stays for light mode only. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    #member_homepage .uc-home-notice-mark,
    body.ucenter-n6-home-page #member_homepage .uc-home-metric-icon,
    body.ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-stat-mark,
    .uc-invoice-list-heading-mark,
    .refund-edit-summary-icon,
    .recovery-legacy-page .recovery-step-icon,
    .quick-order-side-icon,
    .cart-v2-empty-icon,
    .uc-message-tab-icon,
    .uc-message-empty-icon,
    .uc-redpacket-empty-icon
) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    #app.batch-index-app .batch-index-upload-box
) {
    border-color: rgba(243, 223, 177, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app {
    background: #242628 !important;
}

/* Legacy xl-pagination (#page > ul) shared by ucenter pages: white li chips. */
html[data-yys-theme="dark"] body.ucenter-n6-page #page > ul {
    border-color: rgba(243, 223, 177, .16) !important;
    background: #303334 !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #page > ul > li:not(.xl-active):not(.xl-jumpButton) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #page > ul > li:not(.xl-active):not(.xl-jumpButton):not(.xl-disabled):hover {
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #page > ul > li.xl-disabled,
html[data-yys-theme="dark"] body.ucenter-n6-page #page > ul > li.xl-disabled:hover {
    color: #8f897f !important;
    border-color: rgba(243, 223, 177, .12) !important;
    background: #3a3d3d !important;
}

/* Keep common member-page surfaces dark even when page components declare
 * their own white card defaults. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .ucenter-n6-content :is(
    [class*="-card"], [class*="_card"], [class*="-panel"], [class*="_panel"],
    [class*="-dialog"], [class*="_dialog"], [class*="-modal"], [class*="_modal"],
    [class*="-table-wrap"], [class*="_table_wrap"], [class*="-list-card"]
) {
    border-color: rgba(243, 223, 177, .16) !important;
    color: #e6e0d5;
    background-color: #303334 !important;
    background-image: none !important;
    box-shadow: none;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .ucenter-n6-content :is(
    [class*="-card"], [class*="_card"], [class*="-panel"], [class*="_panel"],
    [class*="-dialog"], [class*="_dialog"], [class*="-modal"], [class*="_modal"],
    [class*="-table-wrap"], [class*="_table_wrap"], [class*="-list-card"]
) :is(
    h1, h2, h3, h4, label, legend, th,
    [class*="eyebrow"], [class*="section-title"],
    [class*="-title"], [class*="_title"], [class*="-label"], [class*="_label"]
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .ucenter-n6-content :is(
    [class*="-card"], [class*="_card"], [class*="-panel"], [class*="_panel"],
    [class*="-dialog"], [class*="_dialog"], [class*="-modal"], [class*="_modal"],
    [class*="-table-wrap"], [class*="_table_wrap"], [class*="-list-card"]
) :is([class*="muted"], [class*="secondary"], [class*="-meta"], [class*="_meta"]) {
    color: #e6e0d5 !important;
}

/* Purple filled chrome in the light theme keeps plain white text
 * （日间模式页脚：紫色背景 + 白色文字，层次用半透明白区分）. */
html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"] .site-chrome-footer :is(
    h4, a, .n6-footer-contact strong, .n6-footer-bottom-copy a
) {
    color: #fff !important;
    background-image: none;
}

html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"] .site-chrome-footer :is(
    .n6-footer-contact small, .n6-footer-caption, .n6-footer-bottom, .n6-footer-custom
) {
    color: rgba(255, 255, 255, .82) !important;
    background-image: none;
}

html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"] .site-chrome-footer .n6-footer-custom :where(
    p, span, div, strong, small
) {
    color: rgba(255, 255, 255, .82) !important;
    background-image: none;
}

/* /ucenter/index uses layout-local dashboard classes rather than card suffixes. */
html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard {
    --uc-dashboard-ink: #e6e0d5 !important;
    --uc-dashboard-muted: #f3dfb1 !important;
    --uc-dashboard-line: rgba(243, 223, 177, .18) !important;
    --uc-dashboard-soft: #303334 !important;
    --uc-dashboard-purple: #f3dfb1 !important;
    --uc-dashboard-purple-dark: #f3dfb1 !important;
    --uc-dashboard-lilac: #4a4034 !important;
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard :is(
    .uc-dashboard-alert, .uc-dashboard-profile, .uc-dashboard-service,
    .uc-dashboard-stat-panel, .uc-dashboard-favorites, .uc-dashboard-orders,
    .uc-dashboard-recommend, .uc-dashboard-stat, .uc-dashboard-banner.is-empty,
    .uc-dashboard-favorite-item, .uc-dashboard-order, .uc-dashboard-order-head,
    .uc-dashboard-order-goods, .uc-dashboard-order-detail,
    .uc-dashboard-recommend-item, .uc-dashboard-poster-dialog,
    .uc-dashboard-qr, .uc-dashboard-empty, .uc-home-meta-panel,
    .order_collect_summary
) {
    border-color: rgba(243, 223, 177, .18) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-color: #303334 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard :is(
    .uc-dashboard-stat.is-highlight, .uc-dashboard-account-grid,
    .uc-dashboard-benefits, .uc-dashboard-qr,
    .uc-dashboard-favorite-grid, .uc-dashboard-order-content,
    .uc-dashboard-order-goods-row, .uc-dashboard-order-detail,
    .uc-dashboard-pagination, .uc-dashboard-dots
) {
    border-color: rgba(243, 223, 177, .18) !important;
    background: #303334 !important;
    background-color: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard :is(
    .uc-dashboard-section-head h2, .uc-dashboard-name-line h1,
    .uc-dashboard-section-head > span, .uc-dashboard-section-head > a,
    .uc-dashboard-eyebrow, .uc-dashboard-alert-list, .uc-dashboard-alert-list a,
    .uc-dashboard-alert-login, .uc-dashboard-identity > p,
    .uc-dashboard-account > span, .uc-dashboard-account > small,
    .uc-dashboard-account strong, .uc-dashboard-account a,
    .uc-dashboard-service-heading span, .uc-dashboard-service-heading strong,
    .uc-dashboard-service-heading small, .uc-dashboard-benefits,
    .uc-dashboard-benefits span, .uc-dashboard-benefits strong,
    .uc-dashboard-qr span, .uc-dashboard-qr button,
    .uc-dashboard-stat span, .uc-dashboard-stat strong,
    .uc-dashboard-banner.is-empty, .uc-dashboard-empty,
    .uc-dashboard-order-head, .uc-dashboard-order > header,
    .uc-dashboard-order-product strong, .uc-dashboard-order-detail,
    .uc-dashboard-order-actions button, .uc-dashboard-recommend-item strong,
    .uc-dashboard-recommend-item > span:not(.uc-dashboard-recommend-image),
    .uc-dashboard-poster-dialog h2, .uc-dashboard-poster-close,
    .uc-dashboard-section-head a:hover
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard :is(
    .uc-dashboard-order-actions button, .uc-dashboard-qr button,
    .uc-dashboard-poster-close
) {
    border-color: rgba(243, 223, 177, .22) !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard :is(
    .uc-dashboard-order-detail .is-danger, .uc-dashboard-order-actions .is-danger,
    .uc-dashboard-order-actions .is-error
) {
    color: #f0a3a3 !important;
}

/* The order-number strong keeps its light-mode ink (#655b70) from the Blade
 * layout, which beats the gold inherited from the header rule above; assert
 * the gold on it directly so it stays readable like the order page. */
html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-order > header strong {
    color: #f3dfb1 !important;
}




/* Theme rule: purple surfaces carry gradient-gold text in BOTH client
 * themes; bright surfaces keep dark ink; dark surfaces keep white text.
 * Dual-layer rule: the gold gradient is clipped to the glyphs while the
 * original purple surface stays as the unclipped second layer. Icon-only
 * purple controls use a solid gold glyph instead of clipping. The
 * html[data-yys-theme] prefix out-ranks the ucenter panel nets that
 * strip module gradients with background-image: none. */
html[data-yys-theme] body[data-yys-area="frontend"].cart2-page .introjs-tooltip.intro-tooltip .introjs-nextbutton {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#3d1e58, #3d1e58) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].cart2-page #new_order_confirm .cart2-factory-header > div {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4a2375, #8e5ba6) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].cart2-page #new_order_confirm .cart2-delivery-trigger span {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, #4a2375, #8252a2) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .product-cart-dialog .product-cart-dialog-actions .product-cart-dialog-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-address-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-center__available a {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-agent-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-apply__reapply {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-apply-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-apply__submit {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-apply-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-info__submit {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-info-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-archives-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-archives-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-distribution-deliver {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .add-new-invoice button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-cert-card-index {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(var(--ucenter-n6-purple, #3d1e58), var(--ucenter-n6-purple, #3d1e58)) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] label.uc-cert-upload-button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(var(--ucenter-n6-purple, #3d1e58), var(--ucenter-n6-purple, #3d1e58)) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
/* 上传按钮含内联 SVG 图标：background-clip: text 只作用于文字，
 * 图标描边 stroke="currentColor" 需要 color 保持实体金（日间宽域
 * label 墨色规则会命中该 label，这里显式给 svg 固定金色描边）。 */
html[data-yys-theme] body[data-yys-area="frontend"] .uc-cert-upload-button svg {
    color: #f3dfb1 !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-toolbar button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-state button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-editor-actions button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-recharge-balance-items b {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-recharge-submit {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .primary-button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .action-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .refund-reason-link-form button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .refund-edit-submit {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_customer_order_page .uc-customer-order-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-customer-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_customer_order_page .uc-customer-order-pagination button.is-current {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-customer-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-oq-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-paging-buttons button.is-current {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-oq-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
/* /ucenter/order_query 夜间模式下激活/悬停的「业务员订单/城市经理订单」页签：
 * 页面样式把激活色写死为 --uc-oq-purple（ID 优先级压过通用二级文字色），
 * 深色卡片上紫字不可读。页签本身无底色，单层金色渐变裁切文字即可，
 * 不需要双层（紫底）结构，也就不触发 Gecko 多层裁切回退。 */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button.active,
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button:hover {
        color: transparent !important;
        background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button.active::after {
    background: #e6b86a !important;
}
/* /ucenter/order_query 夜间模式下激活/悬停的「业务员订单/城市经理订单」页签：
 * 页面样式把激活色写死为 --uc-oq-purple（ID 优先级压过通用二级文字色），
 * 深色卡片上紫字不可读。页签本身无底色，单层金色渐变裁切文字即可，
 * 不需要双层（紫底）结构，也就不触发 Gecko 多层裁切回退。 */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button.active,
    html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button:hover {
        color: transparent !important;
        background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-tabs button.active::after {
    background: #e6b86a !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_quote_price_statistics_page .uc-quote-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-quote-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_quote_price_statistics_page .uc-quote-code-link {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-quote-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_urgent_card_page .uc-urgent-card-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-urgent-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_urgent_card_page .uc-urgent-card-action.is-issue {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, var(--uc-urgent-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--wangpan-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-dialog .is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--wangpan-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-uploadDialog footer button:first-child {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--wangpan-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #app.batch-index-app #customButton {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar .el-button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #batchmanagement .batch-management-summary .el-button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .cart-v2-factory-name {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--cart-v2-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-payment-button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, var(--cart3-purple), var(--cart3-purple-2)) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-payment-dialog-actions button:last-child {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--cart3-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .arrival-notice-page button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#6c3a96, #6c3a96) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .n_p_list_btn a {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#6c3a96, #6c3a96) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].notice-page .notice-pagination-link.is-current {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--notice-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-tree-item.is-current > .help-tree-row {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-page-current {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-button.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-tree-item.is-current > details > summary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-tree-item.is-current > .help-tree-row {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-page-current {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].pay-page .pay-summary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--pay-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].pay-page .pay-method.is-selected .pay-method-check {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--pay-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .order_new_title {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #3d1e58, #6c3a96) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .two_word_r {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4a2375, #8e5ba6) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .four_word {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4a2375, #8e5ba6) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .uc-order-actions button.two_word_r {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-order-actions button.four_word {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_account_log_page .account-log-pagination #page > ul > li.xl-jumpButton {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-jumpButton {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_company_page .uc-company-submit-bar button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-company-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page .ucenter-sidebar .purpose h2 {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #member_homepage .uc-home-collect-dialog footer button[type="submit"] {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-primary-action {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-secondary-action {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-form-footer button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, #4e2770, #8050a3) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .uc-inviter-list__form button {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-inviter-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card-side {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(145deg, var(--uc-ticket-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_redpacket_page .uc-redpacket-link.is-primary {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(120deg, var(--redpacket-purple-dark), #704092) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_redpacket_page .uc-redpacket-value {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(145deg, var(--redpacket-purple), #754498) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_ticket_center_page .ticket-center-card {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(135deg, #4e2770, #8b5ba6) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] #uploadButton {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4e2770, #4e2770) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .n6-category-title,
html[data-yys-theme] body[data-yys-area="frontend"] .nh-category-title {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--n6-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .n6-rank-side h3 {
    color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--n6-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] :is(html[data-yys-theme] body[data-yys-area="frontend"].cart2-page .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].cart2-page .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"].cart2-page .cart2-address-popover .new_addressMsg_search i,
html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-center__search,
html[data-yys-theme] body[data-yys-area="frontend"] .uc-favorite-search-button,
html[data-yys-theme] body[data-yys-area="frontend"] .refund-edit-goods-item.is-selected .refund-edit-checkmark,
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-search button,
html[data-yys-theme] body[data-yys-area="frontend"] .auth-page .n6-assurance-icon,
html[data-yys-theme] body[data-yys-area="frontend"].quick-order-body .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].quick-order-body .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-brand-mark,
html[data-yys-theme] body[data-yys-area="frontend"] .cart-v2-shell .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"] .cart-v2-shell .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"] .cart-v2-search button,
html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-progress-step.is-complete .cart3-progress-badge,
html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-success-icon,
html[data-yys-theme] body[data-yys-area="frontend"].notice-page .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-mark,
html[data-yys-theme] body[data-yys-area="frontend"].search-page .search-product-actions > a,
html[data-yys-theme] body[data-yys-area="frontend"].search-page .search-pagination nav span[aria-current="page"] > span,
html[data-yys-theme] body[data-yys-area="frontend"] .rank-badge,
html[data-yys-theme] body[data-yys-area="frontend"] .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"] .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"].pay-page .pay-method-icon,
html[data-yys-theme] body[data-yys-area="frontend"].sm-page .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].sm-page .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"].sm-page .sm-search-form button,
html[data-yys-theme] body[data-yys-area="frontend"] .yys-ucenter-modal-mark,
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page .n6-search button,
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page .n6-mobile-menu,
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_all_message_page .uc-message-tabs button.active_title .uc-message-tab-icon,
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-avatar,
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_ticket_center_page .uc-ticket-center-ticket-shape,
html[data-yys-theme] body[data-yys-area="frontend"] .n6-avatar,
html[data-yys-theme] body[data-yys-area="frontend"] .nh-avatar,
html[data-yys-theme] body[data-yys-area="frontend"] .n6-assurance-icon,
html[data-yys-theme] body[data-yys-area="frontend"] .nh-assurance-icon) {
    color: #f3dfb1 !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-hero {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 30%), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-hero :is(a, button, .n6-claim, .n6-search button) {
    -webkit-text-fill-color: initial !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-hero {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 30%), var(--help-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-hero :is(a, button, .n6-claim, .n6-search button) {
    -webkit-text-fill-color: initial !important;
}
/* Light theme keeps the order-success hero's purple panel and white support
 * copy: the dual-layer gold clip above paints pale gold glyphs over a bright
 * page background (the purple layer is also text-clipped), which is unreadable.
 * The headline itself uses the saturated brand gold gradient (same stops as the
 * home hero) instead of white, so it reads as real gold in daylight. */
html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"].order-success-page .order-success-hero {
    color: #fff !important;
    -webkit-text-fill-color: initial !important;
    background-image: radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 30%), var(--help-hero) !important;
    background-clip: border-box !important;
}
html:not([data-yys-theme="dark"]) body[data-yys-area="frontend"].order-success-page .order-success-hero h1 {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: linear-gradient(135deg, #fff3b0 0%, #f7c45a 42%, #b87922 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].search-page .search-summary {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), linear-gradient(#4a2375, #4a2375) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].search-page .search-summary :is(a, button, .n6-claim, .n6-search button) {
    -webkit-text-fill-color: initial !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .uc-home-banner-empty a {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-home-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .uc-home-banner-empty a :is(a, button, .n6-claim, .n6-search button) {
    -webkit-text-fill-color: initial !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-banner.is-empty a {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--uc-dashboard-purple) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-banner.is-empty a :is(a, button, .n6-claim, .n6-search button) {
    -webkit-text-fill-color: initial !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .n6-hero,
html[data-yys-theme] body[data-yys-area="frontend"] .nh-hero {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)), var(--n6-hero) !important;
    -webkit-background-clip: text, border-box !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text, border-box !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .n6-hero .n6-claim {
    -webkit-text-fill-color: #4a2410 !important;
}
/* The home hero ribbon is an amber pill, not gradient-clipped text: keep its
 * dark brown fill in both light and dark mode (selector has no theme value). */
html[data-yys-theme] body[data-yys-area="frontend"] .n6-hero .n6-ribbon {
    color: #4a2410 !important;
    -webkit-text-fill-color: #4a2410 !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .nh-hero .nh-ribbon {
    color: #4a2410 !important;
    -webkit-text-fill-color: #4a2410 !important;
}
/* The hero copy sits in its own stacking context (.n6-hero-copy is
 * position:absolute + z-index), so the section-level gradient clipped on
 * .n6-hero cannot show through its glyphs in Chromium. Clip the gold gradient
 * on the text elements themselves instead: same-element clipping always works,
 * in both light and dark mode. */
html[data-yys-theme] body[data-yys-area="frontend"] .n6-hero .n6-gold-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
html[data-yys-theme] body[data-yys-area="frontend"] .nh-hero .nh-gold-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: var(--n6-gold-text, linear-gradient(110deg, #fff1c9, #f3dfb1 48%, #e6b86a)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Firefox cannot clip multi-layer backgrounds when one value is `text`
 * (bugzil.la/1481498): in the two-layer rules above both layers then paint
 * full-box, so the gold gradient covers the whole element and the homepage
 * hero / category title render yellow instead of purple. Collapse these two
 * blocks back to the single purple layer, and reset `background-clip` too:
 * leaving the two-value clip in place would map `text` onto the now-single
 * layer and clip the purple gradient to the glyphs (invisible box, white
 * background). The gradient glyphs keep coming from per-element
 * background-clip:text rules, and single-value clipping works in Firefox.
 * Chromium output is unchanged: the section-level gold layer never showed
 * through the hero's stacking contexts (see the comment above), and the
 * category-title spans clip their own gradient via body.home .nh-gold-text
 * in home.css. */
html[data-yys-theme] body[data-yys-area="frontend"] .nh-hero,
html[data-yys-theme] body[data-yys-area="frontend"] .nh-category-title {
    background-image: var(--n6-hero) !important;
    background-clip: border-box !important;
}

/* Header count badges are red alert pills: solid red with white numerals,
 * no gradient text clipping needed. */
html[data-yys-theme] body[data-yys-area="frontend"] .n6-badge {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-image: linear-gradient(135deg, #ff5b66 0%, #ff1a2b 100%) !important;
    background-clip: border-box !important;
}

/* Keep the dark header readable while retaining the requested pink-and-gold
 * accent. The gradient is reserved for small accents; utility copy stays a
 * solid light pink so it remains legible at every text length. */
html[data-yys-theme="dark"] body .site-chrome-header {
    border-color: rgba(246, 212, 123, .38) !important;
    background: linear-gradient(110deg, rgba(57, 37, 49, .98), rgba(56, 45, 39, .98)) !important;
    box-shadow: 0 14px 32px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 182, 198, .12) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-utilities {
    color: #ffe8df;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-utility,
html[data-yys-theme="dark"] body .site-chrome-header .n6-hotline strong {
    color: #ffe8df !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-utility .n6-icon {
    color: #f6d47b !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-hotline small {
    color: #e8bdc6 !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-utility + .n6-utility,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-menu > .n6-utility {
    border-left-color: rgba(246, 212, 123, .3) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-utility:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-menu.is-open > .n6-utility,
html[data-yys-theme="dark"] body .site-chrome-header .n6-utility:focus-visible {
    color: #fff1d6 !important;
    background: rgba(242, 182, 198, .17) !important;
    box-shadow: inset 0 0 0 1px rgba(246, 212, 123, .26) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .yys-theme-toggle {
    border-color: rgba(242, 182, 198, .56) !important;
    color: #ffe8df !important;
    background: linear-gradient(135deg, rgba(126, 67, 86, .76), rgba(107, 76, 45, .72)) !important;
    box-shadow: inset 0 0 0 1px rgba(246, 212, 123, .18), 0 5px 14px -8px rgba(246, 212, 123, .7) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .yys-theme-toggle-icon {
    color: #f6d47b !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .yys-theme-toggle:hover,
html[data-yys-theme="dark"] body .site-chrome-header .yys-theme-toggle:focus-visible {
    border-color: #f6d47b !important;
    color: #fff7e8 !important;
    background: linear-gradient(135deg, rgba(155, 78, 105, .88), rgba(145, 94, 43, .86)) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-badge {
    color: #fff !important;
    background: linear-gradient(135deg, #ff5b66 0%, #ff1a2b 100%) !important;
    box-shadow: 0 3px 10px rgba(255, 26, 43, .38) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown {
    border-color: rgba(246, 212, 123, .36) !important;
    background: #352832 !important;
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(242, 182, 198, .1) !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a {
    color: #ffe8df !important;
}

html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a:hover,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a:focus-visible,
html[data-yys-theme="dark"] body .site-chrome-header .n6-user-dropdown a.is-active {
    color: #fff1d6 !important;
    background: rgba(242, 182, 198, .17) !important;
    box-shadow: inset 3px 0 0 #f6d47b !important;
}

/* Semantic status utilities need dark surfaces of their own. A pale red,
 * orange, green, or blue background with a matching saturated foreground
 * collapses in dark mode, especially in compact badges and inline notices.
 * Keep solid action fills separate so primary buttons retain their purpose. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] {
    --yys-danger-surface: #4a2831;
    --yys-danger-border: rgba(255, 166, 181, .42);
    --yys-danger-text: #ffb5c1;
    --yys-warning-surface: #4e3822;
    --yys-warning-border: rgba(255, 210, 139, .42);
    --yys-warning-text: #ffd28c;
    --yys-success-surface: #1d4636;
    --yys-success-border: rgba(156, 226, 192, .38);
    --yys-success-text: #9ce2c0;
    --yys-info-surface: #223b58;
    --yys-info-border: rgba(169, 210, 255, .4);
    --yys-info-text: #a9d2ff;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .bg-red-50, .bg-red-100, .bg-red-200,
    .hover\:bg-red-50:hover, .hover\:bg-red-100:hover,
    .focus\:bg-red-50:focus
) {
    background-color: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .border-red-50, .border-red-100, .border-red-200, .border-red-300,
    .hover\:border-red-300:hover, .focus\:border-red-300:focus
) {
    border-color: var(--yys-danger-border) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .text-red-400, .text-red-500, .text-red-600, .text-red-700,
    .text-red-800, .text-red-900
) {
    color: var(--yys-danger-text) !important;
}

/* The legacy cart2 brand-red utility is used for both prices and compact
 * warnings. Only recolor it when it is paired with a pale danger surface;
 * price totals and solid controls keep their existing gold/white treatment. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .bg-red-50.text-\[\#ff1a2b\],
    .bg-red-100.text-\[\#ff1a2b\],
    .bg-red-50.text-\[\#ff1a2b\]\/80
) {
    color: var(--yys-danger-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .bg-orange-50, .bg-orange-100, .bg-orange-200,
    .hover\:bg-orange-50:hover, .hover\:bg-orange-100:hover
) {
    background-color: var(--yys-warning-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .border-orange-50, .border-orange-100, .border-orange-200, .border-orange-300
) {
    border-color: var(--yys-warning-border) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .text-orange-400, .text-orange-500, .text-orange-600, .text-orange-700,
    .text-orange-800, .text-orange-900
) {
    color: var(--yys-warning-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .bg-green-50, .bg-green-100, .bg-green-200,
    .hover\:bg-green-50:hover, .hover\:bg-green-100:hover
) {
    background-color: var(--yys-success-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .border-green-50, .border-green-100, .border-green-200, .border-green-300
) {
    border-color: var(--yys-success-border) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .text-green-400, .text-green-500, .text-green-600, .text-green-700,
    .text-green-800, .text-green-900
) {
    color: var(--yys-success-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .bg-blue-50, .bg-blue-100, .bg-blue-200,
    .hover\:bg-blue-50:hover, .hover\:bg-blue-100:hover
) {
    background-color: var(--yys-info-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .border-blue-50, .border-blue-100, .border-blue-200, .border-blue-300
) {
    border-color: var(--yys-info-border) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700,
    .text-blue-800, .text-blue-900
) {
    color: var(--yys-info-text) !important;
}

/* cart2 still has a few legacy pale status surfaces outside Tailwind. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm :is(
    .new_logistic > ul > li.n_delivery_list.new_selected_gou,
    .cart2-factory-footer .cart2-footer-summary,
    .cart2-contact-panel .is-selected
) {
    border-color: var(--yys-danger-border) !important;
    background: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .bg-red-50.text-\[\#ff1a2b\],
html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .bg-red-50.border-red-100.text-\[\#ff1a2b\],
html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .bg-red-100.text-\[\#ff1a2b\],
html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .bg-red-50.text-\[\#ff1a2b\]\/80 {
    border-color: var(--yys-danger-border) !important;
    color: var(--yys-danger-text) !important;
    background-color: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm .border-\[\#ff1a2b\].bg-red-50.text-\[\#ff1a2b\] {
    border-color: var(--yys-danger-border) !important;
    color: var(--yys-danger-text) !important;
    background-color: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].cart2-page #new_order_confirm :is(
    [style*="background:#fff5f5" i],
    [style*="background: #fff5f5" i],
    [style*="background:#fff5df" i],
    [style*="background: #fff5df" i]
) {
    border-color: var(--yys-danger-border) !important;
    background: var(--yys-danger-surface) !important;
    background-image: none !important;
}

/* Older frontend templates still contain a small set of hard-coded pale
 * danger surfaces instead of semantic utility classes. Keep these warnings
 * consistent with the dark status palette without affecting solid actions. */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .detail-trigger, .memo-trigger, .uc-urgent-card-action.is-revoke,
    .sm-error
) {
    border-color: var(--yys-danger-border) !important;
    color: var(--yys-danger-text) !important;
    background: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    [style*="background:#fff6f7" i], [style*="background: #fff6f7" i],
    [style*="background-color:#fff6f7" i], [style*="background-color: #fff6f7" i],
    [style*="background:#fff8f8" i], [style*="background: #fff8f8" i],
    [style*="background-color:#fff8f8" i], [style*="background-color: #fff8f8" i],
    [style*="background:#fff5f5" i], [style*="background: #fff5f5" i]
) {
    border-color: var(--yys-danger-border) !important;
    color: var(--yys-danger-text) !important;
    background: var(--yys-danger-surface) !important;
    background-image: none !important;
}

/* =====================================================================
 * UCenter（/ucenter）暗色模式缺口修复。
 * 以下规则逐页对应强制暗色渲染审计后仍然发白的模块：
 * 页面级白色画布、琥珀提示条与按钮、白底分页/刷新按钮、
 * 订单详情局部面板、交互弹窗与下拉、二维码底盒。
 * ===================================================================== */

/* 1) 页面级白色画布：legacy partial 与 Vue 页面根容器仍是 #fff */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .invoice-admin-page,
    .bind_mobile_info,
    .bindingMail_info,
    .find_password_info,
    .withdrawal_operation,
    .withdrawal_record,
    .delay-order-page,
    .integral-page,
    .refunds-page,
    .uc-unread-message__empty,
    .refund-reason-editor,
    .order-progress
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 2) 琥珀色提示条 / 发送验证码与获取校验码按钮（#FBE7C9 系） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    #ucenter-cash-withdrawal-app .user_info,
    #ucenter-bind-mobile-app .form_li button:not(.dark_button),
    #ucenter-find-password-app .form_li button:not(.dark_button),
    #ucenter-paycode-app .paycode-row > button:not(.is-disabled),
    #ucenter-cash-withdrawal-app .withdrawal_info .form_li button:not(.dark_button),
    #ucenter-cash-withdrawal-app .messagebtn,
    #ucenter_urgent_card_page .uc-urgent-card-filter-note > span,
    #ucenter_urgent_card_page .uc-urgent-card-unassigned,
    .action-warning
) {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
    background-image: none !important;
}

/* 3) 白底次级 / 分页 / 刷新按钮 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-complain-panel > header button,
    .uc-consult-panel > header button,
    .uc-evaluation-card > header button,
    .uc-invoice-pagination button,
    .uc-agent-withdrawal__refresh,
    #ucenter_redpacket_page .uc-redpacket-pagination a,
    #ucenter_redpacket_page .uc-redpacket-pagination > span,
    #ucenter_quote_price_statistics_page .uc-quote-page-controls button,
    #ucenter_urgent_card_page .uc-urgent-card-page-controls button,
    #ucenter-paycode-app .paycode-actions button.is-secondary,
    .action-button.action-muted,
    .secondary-button,
    .order-pagination button,
    .refund-reason-link-form .refund-reason-link-cancel
) {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-complain-panel > header button:hover,
    .uc-consult-panel > header button:hover,
    .uc-evaluation-card > header button:hover,
    .secondary-button:hover:not(:disabled),
    .order-pagination button:hover:not(:disabled):not(.active)
) {
    color: #f3dfb1 !important;
}

/* 订单列表当前页码 / 主色实底按钮保持品牌紫底白字 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .order-pagination button.active
) {
    color: #fff !important;
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
    background-image: none !important;
    border-color: transparent !important;
}

/* 4) 订单详情局部面板与徽标 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .order-totals,
    .quality-standard-notice
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .order-commitment-notice,
    .action-warning
) {
    border-color: var(--yys-danger-border) !important;
    color: var(--yys-danger-text) !important;
    background: var(--yys-danger-surface) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .progress-step span,
    .order-progress .progress-connector
) {
    background: #464048 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .progress-step.is-complete span
) {
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .goods-main img
) {
    background: #292c2d !important;
}

/* 5) 徽标与状态角标 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-redpacket-count,
    #ucenter_quote_price_statistics_page .uc-quote-quick-filters button.is-active
) {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #f3dfb1 !important;
    background: #464048 !important;
}

/* 6) 交互弹窗 / 下拉 / 气泡（打开前审计不可见，按源码补齐） */
html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    .dropdown .current-list,
    .modal-panel,
    .dialog-panel,
    .uc-favorite-dialog,
    .uc-archives-dialog,
    .uc-agent-center__popup-body,
    .uc-ticket-center-dialog,
    #ucenter_quote_price_statistics_page .uc-quote-date-popover,
    #ucenter_order_query_page .uc-oq-salesman-menu,
    .refund-reason-emoji-menu,
    .uc-urgent-card-modal-panel
) {
    border-color: rgba(235, 224, 201, .18) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
    box-shadow: 0 24px 56px -24px rgba(0, 0, 0, .6) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    .dialog-backdrop,
    .modal-backdrop
) {
    background: rgba(10, 8, 14, .62) !important;
}

/* 7) 表头行（legacy 把 #F5F5F5 写在 tr 上，通用 th/td 规则盖不住） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :where(thead tr) {
    background: #303334 !important;
    background-image: none !important;
}

/* 8) 主页仪表盘横幅与二维码底盒、分销中心二维码卡、申请页上传框 */
html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    .uc-dashboard-banner,
    .uc-dashboard-qr > a,
    .uc-dashboard-qr > img,
    .uc-agent-center__qrcode,
    .uc-agent-center__avatar,
    .uc-agent-apply__upload-tip,
    .uc-agent-apply__upload-box
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 9) 页脚公众号二维码底盒（二维码图片本体保持可扫描的白色内容） */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .n6-footer-qr {
    background: #303334 !important;
}

/* 10) 基础资料页小图标底色 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    #ucenter_info_page i,
    .uc-info-edit-grid i
) {
    background: #464048 !important;
}

/* 11) 佣金提现发送验证码按钮、退款编辑选中商品与文字色样 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-agent-withdrawal__code-control button,
    .refund-edit-goods-item.is-selected,
    .refund-edit-goods-item:hover,
    .refund-reason-color
) {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
    background-image: none !important;
}

/* ---- 个人中心「全部商品分类」级联菜单（uc-catmenu）暗色适配 ----
 * 浮窗是 div（不命中 sidebar ul 的暗色规则），需显式换深底；
 * 徽标红色要压过 .member_c_l .member_c_t ul li a 的米白 !important；其余对照首页浮窗暗色规范 */
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-panel {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-panel > .uc-catmenu-item > .uc-catmenu-submenu {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .55) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-row {
    color: #d8d0c3 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-row:hover,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-item.is-open > .uc-catmenu-row {
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-item-icon {
    color: #d8d0c3 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-row:hover .uc-catmenu-item-icon,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-item.is-open > .uc-catmenu-row .uc-catmenu-item-icon {
    color: #fff !important;
    background: var(--uccm-hero, linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%)) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-item-arrow {
    color: #8a8294 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-item.is-open > .uc-catmenu-row .uc-catmenu-item-arrow {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group-main a {
    color: #d8d0c3 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group-main a:hover {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group-links a {
    color: #d8d0c3 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group-links a:hover {
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group-links a.is-special {
    color: #ff1a2b !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-notice:has(span) {
    color: #ff1a2b !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-group:not(.uc-catmenu-row-start) .uc-catmenu-group-links {
    border-left-color: rgba(235, 224, 201, .14) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-submenu::-webkit-scrollbar-thumb {
    background: rgba(235, 224, 201, .25) !important;
}

/* Firefox 容器级标准滚动条着色（亮色 thin 已由布局内联规则给出） */
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-panel > .uc-catmenu-item > .uc-catmenu-submenu {
    scrollbar-color: rgba(235, 224, 201, .25) transparent !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu .uc-catmenu-empty {
    color: #8a8294 !important;
}

/* ---- 首页「全部商品分类」浮窗（nh-submenu）暗色补充：悬停高亮芯片换深色、
 * 公告提示行换暗色芯片、虚线分隔与滚动条换暖色（对照 uc-catmenu 暗色规范） ---- */
html[data-yys-theme="dark"] body.n6-page .nh-submenu-links a:hover {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.n6-page .nh-submenu-notice.has-notice {
    color: #ff1a2b !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.n6-page .nh-submenu-group:not(.nh-row-start) .nh-submenu-links {
    border-left-color: rgba(235, 224, 201, .14) !important;
}

html[data-yys-theme="dark"] body.n6-page .nh-submenu::-webkit-scrollbar-thumb {
    background: rgba(235, 224, 201, .25) !important;
}

/* Firefox 暗色滚动条着色（亮色 scrollbar-width: thin 来自 home.css） */
html[data-yys-theme="dark"] body.n6-page .nh-submenu {
    scrollbar-color: rgba(235, 224, 201, .25) transparent !important;
}

/* ---- 惠/新/荐/热 角标（menu_* 浅色贴图）夜间可读性修复 ----
 * 旧贴图为浅色芯片 + 同系彩字，字与芯片底对比度仅 1.68~4.15:1，
 * 夜间深色浮窗上芯片刺眼、字迹发虚；夜间改用同系深色芯片 + 白字
 * （白字对各芯片底对比度均 ≥ 5:1），日间仍用旧系统 menu_*.png 贴图。
 * 覆盖三个夜间换深底的渲染点：首页分类浮窗（home.css）、
 * site-chrome 移动抽屉、个人中心 uc-catmenu 浮窗（ucenter layout 内联样式）。
 * 首页/抽屉链接上的 -webkit-text-fill-color: #ff1a2b 需在 ::after 上显式压回白字。 */
html[data-yys-theme="dark"] body.home #n6-home .nh-submenu-links a.menu_hot::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_hot::after,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-group-links a.n6-menu-hot:after {
    content: '热';
    background-image: none;
    background-color: #c2410c;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
}

html[data-yys-theme="dark"] body.home #n6-home .nh-submenu-links a.menu_new::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_new::after,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-group-links a.n6-menu-new:after {
    content: '新';
    background-image: none;
    background-color: #b91c1c;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
}

html[data-yys-theme="dark"] body.home #n6-home .nh-submenu-links a.menu_con::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_con::after,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-group-links a.n6-menu-con:after {
    content: '荐';
    background-image: none;
    background-color: #15803d;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
}

html[data-yys-theme="dark"] body.home #n6-home .nh-submenu-links a.menu_sale::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_sale::after,
html[data-yys-theme="dark"] body.ucenter-n6-page .uc-catmenu-group-links a.n6-menu-sale:after {
    content: '惠';
    background-image: none;
    background-color: #7c3aed;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
}

/* 移动抽屉角标盒更小（18×11），字号与行高单独收紧 */
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_hot::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_new::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_con::after,
html[data-yys-theme="dark"] body .site-chrome-drawer .n6-mobile-sub-links a.menu_sale::after {
    font-size: 9px;
    line-height: 11px;
    border-radius: 2px;
}

/* ---- 首页「订单合法性审查提示」弹窗（nh-top-notice-dialog）暗色适配 ----
 * body.n6-page 暗色下会把 --n6-purple-2 映射成淡金 #fff1c9（供页面文字强调用），
 * 弹窗按钮 background 引用该变量会变成淡底白字，故按钮固定紫底白字；
 * 弹窗框架与正文同步换深色，对照 uc-catmenu / nh-submenu 暗色规范 */
html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog {
    border-color: rgba(235, 224, 201, .16);
    background: #303334;
    box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .6);
}

html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog .nh-top-notice-body {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog .nh-top-notice-head strong {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog .nh-top-notice-ok,
html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog .nh-top-notice-ok:hover {
    border-color: #5a2e85;
    background: #5a2e85;
    color: #fff;
}

html[data-yys-theme="dark"] body.n6-page .nh-top-notice-dialog .nh-top-notice-ok:hover {
    border-color: #6b3a94;
    background: #6b3a94;
}

/* ---- 支付成功页（order-success）夜间模式补齐 ----
 * 次级按钮、猜您需要面板自带白色表面，标题/面包屑仍是紫色墨色，
 * 深色下文字与背景混在一起；追加暗色面板与金色标题保证对比度。
 * 步骤条夜间样式已内置于 resources/css/pages/checkout-steps.css */
html[data-yys-theme="dark"] body.order-success-page .order-success-recommend {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-breadcrumb strong,
html[data-yys-theme="dark"] body.order-success-page .order-success-recommend-title {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-title {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-title span {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-button:not(.is-primary) {
    border-color: rgba(235, 224, 201, .2) !important;
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-button:not(.is-primary):hover {
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-recommend-item {
    border-color: rgba(235, 224, 201, .14) !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-recommend-item:hover {
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-recommend-item:hover .order-success-recommend-name {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.order-success-page .order-success-recommend-thumb {
    background: #292c2d !important;
}

/* ---- 收货地址页（/ucenter/address）夜间模式补齐 ----
 * 页面 scoped 样式把空状态盒（近白 #fdfbfe）、分页按钮、加载圈写成浅色
 * 表面，编辑弹窗 label 仍是深灰紫墨色、错误提示是浅粉底；夜间面板
 * 已通过通用规则变暗，这些遗漏元素追加暗色表面与可读墨色。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-empty,
    .uc-address-pagination button:not(.is-active)
) {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-pagination-jump,
    .uc-address-jump
) {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-pagination-ellipsis {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-pagination-jump input,
    .uc-address-jump input
) {
    color: #e6e0d5 !important;
    border-color: rgba(235, 224, 201, .24) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-pagination-jump input:focus,
    .uc-address-jump input:focus
) {
    border-color: rgba(243, 223, 177, .6) !important;
    outline-color: rgba(243, 223, 177, .45);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-spinner {
    border-color: #3a3d3d !important;
    border-top-color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-address-form label,
    .uc-address-default-choice
) {
    color: var(--yys-client-secondary-text) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-form-error {
    color: #f0a3ab !important;
    background: #4a3034 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-actions {
    border-top-color: rgba(235, 224, 201, .12) !important;
}

/* “删除”按钮被金色 hover 列表压成金字，又被暗色表面 :not(.is-danger) 刻意
 * 排除，夜间 hover 金字压近白底不可读；按 .uc-address-form-error 先例补
 * 暗红表面与红粉墨色，只命中 .is-danger，不影响相邻金字+暗底的正常按钮。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-actions button.is-danger {
    color: #f0a3ab !important;
    background: #303334 !important;
    border-color: rgba(240, 163, 171, .32) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-actions button.is-danger:hover {
    color: #f0a3ab !important;
    background: #4a3034 !important;
    border-color: rgba(240, 163, 171, .55) !important;
}

/* 通知弹窗夜间换暗底后，基态“×”与正文仍停留在浅色墨（#8a8294/#4a4460 继承）
 * 压暗底不可读；根与关闭按钮补主墨色（正文 span 走继承），hover 沿用金色并
 * 压暗浅色 hover 底。基态故意不加 !important，避免以同特异性靠后覆盖金色 hover。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .yys-modern-notice {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .yys-modern-notice .yys-modern-notice-close {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .yys-modern-notice .yys-modern-notice-close:hover {
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

/* YysUcenterModal“消息”弹窗关闭按钮：基态停留在 Blade 浅色墨 #756981，
 * 夜间压 #303334 暗底不可读；按 .yys-modern-notice-close 先例补主墨色。
 * 基态不加 !important，金色 hover（yys-theme.css:2217，特异性更高）仍获胜。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .yys-ucenter-modal-close {
    color: #e6e0d5;
}

/* 编辑弹窗表单 <footer> 内的取消按钮被全站金字 sweep 的 footer 排除项挡住，
 * 夜间保持 #665a70 压暗底不可读；单独补金色墨色（用字面值便于 jsdom 断言）。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .uc-address-secondary {
    color: #f3dfb1 !important;
}

/* =====================================================================
 * 2026-11 全站暗色模式审计补齐。
 * 以下规则对应真实浏览器（Chromium，1440x900，逐页滚动）计算样式
 * 审计后仍不达标的页面：
 *  1) legacy 内容页残留白色卡面（团购/特卖/热销/网站地图/找回密码）
 *  2) 暗底配暗字（商品价 #8a5c20 系、ucenter 仪表盘/积分/提现/支付密码等固定墨色）
 *  3) ucenter 白色浮层（分销申请表单、列设置菜单、企业认证行业芯片）
 *  4) sm 页琥珀按钮与分类徽章、商家中心登录页、空购物车按钮
 * 色板沿用本文件既有规范：#303334 面板、#3a3d3d 次级、#4a4034 琥珀、
 * #e6e0d5 主文字、#f3dfb1 金色强调。
 * ===================================================================== */

/* ---- 1) legacy-modern 内容页 ----
 * 表格本体 #fff 白底（含圆角边框），sitemap 等整表发白 */
html[data-yys-theme="dark"] .legacy-modern-main table {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

/* 表格表头（#f5f0f8 !important）在暗色下保持浅紫底，配提亮文字不可读 */
html[data-yys-theme="dark"] .legacy-modern-main table th {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #f3dfb1 !important;
    background: #303334 !important;
}

/* 棕色价格文字（#8a5c20 !important）压在暗色卡面上一片模糊 */
html[data-yys-theme="dark"] .legacy-modern-main .product-price,
html[data-yys-theme="dark"] .legacy-modern-main .content_price p:last-child,
html[data-yys-theme="dark"] .legacy-modern-main .content-recommend-list .product-price {
    color: #f3dfb1 !important;
}

/* 商品图区域白底（含“好评率”说明文字） */
html[data-yys-theme="dark"] .legacy-modern-main .product-list .left-block {
    border-color: rgba(235, 224, 201, .12) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] .legacy-modern-main .product-list .left-block p {
    color: #d1c9bd !important;
}

/* ---- 2) 团购页（groupon / groupon_list，blade 内联白卡） ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .groupon-page :is(
    .groupon-card,
    .groupon-side-card,
    .groupon-notice,
    .groupon-empty,
    .groupon-price-panel,
    .groupon-subscribe input,
    .groupon-history-item
) {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .groupon-page :is(
    .groupon-card-title,
    .groupon-side-card h3,
    .groupon-notice strong,
    .groupon-price strong
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .groupon-page :is(
    .groupon-intro,
    .groupon-notice,
    .groupon-empty,
    .groupon-history-item p,
    .groupon-subscribe input
) {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .groupon-page .groupon-subscribe button {
    color: #fff !important;
    background: #4a2375 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .groupon-history-page .history-empty {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #303334 !important;
    background-image: none !important;
}

/* ---- 3) 特卖专区（sale，blade .box 白底分区） ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .sale-section.box {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .sale-section :is(strong, .title, .title3) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .sale-section :is(p, a, s, span) {
    color: #d1c9bd !important;
}

/* ---- 4) 找回密码（recovery-legacy-page 是内容包裹 div，白卡与浅紫按钮） ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .recovery-legacy-page .find_container {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .recovery-legacy-page :is(
    .btn-yanzheng:not(.dark_button):not(:disabled),
    .find_phone_input li:nth-last-child(1) a:not(.home)
) {
    border-color: rgba(243, 223, 177, .24) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .recovery-legacy-page .find_process_h {
    color: #f3dfb1 !important;
}

/* 表单字段标签（--recovery-ink 紫墨固定色）与说明文字 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .recovery-legacy-page :is(
    .find_phone_input li > span:first-child,
    .find_phone_input li > p
) {
    color: #d1c9bd !important;
}

/* ---- 4b) 企业信息维护页（/ucenter/company）：地图空态浮层与 Leaflet 残留 ----
 * 地图瓦片加载失败时空态浮层 rgba(250,248,251,.94) 配提亮金字不可读；
 * 定位按钮 #fff、Leaflet 容器 #ddd 与版权条 rgba(255,255,255,.8) 同为浅色残留 */
html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .uc-company-map-empty {
    border-color: rgba(235, 224, 201, .16);
    color: #d1c9bd !important;
    background: rgba(58, 61, 61, .96) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .uc-company-map-empty strong {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .uc-company-map-empty button {
    border-color: rgba(243, 223, 177, .24) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .uc-company-locate {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .leaflet-container {
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page :is(
    .leaflet-control-attribution,
    .leaflet-bar a
) {
    border-color: rgba(235, 224, 201, .16);
    color: #b8b1a5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_company_page .leaflet-control-attribution a {
    color: #f3dfb1 !important;
}

/* ---- 5) ucenter 固定墨色文字在暗色面板上的残留 ----
 * 仪表盘空态与推荐价（#5b5167 / #b05273） */html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-empty strong {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-recommend-item b {
    color: #f3dfb1 !important;
}

/* 基础资料余额（#b04f38 压在暖金渐变上）与红色企业认证按钮 */
html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_info_page .uc-info-balance {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_info_page .uc-info-balance strong {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_info_page .user_authentication .apply_certification .enterprise_btn,
html[data-yys-theme="dark"] body.ucenter-n6-page #ucenter_info_page .user_authentication .apply_certification .enterprise_btn:hover {
    color: #fff !important;
}

/* 积分兑换/代金券页说明文字（#666 压暗底）与表格墨色 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .integral-page .integral-prompt,
    .integral-page .integral-table th,
    .integral-page .integral-table td,
    .integral-page .integral-redeem td,
    .integral-page .integral-panel
) {
    border-color: rgba(235, 224, 201, .14) !important;
    color: #d1c9bd !important;
    background: #3a3d3d !important;
    background-image: none !important;
}

/* 提现页：账户信息卡（#292929 压 #4a4034）与温馨提示（#474747 / #666） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content #ucenter-cash-withdrawal-app .user_info,
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content #ucenter-cash-withdrawal-app .user_info p {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content #ucenter-cash-withdrawal-app :is(
    .withdrawal_tips,
    .withdrawal_operation p,
    .withdrawal_operation span
) {
    color: #d1c9bd !important;
}

/* 支付密码设置页：行说明与标题提示（#333 / #666 压暗底） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    #ucenter-paycode-app .paycode-card-title span,
    #ucenter-paycode-app .paycode-row,
    #ucenter-paycode-app .paycode-row p,
    #ucenter-paycode-app .paycode-row span
) {
    color: #d1c9bd !important;
}

/* 项目列表「刷新列表」等按钮（#5b4965 压暗底）与积分分页按钮 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-project-list-header button,
    .uc-project-list-state button,
    .uc-project-list-pagination button,
    .uc-project-list-actions button,
    .integral-pagination button:not(.is-active)
) {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 消息中心「刷新」按钮（#6d5e76 压暗底） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-short-message-panel > header button,
    .uc-complain-panel > header > button
) {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 开票列表「发票状态说明」白金渐变底与 #765329 墨色 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content .uc-invoice-list-note {
    border-color: rgba(243, 223, 177, .24) !important;
    background: #4a4034 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    .uc-invoice-list-note strong,
    .uc-invoice-list-note-icon
) {
    color: #f3dfb1 !important;
}

/* 投诉建议空态图标徽章（金色图标压浅紫底） */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content .uc-complain-empty > span {
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

/* 全部消息：正文灰紫（#756a80）与内联黑字（font/old span）压暗底 */
html[data-yys-theme="dark"] body.ucenter-n6-page .ucenter-n6-content :is(
    #ucenter_all_message_page .content,
    #ucenter_all_message_page .content span,
    #ucenter_all_message_page .content p,
    #ucenter_all_message_page .content font
) {
    color: #d1c9bd !important;
}

/* ---- 6) ucenter 白色浮层残留 ----
 * 分销申请表单（rgba(255,255,255,.96) 卡面与 #fff 输入框） */
html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    .uc-agent-apply__form,
    .uc-agent-apply__status,
    .uc-agent-apply__grid input,
    .uc-agent-apply__grid select
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 分销列表列设置浮层（summary 与菜单、粘性列 #fff/#fcf9fd） */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-distribution-column-picker summary,
    .uc-distribution-column-menu,
    .uc-distribution-column-menu label
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .uc-distribution-table-wrap th.uc-distribution-operation-column,
    .uc-distribution-table-wrap td.uc-distribution-operation-column,
    .uc-distribution-selection-column,
    .uc-distribution-index-column,
    .uc-distribution-order-column,
    .uc-distribution-toolbar
) {
    border-color: rgba(235, 224, 201, .12) !important;
    background: #303334 !important;
    background-image: none !important;
}

/* 企业认证：行业芯片（#fff/#f5effa li）与证件预览底盒（#faf8fc） */
html[data-yys-theme="dark"] body.ucenter-n6-page :is(
    .uc-cert-industry li,
    .uc-cert-industry li.is-selected,
    .uc-cert-preview
) {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-cert-industry li.is-selected {
    border-color: rgba(243, 223, 177, .34) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .uc-cert-preview {
    border-style: dashed;
    color: #d1c9bd !important;
}

/* ---- 7) sm 页：琥珀「立即充值」提交按钮 ---- */
html[data-yys-theme="dark"] body.sm-page .sm-recharge-submit {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
    box-shadow: none !important;
}

/* ---- 8) 商家中心登录页（/seller → systemseller）：固定 Tailwind 墨色 ---- */
html[data-yys-theme="dark"] body.seller-login-page .topbar strong {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.seller-login-page :is(
    .panel span, .panel p, .panel label, .topbar span
) {
    color: #b8b1a5 !important;
}

html[data-yys-theme="dark"] body.seller-login-page .switch-links :is(a, span),
html[data-yys-theme="dark"] body.seller-login-page .helper-links a {
    color: #f3dfb1 !important;
    background: #303334 !important;
}

/* ---- 9) 空购物车「去逛逛」按钮：金字压琥珀底不可读 ---- */
html[data-yys-theme="dark"] body.cart-page .cart-v2-shell .cart-v2-empty a {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* ---- 10) legacy 富文本内联黑字（font/#000）兜底 ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    main, .legacy-modern-main, .ucenter-n6-content
) :is([style*="color:#000" i], [style*="color: #000" i],
      [style*="color:black" i], [style*="color: black" i],
      [style*="color:rgb(0, 0, 0" i]) {
    color: #e6e0d5 !important;
}

/* ---- 夜间模式全站前台页脚：暗色背景 + 白色文字 ----
 * 日间模式页脚保持紫色背景 + 白色文字（site-chrome.css 与上方浅色规则）；
 * 夜间模式切换为纯黑起步的暗色底，文字同为白色系（主文字全白、辅助半透明）。
 * 选择器用 #site-footer 复合 ID 提高优先级：压过上方「品牌金字」规则的
 * ID 级 :is() specificity（其参数含 #ucenter_* 页面 ID，裸 h4 会被染金），
 * 也压过首页 home.css 的夜间金字规则与各页面局部样式。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #site-footer.n6-footer.site-chrome-footer {
    color: rgba(255, 255, 255, .82) !important;
    background: linear-gradient(165deg, #000000 0%, #2a2c2f 55%, #2e3032 100%) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #site-footer.n6-footer.site-chrome-footer :is(
    h4, a, .n6-footer-contact strong, .n6-footer-bottom-copy a
) {
    color: #fff !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #site-footer.n6-footer.site-chrome-footer :is(
    .n6-footer-contact small, .n6-footer-caption, .n6-footer-bottom, .n6-footer-custom
) {
    color: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #site-footer.n6-footer.site-chrome-footer .n6-footer-custom :where(
    p, span, div, strong, small
) {
    color: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #site-footer.n6-footer.site-chrome-footer .n6-footer-bottom {
    border-top-color: rgba(255, 255, 255, .12) !important;
}

/* ---- 发票抬头管理页（/ucenter/administer_list，Vue 挂载点 #ucenter-invoice-title-app）双主题修复 ----
 * 此前页面徽章未被「浅色徽章加深底色」块覆盖（金字落在浅底上），
 * .uc-title-editor 弹窗面板未被任何暗色表面扫描命中（保持白底），
 * 「取消」按钮被灰紫文字补偿 (1,2,2) 压过金字紫底 background-clip (0,3,2)（日间发糊）。
 * 以下规则统一用页面挂载点 ID 提高特异性，并置于文件末尾以在同级 !important 竞争中获胜；
 * 选择器严格限定 uc-title- 前缀，不影响旧 invoicing 页的 .uc_title（下划线）类。
 * 补充：末尾 Gecko 回退块（@supports (-moz-appearance:none)）对该行所有按钮统一
 * 设 -webkit-text-fill-color:#f3dfb1，该属性绘制时优先于 color 且此前未被本块覆盖，
 * 导致火狐日间「取消」白底上落浅金字（看不清）、暗色偏离预期文字色；
 * 故规则 4/5 需同时声明 -webkit-text-fill-color 以同属性压制。 */

/* 1) 暗色：列表徽章（普通发票/增值税专用发票/默认抬头）配既有深棕表面，金字前景由上方品牌金字块提供 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-card-top b,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-card-top b.is-special,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-card-top em {
    border-color: rgba(243, 223, 177, .24) !important;
    background-color: #4a4034 !important;
}

/* 2) 暗色：新增/编辑发票抬头弹窗面板转暗色表面，标题与操作区分隔线随之调整 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-editor {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background-color: #303334 !important;
    background-image: none !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-editor h2 {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-editor .uc-title-editor-actions {
    border-top-color: rgba(235, 224, 201, .16) !important;
}

/* 3) 暗色：类型切换标签的浅色边框在暗面板上过亮，压暗至主题分隔线同款 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-type-switch label {
    border-color: rgba(235, 224, 201, .2) !important;
}

/* 4) 明暗通用：「取消」按钮恢复白底紫字次级样式，压过灰紫文字补偿与金字紫底 background-clip；
 *    -webkit-text-fill-color 同步压制 Gecko 回退块的浅金字（火狐日间白底金字发糊） */
html[data-yys-theme] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-editor-actions button:first-child {
    color: #5b4965 !important;
    -webkit-text-fill-color: #5b4965 !important;
    border: 1px solid #e9e1ef !important;
    background-color: #fff !important;
    background-image: none !important;
    background-clip: border-box !important;
}

/* 5) 暗色：「取消」按钮随弹窗面板转暗色表面（特异性同级、位置在后，覆盖上一条日间值）；
 *    -webkit-text-fill-color 同步压制 Gecko 回退块的浅金字 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter-invoice-title-app .uc-title-editor-actions button:first-child {
    color: #e6e0d5 !important;
    -webkit-text-fill-color: #e6e0d5 !important;
    border-color: rgba(235, 224, 201, .24) !important;
    background-color: #3a3d3d !important;
}

/* ---- 10) sm 页「立即购买」按钮：夜间改为紫底白字（issue #2303）----
 * 上方大分组选择器（:where/:is 列表）以 !important 强制 .sm-product-action 及其
 * svg 文字为金色 #f3dfb1，且其 :is() 因含 ID 级参数特异性更高，普通 CSS 无法覆盖。
 * 这里以同强度规则（位置在后）整体接管按钮：夜间改为与云盘分页选中态同款的
 * 紫色渐变（linear-gradient(120deg, #4a2375, #8050a3)）+ 白字，替代早期红底方案，
 * 与页面日间「按钮 = 分页器选中色」的设计意图保持一致；
 * 白字需同时声明 color 与 -webkit-text-fill-color（属性绘制优先级更高，
 * 防止其他 !important 或 Gecko 回退块把金字压回来）；svg 箭头随文字压白；
 * 焦点描边由 Blade 的深紫 --sm-page-active 提亮为夜紫，保证暗底可见。 */
html[data-yys-theme="dark"] body.sm-page .sm-product-action {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
    background-image: linear-gradient(120deg, #4a2375, #8050a3) !important;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .55) !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-product-action:hover {
    background: linear-gradient(120deg, #5a2d8f, #9264b3) !important;
    background-image: linear-gradient(120deg, #5a2d8f, #9264b3) !important;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .65) !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-product-action svg {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-product-action:focus-visible {
    outline-color: rgba(201, 168, 224, .55);
}

/* ---- 10a) sm 页分页器夜间适配（issue #2303）----
 * 大分组（背景 #303334 / 金字，特异性 (0,3,2)）压过 Blade 里 .is-active 的
 * 紫色选中规则 (0,3,1)，导致夜间页码选中态与未选中完全一样。这里用
 * (0,4,1) 的复合选择器恢复可见选中态：与「立即购买」按钮同款紫渐变，
 * 维持 gjx 确认的「按钮 = 分页器选中色」关系；悬停沿用全站夜间的
 * 金字 + 浅紫描边语言（同云盘分页悬停）。 */
html[data-yys-theme="dark"] body.sm-page .sm-page-button.is-active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
    background-image: linear-gradient(120deg, #4a2375, #8050a3) !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-page-button:hover:not(:disabled) {
    color: #f3dfb1 !important;
    border-color: rgba(201, 168, 224, .42) !important;
}

/* ---- 10b) sm 页分页器「每页 N 条」「前往 X 页」控件夜间适配（issue #2303）----
 * Blade 中这些输入框与「确定」按钮为硬编码白底 + 深紫字，夜间无任何覆盖，
 * 形成分页条上刺眼的白色残留。按全站夜间色板转换：内嵌区 #292c2d 输入底、
 * 交互面 #3a3d3d 按钮底、悬停 #414444、正文 #e6e0d5、金色描边强调，
 * 焦点态与云盘分页输入一致（金描边，去掉夜间不可见的浅紫 ring）。 */
html[data-yys-theme="dark"] body.sm-page :is(.sm-page-size input, .sm-page-jump input) {
    color: #e6e0d5 !important;
    border-color: rgba(235, 224, 201, .24) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.sm-page :is(.sm-page-size input, .sm-page-jump input):focus {
    border-color: rgba(243, 223, 177, .6) !important;
    box-shadow: none !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-page-jump button {
    color: #e6e0d5 !important;
    border-color: rgba(235, 224, 201, .24) !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-page-jump button:hover:not(:disabled) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .5) !important;
    background: #414444 !important;
}

/* ============================================================
 * Firefox fallback for the gold-on-purple two-layer rules above.
 * Gecko cannot clip multi-layer backgrounds when one value is
 * `text` (bugzil.la/1481498): the gold layer then paints the whole
 * box (yellow) while the transparent text disappears. This block
 * is Gecko-only (@supports (-moz-appearance:none) never matches in
 * Chromium/Safari): repaint each box with its own purple layer(s)
 * only and render the text as solid light gold, so Firefox users
 * get the same purple tone as other browsers with readable text.
 * Chromium/Safari keep the real gradient-text rendering above.
 * ============================================================ */
@supports (-moz-appearance: none) {
    html[data-yys-theme] body[data-yys-area="frontend"].cart2-page .introjs-tooltip.intro-tooltip .introjs-nextbutton {
        background-image: linear-gradient(#3d1e58, #3d1e58) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].cart2-page #new_order_confirm .cart2-factory-header > div {
        background-image: linear-gradient(120deg, #4a2375, #8e5ba6) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].cart2-page #new_order_confirm .cart2-delivery-trigger span {
        background-image: linear-gradient(135deg, #4a2375, #8252a2) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .product-cart-dialog .product-cart-dialog-actions .product-cart-dialog-primary {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-address-primary {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-center__available a {
        background-image: var(--uc-agent-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-apply__reapply {
        background-image: var(--uc-apply-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-apply__submit {
        background-image: var(--uc-apply-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-agent-info__submit {
        background-image: var(--uc-info-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-archives-button.is-primary {
        background-image: linear-gradient(135deg, var(--uc-archives-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-distribution-deliver {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .add-new-invoice button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-cert-card-index {
        background-image: linear-gradient(var(--ucenter-n6-purple, #3d1e58), var(--ucenter-n6-purple, #3d1e58)) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] label.uc-cert-upload-button {
        background-image: linear-gradient(var(--ucenter-n6-purple, #3d1e58), var(--ucenter-n6-purple, #3d1e58)) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-toolbar button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-state button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-title-editor-actions button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-recharge-balance-items b {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-recharge-submit {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .primary-button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .action-primary {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .refund-reason-link-form button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .refund-edit-submit {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_customer_order_page .uc-customer-order-button.is-primary {
        background-image: linear-gradient(135deg, var(--uc-customer-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_customer_order_page .uc-customer-order-pagination button.is-current {
        background-image: var(--uc-customer-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-button.is-primary {
        background-image: linear-gradient(135deg, var(--uc-oq-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_order_query_page .uc-oq-paging-buttons button.is-current {
        background-image: var(--uc-oq-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_quote_price_statistics_page .uc-quote-button.is-primary {
        background-image: linear-gradient(135deg, var(--uc-quote-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_quote_price_statistics_page .uc-quote-code-link {
        background-image: linear-gradient(135deg, var(--uc-quote-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_urgent_card_page .uc-urgent-card-button.is-primary {
        background-image: linear-gradient(135deg, var(--uc-urgent-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_urgent_card_page .uc-urgent-card-action.is-issue {
        background-image: linear-gradient(135deg, var(--uc-urgent-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-primary {
        background-image: var(--wangpan-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-dialog .is-primary {
        background-image: var(--wangpan-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-uploadDialog footer button:first-child {
        background-image: var(--wangpan-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #app.batch-index-app #customButton {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar .el-button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #batchmanagement .batch-management-summary .el-button {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .cart-v2-factory-name {
        background-image: var(--cart-v2-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-payment-button {
        background-image: linear-gradient(120deg, var(--cart3-purple), var(--cart3-purple-2)) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].cart3-page .cart3-payment-dialog-actions button:last-child {
        background-image: var(--cart3-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .arrival-notice-page button {
        background-image: linear-gradient(#6c3a96, #6c3a96) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .n_p_list_btn a {
        background-image: linear-gradient(#6c3a96, #6c3a96) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].notice-page .notice-pagination-link.is-current {
        background-image: var(--notice-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-tree-item.is-current > .help-tree-row {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-page-current {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-button.is-primary {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-tree-item.is-current > details > summary {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-tree-item.is-current > .help-tree-row {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].help-page .help-page-current {
        background-image: var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].pay-page .pay-summary {
        background-image: var(--pay-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].pay-page .pay-method.is-selected .pay-method-check {
        background-image: var(--pay-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .order_new_title {
        background-image: linear-gradient(120deg, #3d1e58, #6c3a96) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .two_word_r {
        background-image: linear-gradient(120deg, #4a2375, #8e5ba6) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .order_list_lsk .four_word {
        background-image: linear-gradient(120deg, #4a2375, #8e5ba6) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .uc-order-actions button.two_word_r {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-order-actions button.four_word {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_account_log_page .account-log-pagination #page > ul > li.xl-jumpButton {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_all_message_page #page > ul > li.xl-jumpButton {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_company_page .uc-company-submit-bar button {
        background-image: var(--uc-company-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page .ucenter-sidebar .purpose h2 {
        background-image: linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #member_homepage .uc-home-collect-dialog footer button[type="submit"] {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-primary-action {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-secondary-action {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-page #ucenter_info_page .uc-info-form-footer button {
        background-image: linear-gradient(120deg, #4e2770, #8050a3) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .uc-inviter-list__form button {
        background-image: var(--uc-inviter-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card-side {
        background-image: linear-gradient(145deg, var(--uc-ticket-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_redpacket_page .uc-redpacket-link.is-primary {
        background-image: linear-gradient(120deg, var(--redpacket-purple-dark), #704092) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_redpacket_page .uc-redpacket-value {
        background-image: linear-gradient(145deg, var(--redpacket-purple), #754498) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #ucenter_ticket_center_page .ticket-center-card {
        background-image: linear-gradient(135deg, #4e2770, #8b5ba6) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] #uploadButton {
        background-image: linear-gradient(#4e2770, #4e2770) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"] .n6-rank-side h3 {
        background-image: var(--n6-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .help-hero {
        background-image: radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 30%), var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].order-success-page .order-success-hero {
        background-image: radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 30%), var(--help-hero) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].search-page .search-summary {
        background-image: linear-gradient(#4a2375, #4a2375) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage .uc-home-banner-empty a {
        background-image: var(--uc-home-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
    html[data-yys-theme] body[data-yys-area="frontend"].ucenter-n6-home-page #member_homepage.uc-dashboard .uc-dashboard-banner.is-empty a {
        background-image: var(--uc-dashboard-purple) !important;
        background-clip: border-box !important;
        color: #f3dfb1 !important;
        -webkit-text-fill-color: #f3dfb1 !important;
    }
}

/* 网盘管理页（/ucenter/wangpan）夜间模式修复：
 * 1) 删除确认弹窗的“取消”按钮原样继承组件内亮色样式（白底 + var(--wangpan-muted) 金字），
 *    夜间模式下金字压白底几乎不可读；保持深色面板底 + 金字，与上传弹窗底部按钮一致。
 * 2) 列表数据行分隔线原先只有偶数行被夜间主题覆盖为暗金色，奇数行仍是最亮的
 *    浅粉线（#f1ebf3），视觉上一粗一细；统一为同一暗金色细线。
 * 选中行（:has(input:checked)）的 .24 高亮边界优先级更高，继续生效。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-dialogActions button:not(.is-primary) {
    color: #f3dfb1 !important;
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_fileDataRow:nth-child(even) {
    border-color: rgba(243, 223, 177, .2) !important;
}

/* 网盘页主按钮（上传文件 / 删除确认“确认” / 上传弹窗“确定”）：
 * 去掉“透明文字 + background-clip: text 金色渐变”处理——不支持无前缀
 * background-clip: text 的浏览器会丢弃该声明但保留 color: transparent，
 * 按钮退化成浅金底 + 透明文字，“上传文件”完全看不见。统一改为纯紫色底
 * + 实色金字，与文件尾部 Gecko 降级块的既有取值保持一致。 */
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-primary,
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-dialog .is-primary,
html[data-yys-theme] body[data-yys-area="frontend"] .skyDrive-uploadDialog footer button:first-child {
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
    background: var(--wangpan-purple) !important;
    background-clip: border-box !important;
}

/* ---- 网盘管理页（/ucenter/wangpan）夜间模式补齐（第二轮）----
 * 反馈：① 主按钮纯紫底（#4e2770）与暗色页面贴在一起看不清，弹窗标题
 * “删除确认”用的深紫 --wangpan-purple-dark 同理；② “删除/失效”的暗粉
 * #a34f70 色调不对；③ 分页按钮组件内仍是白底，夜间被压暗后金字发灰，
 * 禁用态（上一页/下一页）几乎看不见。按站点夜间惯例补齐：主按钮用品牌紫
 * 渐变（#4e2770 → #754498）+ 金字，分页/次级用 #303334 深色芯片 + 暖金
 * 描边并把禁用态透明度提高到 .7，危险文字统一提亮为 #e8aec0。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .skyDrive-primary,
    .skyDrive-search button,
    .skyDrive-dialog .is-primary,
    .skyDrive-uploadDialog footer button:first-child
) {
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
    background: linear-gradient(135deg, var(--wangpan-purple), #754498) !important;
    background-clip: border-box !important;
    border-color: transparent !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .skyDrive-dialog h2,
    .skyDrive-uploadDialog h2
) {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-dialog p {
    color: #e6dccb !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .skyDrive_deleteButton,
    .skyDrive_bulkDelete,
    .skyDrive_invalid,
    .skyDrive_state.is-error
) {
    color: #e8aec0 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_deleteButton:hover {
    background: #453039 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] :is(
    .skyDrive-toolbar,
    .skyDrive-uploadDialog header,
    .skyDrive-uploadDialog footer
) {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-search input {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-search input::placeholder {
    color: #8f897f !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive_state button {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination {
    border-top-color: rgba(243, 223, 177, .2) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination button {
    border-color: rgba(235, 224, 201, .24) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination button:disabled {
    opacity: .7 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination button:hover:not(:disabled):not(.is-active) {
    color: #f3dfb1 !important;
    border-color: rgba(201, 168, 224, .42) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination button.is-active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(120deg, #4a2375, #8050a3) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination-jump {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination-jump input {
    color: #e6e0d5 !important;
    border-color: rgba(235, 224, 201, .24) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] .skyDrive-pagination-jump input:focus {
    border-color: rgba(243, 223, 177, .6) !important;
    outline-color: rgba(243, 223, 177, .45);
}

/* ---- 帮助中心富文本夜间补齐（rgb 格式内联颜色）----
 * /help-index.html?cid=82 等分类（show_style=1）和 /help-index.html/detail/{id}
 * 渲染旧编辑器富文本。上文 2143 行附近的窄域扫描只匹配 #000/#666 等 16 进制字面量，
 * 而存量文章大量使用 rgb(89,89,89)、rgb(102,102,102)、rgb(0,0,0) 等函数格式，
 * 夜间深色卡片上正文保持暗色墨，与背景同色调不可读。
 * 此处按站点夜间惯例补齐：任意内联 color 统一回钉到卡片墨色，再按语义恢复
 * 红绿蓝橙强调色；白色文字通常位于彩色底（如红色横幅单元格）上，保持白色。
 * 白色/浅灰单元格背景与 bgcolor 属性压成暗面，黄色高亮压成暗琥珀底。
 * 仅作用于 body.help-page .help-rich，不影响日间模式和其他页面。 */

html[data-yys-theme="dark"] body.help-page .help-rich [style*="color:" i] {
    color: #d1c9bd !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#fff" i], [style*="color: #fff" i],
    [style*="color:white" i],
    [style*="color:rgb(255,255,255)" i], [style*="color: rgb(255,255,255)" i]
) {
    color: #fff !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#e53333" i], [style*="color: #e53333" i],
    [style*="color:rgb(229,51,51)" i], [style*="color: rgb(229,51,51)" i],
    [style*="color:rgb(255,0,0)" i], [style*="color: rgb(255,0,0)" i],
    [style*="color:rgb(240,20,20)" i], [style*="color: rgb(240,20,20)" i],
    [style*="color:rgb(192,0,0)" i], [style*="color: rgb(192,0,0)" i],
    [style*="color:red" i]
) {
    color: #ff9c9c !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#00b050" i], [style*="color: #00b050" i],
    [style*="color:#006600" i], [style*="color: #006600" i],
    [style*="color:rgb(0,176,80)" i], [style*="color: rgb(0,176,80)" i],
    [style*="color:rgb(0,102,0)" i], [style*="color: rgb(0,102,0)" i],
    [style*="color:green" i]
) {
    color: #7ddba5 !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#337fe5" i], [style*="color: #337fe5" i],
    [style*="color:#003399" i], [style*="color: #003399" i],
    [style*="color:rgb(51,127,229)" i], [style*="color: rgb(51,127,229)" i],
    [style*="color:rgb(0,112,192)" i], [style*="color: rgb(0,112,192)" i],
    [style*="color:rgb(0,176,240)" i], [style*="color: rgb(0,176,240)" i],
    [style*="color:rgb(0,51,153)" i], [style*="color: rgb(0,51,153)" i],
    [style*="color:rgb(75,172,198)" i], [style*="color: rgb(75,172,198)" i],
    [style*="color:blue" i]
) {
    color: #7ab5f5 !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="color:#e36c09" i], [style*="color: #e36c09" i],
    [style*="color:rgb(227,108,9)" i], [style*="color: rgb(227,108,9)" i],
    [style*="color:orange" i]
) {
    color: #ffab5e !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    td[bgcolor], th[bgcolor],
    [style*="background:#fff" i], [style*="background: #fff" i],
    [style*="background-color:#fff" i], [style*="background-color: #fff" i],
    [style*="background:rgb(255,255,255)" i], [style*="background: rgb(255,255,255)" i],
    [style*="background-color:rgb(255,255,255)" i], [style*="background-color: rgb(255,255,255)" i],
    [style*="background:rgb(245,245,245)" i], [style*="background: rgb(245,245,245)" i],
    [style*="background-color:rgb(245,245,245)" i], [style*="background-color: rgb(245,245,245)" i]
) {
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.help-page .help-rich :is(
    [style*="background:rgb(255,255,0)" i], [style*="background: rgb(255,255,0)" i],
    [style*="background-color:rgb(255,255,0)" i], [style*="background-color: rgb(255,255,0)" i],
    [style*="background:yellow" i], [style*="background-color:yellow" i]
) {
    background: #4a4034 !important;
}

/* ---- 操作成功页（/site/success）夜间模式适配 ----
 * 页面 scoped 样式（resources/views/front/content/partials/site-success-styles.blade.php）
 * 的白色卡片、次级按钮在深色下与背景混在一起；追加暗色面板、金色标题与
 * 可读墨色。页面变量为 --ss-*，主按钮随 --ss-hero 渐变自动切换。 */
html[data-yys-theme="dark"] body.site-success-page {
    --ss-ink: #e6e0d5;
    --ss-muted: #aaa497;
    --ss-line: rgba(235, 224, 201, .16);
    --ss-shadow: 0 24px 54px -24px rgba(0, 0, 0, .5);
    --ss-hero: linear-gradient(120deg, #5a2e85 0%, #74429f 55%, #9668ad 100%);
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.site-success-page .site-success-main {
    color: #e6e0d5 !important;
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.site-success-page .site-success-card {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.site-success-page .site-success-title {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.site-success-page .site-success-button:not(.is-primary) {
    border-color: rgba(235, 224, 201, .2) !important;
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.site-success-page .site-success-button:not(.is-primary):hover {
    border-color: rgba(235, 224, 201, .34) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

/* 主按钮文字用实色，不随 order-success 走 background-clip:text 渐变裁切：
 * 该写法（color/text-fill-color: transparent + 多层 var() 背景按字形裁切）
 * 在部分浏览器内核上会连同背景一起失效，导致整颗按钮在日间、夜间都隐形
 * （issue #2547 评论反馈）。改为日间白字、夜间金字（与标题暗色处理同款），
 * 底色继续用页面 scoped 的 --ss-hero 紫渐变，兼容性更好。 */
html[data-yys-theme] body[data-yys-area="frontend"].site-success-page .site-success-button.is-primary {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].site-success-page .site-success-button.is-primary {
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
}

/* ---- 我要评论页（/site/comments/id/*）夜间模式适配 ----
 * 页面 scoped 样式（resources/views/front/goods/partials/comments-styles.blade.php）
 * 的白色卡片在深色下与背景混在一起；追加暗色面板、金色标题与可读墨色。
 * 页面变量为 --gc-*，主按钮与 order-success / site-success 同款金字渐变裁切。 */
html[data-yys-theme="dark"] body.goods-comment-page {
    --gc-ink: #e6e0d5;
    --gc-muted: #aaa497;
    --gc-line: rgba(235, 224, 201, .16);
    --gc-shadow: 0 24px 54px -24px rgba(0, 0, 0, .5);
    --gc-hero: linear-gradient(120deg, #5a2e85 0%, #74429f 55%, #9668ad 100%);
    background: #242628 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-card,
html[data-yys-theme="dark"] body.goods-comment-page .gc-form-card {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-crumb a,
html[data-yys-theme="dark"] body.goods-comment-page .gc-crumb-pipe {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-crumb a:hover,
html[data-yys-theme="dark"] body.goods-comment-page .gc-crumb-current,
html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-name,
html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-name a:hover,
html[data-yys-theme="dark"] body.goods-comment-page .gc-field-label {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-card-sub,
html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-note,
html[data-yys-theme="dark"] body.goods-comment-page .gc-upload-tip {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-price,
html[data-yys-theme="dark"] body.goods-comment-page .gc-rating-hints span {
    color: #e6b86a !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-goods-figure {
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-star-icon {
    color: rgba(235, 224, 201, .25) !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-star:has(input:checked) .gc-star-icon,
html[data-yys-theme="dark"] body.goods-comment-page .gc-star:has(input:checked) ~ .gc-star .gc-star-icon {
    color: #efa95a !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-textarea {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-textarea:focus {
    border-color: #9668ad !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-upload-btn {
    border-color: rgba(235, 224, 201, .2) !important;
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gc-upload-btn:hover {
    border-color: rgba(235, 224, 201, .34) !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

/* 主按钮（去购买 / 发表评价）：实色文字 + 单层 hero 渐变底（border-box 裁切）。
 * 此前为金字 background-clip:text 双层裁切（文字透明），且选择器
 * html[data-yys-theme] 未限定 ="dark"，日间同样命中；Firefox 无法裁切多层
 * 背景（bugzil.la/1481498），金色层整块涂满按钮、文字不可见（issue #2518
 * 评论反馈）。改为日间白字、夜间金字实色（与 order-success / site-success
 * 主按钮既有修复同款），单层 --gc-hero 夜间值由上方暗色变量块覆盖，
 * !important + 同特异性保证压过暗色通用锚点色与 -webkit-text-fill-color。 */
html[data-yys-theme] body[data-yys-area="frontend"].goods-comment-page .gc-buy-button,
html[data-yys-theme] body[data-yys-area="frontend"].goods-comment-page .gc-submit {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-image: var(--gc-hero) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"].goods-comment-page .gc-buy-button,
html[data-yys-theme="dark"] body[data-yys-area="frontend"].goods-comment-page .gc-submit {
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
}

/* ---- 商品评价列表页（/site/comments_list/id/*）夜间模式追加（issue #2518
 * 评论反馈：评论模块宽屏重构）。列表卡与评价条目、筛选、分页沿用
 * comments-list-styles 的 gcl-* 命名，暗面配色与我要评论页暗色面板一致。 */
html[data-yys-theme="dark"] body.goods-comment-page .gc-list-card {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-score-value,
html[data-yys-theme="dark"] body.goods-comment-page .gcl-score-stars-on,
html[data-yys-theme="dark"] body.goods-comment-page .gcl-stars {
    color: #e6b86a !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-score-stars-off {
    color: rgba(235, 224, 201, .25) !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-score-total,
html[data-yys-theme="dark"] body.goods-comment-page .gcl-time,
html[data-yys-theme="dark"] body.goods-comment-page .gcl-empty,
html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-summary {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-author {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-contents {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-item {
    border-bottom-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-avatar img,
html[data-yys-theme="dark"] body.goods-comment-page .gcl-image {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-filter {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #aaa497 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-filter:hover {
    border-color: #9668ad !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-filter.is-active {
    border-color: transparent !important;
    color: #f3dfb1 !important;
    background-image: var(--gc-hero) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .gcl-paginator {
    border-top-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-item {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #aaa497 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-item:hover {
    border-color: #9668ad !important;
    color: #f3dfb1 !important;
    background: #4a4034 !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-item.is-current {
    border-color: transparent !important;
    color: #f3dfb1 !important;
    background-image: var(--gc-hero) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-item.is-disabled {
    color: #aaa497 !important;
    background: #292c2d !important;
    opacity: .55;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-item.is-gap {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-jump input[type="number"] {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #e6e0d5 !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.goods-comment-page .category-paginator-jump button {
    border: 0 !important;
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
    background-image: var(--gc-hero) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

/* 评论模块页标题（.gc-purple-text）夜间适配：日间紫色渐变裁切在深色
 * 卡片上对比度不足，夜间改实色浅紫保证可读（issue #2518 评论反馈：
 * 标题由金黄改紫；实色覆盖与主按钮既有修复同款）。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"].goods-comment-page .gc-purple-text {
    background-image: none !important;
    color: #d9bdf0 !important;
    -webkit-text-fill-color: #d9bdf0 !important;
}

/* 我的卡券页（/ucenter/my_ticket）卡券侧栏夜间显式规则：按 -card 子串通配的
 * #303334 暗面规则（1215、1298 行起）会命中 .uc-ticket-card-side 及其内层
 * 文字元素，导致夜间"优惠券/¥1.00"文字块各带黑底叠在紫渐变侧栏上（issue #2502）。
 * 这里显式保证侧栏为紫渐变底 + 金字，并清空内层文字元素自身背景；
 * 实色处理与 Gecko 降级块同款，规避 background-clip:text 内核兼容性问题。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card-side {
    background: linear-gradient(145deg, var(--uc-ticket-purple), #754498) !important;
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card-side :is(
    .uc-ticket-card-side-label,
    .uc-ticket-card-value,
    .uc-ticket-card-value-main,
    .uc-ticket-card-value-decimal
) {
    background: transparent !important;
    background-image: none !important;
    color: #f3dfb1 !important;
    -webkit-text-fill-color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card.is-gift .uc-ticket-card-side {
    background: linear-gradient(145deg, #8b5ba6, #b47bbd) !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #ucenter_ticket_page .uc-ticket-card.is-urgent .uc-ticket-card-side {
    background: linear-gradient(145deg, #bd7d32, #e5ad5d) !important;
}

/* =====================================================================
 * 批量下单工作台（/batch/quick_order_list）夜间模式
 * 外层工作台 + 批量下单 iframe（batch/index）+ 批量管理 iframe（batch/list）。
 * 两个 iframe 现已引入 yys-theme.css/js 并声明 body[data-yys-area="frontend"]，
 * 本节规则与页面内日间样式同源 scoped，!important + html/body 前缀保证
 * 覆盖 Blade 部分里的日间硬编码（含 !important 声明）。
 * ===================================================================== */

/* iframe 的 html 元素底色：partial 里 html,body{background:#f5f2f7 !important}
 * 会露出日间浅底接缝，这里给夜间文档统一深底（不影响日间）。 */
html[data-yys-theme="dark"] {
    background-color: #242628 !important;
}

/* ---- 外层工作台骨架 ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace {
    background:
        radial-gradient(760px 460px at 96% -8%, rgba(142, 91, 166, .18), transparent 62%),
        radial-gradient(680px 480px at -10% 24%, rgba(74, 35, 117, .14), transparent 58%),
        #1e2021;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-sidebar {
    border-right-color: rgba(243, 223, 177, .14);
    background: #26282a;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-sidebar-heading strong,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-sidebar-note p {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-sidebar-heading small,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-sidebar-note {
    border-top-color: rgba(243, 223, 177, .14);
    color: #9b958d;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-side-item {
    border-color: transparent;
    color: #c6c0b9;
    background: transparent;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-side-item:hover {
    border-color: rgba(243, 223, 177, .18);
    background: #2d2f31;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-side-item.is-active {
    border-color: rgba(243, 223, 177, .22);
    background: rgba(78, 39, 112, .38);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-side-icon {
    color: #b0aaa2;
    background: #2d2f31;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-side-item.is-active .quick-order-side-icon {
    color: #fff;
    background: #4e2770;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-frame-shell {
    border-color: rgba(243, 223, 177, .16);
    background: #26282a;
    box-shadow: 0 16px 34px -29px rgba(0, 0, 0, .85);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-frame,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #quick_order_workspace .quick-order-frame iframe {
    background: #242628;
}

/* ---- 批量管理 iframe（batch/list） ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement.batch-management-page {
    background: #242628;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar {
    border-color: rgba(243, 223, 177, .16);
    background: #303334 !important;
    box-shadow: 0 12px 26px -24px rgba(0, 0, 0, .9);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar .el-input__wrapper,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar .el-select__wrapper,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-pagination .el-input__wrapper {
    box-shadow: 0 0 0 1px rgba(243, 223, 177, .25) inset !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-table {
    --el-table-bg-color: #26282a;
    --el-table-tr-bg-color: #26282a;
    --el-table-header-bg-color: #2d2f31;
    --el-table-text-color: #c9c2bb;
    --el-table-header-text-color: #c9c2bb;
    --el-table-row-hover-bg-color: #33363a;
    --el-table-border-color: rgba(243, 223, 177, .14);
    border-color: rgba(243, 223, 177, .16);
    background: #26282a;
    box-shadow: 0 16px 34px -29px rgba(0, 0, 0, .85);
}

/* Blade 日间规则带 ID 选择器，压过 EP 暗色变量，这里按同强度覆写 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-table th {
    color: #c9c2bb !important;
    background: #2d2f31 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-table td {
    color: #b6afa8;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-table .el-table__row:hover > td {
    background: #33363a !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-footer {
    border-color: rgba(243, 223, 177, .16);
    background: #303334;
    box-shadow: 0 -10px 22px -20px rgba(0, 0, 0, .9);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-summary {
    color: #f3dfb1 !important;
}

/* ---- 批量下单 iframe（batch/index） ---- */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app > .el-container > .el-aside {
    border-right-color: rgba(243, 223, 177, .14);
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-search {
    border-bottom-color: rgba(243, 223, 177, .14);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-search-input .el-input__wrapper {
    border-color: rgba(243, 223, 177, .2) !important;
    background: #26282a !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-search-input .el-input__wrapper.is-focus {
    border-color: rgba(243, 223, 177, .5) !important;
    box-shadow: 0 0 0 3px rgba(243, 223, 177, .12);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-search-input .el-input__inner {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-menu-item {
    color: #c6c0b9 !important;
    background: transparent;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-menu-item:hover,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-menu-item.is-active {
    color: #f3dfb1 !important;
    background: rgba(243, 223, 177, .08);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app > .el-container > .el-container {
    background: #242628;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app > .el-container > .el-container > .el-header {
    border-bottom-color: rgba(243, 223, 177, .16);
    color: #e6e0d5;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app > .el-container > .el-container > .el-header > div {
    color: #e6e0d5;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-main {
    background: #242628 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-main > div:first-child {
    border-color: rgba(243, 223, 177, .16);
    background: #303334 !important;
    box-shadow: 0 16px 34px -29px rgba(0, 0, 0, .85);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .header-yu {
    border-color: rgba(243, 223, 177, .16);
    background: #26282a;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-address-label,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-rule-label {
    color: #c9c2bb !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-address-row,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-rule {
    color: #9b958d;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-upload-card {
    border-color: rgba(243, 223, 177, .14);
    background: #26282a;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-upload-box .el-upload-dragger {
    border-color: rgba(243, 223, 177, .3);
    background: #26282a;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-upload-box .el-upload-dragger:hover,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-excel-drop-zone:hover,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-excel-card.is-dragover .batch-index-excel-drop-zone {
    border-color: #f3dfb1;
    background-color: rgba(243, 223, 177, .08);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-upload-subtitle {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-table {
    --el-table-bg-color: #26282a;
    --el-table-tr-bg-color: #26282a;
    --el-table-header-bg-color: #2d2f31;
    --el-table-text-color: #c9c2bb;
    --el-table-header-text-color: #c9c2bb;
    --el-table-row-hover-bg-color: #33363a;
    --el-table-border-color: rgba(243, 223, 177, .14);
    border-color: rgba(243, 223, 177, .16);
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-table th {
    color: #c9c2bb !important;
    background: #2d2f31 !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-table td {
    color: #b6afa8;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-table .el-table__row:hover > td {
    background: #33363a !important;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-total-line {
    color: #9b958d;
}

html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-footer {
    border-top-color: rgba(243, 223, 177, .16);
    background: #303334;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, .45);
}

/* 同意条款的日间内联灰字（Vue 会把 #606266 序列化为 rgb 格式，按结构匹配无 class 的 span） */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .batch-index-consent span:not([class]) {
    color: #9b958d !important;
}

/* 上传 loading 白色遮罩（element-loading-background 属性内联）转暗色 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #app.batch-index-app .el-loading-mask,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .el-loading-mask {
    background-color: rgba(30, 32, 33, .8) !important;
}

/* ---- 工具条/分页条卡内 EP 控件与卡片同底色 ----
 * EP 暗色默认控件底色是近黑 #141414，落在 #303334 卡片上黑灰混杂；
 * 在两张卡片作用域内把控件底色统一为卡片色 #303334（日期面板/下拉等
 * teleport 到 body 的弹层不在此作用域内，仍走 EP 暗色变量）。 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-toolbar,
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-footer {
    --el-fill-color-blank: #303334;
    --el-input-bg-color: #303334;
    --el-pagination-bg-color: #303334;
    --el-pagination-button-disabled-bg-color: #303334;
}

/* 页码 chips 与前后翻页按钮（金色描边）保持同款视觉 */
html[data-yys-theme="dark"] body[data-yys-area="frontend"] #batchmanagement .batch-management-pagination .el-pager li {
    border: 1px solid rgba(243, 223, 177, .2);
}

/* ---- sm 页在线充值弹窗夜间模式（issue #2667）----
 * 弹窗外壳此前已压暗（.sm-recharge-modal/.sm-modal-header → #303334），
 * 但弹窗内部白色模块（面额/支付按钮、说明区、返款表格、对公银行卡片、
 * 复制/关闭按钮、空态）仍保持 Blade 里的浅色底，而 --sm-ink/--sm-muted
 * 已被全局翻转为浅色，形成白底浅字不可读；标题、数码余额金额仍用未
 * 翻转的 --sm-purple 深紫，落在暗底上同样不可读。按全站暗色色板修正：
 * 面板 #303334、交互面 #3a3d3d、内嵌区 #292c2d、悬停 #414444，
 * 金色强调 #f3dfb1、正文 #e6e0d5、次要 #d1c9bd、弱化 #aaa497。
 * 选中态沿用既有规则（#4a4034 底 + 金字，优先级更高不受影响）。 */

/* 弹窗标题、分节标题、数码余额金额：深紫换金色 */
html[data-yys-theme="dark"] body.sm-page .sm-modal-header h2,
html[data-yys-theme="dark"] body.sm-page .sm-recharge-section h3,
html[data-yys-theme="dark"] body.sm-page .sm-modal-balance strong {
    color: #f3dfb1 !important;
}

/* 充值面额与支付方式按钮：白色卡片转暗色交互面。
 * 选中态由既有规则（#4a4034 底 + 金字）负责，这里显式排除避免歧义。 */
html[data-yys-theme="dark"] body.sm-page .sm-denomination:not(.is-selected),
html[data-yys-theme="dark"] body.sm-page .sm-payment:not(.is-selected) {
    border-color: rgba(235, 224, 201, .18) !important;
    color: #e6e0d5 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-denomination:not(.is-selected):hover,
html[data-yys-theme="dark"] body.sm-page .sm-payment:not(.is-selected):hover {
    border-color: rgba(243, 223, 177, .5) !important;
    background: #414444 !important;
}

/* 说明区与预存返款表格：浅色内嵌底转暗色 */
html[data-yys-theme="dark"] body.sm-page .sm-recharge-notes {
    border-color: rgba(235, 224, 201, .16) !important;
    color: #d1c9bd !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-recharge-table {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #292c2d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-recharge-table thead th {
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-recharge-table tbody td {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-recharge-table tbody tr + tr td {
    border-top-color: rgba(235, 224, 201, .12) !important;
}

/* 对公转账：银行卡片白渐变转暗面板，说明文字硬编码 #999 压为弱化色 */
html[data-yys-theme="dark"] body.sm-page .sm-bank-card {
    border-color: rgba(235, 224, 201, .16) !important;
    background: #303334 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-corporate-note {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-corporate-note a {
    color: #f3dfb1 !important;
}

/* 复制按钮：白底转暗色交互面，复制成功态换暗绿 */
html[data-yys-theme="dark"] body.sm-page .sm-copy-btn {
    border-color: rgba(243, 223, 177, .28) !important;
    color: #f3dfb1 !important;
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-copy-btn:hover {
    border-color: rgba(243, 223, 177, .5) !important;
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-copy-btn.is-copied {
    border-color: rgba(124, 217, 168, .4) !important;
    color: #7cd9a8 !important;
    background: #2e4438 !important;
}

/* 弹窗关闭按钮与空态：白底转暗色（关闭按钮金色文字由既有规则保证） */
html[data-yys-theme="dark"] body.sm-page .sm-modal-close {
    background: #3a3d3d !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-modal-close:hover {
    color: #f3dfb1 !important;
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-empty {
    border-color: rgba(235, 224, 201, .2) !important;
    background: #292c2d !important;
}

/* 底部「充值金额」行：文字提亮，金额用金色强调 */
html[data-yys-theme="dark"] body.sm-page .sm-recharge-footer span {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.sm-page .sm-recharge-footer strong {
    color: #f3dfb1 !important;
}

/* ucenter 订单详情：快美生产状态弹窗（ProductionProgressDialog，Teleport 到 body，
 * 类名 production-progress-* 不走 .modal-panel 通用夜间规则），浅色硬编码整体转暗。
 * 配色复用 ucenter-n6 夜间调色板：#303334 面板、#e6e0d5 主墨、#aaa497 弱化、
 * rgba(235,224,201,.16/.18) 边线、#f3dfb1 金色交互、#f0a3ab 错误红、#7cd9a8 完成绿。
 * 标题 h2 不在此覆盖：夜间由全站品牌金字规则（:is(h1,h2,...) 含 #site-footer 的 ID 级
 * 特异性）统一染金，与其他弹窗标题一致。 */
html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-backdrop {
    background: rgba(10, 8, 14, .62) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-dialog {
    border-color: rgba(235, 224, 201, .18) !important;
    background: #303334 !important;
    color: #e6e0d5 !important;
    box-shadow: 0 24px 56px -24px rgba(0, 0, 0, .6) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-header {
    border-bottom-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-header p {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-close {
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-close:hover {
    background: #414444 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-state,
html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-empty-stages {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-error {
    color: #f0a3ab !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-stage,
html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-storage {
    border-left-color: rgba(235, 224, 201, .16) !important;
}

/* 工序圆点：浅色主题里白描边用于压住时间轴背板，夜间随面板底色 */
html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-stage::before,
html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-storage::before {
    border-color: #303334 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-timeline h3 {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-status {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-dialog .is-complete {
    color: #7cd9a8 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-ring > span {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-track {
    stroke: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-storage dt {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-storage dd {
    color: #e6e0d5 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-footer {
    border-top-color: rgba(235, 224, 201, .16) !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-button {
    border-color: rgba(243, 223, 177, .28) !important;
    background: #3a3d3d !important;
    color: #f3dfb1 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-button:disabled {
    color: #aaa497 !important;
}

html[data-yys-theme="dark"] body.ucenter-n6-page .production-progress-dialog button:focus-visible {
    outline-color: #f3dfb1 !important;
}
