/* Mobile homepage: short sections, touch targets and compact app directories. */
.portal-home [hidden]{display:none!important}.portal-home h2,.portal-home h3{letter-spacing:0}.portal-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 10px}.portal-intro h1{font-size:17px;letter-spacing:-.035em}.portal-intro>span{font-size:10px;color:#999;white-space:nowrap}.mobile-platforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 16px 4px;border-bottom:1px solid #eee;padding-bottom:15px}.mobile-platforms a{display:grid;place-items:center;min-height:34px;border-radius:6px;background:#f5f5f5;font-size:11px}.portal-mobile-section{margin:0 16px;padding:17px 0;border-bottom:1px solid #eaeaea}.portal-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;margin-bottom:12px}.portal-section-head h2{font-size:17px;font-weight:600}.portal-section-head>a,.portal-section-head>span{font-size:11px;color:#888;white-space:nowrap;min-height:30px;display:flex;align-items:center}.strip-apps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 8px}.strip-item{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0}.strip-item .app-icon{width:45px;height:45px;border-radius:11px}.strip-item strong{font-size:11px;font-weight:400;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-spotlight{display:flex;align-items:center;gap:13px;margin:15px 16px 0;background:#f7f7f7;padding:10px;border-radius:7px}.spotlight-image{position:relative;display:block;flex:0 0 108px;aspect-ratio:16/10;background:#eee;border-radius:5px;overflow:hidden}.spotlight-image img{width:100%;height:100%;object-fit:cover;display:block}.mobile-spotlight-copy{min-width:0;display:block}.mobile-spotlight-copy small{display:block;font-size:10px;color:#8a8a8a}.mobile-spotlight-copy strong{display:block;font-size:14px;font-weight:600;margin:3px 0}.mobile-spotlight-copy>span{display:block;font-size:10px;color:#888}.image-unavailable:after{content:'查看详情';position:absolute;inset:0;display:grid;place-items:center;font-size:11px;color:#777}.update-section{padding-top:20px}.home-tabs{display:flex;gap:19px;align-items:center}.home-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:6px 2px;min-height:36px;color:#888;font-size:12px}.home-tabs button[aria-selected=true]{color:#222;border-bottom-color:#222;font-weight:600}.home-panel-label{font-size:12px;color:#777;margin-bottom:8px}.tabs-ready .home-panel-label{display:none}.update-list{display:flex;flex-direction:column}.update-entry{display:grid;grid-template-columns:55px 22px minmax(0,1fr) 31px;align-items:center;gap:8px;min-height:43px;border-bottom:1px solid #f2f2f2}.update-category{font-size:10px;color:#999;white-space:nowrap}.update-entry .app-icon{width:22px;height:22px;border-radius:5px}.update-entry strong{font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.update-entry time{font-size:10px;font-variant-numeric:tabular-nums;color:#999;text-align:right}.update-more{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#999;margin-top:9px}.update-more a{font-size:11px;color:#777;min-height:32px;display:flex;align-items:center}.portal-updates .portal-section-head{margin-bottom:1px}.next-recommend{display:flex;align-items:center;gap:5px;border:0;background:none;color:#888;font-size:11px;padding:6px 0;min-height:36px}.next-recommend>span{font-size:17px}.recommend-card{position:relative}.recommend-app-head{display:flex;align-items:center;gap:11px;min-width:0;padding-right:0}.recommend-app-head .app-icon{width:42px;height:42px;border-radius:10px}.recommend-app-head>span{min-width:0}.recommend-app-head strong{display:block;font-size:13px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.recommend-app-head small{display:block;font-size:10px;color:#888;margin-top:4px}.recommend-card>p{font-size:12px;color:#777;line-height:1.85;margin:10px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}.recommend-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#999}.recommend-footer>a{display:flex;align-items:center;justify-content:center;border:1px solid #e1e1e1;border-radius:6px;min-height:34px;font-size:11px;color:#555;padding:4px 11px}.recommend-card+.recommend-card{margin-top:17px}.software-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.software-library-item{display:flex;align-items:center;gap:10px;min-width:0;min-height:61px;border-bottom:1px solid #f1f1f1}.software-library-item .app-icon{width:35px;height:35px;border-radius:9px}.software-library-item>span{min-width:0}.software-library-item strong{display:block;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.software-library-item small{display:block;font-size:10px;color:#999;margin-top:3px}.software-library-item:nth-last-child(-n+2){border-bottom:0}.score-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.score-entry{display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0;position:relative}.score-position{display:none}.score-entry .app-icon{width:44px;height:44px;border-radius:11px}.score-copy{max-width:100%;min-width:0}.score-copy strong{font-size:11px;font-weight:400;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-copy small{display:none}.score-number{font-size:12px;font-weight:500;color:#444;line-height:1.4}.score-number:before{content:'☆';font-size:11px;margin-right:3px}.score-note{font-size:10px;color:#999;margin-top:11px}.portal-score .portal-section-head{margin-bottom:14px}.more-games{row-gap:19px}.mobile-category-group{display:flex;align-items:baseline;gap:12px;padding:5px 0 8px}.mobile-category-group h3{font-size:11px;color:#999;flex:0 0 23px;font-weight:400}.mobile-category-group nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;gap:0 8px}.mobile-category-group nav a{font-size:11px;color:#555;min-height:36px;display:flex;align-items:center;white-space:nowrap}.category-section{padding-bottom:8px}.portal-empty{font-size:12px;color:#888;padding:14px 0}
@media(max-width:360px){.portal-intro{padding-left:14px;padding-right:14px}.portal-intro h1{font-size:15px}.portal-intro>span{font-size:9px}.mobile-platforms{margin-left:14px;margin-right:14px;gap:5px}.mobile-platforms a{font-size:10px}.portal-mobile-section{margin-left:14px;margin-right:14px}.strip-apps{gap:15px 5px}.strip-item .app-icon{width:40px;height:40px;border-radius:10px}.strip-item strong{font-size:10px}.mobile-spotlight{margin-left:14px;margin-right:14px;gap:10px;padding:9px}.spotlight-image{flex-basis:99px}.mobile-spotlight-copy strong{font-size:13px}.mobile-spotlight-copy>span{font-size:9px}.update-entry{grid-template-columns:50px 20px minmax(0,1fr) 28px;gap:7px}.update-category{font-size:9px}.update-entry strong{font-size:11px}.update-entry .app-icon{width:20px;height:20px}.software-library-grid{column-gap:12px}.software-library-item{gap:8px}.software-library-item strong{font-size:11px}.software-library-item .app-icon{width:32px;height:32px}.score-entry .app-icon{width:38px;height:38px}.score-copy strong{font-size:10px}.mobile-category-group{gap:8px}.mobile-category-group nav{column-gap:6px}.mobile-category-group nav a{font-size:10px}}
@media(min-width:480px){.strip-apps{gap:20px 12px}.strip-item .app-icon{width:51px;height:51px}.strip-item strong{font-size:12px}.portal-mobile-section{padding-top:21px;padding-bottom:21px}.software-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.software-library-item:nth-last-child(3){border:0}.update-entry{grid-template-columns:70px 24px minmax(0,1fr) 38px;gap:12px}.update-entry strong{font-size:13px}.spotlight-image{flex-basis:150px}}

.home-tabs{display:none}.tabs-ready .home-tabs{display:flex}.recommend-ready .recommend-card{margin-top:0}

/* Server-rendered topic collections: ordinary links stay available without JavaScript. */
.home-topics{--home-topic-ink:#292631;--home-topic-muted:#696570;--home-topic-accent:#725390;--home-topic-line:#ece9ef;padding-top:20px;border-top:1px solid var(--home-topic-line)}
.home-topics .portal-section-head{margin-bottom:0;min-height:36px}
.home-topics .portal-section-head>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--home-topic-muted)}
.home-topics-intro{margin:0 0 17px;color:var(--home-topic-muted);font-size:13px;line-height:1.6}
.home-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-topic-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-topic-card{min-width:0;border:1px solid var(--home-topic-line);border-radius:10px;background:#fff;overflow:hidden}
.home-topic-link{display:flex;flex-direction:column;height:100%;color:var(--home-topic-ink);text-decoration:none}
.home-topic-cover{display:flex;align-items:center;justify-content:center;gap:12px;aspect-ratio:16/7;background:#f3f0f7;overflow:hidden;flex-shrink:0}
.home-topic-cover img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;color:var(--home-topic-muted);font-size:13px}
.home-topic-cover-empty{background:linear-gradient(120deg,#efe9f5,#f5f4f8);color:var(--home-topic-accent)}
.home-topic-cover-empty .icon{width:32px;height:32px;flex-shrink:0}
.home-topic-cover-empty>span{font-size:17px;font-weight:500;letter-spacing:2px}
.home-topic-copy{display:flex;flex-direction:column;flex:1;min-width:0;padding:16px}
.home-topic-copy h3{margin:0;color:var(--home-topic-ink);font-size:17px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.home-topic-copy>p{margin:8px 0 14px;color:var(--home-topic-muted);font-size:13px;line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.home-topic-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;color:var(--home-topic-muted);font-size:12px;line-height:1.6}
.home-topic-cta{color:var(--home-topic-accent);white-space:nowrap}
.home-topics a:focus-visible{outline:2px solid var(--home-topic-accent);outline-offset:-3px;border-radius:8px}
.home-topic-link:active{background:#faf8fc}
@media(hover:hover){.home-topic-link:hover{background:#faf8fc}.home-topic-link:hover h3{color:var(--home-topic-accent)}.home-topic-link:hover .home-topic-cta{text-decoration:underline;text-underline-offset:3px}}
.home-topic-grid-single{grid-template-columns:1fr}
.home-topic-grid-single .home-topic-link{display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr)}
.home-topic-grid-single .home-topic-cover{height:100%;min-height:160px;aspect-ratio:auto}
.home-topic-grid-single .home-topic-copy{padding:22px 26px;justify-content:center}
.home-topic-grid-single .home-topic-meta{margin-top:4px}
@media(max-width:980px){.home-topic-grid{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.home-topic-grid-single{grid-template-columns:1fr}}
@media(max-width:700px){.home-topic-grid{gap:12px}.home-topic-copy{padding:12px}.home-topic-copy h3{font-size:15px}.home-topic-copy>p{font-size:12px}.home-topic-meta{font-size:12px;flex-wrap:wrap}.home-topic-cover-empty{gap:8px}.home-topic-cover-empty .icon{width:24px;height:24px}.home-topic-cover-empty>span{font-size:14px;letter-spacing:1px}.home-topic-grid-single .home-topic-link{display:flex}.home-topic-grid-single .home-topic-cover{aspect-ratio:16/7;min-height:0;height:auto}.home-topic-grid-single .home-topic-copy{padding:16px}.home-topic-grid-single .home-topic-copy h3{font-size:17px}}
@media(max-width:360px){.home-topic-grid{grid-template-columns:1fr}.home-topic-copy h3{font-size:16px}}
.home-topics{margin:0 16px;padding:17px 0;border-top:0;border-bottom:1px solid var(--home-topic-line)}
.home-topics .portal-section-head h2{font-size:18px}
.home-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-topic-grid-single{grid-template-columns:1fr}
.home-topics-intro{font-size:12px;margin-bottom:14px}
@media(max-width:360px){.home-topics{margin-left:14px;margin-right:14px}.home-topic-grid{grid-template-columns:1fr}}
@media(min-width:480px){.home-topics{padding-top:21px;padding-bottom:21px}}