/* 仅共享主题入口与菜单；不改变页面的字体、布局或图片。 */
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border:1px solid var(--cp-line,var(--line,#dedbd3));border-radius:50%;background:var(--cp-paper,var(--panel,#fff));color:var(--cp-muted,var(--muted,#69675f));cursor:pointer}
.platform-ui .theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:var(--cp-paper);color:var(--cp-muted)}
[data-theme-toggle] svg{width:18px;height:18px;flex:none}
[data-theme-toggle] :is(.theme-icon-moon,.icon-moon){display:none}
html[data-theme=dark] [data-theme-toggle] :is(.theme-icon-sun,.icon-sun){display:none}
html[data-theme=dark] [data-theme-toggle] :is(.theme-icon-moon,.icon-moon){display:block}
.theme-toggle:focus-visible,.site-theme-menu button:focus-visible{outline:2px solid var(--cp-focus,var(--brand,#2468ce));outline-offset:3px}
.platform-ui .topbar>a[href='/']:not(.brand){margin-left:auto}
.platform-ui .topbar>.theme-toggle{margin-left:0}
.site-theme-menu{position:fixed;z-index:10050;min-width:150px;max-width:calc(100vw - 16px);padding:5px;border:1px solid #dedbd3;border-radius:10px;background:#fffdf9;color:#24231f;box-shadow:0 8px 28px rgb(24 23 19 / .14);font:400 13px/1.5 system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif}
.site-theme-menu[hidden]{display:none!important}
.site-theme-menu button{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:40px;margin:0;padding:8px 11px;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.site-theme-menu button[aria-checked=true]{background:#fff0e9;color:#a83e1c}
.site-theme-menu button[aria-checked=true]::after{content:'✓';font-size:12px}
.site-theme-menu button:hover{background:#f0eeea;color:#24231f}
.platform-ui .site-theme-menu button{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:40px;margin:0;padding:8px 11px;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left;font:inherit}
.platform-ui .site-theme-menu button[aria-checked=true]{background:#fff0e9;color:#a83e1c}
.platform-ui .site-theme-menu button:hover{background:#f0eeea;color:#24231f}
html[data-theme=dark] .site-theme-menu{border-color:#3b414a;background:#22252a;color:#eef0f3;box-shadow:0 10px 32px rgb(0 0 0 / .36)}
html[data-theme=dark] .site-theme-menu button[aria-checked=true]{background:#352822;color:#f49a7b}
html[data-theme=dark] .site-theme-menu button:hover{background:#30353d;color:#eef0f3}
html[data-theme=dark] .platform-ui .site-theme-menu button[aria-checked=true]{background:#352822;color:#f49a7b}
html[data-theme=dark] .platform-ui .site-theme-menu button:hover{background:#30353d;color:#eef0f3}
@media(max-width:640px){.site-theme-menu button,.platform-ui .site-theme-menu button{min-height:44px}}
@media(max-width:360px){
 .platform-ui.member-product .topbar,.platform-ui.platform-standalone .topbar{height:auto;min-height:64px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px 12px}
 .platform-ui.oauth-connection-page .oauth-connection-topbar{height:auto;min-height:56px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px 12px}
 .platform-ui.oauth-connection-page .oauth-connection-links{flex-wrap:wrap;gap:12px}
}
