/* Mobile shell from root demo; desktop rules remain untouched. */

@media(max-width:760px){
 :root{--global-header-height:68px;--mobile-bottom-height:calc(64px + env(safe-area-inset-bottom,0px))}
 body{padding-bottom:var(--mobile-bottom-height)}
 .shell{margin-left:0;padding-left:16px;padding-right:16px;max-width:100%;min-width:0}
 .side{display:none}
 #global-site-header{padding-left:16px;padding-right:16px;padding-top:env(safe-area-inset-top,0px)}
 #global-site-header .top{height:68px;min-height:68px;padding:12px 0;gap:10px;flex-wrap:nowrap;box-sizing:border-box}
 #global-site-header .top .search{order:0;flex:1 1 0;width:0;min-width:0;height:42px;padding:3px 5px 3px 13px;gap:3px}
 #global-site-header .top .search input{font-size:14px}
 #global-site-header .top .search button[type=submit]{width:30px;height:32px;min-width:30px;flex:0 0 30px;padding:5px}
 #global-site-header .top .search button[type=submit] svg{width:18px;height:18px}
 #global-site-header .header-actions{width:auto;flex:0 0 auto;gap:8px;justify-content:flex-end}
 #global-site-header .header-actions .coin-entry{height:36px;padding:0 8px;gap:4px;margin:0}
 #global-site-header .coin-entry .coin-symbol{width:20px;height:20px;flex:0 0 20px}
 #global-site-header .coin-caption{font-size:0}
 #global-site-header .coin-value{font-size:12px;white-space:nowrap}
 #global-site-header .header-download-wrap{display:none}
 #global-site-header .header-actions .download-entry{width:34px;height:36px;padding:0;min-width:0;margin:0;justify-content:center}
 #global-site-header .download-entry>span{display:none}
 #global-site-header .download-entry>svg{width:18px;height:18px}
 #global-site-header .header-download-qr{position:fixed;top:var(--global-header-height);left:auto;right:16px;max-width:calc(100vw - 32px);box-sizing:border-box}
 #global-site-header .account-entry{width:34px;height:34px;padding:0;gap:0}
 #global-site-header .account-avatar,#global-site-header .account-avatar img{width:34px;height:34px}
 #global-site-header .account-copy{display:none}
 #global-site-header .search-discovery{position:fixed;top:calc(var(--global-header-height) - 4px);left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - var(--global-header-height) - var(--mobile-bottom-height) - 20px);padding:20px;border-radius:18px}
 #profile-popover{position:fixed;top:var(--global-header-height);right:16px;max-width:calc(100vw - 32px)}
 .mobile-pages{position:fixed;left:0;right:0;bottom:0;z-index:70;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;height:var(--mobile-bottom-height);box-sizing:border-box;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #ffffff10;background:#171719ed;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);overflow:visible}
 .mobile-pages>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0;min-width:0;min-height:44px;border-radius:10px;font-size:10px;line-height:1.2;color:#96969e;text-decoration:none}
 .mobile-pages>a[data-page=series],.mobile-pages>a[data-page=home-road],.mobile-pages>a[data-page=apps]{display:none}
 .mobile-pages>a svg{width:21px;height:21px;fill:currentColor}
 .mobile-pages>a svg.mobile-account-icon{fill:none;stroke:currentColor;stroke-width:1.7}
 .mobile-pages>a[aria-current=page]{color:var(--accent);background:none}

}

.mobile-menu-trigger{display:none}
#mobile-navigation-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(80vw,360px);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:56px 26px 32px;border:0;border-radius:0;background:#262626;color:#eee;overflow-y:auto;overscroll-behavior:contain;box-shadow:12px 0 40px #0003}
#mobile-navigation-drawer[open]{animation:mobile-drawer-in .22s ease-out}
#mobile-navigation-drawer.is-closing{animation:mobile-drawer-out .18s ease-in forwards}
#mobile-navigation-drawer::backdrop{background:#000a;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.mobile-drawer-close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:36px;height:36px;padding:6px;border:0;border-radius:8px;background:transparent;color:#fff}
.mobile-drawer-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.mobile-drawer-brand{display:flex;justify-content:center;margin:0 0 28px}
.mobile-drawer-brand img{display:block;width:170px;max-width:100%;height:auto}
.mobile-drawer-links{display:grid;gap:11px}
.mobile-drawer-links>a{display:flex;align-items:center;min-height:50px;box-sizing:border-box;padding:12px 18px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff06;color:#eee;text-decoration:none;font-size:16px;line-height:1.5}
.mobile-drawer-links>a[aria-current=page]{color:var(--accent);border-color:#ec20833d;background:#ec20830a}
.mobile-drawer-links>a:hover{background:#ffffff0c}
.mobile-drawer-contact{margin:26px 0 20px;text-align:center;font-size:14px;line-height:2.4;color:#aaa}
.mobile-drawer-contact p{margin:0}.mobile-drawer-contact a{color:inherit;text-decoration:none}.mobile-drawer-contact a:hover{color:var(--accent)}
.mobile-drawer-social{display:flex;align-items:center;justify-content:center;gap:22px}
.mobile-drawer-social a{display:grid;place-items:center;width:36px;height:36px;color:#aaa}
.mobile-drawer-social svg{width:23px;height:23px;fill:currentColor}
.mobile-drawer-social a+a{position:relative}.mobile-drawer-social a+a:before{content:"";position:absolute;left:-12px;width:1px;height:16px;background:#ffffff25}
#mobile-navigation-drawer :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@keyframes mobile-drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes mobile-drawer-out{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@media(max-width:760px){
 :root{--mobile-bottom-height:0px}
 body{padding-bottom:env(safe-area-inset-bottom,0px)}
 body.mobile-drawer-open{overflow:hidden}
 .mobile-pages{display:none!important}
 #global-site-header .top{gap:8px}
 #global-site-header .mobile-menu-trigger{display:grid;place-items:center;flex:0 0 30px;width:30px;height:40px;padding:4px;border:0;background:transparent;color:#eee}
 .mobile-menu-trigger svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
 #mobile-navigation-drawer{padding-top:calc(60px + env(safe-area-inset-top,0px));padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))}
 .mobile-drawer-close{top:calc(12px + env(safe-area-inset-top,0px))}
}
@media(max-width:390px){#global-site-header .header-actions{gap:5px}#global-site-header .header-actions .coin-entry{padding:0 6px}#global-site-header .top .search{padding-left:9px}#mobile-navigation-drawer{padding-left:22px;padding-right:22px}.mobile-drawer-brand img{width:150px}}
@media(prefers-reduced-motion:reduce){#mobile-navigation-drawer[open],#mobile-navigation-drawer.is-closing{animation:none}}

#mobile-navigation-drawer{width:min(72vw,280px);padding-left:18px;padding-right:18px;background:#1d1d1f}
#mobile-navigation-drawer .mobile-drawer-brand{justify-content:flex-start;margin-bottom:22px}
#mobile-navigation-drawer .mobile-drawer-brand img{width:140px;height:auto}
#mobile-navigation-drawer .mobile-drawer-links{gap:5px}
#mobile-navigation-drawer .mobile-drawer-links>a{position:relative;gap:13px;min-height:46px;padding:12px 14px;border:0;border-radius:9px;background:transparent;font-size:14px;color:#a8a8ae}
#mobile-navigation-drawer .mobile-drawer-links>a svg,#mobile-navigation-drawer .mobile-drawer-links>a img{display:block;width:21px;height:21px;flex:0 0 21px;fill:currentColor}
#mobile-navigation-drawer .mobile-drawer-links>a:hover{background:#ffffff06;color:#eee}
#mobile-navigation-drawer .mobile-drawer-links>a[aria-current=page]{background:#ec208310;color:var(--accent)}
#mobile-navigation-drawer .mobile-drawer-links>a[aria-current=page]:before{content:"";position:absolute;left:0;top:50%;width:3px;height:22px;border-radius:3px;background:var(--accent);transform:translateY(-50%)}
#mobile-navigation-drawer .mobile-drawer-info{margin-top:26px;padding:24px 14px 0;border-top:1px solid #ffffff10}
#mobile-navigation-drawer .mobile-drawer-info>strong{display:flex;align-items:baseline;gap:4px}
#mobile-navigation-drawer .side-info-wordmark{display:block;width:70px;height:auto}
#mobile-navigation-drawer .side-info-brand-dot{display:block;width:4px;height:4px;border-radius:50%;background:var(--accent)}
#mobile-navigation-drawer .side-info-slogan{margin:12px 0 20px;color:#929298;font-size:12px;line-height:1.8;white-space:nowrap}
#mobile-navigation-drawer .policy-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
#mobile-navigation-drawer .policy-links a{display:flex;align-items:center;min-height:36px;color:#96969e;font-size:12px;text-decoration:none}
#mobile-navigation-drawer .policy-links a:hover,#mobile-navigation-drawer .policy-links a[aria-current=page]{color:var(--accent)}
#mobile-navigation-drawer .mobile-drawer-info>small{display:block;margin-top:18px;font-size:10px;line-height:1.9;color:#68686f}
#mobile-navigation-drawer .mobile-drawer-social{justify-content:flex-start;gap:14px;margin-top:20px;padding-left:10px}
#mobile-navigation-drawer .mobile-drawer-social a{width:36px;height:36px}
#mobile-navigation-drawer .mobile-drawer-social img{display:block;width:22px;height:22px;object-fit:contain}
#mobile-navigation-drawer .mobile-drawer-social a+a:before{content:none}

@media(max-width:760px){
 body:has(#global-site-header){font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:auto}
 body .shell,.sidebar-collapsed body .shell{margin-left:0;padding-left:16px;padding-right:16px}
 body:not(.jgdj-home)>main:not(.shell){padding-left:16px;padding-right:16px}
 #global-site-header .top .search input{width:100%;min-width:0}
 #headerSearchPanel.search-discovery{position:fixed;top:64px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 88px)}
 #info-page.info-shell{padding-top:22px}
 #info-page .info-heading h1{font-size:26px;line-height:1.3}
 #info-page .page-breadcrumb,#info-page .page-breadcrumb :is(a,span){font-size:12px;line-height:1.6}
 #info-page .page-breadcrumb{gap:8px}
}

@media(max-width:760px){
 .home-content{--module-gap:30px;--promotion-gap:18px;--module-inset:0px}
 .home-content .hero{height:440px;border-radius:18px;touch-action:pan-y}
 .home-content .hero-art{height:100%;width:100%;object-fit:cover;object-position:64% center;opacity:.8}
 .home-content .hero:after{background:linear-gradient(0deg,#0c1114 0%,#0c1114d9 20%,#0c111435 80%)}
 .home-content .hero-content{inset:auto 0 100px;width:100%;padding:20px;max-width:none}
 .home-content .hero-content .eyebrow{font-size:10px;letter-spacing:1px}
 .home-content .hero-content h1{font-size:26px;line-height:1.35;letter-spacing:0;margin:12px 0 8px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .home-content .hero-content .english{display:none}
 .home-content .hero-content>p{font-size:12px;line-height:1.65;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .home-content .hero-rating{margin-top:10px;gap:12px;font-size:12px;flex-wrap:wrap}
 .home-content .hero-content .actions{margin-top:14px}
 .home-content .hero-content .primary{padding:10px 18px;font-size:14px;min-height:40px}
 .home-content .hero-previews{left:42px;right:42px;bottom:24px;max-width:none;width:auto;gap:6px}
 .home-content .hero-preview{height:58px;min-height:0;max-height:58px;border-radius:6px}
 .home-content .hero-preview img{height:100%;width:100%;object-fit:cover}
 .home-content .hero-preview-arrow.prev{left:-30px}.home-content .hero-preview-arrow.next{right:-30px}
 .home-content .hero-bottom{display:none}

}

@media(max-width:760px){
 html body main.shell,html.sidebar-collapsed body main.shell{padding-left:16px;padding-right:16px}
 .home-content .hero-previews{display:none}
 .home-content .hero-content{bottom:24px}
 .home-content .hero-bottom{display:flex;position:absolute;left:auto;right:16px;bottom:4px;padding:0;gap:10px;height:32px;font-size:12px;line-height:32px;color:#fff}
 .home-content .hero-bottom .dots{gap:5px}
 .home-content .hero-bottom .dots i{width:5px;height:5px;background:#ffffff70}
 .home-content .hero-bottom .dots i.on{width:23px;background:var(--accent)}
 body #channel-page .page-breadcrumb,body #channel-page .page-breadcrumb :is(a,span){font-size:12px;line-height:1.6}
 body #channel-page .page-breadcrumb{gap:8px}
 #info-page .deposit-breadcrumb,#info-page .deposit-breadcrumb :is(a,span){font-size:12px;line-height:1.6}
 #info-page .deposit-breadcrumb{gap:8px}

}

/* Current demo application directory layout. */

@media(max-width:760px){
 #channel-page[data-channel="apps"] .benefits-directory{width:100%;min-width:0}
 #channel-page[data-channel="apps"] .benefits-directory>.channel-tabs{display:flex;flex-wrap:nowrap;width:100%;min-width:0;box-sizing:border-box;margin:0 0 24px;padding:8px 0;gap:8px;overflow-x:auto;scrollbar-width:none;top:var(--global-header-height);background:transparent;backdrop-filter:none}
 #channel-page[data-channel="apps"] .benefits-directory>.channel-tabs::-webkit-scrollbar{display:none}
 #channel-page[data-channel="apps"] .benefits-directory>.channel-tabs button{flex:0 0 auto;min-height:36px;padding:8px 12px;font-size:12px;line-height:18px;white-space:nowrap;border-radius:999px}
 #channel-page[data-channel="apps"] .benefit-heading{margin-bottom:16px}
 #channel-page[data-channel="apps"] .benefit-heading h2{font-size:18px;margin-bottom:6px}
 #channel-page[data-channel="apps"] .benefit-heading p{font-size:12px;line-height:1.7}
 #channel-page[data-channel="apps"] .benefit-section{margin-bottom:28px;scroll-margin-top:calc(var(--global-header-height) + 64px)}
 #channel-page[data-channel="apps"] .benefit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 10px}
 #channel-page[data-channel="apps"] .benefit-card{box-sizing:border-box;height:100%;padding:0;gap:8px;border:0;border-radius:0;background:transparent;justify-content:flex-start}
 #channel-page[data-channel="apps"] .benefit-card:hover{background:transparent}
 #channel-page[data-channel="apps"] .benefit-icon{width:100%;height:auto;max-width:72px;aspect-ratio:1;flex:none}
 #channel-page[data-channel="apps"] .benefit-copy strong{font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
 #channel-page[data-channel="apps"] .benefit-copy small{display:block;font-size:12px;line-height:1.6;margin-top:5px;white-space:normal;overflow:visible;-webkit-line-clamp:unset}
}

@media(max-width:760px){#info-page.deposit-page .deposit-section-heading>h2{display:block}}
/* Allow the account grid to shrink at the desktop/mobile boundary. */
@media(min-width:761px) and (max-width:1000px){.is-user-center-page #info-content,.is-user-center-page .member-center{min-width:0}.is-user-center-page .member-summary{flex-wrap:wrap}.is-user-center-page .member-library-tabs{flex-wrap:wrap}}
@media(max-width:760px){
 #channel-page .info-heading h1,#info-page.deposit-page .info-heading h1{font-size:26px;line-height:1.3;color:var(--text)}
 body #channel-page .topic-breadcrumb,body #channel-page .topic-breadcrumb :is(a,span){font-size:12px;line-height:1.6}
 body #channel-page .topic-breadcrumb{gap:8px;color:var(--muted)}
 body #channel-page .topic-breadcrumb>span:not([aria-current]){margin-inline:0}
}
