/* The public pages share one header; editor and lesson content keep their styles. */
body .site-header.public-site-header{position:sticky;top:12px;z-index:50;display:flex;align-items:center;flex-wrap:nowrap;gap:24px;box-sizing:border-box;width:min(1280px,calc(100% - 48px));max-width:1280px;min-height:68px;margin:12px auto 0;padding:12px 24px;border:1px solid #ffffffd9;border-radius:18px;background:linear-gradient(120deg,#ffffff9e,#edf2ff99);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #c4d5f653,0 9px 30px #546d9916;backdrop-filter:blur(30px) saturate(160%);-webkit-backdrop-filter:blur(30px) saturate(160%);color:#273859;font:14px/1.5 "Microsoft YaHei",system-ui,sans-serif}
body .public-site-header *{box-sizing:border-box}
body .public-site-header a{text-decoration:none;color:inherit}
body .public-site-header .brand{display:flex;align-items:center;gap:10px;flex:none;font-size:18px;white-space:nowrap}
body .public-site-header .brand b{font-weight:700}
body .public-site-header .brand img{display:block;flex:0 0 34px;width:34px;height:34px;object-fit:contain}
body .public-site-header nav{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:28px;margin:0 auto;min-width:0}
body .public-site-header nav :is(a,button){position:relative;flex:none;font-size:14px;line-height:24px;white-space:nowrap;padding:0;border:0;color:#4f6582}
body .public-site-header nav :is(a,button):hover,body .public-site-header nav :is(a,button)[aria-current=page]{color:#276bc1}
body .public-site-header nav :is(a,button)[aria-current=page]:after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;background:#77a7e8}
body .public-site-header .header-actions{display:flex;align-items:center;gap:14px;flex:none;margin:0}
body .public-site-header .user-actions{display:none}
body .public-site-header .user-actions.visible{display:flex}
body .public-site-header .header-actions.hidden,body .public-site-header [hidden]{display:none!important}
body .public-site-header .link-button,body .public-site-header .primary{font:inherit;cursor:pointer;white-space:nowrap;border:0;border-radius:10px;padding:9px 16px;margin:0}
body .public-site-header .link-button{padding:8px 0;background:transparent;color:#516884}
body .public-site-header .primary{color:#fff;background:linear-gradient(115deg,#386cf8,#6466ed);box-shadow:inset 0 1px 0 #ffffff5c,0 4px 13px #536be825}
html body .public-site-header #userCenterButton{display:flex!important;align-items:center!important;gap:10px;height:44px;min-height:44px;padding:5px 6px 5px 7px;border:1px solid #b9cff1;border-radius:24px;background:linear-gradient(125deg,#fff,#edf4ff);box-shadow:inset 0 1px #fff,0 3px 12px #4473a914;color:#294b7b;cursor:pointer;font:inherit;white-space:nowrap}
html body .public-site-header #userAvatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;margin:0;overflow:hidden;border-radius:50%;background:#e3efff}
html body .public-site-header #userAvatar img{display:block;width:30px;height:30px;object-fit:cover;border-radius:50%}
html body .public-site-header #userName{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
html body .public-site-header #userCenterButton .home-workspace-label{display:inline-block;margin:0;padding:7px 10px!important;border:1px solid #95b7e54d;border-radius:20px;background:#edf4fcaa!important;color:#315d93!important;box-shadow:inset 0 1px #fff8!important;font-size:13px!important;font-weight:550!important;white-space:nowrap}
body .public-site-header a:focus-visible,body .public-site-header button:focus-visible{outline:2px solid #478de6;outline-offset:4px}
@media(max-width:1100px){body .site-header.public-site-header{gap:16px}body .public-site-header nav{gap:18px}}
@media(max-width:800px){body .site-header.public-site-header{top:8px;width:calc(100% - 20px);min-height:62px;margin:8px auto 0;padding:10px 12px;gap:10px;flex-wrap:wrap}body .public-site-header .brand{font-size:16px}body .public-site-header .header-actions{margin-left:auto}body .public-site-header nav{order:3;flex:0 0 100%;width:100%;gap:18px;padding:3px 0;margin:0}body .public-site-header nav :is(a,button){font-size:12px}html body .public-site-header #userName{max-width:58px}html body .public-site-header #userCenterButton{gap:7px}html body .public-site-header #userCenterButton .home-workspace-label{font-size:12px!important;padding:6px 8px!important}}
@media(max-width:380px){body .public-site-header nav{gap:12px}body .public-site-header .brand{gap:7px;font-size:15px}html body .public-site-header #userName{max-width:42px}}

@media(max-width:560px){html body .public-site-header #userName{display:none}}

/* Keep navigation independent of the account pill and page-specific current-link styles. */
html{scrollbar-gutter:stable}
body #publicSiteHeader{display:grid;grid-template-columns:minmax(110px,1fr) auto minmax(220px,1fr);gap:24px}
body #publicSiteHeader .brand{justify-self:start}
body #publicSiteHeader nav{justify-self:center;margin:0;gap:28px}
body #publicSiteHeader .header-actions{justify-self:end;min-width:0;min-height:44px}
body #publicSiteHeader nav :is(a,button){display:block;margin:0;padding:0;border:0;background:none;font-family:inherit;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0;text-decoration:none;white-space:nowrap}
body #publicSiteHeader nav :is(a,button):before{content:none}
body #publicSiteHeader nav :is(a,button):after{content:none}
body #publicSiteHeader nav :is(a,button)[aria-current=page]{padding:0;border:0;color:#276bc1}
body #publicSiteHeader nav :is(a,button)[aria-current=page]:after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;border:0;border-radius:2px;background:#77a7e8}
@media(max-width:1100px){body #publicSiteHeader{grid-template-columns:minmax(96px,1fr) auto minmax(190px,1fr);gap:16px}body #publicSiteHeader nav{gap:18px}}
@media(max-width:900px){body #publicSiteHeader{display:flex;gap:10px;flex-wrap:wrap}body #publicSiteHeader .header-actions{margin-left:auto}body #publicSiteHeader nav{order:3;flex:0 0 100%;width:100%;gap:18px;padding:3px 0;margin:0}body #publicSiteHeader nav :is(a,button){font-size:12px}}
@media(max-width:380px){body #publicSiteHeader nav{gap:12px}}

body #publicSiteHeader nav button{cursor:pointer;background:transparent;border:0;font-family:inherit}

/* Shared public shell: fixed account geometry and identical directory headings. */
html body #publicSiteHeader{transform:none;transition:none;align-self:start}
html body #publicSiteHeader #userCenterButton,
html body #publicSiteHeader #userCenterButton:hover,
html body #publicSiteHeader #userCenterButton:active{transform:none;transition:background .15s,border-color .15s;line-height:21px}
html body #publicSiteHeader #userName{line-height:21px;font-weight:700}
html body #publicSiteHeader #userCenterButton .home-workspace-label{line-height:21px}
body:has(> #publicSiteHeader) > main:has(> #courseGallery){max-width:1240px;margin:0 auto;padding:0 46px 64px}
html body #creative-tools{padding-top:0}
html body #courseGallery .gallery-heading,
html body #creative-tools .xx-hero{display:block;margin:0;padding:26px 0 24px;font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif}
html body #courseGallery .gallery-heading h1,
html body #creative-tools .xx-hero h1{margin:0;padding:0;font:600 27px/1.4 "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;letter-spacing:-.5px;color:#192c47}
html body #courseGallery .gallery-heading p,
html body #creative-tools .xx-hero p{margin:6px 0 0;padding:0;max-width:none;font:400 13px/1.65 "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;letter-spacing:0;color:#52677f}
@media(max-width:850px){body:has(> #publicSiteHeader)>main:has(> #courseGallery){padding-inline:24px}}
@media(max-width:700px){body:has(> #publicSiteHeader)>main:has(> #courseGallery){padding-inline:18px}html body #courseGallery .gallery-heading,html body #creative-tools .xx-hero{padding:20px 0}html body #courseGallery .gallery-heading h1,html body #creative-tools .xx-hero h1{font-size:23px}html body #courseGallery .gallery-heading p,html body #creative-tools .xx-hero p{font-size:12px}}
/* Where supported, keep public navigation visually continuous across documents. */
@view-transition{navigation:auto}
#publicSiteHeader{view-transition-name:public-navigation}
::view-transition-group(public-navigation){animation:none}
::view-transition-old(public-navigation){display:none}
::view-transition-new(public-navigation){animation:none;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* Own the complete account-pill appearance; never inherit editor-page overrides. */
body:has(> #publicSiteHeader){min-width:0}
html body #publicSiteHeader nav{flex-wrap:nowrap}
@media(max-width:380px){html body #publicSiteHeader nav{gap:10px}html body #publicSiteHeader nav :is(a,button){font-size:11px}}
html body #publicSiteHeader #userCenterButton{justify-content:center;flex-wrap:nowrap;gap:10px;letter-spacing:0;font-family:"Microsoft YaHei",system-ui,sans-serif}
html body #publicSiteHeader #userCenterButton #userName{max-width:100px;margin:0;padding:0;font:600 13px/21px "Microsoft YaHei",system-ui,sans-serif;letter-spacing:0;color:#294b7b}
html body #publicSiteHeader #userCenterButton .home-workspace-label{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;height:32px!important;min-height:32px;min-width:0;margin:0;padding:5px 10px!important;border:1px solid #95b7e54d;border-radius:18px!important;font:550 13px/20px "Microsoft YaHei",system-ui,sans-serif!important;letter-spacing:0;background:#edf4fcaa!important;color:#315d93!important;box-shadow:inset 0 1px #fff8!important;transform:none}
html body #publicSiteHeader #userCenterButton:is(:hover,:active) .home-workspace-label{background:#e5eefb!important;border-color:#a6c1e6;transform:none}
@media(max-width:800px){html body #publicSiteHeader #userCenterButton{gap:7px}html body #publicSiteHeader #userCenterButton #userName{max-width:58px}html body #publicSiteHeader #userCenterButton .home-workspace-label{font-size:12px!important;padding-inline:8px!important}}

/* The first directory controls start exactly where the tools grid starts. */
html body #courseGallery .gallery-tools{align-items:center;gap:12px;margin:0 0 16px;font:400 12px/20px "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif}
html body #courseGallery #courseFilters{align-items:center;gap:4px;font:inherit}
html body #courseGallery #courseFilters button{min-height:32px;margin:0;padding:6px 11px;font:inherit;border-radius:8px}
html body #courseGallery #courseSearch{height:34px;padding:6px 11px;font:inherit}
@media(max-width:600px){html body #courseGallery .gallery-tools{align-items:stretch;flex-direction:column;gap:10px}html body #courseGallery #courseSearch{width:100%}html body #courseGallery #courseFilters{gap:3px}html body #courseGallery #courseFilters button{padding-inline:9px}}
@media(max-width:380px){html body #courseGallery .gallery-heading p,html body #creative-tools .xx-hero p{min-height:3.3em}}
