.theme-toggle{width:36px;height:36px;display:inline-grid;place-items:center;flex:0 0 auto;border:1px solid var(--border,rgba(0,0,0,.1));border-radius:999px;background:var(--surface,#f5f5f7);color:var(--text-main,#1d1d1f);font-size:18px;line-height:1;cursor:pointer}.theme-toggle:hover{background:var(--surface-hover,#eee)}.theme-toggle:focus-visible{outline:3px solid rgba(0,113,227,.28);outline-offset:2px}.theme-toggle-floating{position:fixed;top:18px;right:18px;z-index:1200}
.theme-picker{position:relative;flex:0 0 auto}.theme-picker summary{list-style:none}.theme-picker summary::-webkit-details-marker{display:none}.theme-picker-trigger{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border,rgba(0,0,0,.1));border-radius:999px;background:var(--surface,#f5f5f7);color:var(--text-main,#1d1d1f);font-size:16px;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.theme-picker-trigger:hover{transform:translateY(-1px);background:var(--surface-hover,#eee)}.theme-picker-trigger:focus-visible{outline:3px solid rgba(0,113,227,.28);outline-offset:2px}.theme-picker-panel{position:absolute;z-index:1300;top:calc(100% + 10px);right:0;width:220px;padding:10px;border:1px solid var(--border,rgba(0,0,0,.1));border-radius:18px;background:var(--background,#fff);box-shadow:0 20px 55px rgba(0,0,0,.18)}.theme-picker-title{padding:6px 8px 9px;color:var(--text-secondary,#6e6e73);font-size:12px;font-weight:700;letter-spacing:.08em}.theme-picker-panel button{width:100%;display:flex;align-items:center;gap:11px;padding:10px;border:1px solid transparent;border-radius:12px;color:var(--text-main,#1d1d1f);background:transparent;text-align:left;cursor:pointer}.theme-picker-panel button:hover{background:var(--surface,#f5f5f7)}.theme-picker-panel button.is-active{border-color:rgba(40,98,215,.36);background:rgba(40,98,215,.09)}.theme-picker-panel button>span:last-child{display:grid}.theme-picker-panel strong{font-size:13px}.theme-picker-panel small{color:var(--text-secondary,#6e6e73);font-size:11px}.theme-swatch{width:28px;height:28px;flex:0 0 auto;border:1px solid rgba(0,0,0,.14);border-radius:50%;box-shadow:inset 0 0 0 4px rgba(255,255,255,.32)}.theme-swatch-light{background:#fff}.theme-swatch-dark{background:#111820}.theme-swatch-ivory{background:linear-gradient(135deg,#f7f1e5 52%,#a68143 53%)}.theme-swatch-midnight{background:linear-gradient(135deg,#081827 52%,#c7a96b 53%)}.theme-picker-floating{position:fixed;top:18px;right:18px;z-index:1200}.theme-picker-floating .theme-picker-panel{position:fixed;top:64px;right:18px}
html[data-theme="dark"]{--background:#0d1117;--surface:#161b22;--surface-hover:#202731;--text-main:#f0f3f6;--text-secondary:#9da7b3;--border:rgba(255,255,255,.12);--shadow:0 18px 55px rgba(0,0,0,.34);--member-ink:#edf3ff;--member-soft:#17243a;color-scheme:dark}
html[data-theme="dark"] body{color:var(--text-main)!important;background:#0d1117!important}
html[data-theme="dark"] .site-header,html[data-theme="dark"] .member-nav{background:rgba(13,17,23,.94)!important;border-color:var(--border)!important}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .member-nav-link,html[data-theme="dark"] .member-brand{color:#c9d4e1}
html[data-theme="dark"] .main-nav a:hover,html[data-theme="dark"] .member-nav-link:hover{color:#66a7ff}
html[data-theme="dark"] .card,html[data-theme="dark"] .list-group-item,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .account-menu-panel,html[data-theme="dark"] .mobile-nav-panel,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .offcanvas,html[data-theme="dark"] .qr-scanner-shell,html[data-theme="dark"] .qr-confirm-card{color:#edf3f8;background-color:#151b23!important;border-color:var(--border)!important}
html[data-theme="dark"] .bg-white,html[data-theme="dark"] .bg-light,html[data-theme="dark"] .table-light,html[data-theme="dark"] .alert-light{color:#edf3f8!important;background-color:#151b23!important}
html[data-theme="dark"] .text-dark{color:#edf3f8!important}html[data-theme="dark"] .text-muted,html[data-theme="dark"] .text-secondary{color:#9da7b3!important}
html[data-theme="dark"] .border,html[data-theme="dark"] .border-top,html[data-theme="dark"] .border-bottom,html[data-theme="dark"] hr{border-color:var(--border)!important}
html[data-theme="dark"] .table{--bs-table-color:#e7edf5;--bs-table-bg:#151b23;--bs-table-border-color:#303946;--bs-table-striped-bg:#19212b;--bs-table-hover-bg:#202a36;color:#e7edf5}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] .input-group-text{color:#edf3f8;background-color:#0f141b;border-color:#3a4655}html[data-theme="dark"] .form-control::placeholder{color:#748091}html[data-theme="dark"] .form-control:focus,html[data-theme="dark"] .form-select:focus{border-color:#4d91f7;box-shadow:0 0 0 .25rem rgba(50,125,240,.18)}
html[data-theme="dark"] .btn-outline-secondary{color:#c4ced9;border-color:#657181}html[data-theme="dark"] .btn-outline-dark{color:#e7edf5;border-color:#7d8998}html[data-theme="dark"] .btn-outline-dark:hover{color:#0d1117;background:#e7edf5}
html[data-theme="dark"] .site-footer,html[data-theme="dark"] .member-footer{color:#8e9aaa}html[data-theme="dark"] .hero-section{background:radial-gradient(circle at 50% 0,rgba(54,134,255,.16),transparent 42%),#0d1117}
html[data-theme="dark"] .asset-label{color:#111827;background:#fff}html[data-theme="dark"] .qr-camera{background:#05080d}
html[data-theme="ivory"]{--background:#f7f2e8;--surface:#eee5d5;--surface-hover:#e5d9c5;--text-main:#2a241c;--text-secondary:#756956;--border:rgba(99,76,42,.2);--blue:#8b682f;--blue-hover:#70501f;--shadow:0 18px 45px rgba(80,58,28,.12);--member-ink:#2a241c;--member-blue:#8b682f;--member-soft:#eee5d5;color-scheme:light}
html[data-theme="ivory"] body{color:#2a241c!important;background:#f7f2e8!important}html[data-theme="ivory"] .site-header,html[data-theme="ivory"] .member-nav{background:rgba(247,242,232,.94)!important;border-bottom:1px solid rgba(139,104,47,.24)!important}html[data-theme="ivory"] .main-nav a,html[data-theme="ivory"] .member-nav-link,html[data-theme="ivory"] .member-brand{color:#4a4032}html[data-theme="ivory"] .main-nav a:hover,html[data-theme="ivory"] .member-nav-link:hover{color:#8b682f}
html[data-theme="ivory"] .card,html[data-theme="ivory"] .list-group-item,html[data-theme="ivory"] .dropdown-menu,html[data-theme="ivory"] .account-menu-panel,html[data-theme="ivory"] .mobile-nav-panel,html[data-theme="ivory"] .modal-content,html[data-theme="ivory"] .offcanvas,html[data-theme="ivory"] .qr-scanner-shell,html[data-theme="ivory"] .qr-confirm-card,html[data-theme="ivory"] .qr-login-card{color:#2a241c;background:#fffdf8!important;border:1px solid rgba(139,104,47,.22)!important;box-shadow:0 14px 40px rgba(86,63,28,.1)!important}html[data-theme="ivory"] .text-muted,html[data-theme="ivory"] .text-secondary{color:#756956!important}html[data-theme="ivory"] .border,html[data-theme="ivory"] .border-top,html[data-theme="ivory"] .border-bottom,html[data-theme="ivory"] hr{border-color:rgba(139,104,47,.2)!important}
html[data-theme="ivory"] .table{--bs-table-color:#342d23;--bs-table-bg:#fffdf8;--bs-table-border-color:#ddd0ba;--bs-table-striped-bg:#f8f1e5;--bs-table-hover-bg:#f1e6d4}html[data-theme="ivory"] .table-light,html[data-theme="ivory"] .bg-light{color:#342d23!important;background:#eee5d5!important}html[data-theme="ivory"] .form-control,html[data-theme="ivory"] .form-select,html[data-theme="ivory"] .input-group-text{color:#2a241c;background:#fffdf8;border-color:#cdbb9c}html[data-theme="ivory"] .form-control:focus,html[data-theme="ivory"] .form-select:focus{border-color:#9a7438;box-shadow:0 0 0 .25rem rgba(154,116,56,.16)}html[data-theme="ivory"] .btn-primary,html[data-theme="ivory"] .btn-dark{color:#fff;background:#755525;border-color:#755525}html[data-theme="ivory"] .btn-primary:hover,html[data-theme="ivory"] .btn-dark:hover{background:#5f431c;border-color:#5f431c}html[data-theme="ivory"] .hero-section{background:radial-gradient(circle at 50% 0,rgba(166,129,67,.16),transparent 44%),#f7f2e8}
html[data-theme="midnight"]{--background:#071523;--surface:#10263a;--surface-hover:#17314a;--text-main:#edf4fb;--text-secondary:#9eb0c1;--border:rgba(172,197,219,.18);--blue:#d0ae6d;--blue-hover:#e0c186;--shadow:0 20px 60px rgba(0,0,0,.38);--member-ink:#edf4fb;--member-blue:#d0ae6d;--member-soft:#10263a;color-scheme:dark}
html[data-theme="midnight"] body{color:#edf4fb!important;background:#071523!important}html[data-theme="midnight"] .site-header,html[data-theme="midnight"] .member-nav{background:rgba(7,21,35,.95)!important;border-bottom:1px solid rgba(208,174,109,.22)!important}html[data-theme="midnight"] .main-nav a,html[data-theme="midnight"] .member-nav-link,html[data-theme="midnight"] .member-brand{color:#cbd8e4}html[data-theme="midnight"] .main-nav a:hover,html[data-theme="midnight"] .member-nav-link:hover{color:#e0c186}
html[data-theme="midnight"] .card,html[data-theme="midnight"] .list-group-item,html[data-theme="midnight"] .dropdown-menu,html[data-theme="midnight"] .account-menu-panel,html[data-theme="midnight"] .mobile-nav-panel,html[data-theme="midnight"] .modal-content,html[data-theme="midnight"] .offcanvas,html[data-theme="midnight"] .qr-scanner-shell,html[data-theme="midnight"] .qr-confirm-card,html[data-theme="midnight"] .qr-login-card{color:#edf4fb;background:#0d2134!important;border:1px solid rgba(125,164,196,.25)!important;box-shadow:0 18px 52px rgba(0,0,0,.3)!important}html[data-theme="midnight"] .bg-white,html[data-theme="midnight"] .bg-light,html[data-theme="midnight"] .table-light,html[data-theme="midnight"] .alert-light{color:#edf4fb!important;background:#10263a!important}html[data-theme="midnight"] .text-dark{color:#edf4fb!important}html[data-theme="midnight"] .text-muted,html[data-theme="midnight"] .text-secondary{color:#9eb0c1!important}html[data-theme="midnight"] .border,html[data-theme="midnight"] .border-top,html[data-theme="midnight"] .border-bottom,html[data-theme="midnight"] hr{border-color:rgba(172,197,219,.18)!important}
html[data-theme="midnight"] .table{--bs-table-color:#e4edf5;--bs-table-bg:#0d2134;--bs-table-border-color:#294760;--bs-table-striped-bg:#112a42;--bs-table-hover-bg:#17344f}html[data-theme="midnight"] .form-control,html[data-theme="midnight"] .form-select,html[data-theme="midnight"] .input-group-text{color:#edf4fb;background:#081827;border-color:#36536c}html[data-theme="midnight"] .form-control::placeholder{color:#73899c}html[data-theme="midnight"] .form-control:focus,html[data-theme="midnight"] .form-select:focus{border-color:#d0ae6d;box-shadow:0 0 0 .25rem rgba(208,174,109,.15)}html[data-theme="midnight"] .btn-primary,html[data-theme="midnight"] .btn-dark{color:#071523;background:#d0ae6d;border-color:#d0ae6d}html[data-theme="midnight"] .btn-primary:hover,html[data-theme="midnight"] .btn-dark:hover{background:#e0c186;border-color:#e0c186}html[data-theme="midnight"] .btn-outline-secondary,html[data-theme="midnight"] .btn-outline-dark{color:#d5e0ea;border-color:#61778a}html[data-theme="midnight"] .hero-section{background:radial-gradient(circle at 50% 0,rgba(75,132,180,.2),transparent 45%),#071523}html[data-theme="midnight"] .asset-label{color:#111827;background:#fff}
.theme-swatch-silver{background:linear-gradient(135deg,#eef1f4 52%,#77828f 53%)}.theme-swatch-burgundy{background:linear-gradient(135deg,#3b111d 52%,#c5a66a 53%)}
html[data-theme="silver"]{--background:#eef1f4;--surface:#e2e7eb;--surface-hover:#d8dfe5;--text-main:#17202a;--text-secondary:#66727e;--border:rgba(35,48,61,.16);--blue:#3b627f;--blue-hover:#274d69;--shadow:0 18px 48px rgba(43,56,69,.14);--member-ink:#17202a;--member-blue:#3b627f;--member-soft:#e2e7eb;color-scheme:light}
html[data-theme="silver"] body{color:#17202a!important;background:linear-gradient(135deg,#f4f6f8,#e9edf1)!important}html[data-theme="silver"] .site-header,html[data-theme="silver"] .member-nav{background:rgba(238,241,244,.94)!important;border-bottom:1px solid rgba(35,48,61,.16)!important}html[data-theme="silver"] .main-nav a,html[data-theme="silver"] .member-nav-link,html[data-theme="silver"] .member-brand{color:#44515e}html[data-theme="silver"] .main-nav a:hover,html[data-theme="silver"] .member-nav-link:hover{color:#274d69}
html[data-theme="silver"] .card,html[data-theme="silver"] .list-group-item,html[data-theme="silver"] .dropdown-menu,html[data-theme="silver"] .account-menu-panel,html[data-theme="silver"] .mobile-nav-panel,html[data-theme="silver"] .modal-content,html[data-theme="silver"] .offcanvas,html[data-theme="silver"] .qr-scanner-shell,html[data-theme="silver"] .qr-confirm-card,html[data-theme="silver"] .qr-login-card{color:#17202a;background:#f7f9fa!important;border:1px solid rgba(35,48,61,.17)!important;box-shadow:0 14px 38px rgba(43,56,69,.11)!important}html[data-theme="silver"] .text-muted,html[data-theme="silver"] .text-secondary{color:#66727e!important}html[data-theme="silver"] .border,html[data-theme="silver"] .border-top,html[data-theme="silver"] .border-bottom,html[data-theme="silver"] hr{border-color:rgba(35,48,61,.16)!important}
html[data-theme="silver"] .table{--bs-table-color:#17202a;--bs-table-bg:#f7f9fa;--bs-table-border-color:#ccd3da;--bs-table-striped-bg:#edf1f4;--bs-table-hover-bg:#e3e9ee}html[data-theme="silver"] .form-control,html[data-theme="silver"] .form-select,html[data-theme="silver"] .input-group-text{color:#17202a;background:#f8fafb;border-color:#aeb9c3}html[data-theme="silver"] .btn-primary,html[data-theme="silver"] .btn-dark{color:#fff;background:#304f68;border-color:#304f68}html[data-theme="silver"] .hero-section{background:radial-gradient(circle at 50% 0,rgba(109,135,156,.18),transparent 46%),linear-gradient(180deg,#f4f6f8,#eef1f4)}
html[data-theme="burgundy"]{--background:#210b12;--surface:#35131e;--surface-hover:#431824;--text-main:#fbf4e8;--text-secondary:#c8b8ad;--border:rgba(226,197,141,.22);--blue:#d1af70;--blue-hover:#e2c78e;--shadow:0 22px 60px rgba(0,0,0,.42);--member-ink:#fbf4e8;--member-blue:#d1af70;--member-soft:#35131e;color-scheme:dark}
html[data-theme="burgundy"] body{color:#fbf4e8!important;background:#210b12!important}html[data-theme="burgundy"] .site-header,html[data-theme="burgundy"] .member-nav{background:rgba(33,11,18,.95)!important;border-bottom:1px solid rgba(226,197,141,.22)!important}html[data-theme="burgundy"] .main-nav a,html[data-theme="burgundy"] .member-nav-link,html[data-theme="burgundy"] .member-brand{color:#e4d7cc}html[data-theme="burgundy"] .main-nav a:hover,html[data-theme="burgundy"] .member-nav-link:hover{color:#e2c78e}
html[data-theme="burgundy"] .card,html[data-theme="burgundy"] .list-group-item,html[data-theme="burgundy"] .dropdown-menu,html[data-theme="burgundy"] .account-menu-panel,html[data-theme="burgundy"] .mobile-nav-panel,html[data-theme="burgundy"] .modal-content,html[data-theme="burgundy"] .offcanvas,html[data-theme="burgundy"] .qr-scanner-shell,html[data-theme="burgundy"] .qr-confirm-card,html[data-theme="burgundy"] .qr-login-card{color:#fbf4e8;background:#32121c!important;border:1px solid rgba(226,197,141,.24)!important;box-shadow:0 20px 55px rgba(0,0,0,.34)!important}html[data-theme="burgundy"] .bg-white,html[data-theme="burgundy"] .bg-light,html[data-theme="burgundy"] .table-light,html[data-theme="burgundy"] .alert-light{color:#fbf4e8!important;background:#35131e!important}html[data-theme="burgundy"] .text-dark{color:#fbf4e8!important}html[data-theme="burgundy"] .text-muted,html[data-theme="burgundy"] .text-secondary{color:#c8b8ad!important}html[data-theme="burgundy"] .border,html[data-theme="burgundy"] .border-top,html[data-theme="burgundy"] .border-bottom,html[data-theme="burgundy"] hr{border-color:rgba(226,197,141,.22)!important}
html[data-theme="burgundy"] .table{--bs-table-color:#f7eee4;--bs-table-bg:#32121c;--bs-table-border-color:#68404b;--bs-table-striped-bg:#3a1621;--bs-table-hover-bg:#481b28}html[data-theme="burgundy"] .form-control,html[data-theme="burgundy"] .form-select,html[data-theme="burgundy"] .input-group-text{color:#fbf4e8;background:#1b0810;border-color:#77505a}html[data-theme="burgundy"] .form-control::placeholder{color:#9f8589}html[data-theme="burgundy"] .btn-primary,html[data-theme="burgundy"] .btn-dark{color:#210b12;background:#d1af70;border-color:#d1af70}html[data-theme="burgundy"] .btn-outline-secondary,html[data-theme="burgundy"] .btn-outline-dark{color:#eadbce;border-color:#99717a}html[data-theme="burgundy"] .hero-section{background:radial-gradient(circle at 50% 0,rgba(184,112,90,.2),transparent 46%),#210b12}html[data-theme="burgundy"] .asset-label{color:#111827;background:#fff}
html[data-theme="dark"] .btn-outline-primary{color:#9bc6ff;border-color:#4d91f7}html[data-theme="dark"] .btn-outline-primary:hover{color:#08111c;background:#78b3ff}
html[data-theme="ivory"] .btn-outline-primary{color:#755525;border-color:#9a7438}html[data-theme="ivory"] .btn-outline-primary:hover{color:#fffdf8;background:#755525}
html[data-theme="midnight"] .btn-outline-primary{color:#e0c186;border-color:#b49356}html[data-theme="midnight"] .btn-outline-primary:hover{color:#071523;background:#d0ae6d}
html[data-theme="silver"] .btn-outline-primary{color:#304f68;border-color:#59768d}html[data-theme="silver"] .btn-outline-primary:hover{color:#fff;background:#304f68}
html[data-theme="burgundy"] .btn-outline-primary{color:#dfbd78;border-color:#b8975d}html[data-theme="burgundy"] .btn-outline-primary:hover{color:#210b12;background:#d1af70}

/* V21.2.2：旧页面主题兼容层。使用主题变量替换写死的白卡、深字与默认蓝。 */
html[data-theme]:not([data-theme="light"]) .text-primary{color:var(--blue)!important}
html[data-theme]:not([data-theme="light"]) .generation-badge{color:var(--blue);border-color:color-mix(in srgb,var(--blue) 62%,transparent)}
html[data-theme]:not([data-theme="light"]) .primary-button{color:var(--background);border-color:var(--blue);background:var(--blue)}
html[data-theme]:not([data-theme="light"]) .primary-button:hover{color:var(--background);background:var(--blue-hover)}
html[data-theme]:not([data-theme="light"]) .secondary-button{color:var(--blue);border-color:var(--blue);background:transparent}
html[data-theme]:not([data-theme="light"]) .secondary-button:hover{color:var(--background);background:var(--blue)}
html[data-theme]:not([data-theme="light"]) .service-page,html[data-theme]:not([data-theme="light"]) .service-public-wrap{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .service-soft-card,html[data-theme]:not([data-theme="light"]) .service-stat,html[data-theme]:not([data-theme="light"]) .service-public-card{color:var(--text-main);border-color:var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme]:not([data-theme="light"]) .service-list-card:hover,html[data-theme]:not([data-theme="light"]) .service-lookup-result{color:var(--text-main);border-color:var(--border);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .service-message{color:var(--text-main);background:var(--surface-hover)}

html[data-theme]:not([data-theme="light"]) .company-page,html[data-theme]:not([data-theme="light"]) .company-scope,html[data-theme]:not([data-theme="light"]) .company-compliance{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .company-hero>p,html[data-theme]:not([data-theme="light"]) .company-story p,html[data-theme]:not([data-theme="light"]) .company-scope p,html[data-theme]:not([data-theme="light"]) .company-locations p,html[data-theme]:not([data-theme="light"]) .company-compliance span{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .company-phone,html[data-theme]:not([data-theme="light"]) .company-locations article{color:var(--text-main);border-color:var(--border);background:var(--surface)}
html[data-theme]:not([data-theme="light"]) .company-phone strong{color:var(--text-main)}html[data-theme]:not([data-theme="light"]) .company-phone>span:first-child{color:var(--text-secondary)}html[data-theme]:not([data-theme="light"]) .company-locations article>span{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .company-scope{border-color:var(--border);background:transparent}

html[data-theme]:not([data-theme="light"]) .catalog-page{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .catalog-hero p,html[data-theme]:not([data-theme="light"]) .catalog-subtitle,html[data-theme]:not([data-theme="light"]) .catalog-meta,html[data-theme]:not([data-theme="light"]) .catalog-limit,html[data-theme]:not([data-theme="light"]) .catalog-toolbar,html[data-theme]:not([data-theme="light"]) .catalog-statement,html[data-theme]:not([data-theme="light"]) .catalog-empty,html[data-theme]:not([data-theme="light"]) .product-lead,html[data-theme]:not([data-theme="light"]) .product-facts dt{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .catalog-eyebrow,html[data-theme]:not([data-theme="light"]) .catalog-category{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .catalog-categories a,html[data-theme]:not([data-theme="light"]) .catalog-sort a,html[data-theme]:not([data-theme="light"]) .catalog-card,html[data-theme]:not([data-theme="light"]) .catalog-empty,html[data-theme]:not([data-theme="light"]) .catalog-statement,html[data-theme]:not([data-theme="light"]) .product-price-panel{color:var(--text-main);border-color:var(--border);background:var(--surface)}
html[data-theme]:not([data-theme="light"]) .catalog-categories a.active,html[data-theme]:not([data-theme="light"]) .catalog-sort a.active{color:var(--background);border-color:var(--text-main);background:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .catalog-image-wrap,html[data-theme]:not([data-theme="light"]) .product-gallery a{background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .catalog-card h2,html[data-theme]:not([data-theme="light"]) .product-summary h1,html[data-theme]:not([data-theme="light"]) .product-copy div,html[data-theme]:not([data-theme="light"]) .product-disclaimer div{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .catalog-toolbar,html[data-theme]:not([data-theme="light"]) .product-facts div,html[data-theme]:not([data-theme="light"]) .product-copy,html[data-theme]:not([data-theme="light"]) .product-disclaimer,html[data-theme]:not([data-theme="light"]) .similar-products{border-color:var(--border)}

html[data-theme]:not([data-theme="light"]) .member-contact-phone-card,html[data-theme]:not([data-theme="light"]) .member-contact-future,html[data-theme]:not([data-theme="light"]) .member-contact-channel{color:var(--text-main);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme]:not([data-theme="light"]) .member-contact-phone{color:var(--blue)}html[data-theme]:not([data-theme="light"]) .member-contact-call{color:var(--blue);border-color:var(--blue);background:transparent}html[data-theme]:not([data-theme="light"]) .member-contact-channel-mark{color:var(--blue);background:var(--surface-hover)}

html[data-theme]:not([data-theme="light"]) .global-search-page{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .global-search-hero span,html[data-theme]:not([data-theme="light"]) .global-search-group h2 span{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .global-search-hero p,html[data-theme]:not([data-theme="light"]) .global-search-form label,html[data-theme]:not([data-theme="light"]) .global-search-summary,html[data-theme]:not([data-theme="light"]) .global-search-result-main small{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .global-search-form,html[data-theme]:not([data-theme="light"]) .global-search-results,html[data-theme]:not([data-theme="light"]) .global-search-notice,html[data-theme]:not([data-theme="light"]) .global-search-empty{color:var(--text-main);border-color:var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme]:not([data-theme="light"]) .global-search-result{color:var(--text-main);border-color:var(--border)}html[data-theme]:not([data-theme="light"]) .global-search-result:hover{background:var(--surface-hover)}html[data-theme]:not([data-theme="light"]) .global-search-status{color:var(--text-secondary);background:var(--surface-hover)}

html[data-theme]:not([data-theme="light"]) .qr-back,html[data-theme]:not([data-theme="light"]) .qr-lead,html[data-theme]:not([data-theme="light"]) .qr-countdown,html[data-theme]:not([data-theme="light"]) .qr-trust-option small{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .qr-kicker{color:var(--blue)}html[data-theme]:not([data-theme="light"]) .qr-device,html[data-theme]:not([data-theme="light"]) .qr-trust-option{color:var(--text-main);border-color:var(--border);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .qr-trust-option:has(input:checked){border-color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,var(--surface))}

html[data-theme]:not([data-theme="light"]) .member-chat-bubble.assistant,html[data-theme]:not([data-theme="light"]) .cloud-upload-row,html[data-theme]:not([data-theme="light"]) .cloud-upload-row.is-paused{color:var(--text-main);border-color:var(--border);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .member-chat-bubble.waiting,html[data-theme]:not([data-theme="light"]) .cloud-upload-meta,html[data-theme]:not([data-theme="light"]) .cloud-upload-state{color:var(--text-secondary)}

html[data-theme]:not([data-theme="light"]) .workbench-group,html[data-theme]:not([data-theme="light"]) .camera-test-summary article,html[data-theme]:not([data-theme="light"]) .camera-test-record,html[data-theme]:not([data-theme="light"]) .camera-test-log{color:var(--text-main);border-color:var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme]:not([data-theme="light"]) .workbench-links a{color:var(--text-main);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .workbench-links a:hover{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .camera-test-summary span,html[data-theme]:not([data-theme="light"]) .camera-test-log p,html[data-theme]:not([data-theme="light"]) .camera-test-record p{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .camera-test-log-drawer{color:var(--text-main);border-color:var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme]:not([data-theme="light"]) .camera-test-log-drawer>summary,html[data-theme]:not([data-theme="light"]) .camera-test-log-drawer[open]>summary{border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) .camera-test-log-drawer>summary small{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .camera-test-log-drawer>summary::after{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .camera-test-count{color:var(--text-secondary);border-color:var(--border);background:var(--surface-hover)}

html[data-theme]:not([data-theme="light"]) .service-status.waiting,html[data-theme]:not([data-theme="light"]) .service-important{color:var(--text-main);border-color:color-mix(in srgb,var(--blue) 32%,var(--border));background:color-mix(in srgb,var(--blue) 12%,var(--surface))}
html[data-theme]:not([data-theme="light"]) .cloud-upload-row.is-failed{color:var(--text-main);border-color:#a95858;background:color-mix(in srgb,#a95858 12%,var(--surface))}
html[data-theme]:not([data-theme="light"]) .cloud-upload-row.is-partial,html[data-theme]:not([data-theme="light"]) .cloud-upload-row.is-saving,html[data-theme]:not([data-theme="light"]) .cloud-upload-row.is-complete{color:var(--text-main);border-color:var(--border);background:var(--surface-hover)}

html[data-theme]:not([data-theme="light"]) .device-card,html[data-theme]:not([data-theme="light"]) .accordion-item,html[data-theme]:not([data-theme="light"]) .accordion-button,html[data-theme]:not([data-theme="light"]) .toast{color:var(--text-main);border-color:var(--border);background:var(--surface)}
html[data-theme]:not([data-theme="light"]) .accordion-button:not(.collapsed){color:var(--blue);background:var(--surface-hover);box-shadow:inset 0 -1px 0 var(--border)}
html[data-theme]:not([data-theme="light"]) .qr-scanner-status{color:var(--text-main);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .qr-scanner-status.is-error{color:#ffb4ac;background:color-mix(in srgb,#b42318 18%,var(--surface))}
html[data-theme]:not([data-theme="light"]) .alert{color:var(--text-main);border-color:var(--border);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .alert .alert-link{color:var(--blue)}
html[data-theme]:not([data-theme="light"]) .form-text,html[data-theme]:not([data-theme="light"]) .form-check-label{color:var(--text-secondary)}
html[data-theme]:not([data-theme="light"]) .nav-tabs{border-color:var(--border)}html[data-theme]:not([data-theme="light"]) .nav-tabs .nav-link{color:var(--text-secondary);border-color:transparent}html[data-theme]:not([data-theme="light"]) .nav-tabs .nav-link.active{color:var(--text-main);border-color:var(--border) var(--border) var(--surface);background:var(--surface)}
html[data-theme]:not([data-theme="light"]) .pagination .page-link{color:var(--blue);border-color:var(--border);background:var(--surface)}html[data-theme]:not([data-theme="light"]) .pagination .page-item.active .page-link{color:var(--background);border-color:var(--blue);background:var(--blue)}
@media(prefers-reduced-motion:no-preference){@view-transition{navigation:auto}body,.site-header,.member-nav,.card,.list-group-item,.form-control,.form-select,.theme-picker-panel{transition:color .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .22s ease}::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}}
@media(max-width:620px){.brand-home-hint{display:none!important}.site-nav{width:calc(100% - 24px);gap:8px}.nav-actions{gap:7px}.nav-actions>.icon-button{display:none!important}.account-login-button,.account-menu-trigger{max-width:105px;padding:0 11px;font-size:12px}.theme-picker-trigger{width:38px;height:38px}.mobile-nav-menu>summary{border-color:var(--border)!important;background:var(--surface)!important;color:var(--text-main)!important}}
@media(max-width:520px){.theme-picker-panel{position:fixed;top:70px;right:12px;width:min(220px,calc(100vw - 24px));max-height:calc(100vh - 88px);overflow:auto}}
@media print{.theme-toggle,.theme-picker,.theme-picker-floating{display:none!important}}

/* V21.2.3：主题组件收口。消除旧白卡、Bootstrap 表头和固定蓝色模块。 */
html[data-theme]:not([data-theme="light"]) .mobile-nav-panel a{color:var(--text-main);border:1px solid var(--border);background:var(--surface-hover)}
html[data-theme]:not([data-theme="light"]) .mobile-nav-panel a:active{background:color-mix(in srgb,var(--blue) 14%,var(--surface))}
html[data-theme]:not([data-theme="light"]) .mobile-nav-panel strong{color:var(--text-main)}
html[data-theme]:not([data-theme="light"]) .mobile-nav-panel span{color:var(--text-secondary)}
html[data-theme] .brand-home-hint{color:var(--blue)!important;border-color:color-mix(in srgb,var(--blue) 34%,transparent)!important;background:color-mix(in srgb,var(--blue) 10%,var(--surface))!important}
html[data-theme] .brand-home-hint::before{border-color:color-mix(in srgb,var(--blue) 34%,transparent)!important;background:color-mix(in srgb,var(--blue) 10%,var(--surface))!important}

html[data-theme]:not([data-theme="light"]) .table-light{--bs-table-color:var(--text-main);--bs-table-bg:var(--surface-hover);--bs-table-border-color:var(--border);color:var(--text-main)!important;background:var(--surface-hover)!important}
html[data-theme]:not([data-theme="light"]) .table-light>tr>*,html[data-theme]:not([data-theme="light"]) .table-light>*>tr>*,html[data-theme]:not([data-theme="light"]) thead.table-light>tr>*{color:var(--text-main)!important;border-color:var(--border)!important;background:var(--surface-hover)!important}
html[data-theme]:not([data-theme="light"]) .card-header,html[data-theme]:not([data-theme="light"]) .card-footer{color:var(--text-main);border-color:var(--border);background:var(--surface)!important}

html[data-theme="light"]{--member-hero-background:linear-gradient(135deg,#142d59,#2862d7);--member-hero-text:#fff;--member-hero-border:transparent;--member-hero-orb:rgba(255,255,255,.1);--member-hero-panel:rgba(255,255,255,.08);--member-hero-panel-border:rgba(255,255,255,.25)}
html[data-theme="dark"]{--member-hero-background:radial-gradient(circle at 88% 8%,rgba(88,151,232,.24),transparent 32%),linear-gradient(135deg,#111820,#223b58);--member-hero-text:#edf3f8;--member-hero-border:#344456;--member-hero-orb:rgba(120,179,255,.1);--member-hero-panel:rgba(255,255,255,.055);--member-hero-panel-border:rgba(155,198,255,.2)}
html[data-theme="ivory"]{--member-hero-background:radial-gradient(circle at 88% 8%,rgba(183,139,68,.17),transparent 34%),linear-gradient(135deg,#fffdf8,#efe2c7);--member-hero-text:#2a241c;--member-hero-border:rgba(139,104,47,.27);--member-hero-orb:rgba(139,104,47,.08);--member-hero-panel:rgba(255,255,255,.58);--member-hero-panel-border:rgba(139,104,47,.22)}
html[data-theme="midnight"]{--member-hero-background:radial-gradient(circle at 88% 8%,rgba(208,174,109,.18),transparent 34%),linear-gradient(135deg,#071523,#153b5a);--member-hero-text:#edf4fb;--member-hero-border:rgba(208,174,109,.32);--member-hero-orb:rgba(208,174,109,.09);--member-hero-panel:rgba(255,255,255,.05);--member-hero-panel-border:rgba(224,193,134,.22)}
html[data-theme="silver"]{--member-hero-background:radial-gradient(circle at 88% 8%,rgba(63,91,114,.15),transparent 34%),linear-gradient(135deg,#f7f9fa,#dce4e9);--member-hero-text:#17202a;--member-hero-border:rgba(35,48,61,.2);--member-hero-orb:rgba(48,79,104,.08);--member-hero-panel:rgba(255,255,255,.5);--member-hero-panel-border:rgba(35,48,61,.18)}
html[data-theme="burgundy"]{--member-hero-background:radial-gradient(circle at 88% 8%,rgba(209,175,112,.2),transparent 34%),linear-gradient(135deg,#4a1725,#230a12);--member-hero-text:#fbf4e8;--member-hero-border:rgba(226,197,141,.32);--member-hero-orb:rgba(209,175,112,.1);--member-hero-panel:rgba(255,255,255,.045);--member-hero-panel-border:rgba(226,197,141,.22)}
html[data-theme]:not([data-theme="light"]) .member-hero .btn-light{color:var(--background);border-color:var(--blue);background:var(--blue)}
html[data-theme]:not([data-theme="light"]) .member-hero .btn-outline-light{color:var(--member-hero-text);border-color:color-mix(in srgb,var(--member-hero-text) 50%,transparent);background:transparent}
html[data-theme]:not([data-theme="light"]) .member-hero .btn-outline-light:hover{color:var(--background);border-color:var(--blue);background:var(--blue)}

@media(max-width:760px){
  .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-responsive>.admin-wide-table{min-width:900px}
  .table-responsive>.admin-wide-table-compact{min-width:720px}
  .table-responsive>.admin-wide-table th,.table-responsive>.admin-wide-table td{white-space:normal;word-break:keep-all}
  .table-responsive>.table th,.table-responsive>.table td{word-break:keep-all;overflow-wrap:normal}
  @supports selector(.table:has(th:nth-child(5))){
    .table-responsive>.table:has(tr>:nth-child(5)){min-width:720px}
    .table-responsive>.table:has(tr>:nth-child(7)){min-width:900px}
  }
}
