/* Homepage only: compact download directory with three editorial columns. */
.portal-home{--portal-line:#e8e8e8;--portal-muted:#787878}.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:20px;margin:0 0 17px}.portal-intro h1{font-size:19px;letter-spacing:-.025em}.portal-intro-right{display:flex;align-items:center;gap:18px;font-size:11px;color:var(--portal-muted)}.portal-intro nav{display:flex;gap:14px}.portal-intro nav a:hover{text-decoration:underline}.portal-count{border-right:1px solid #ddd;padding-right:18px}.portal-strip{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;padding:17px 0 18px;border-top:1px solid var(--portal-line);border-bottom:1px solid var(--portal-line)}.strip-caption{border-right:1px solid var(--portal-line);padding:8px 16px 8px 0}.strip-caption h2{font-size:14px;line-height:1.7;max-width:3em}.strip-caption a{display:block;font-size:11px;color:#888;margin-top:5px}.strip-apps{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;padding-left:20px}.strip-item{display:flex;align-items:center;flex-direction:column;min-width:0;gap:7px}.strip-item .app-icon{width:51px;height:51px;border-radius:12px}.strip-item strong{font-size:12px;font-weight:400;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strip-item:hover strong,.portal-home .text-entry:hover strong{text-decoration:underline;text-underline-offset:3px}.portal-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,.82fr);column-gap:26px;margin:24px 0 28px}.portal-column{min-width:0}.portal-column+.portal-column{border-left:1px solid var(--portal-line);padding-left:25px}.portal-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;margin-bottom:10px}.portal-section-head h2{font-size:17px;font-weight:600}.portal-section-head>a,.portal-section-head>span{color:#858585;font-size:11px;white-space:nowrap}.portal-section-head a:hover{text-decoration:underline}.spotlight-main{display:block}.spotlight-image{position:relative;display:block;aspect-ratio:16/9;background:#f3f3f3;border-radius:8px;overflow:hidden}.spotlight-image>img{display:block;width:100%;height:100%;object-fit:cover}.spotlight-copy{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0}.spotlight-copy strong{font-size:15px;font-weight:600}.spotlight-copy small{color:#888;font-size:11px}.spotlight-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-bottom:18px;border-bottom:1px solid var(--portal-line)}.spotlight-thumbs a{min-width:0}.spotlight-thumbs .spotlight-image{aspect-ratio:1.8;border-radius:5px}.spotlight-thumbs strong{display:block;font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px}.image-unavailable:after{content:'查看应用详情';position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#777}.portal-category-block{margin-top:17px}.portal-category-block .portal-section-head{margin-bottom:6px}.portal-category-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.portal-category-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #f0f0f0;min-height:33px;font-size:12px}.portal-category-links a:hover{background:#fafafa}.portal-category-links small{font-size:10px;color:#999}.portal-headline{border-bottom:1px solid var(--portal-line);padding:3px 0 16px;margin-bottom:9px}.portal-headline>a{font-size:18px;font-weight:600;line-height:1.5;display:block}.portal-headline>p{font-size:12px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}.portal-headline-meta{display:flex;gap:14px;margin-top:8px;font-size:10px;color:#999}.home-tabs{display:flex;align-items:center;gap:15px}.home-tabs button{font-size:12px;padding:6px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:#888;min-height:34px}.home-tabs button[aria-selected=true]{color:#222;border-bottom-color:#222;font-weight:600}.home-panel-label{font-size:12px;margin:6px 0;color:#777}.tabs-ready .home-panel-label{display:none}.update-list{display:flex;flex-direction:column}.update-entry{display:grid;grid-template-columns:64px 22px minmax(0,1fr) 35px;align-items:center;column-gap:9px;min-height:38px;border-bottom:1px solid #f3f3f3}.update-category{color:#858585;font-size:10px;white-space:nowrap}.update-entry>.app-icon{width:20px;height:20px;border-radius:5px}.update-entry>strong{font-size:12px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.update-entry>time{font-size:10px;color:#999;text-align:right;font-variant-numeric:tabular-nums}.update-entry:hover>strong{text-decoration:underline;text-underline-offset:3px}.update-more{display:flex;justify-content:space-between;align-items:center;padding-top:11px;font-size:10px;color:#888}.update-more a{font-size:11px;color:#666}.portal-recommend{padding-bottom:16px;border-bottom:1px solid var(--portal-line)}.next-recommend{border:0;background:none;padding:6px 0;min-height:32px;display:flex;align-items:center;gap:5px;font-size:11px;color:#888}.next-recommend .icon{width:13px;height:13px}.next-recommend:hover{color:#222}.recommend-app-head{display:flex;align-items:center;gap:12px;min-width:0}.recommend-app-head>.app-icon{width:46px;height:46px;border-radius:11px}.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;color:#888;font-size:10px;margin-top:4px}.recommend-card>p{color:#777;line-height:1.8;font-size:12px;margin:11px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:64px}.recommend-footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#999}.recommend-footer>a{font-size:11px;border:1px solid #ddd;padding:3px 10px;border-radius:5px;color:#444}.recommend-card+.recommend-card{margin-top:16px}.portal-score{margin-top:16px}.portal-score .portal-section-head{margin-bottom:3px}.score-list{margin:0;padding:0;list-style:none}.score-entry{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #f0f0f0;min-width:0}.score-position{font-size:11px;color:#aaa;min-width:10px;font-variant-numeric:tabular-nums}.score-entry .app-icon{width:31px;height:31px;border-radius:8px}.score-copy{flex:1;min-width:0}.score-copy strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:400}.score-copy small{display:block;color:#999;font-size:10px}.score-number{font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}.score-note{font-size:10px;color:#999;margin-top:8px}.portal-library{border-top:1px solid var(--portal-line);padding-top:19px;margin-top:24px}.library-heading{display:flex;align-items:center;gap:20px;margin-bottom:16px}.library-heading h2{font-size:19px}.library-heading>span{color:#999;font-size:11px}.library-heading nav{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:11px;color:#777}.library-heading nav a:hover{text-decoration:underline}.library-filter-links{display:flex;flex-wrap:wrap;gap:8px 20px;padding-bottom:17px;font-size:11px;color:#777}.game-library-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:20px 15px}.game-library-grid .strip-item{gap:6px}.game-library-grid .app-icon{width:45px;height:45px;border-radius:11px}.game-library-grid .strip-item small{color:#999;font-size:10px;line-height:1.4}.software-library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:25px}.software-library-item{display:flex;align-items:center;gap:10px;padding:12px 0;min-width:0;border-bottom:1px solid #f1f1f1}.software-library-item>.app-icon{width:35px;height:35px;border-radius:8px}.software-library-item>span{min-width:0}.software-library-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:400}.software-library-item small{display:block;font-size:10px;color:#999;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-boards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px;margin:28px 0 6px;padding-top:19px;border-top:1px solid var(--portal-line)}.category-board{min-width:0}.category-board h2{display:flex;align-items:baseline;justify-content:space-between;font-size:15px;margin-bottom:9px}.category-board h2 a{font-size:10px;color:#888;font-weight:400}.text-entry{display:flex;align-items:center;gap:9px;min-width:0;min-height:31px}.text-entry:before{content:'';width:3px;height:3px;background:#b8b8b8;border-radius:50%;flex-shrink:0}.text-entry strong{font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.text-entry small{font-size:10px;color:#999}.portal-empty{font-size:12px;color:#888;padding:18px 0}
@media(min-width:1500px){.portal-dashboard{column-gap:30px}.portal-column+.portal-column{padding-left:29px}.update-entry{min-height:39px}}
@media(max-width:1200px){.portal-dashboard{column-gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,.85fr)}.portal-column+.portal-column{padding-left:19px}.strip-apps{gap:8px;padding-left:14px}.strip-item .app-icon{width:45px;height:45px}.strip-item strong{font-size:11px}.update-entry{grid-template-columns:54px 19px minmax(0,1fr) 30px;column-gap:6px}.update-category{font-size:9px}.portal-headline>a{font-size:16px}.score-entry{gap:7px}.score-entry .app-icon{width:27px;height:27px}.portal-section-head h2{font-size:15px}.software-library-grid{column-gap:20px}.portal-intro-right{gap:10px}.portal-intro nav{gap:10px}}
@media(max-width:980px){.portal-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.portal-column:last-child{grid-column:1/-1;border-left:0;border-top:1px solid var(--portal-line);padding:19px 0 0;margin-top:22px;display:grid;grid-template-columns:1fr 1.3fr;gap:25px}.portal-recommend{border-bottom:0;padding:0}.portal-score{margin:0;border-left:1px solid var(--portal-line);padding-left:24px}.score-list{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.score-list>li:last-child{display:none}.portal-count{display:none}.strip-apps{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:14px}.strip-caption h2{max-width:4em}.game-library-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.software-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-boards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.portal-intro{align-items:start;gap:10px;flex-wrap:wrap}.portal-intro h1{font-size:18px}.portal-intro nav{font-size:10px}.portal-strip{grid-template-columns:1fr}.strip-caption{display:flex;align-items:center;justify-content:space-between;border:0;padding:0 0 10px}.strip-caption h2{max-width:none}.strip-caption a{margin:0}.strip-apps{padding-left:0}.portal-dashboard{display:block}.portal-column+.portal-column{border-left:0;border-top:1px solid var(--portal-line);padding:20px 0 0;margin-top:20px}.portal-column:last-child{display:block}.portal-score{padding:18px 0 0;border-left:0;border-top:1px solid var(--portal-line);margin-top:18px}.score-list{grid-template-columns:1fr}.score-list>li:last-child{display:block}.spotlight-image{max-height:280px}.update-entry{grid-template-columns:62px 22px minmax(0,1fr) 35px;column-gap:9px;min-height:41px}.update-category{font-size:10px}.game-library-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 9px}.game-library-grid .app-icon{width:42px;height:42px}.software-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.library-heading{gap:10px;flex-wrap:wrap}.library-heading h2{font-size:17px}.library-heading nav{gap:12px}.category-boards{gap:20px}.portal-section-head h2{font-size:17px}}

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

.strip-caption h2{max-width:2em}.update-entry>strong{font-size:13px}@media(max-width:980px){.strip-caption h2{max-width:none}}

/* 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 12px;color:var(--home-topic-muted);font-size:13px;line-height:1.6}
.home-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.home-topic-card{min-width:0;border:1px solid var(--home-topic-line);border-radius:8px;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;max-height:120px;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:11px 12px}
.home-topic-copy h3{margin:0;color:var(--home-topic-ink);font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.home-topic-copy>p{margin:6px 0 10px;color:var(--home-topic-muted);font-size:12px;line-height:1.7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;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}}
@media(max-width:1100px){.home-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.home-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.home-topic-grid{gap:12px}.home-topic-meta{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}}
@media(max-width:420px){.home-topic-grid{grid-template-columns:1fr}}
