/* One platform shell across the live homepage, book pages and community. */
.wx-route-loading{display:none}
html[data-wx-shell-boot=loading] body:not(.wx-navigation-ready) main>:not(.wx-route-loading){display:none!important}
html[data-wx-shell-boot=loading] body:not(.wx-navigation-ready) main>.wx-route-loading{display:block;padding:36px 24px;border:1px solid #d7cbb5;border-radius:16px;background:#faf6eb;color:#716956;font-size:16px;line-height:1.8}
html{ -webkit-text-size-adjust:100%;text-size-adjust:100% }
body.wx-unified-shell{background-color:#f4ecdd;background-image:linear-gradient(#f4ecdda6,#f4ecdda6),url('/assets/xuan-paper-fibres.png');background-size:640px 640px;font-family:"Noto Sans SC",system-ui,-apple-system,"Microsoft YaHei",sans-serif}
body.wx-unified-shell>header:is(.topbar,.shelf-topbar){position:sticky;inset:0 0 auto;z-index:80;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 32px;background-color:#faf6eb;background-image:linear-gradient(#faf6ebcc,#faf6ebcc),url('/assets/xuan-paper-fibres.png');background-size:640px 640px;border-bottom:1px solid #d7cbb5;backdrop-filter:blur(14px);box-sizing:border-box}
body.wx-unified-shell>header .brand{display:flex;align-items:center;flex:none;gap:10px;font:800 20px/1.5 'Songti SC','STSong',SimSun,serif;letter-spacing:.04em;color:#303a36;text-decoration:none}
body.wx-unified-shell>header .brand-mark{display:block;width:40px;height:40px;background:none;border:0;border-radius:0;object-fit:contain}
body.wx-unified-shell>header .wx-platform-desktop{display:flex!important;flex:1;order:initial;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px!important;width:auto;margin:0;padding:0;border:0}
body.wx-unified-shell>header .wx-platform-desktop a{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:10px;font:700 16px/1.5 "Noto Sans SC",system-ui,sans-serif;color:#53637b;white-space:nowrap;text-decoration:none;box-sizing:border-box}
body.wx-unified-shell>header .wx-platform-desktop a:not([aria-current=page]){background:transparent!important;border-color:transparent!important;color:#53637b!important;box-shadow:none!important}
body.wx-unified-shell>header .wx-platform-desktop a[aria-current=page]{background:#eee6f5!important;color:#795b8d!important;border-color:#d8c6e2!important;font-size:16px}
body.wx-unified-shell>header :is(.theme-toggle,.shell-theme,.account-open,.account,#account-button){display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;margin:0;padding:10px 12px;border:1px solid #b9cadf;border-radius:10px;background:#eaf1fb;color:#435f96;font:400 14px/1.5 system-ui;white-space:nowrap;text-decoration:none;box-shadow:none;max-width:180px;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
body.wx-unified-shell>header :is(.study-wallet,.shell-wallet){display:flex;align-items:center;gap:4px;flex:none;min-height:44px;padding:10px 12px;border:1px solid #e5d8b5;border-radius:12px;background:#fff9e9;color:#846435;font:400 14px/1.5 system-ui;white-space:nowrap;text-decoration:none;box-sizing:border-box}
body.wx-unified-shell>header :is(.study-wallet,.shell-wallet) :is(span,strong){font:inherit}
body.wx-unified-shell>.wx-platform-mobile{display:none!important}
body.wx-unified-shell .wx-book-navigation{background-color:#faf6eb;background-image:linear-gradient(#faf6ebdd,#faf6ebdd),url('/assets/xuan-paper-fibres.png');background-size:640px 640px}
@media(min-width:761px) and (max-width:1250px){body.wx-unified-shell>header .wx-platform-desktop{order:3;flex-basis:100%;border-top:1px solid #d7cbb5;padding-top:10px}body.wx-unified-shell>header .brand{margin-right:auto}}
@media(max-width:760px){
 body.wx-unified-shell>header:is(.topbar,.shelf-topbar){gap:10px;padding:12px;min-height:64px}
 body.wx-unified-shell>header .brand{font-size:18px;margin-right:auto}
 body.wx-unified-shell>header .wx-platform-desktop{display:none!important}
 body.wx-unified-shell>header :is(.theme-toggle,.shell-theme,.account-open,.account,#account-button){font-size:14px;padding:10px 12px;max-width:145px}
 body.wx-unified-shell>header :is(.study-wallet,.shell-wallet){font-size:14px;padding:8px 10px}
 body.wx-unified-shell>.wx-platform-mobile{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:0!important;position:fixed;inset:auto 0 0;z-index:100;margin:0;padding:5px 3px calc(4px + env(safe-area-inset-bottom));background-color:#faf6eb;background-image:linear-gradient(#faf6ebcc,#faf6ebcc),url('/assets/xuan-paper-fibres.png');background-size:640px 640px;border:1px solid #d7cbb5;border-radius:14px 14px 0 0;box-sizing:border-box}
 body.wx-unified-shell>.wx-platform-mobile>a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:0;min-height:50px;padding:6px 2px!important;color:#6c6558;text-decoration:none;border:0;border-radius:10px;box-sizing:border-box}
 body.wx-unified-shell>.wx-platform-mobile>a>span{display:grid;place-items:center;width:25px;height:25px;border:0;border-radius:50%;background:#eee8db;color:inherit;font:18px/25px serif!important}
 body.wx-unified-shell>.wx-platform-mobile>a>em{font:600 12px/1.5 system-ui!important;white-space:nowrap}
 body.wx-unified-shell>.wx-platform-mobile>a[aria-current=page]{color:#805a96!important;background:#efe6f6!important}
 body.wx-unified-shell>.wx-platform-mobile>a:not([aria-current=page]){color:#6c6558!important;background:transparent!important;box-shadow:none!important}
 body.wx-unified-shell>.wx-platform-mobile>a>span{background:#eee8db!important;color:inherit!important;box-shadow:none!important}
 body.wx-unified-shell>.wx-platform-mobile>a>em{color:inherit!important}
 body.wx-unified-shell>main{padding-bottom:100px}
}
html[data-theme=dark] body.wx-unified-shell{background-color:#171e20;background-image:linear-gradient(#171e20f5,#171e20f5),url('/assets/xuan-paper-fibres.png')}
html[data-theme=dark] body.wx-unified-shell>header,html[data-theme=dark] body.wx-unified-shell>.wx-platform-mobile,html[data-theme=dark] body.wx-unified-shell .wx-book-navigation{background-color:#242e2c;background-image:linear-gradient(#242e2cee,#242e2cee),url('/assets/xuan-paper-fibres.png');border-color:#47574f}
html[data-theme=dark] body.wx-unified-shell>header :is(.brand,.wx-platform-desktop a){color:#e3dfd0}
html[data-theme=dark] body.wx-unified-shell>header :is(.theme-toggle,.shell-theme,.account-open,.account,#account-button,.study-wallet,.shell-wallet){background:#354641;color:#e3dfd0;border-color:#687d6e}

.wx-notebook-shortcut{display:none}@media(max-width:760px){body.wx-unified-shell>header .wx-notebook-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid #c9b791;border-radius:10px;color:#355343;background:#f6efd9;font:700 14px/1.5 system-ui;text-decoration:none}}

/* game-navigation-20261021: retain existing font sizes; scope ninth column to the root navigation with the game destination. */
@media(max-width:760px){body.wx-unified-shell>.wx-platform-mobile:has([data-platform-destination="games"]){grid-template-columns:repeat(9,minmax(0,1fr))!important}}
@media(max-width:760px){body.wx-unified-shell>.wx-platform-mobile:has([data-platform-destination="music"]){grid-template-columns:repeat(10,minmax(48px,1fr))!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}body.wx-unified-shell>.wx-platform-mobile:has([data-platform-destination="music"])>a{min-width:48px}}
/* Compact book spacing; global navigation retains normal typography, book tabs are smaller. */
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header:is(.topbar,.shelf-topbar){position:relative!important;top:auto!important;gap:7px!important;padding:6px 18px!important;min-height:0!important}
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header .brand{font-size:20px;gap:6px}
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header .brand-mark{width:28px;height:28px}
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header .wx-platform-desktop{gap:2px!important;padding-top:3px}
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header .wx-platform-desktop a{min-height:34px;padding:5px 8px;font-size:16px!important;border-radius:5px}
body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header :is(.shell-theme,.account,.shell-wallet,.wx-notebook-shortcut){min-height:34px;padding:5px 8px;font-size:14px;border-radius:6px}
body.wx-unified-shell :is(.sj-breadcrumb,.hy-breadcrumb,.cc-breadcrumb,.sp-breadcrumb){font-size:12px!important;line-height:1.6;padding-block:0 3px!important;margin-block:0 4px!important;gap:7px}
body.wx-unified-shell :is(#sj-main,#hy-main,#cc-main,#books-main){padding-top:7px!important}
body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs){position:relative!important;top:auto!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:4px!important;padding:4px!important;margin-block:0 7px!important;border-radius:6px!important;box-shadow:none!important;min-height:0}
body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs)>:is(a,button){flex:0 0 auto;min-height:34px!important;padding:5px 13px!important;font-size:14px!important;line-height:1.5!important;border-radius:4px;letter-spacing:.02em}
body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs) strong{font-size:14px!important;line-height:1.5}
body.wx-unified-shell :is(.hy-tab-number,.sp-tab-number){display:none!important}
body.wx-unified-shell .hy-booknav{padding:0!important;margin-block:0 4px!important}
@media(max-width:760px){
 body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header:is(.topbar,.shelf-topbar){padding:4px 10px!important;gap:5px!important}
 body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header :is(.shell-theme,.account,.shell-wallet,.wx-notebook-shortcut){min-height:44px;padding:5px 7px;font-size:14px}
 body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs){flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs)>:is(a,button){min-height:44px!important;padding:6px 11px!important;white-space:nowrap;font-size:13px!important}
 body.wx-unified-shell :is(.sj-tabs,.hy-tabs,.cc-tabs,.sp-tabs) strong{font-size:13px!important}
 body.wx-unified-shell :is(.sj-breadcrumb,.hy-breadcrumb,.cc-breadcrumb,.sp-breadcrumb){font-size:11px!important}
}

@media(max-width:760px){body.wx-unified-shell:has(:is(#books-main,#sj-main,#hy-main,#cc-main,#focus-reader))>header .brand{font-size:18px}}
