:root{--ink:#17191d;--muted:#777d86;--line:#dedfdf;--paper:#f7f8fa;--card:#fff;--lime:#cbff4d;--lav:#e8e1ff;--blue:#dce9ff;--three:#ff6a1f}
*{box-sizing:border-box}
button,input,select,textarea{border-radius:0}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,"Noto Sans SC",sans-serif}
a{text-decoration:none;color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding-left:30px;padding-right:30px}
.site-header{height:54px;position:sticky;top:0;z-index:8;background:var(--paper);box-shadow:0 8px 18px #17191d0a;display:flex;align-items:center;justify-content:space-between;max-width:1240px;margin:auto;padding:0 30px;border-bottom:1px solid var(--line);font-size:13px}
.brand{display:flex;align-items:center;gap:0;font-weight:800;letter-spacing:-.04em}
.brand-mark{font-size:22px;letter-spacing:-.1em}
.brand-dot,.brand [data-slot="brand-text"]{font-size:22px;letter-spacing:-.06em;color:var(--three)}
.brand-dot{margin-right:-1px}
.brand i{font-style:normal;color:#aaa}
.brand-sub{font-weight:500;color:#85888d;letter-spacing:0;font-size:11px;margin-left:2px}
.nav-links{display:flex;gap:31px;color:#656a72}
.nav-links a:hover,.submit-link:hover{color:var(--ink)}
.submit-link{font-weight:700}
.header-search{position:absolute;left:50%;transform:translateX(-50%);width:240px;height:32px;margin:0}
.language-switch{display:flex;overflow:hidden;border:1px solid var(--line);border-radius:0;background:transparent}
.lang-button{border:0;background:transparent;color:var(--muted);padding:7px 9px;font:11px "DM Mono",monospace;cursor:pointer}
.lang-button.active{background:var(--ink);color:white}
.lang-button:hover:not(.active){color:var(--ink)}
.submit-link span{color:#7f58ff;font-size:15px}
.hero{min-height:30vh;display:flex;align-items:center;justify-content:space-between;position:relative}
.hero-copy{padding:12px 0}
.home-main{position:relative}
.ad-slot{background:var(--card);border:1px solid var(--line);border-radius:0;padding:14px 14px 13px;box-shadow:0 8px 28px #17191d14;transition:transform .2s,box-shadow .2s}
.ad-slot-tag{display:none}
.ad-slot-mini{display:none}
.ad-slot-eyebrow{font:500 9px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.08em;color:#888d95;margin:0 0 10px;text-align:center;padding-bottom:8px;border-bottom:1px dashed var(--line)}
.ad-slot-brand{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.ad-slot-logo{width:30px;height:30px;border-radius:0;background:var(--lime);display:grid;place-items:center;font-size:16px;color:var(--ink);font-weight:800;flex-shrink:0}
.ad-slot-name{font-weight:800;font-size:14px;letter-spacing:-.02em;color:var(--ink)}
.ad-slot-desc{font-size:11px;line-height:1.55;color:#82868d;margin:0 0 11px}
.ad-slot-email-box{background:#f3f4f5;border-radius:0;padding:8px 10px;margin-bottom:11px;text-decoration:none;display:flex;flex-direction:column;gap:3px}
.ad-slot-email-label{display:block;font:500 9px "DM Mono",monospace;color:#999;text-transform:uppercase;letter-spacing:.06em}
.ad-slot-email-value{display:block;font:700 11.5px "DM Mono",monospace;color:var(--ink);text-decoration:none;word-break:break-all}
.ad-slot-email-box:hover .ad-slot-email-value{color:#393d43;text-decoration:underline}
.ad-slot-cta{display:block;width:100%;background:var(--lime);color:var(--ink);text-align:center;padding:9px 12px;border-radius:0;font-weight:800;font-size:12px;text-decoration:none;transition:background .15s,transform .15s}
.ad-slot-cta:hover{background:#d6ff66;transform:translateY(-1px)}
@media(min-width:821px){
.ad-slot{position:fixed;top:64px;right:18px;z-index:9;width:240px;padding:14px;box-shadow:0 10px 30px #17191d1f;transition:width .22s ease,padding .22s ease,box-shadow .22s ease,border-radius .22s ease}
.ad-slot-tag{display:none}
.ad-slot-mini{display:none}
.ad-slot-eyebrow{font:500 9px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.08em;color:#888d95;margin:0 0 10px;text-align:center;padding-bottom:8px;border-bottom:1px dashed var(--line)}
.ad-slot-brand{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.ad-slot-desc{font-size:11px;line-height:1.55;color:#82868d;margin:0 0 11px}
.ad-slot-email-box{background:#f3f4f5;border-radius:0;padding:8px 10px;margin-bottom:11px;text-decoration:none;display:flex;flex-direction:column;gap:3px}
.ad-slot-cta{display:block;width:100%;background:var(--lime);color:var(--ink);text-align:center;padding:9px 12px;border-radius:0;font-weight:800;font-size:12px;text-decoration:none;transition:background .15s,transform .15s}
.ad-slot--mini{width:62px;padding:11px 9px;border-radius:0;cursor:pointer;overflow:hidden;box-shadow:0 8px 24px #17191d1a}
.ad-slot--mini .ad-slot-mini{display:flex;flex-direction:column;align-items:center;gap:6px;font:800 10.5px "DM Mono",monospace;color:var(--ink);text-align:center;line-height:1.25}
.ad-slot--mini .ad-slot-mini-ico{width:26px;height:26px;border-radius:0;background:var(--lime);display:grid;place-items:center;font-size:15px}
.ad-slot--mini .ad-slot-eyebrow,.ad-slot--mini .ad-slot-brand,.ad-slot--mini .ad-slot-desc,.ad-slot--mini .ad-slot-email-box,.ad-slot--mini .ad-slot-cta{display:none}
.ad-slot--mini:hover{width:240px;padding:14px;box-shadow:0 16px 42px #1a202b29}
.ad-slot--mini:hover .ad-slot-mini{display:none}
.ad-slot--mini:hover .ad-slot-eyebrow,.ad-slot--mini:hover .ad-slot-desc,.ad-slot--mini:hover .ad-slot-cta{display:block}
.ad-slot--mini:hover .ad-slot-brand,.ad-slot--mini:hover .ad-slot-email-box{display:flex}
}
.discovery-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.discovery-links a{border-bottom:1px solid #b8bcc2;color:#666d76;font-size:11px;padding-bottom:2px}
.discovery-links a:hover{border-color:var(--ink);color:var(--ink)}
.hero-metrics{width:420px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-right:30px}
.hero-metrics div{display:flex;flex-direction:column;gap:7px;border-left:1px solid var(--line);padding-left:18px}
.hero-metrics strong{font-size:24px;letter-spacing:-.05em}
.hero-metrics span{font:10px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.04em;color:#999}
.hero-metrics .mono{font:inherit!important;font-size:24px!important;letter-spacing:-.05em!important}
.eyebrow{font:500 11px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.12em;color:#888d95;margin:0 0 21px}
.live-dot{width:6px;height:6px;background:#73d640;border-radius:50%;display:inline-block;margin-right:8px;vertical-align:1px;box-shadow:0 0 0 4px #e0f4d7}
.hero h1{font-size:clamp(38px,5vw,58px);line-height:1.03;letter-spacing:-.075em;margin:0 0 12px;font-weight:800}
html[data-lang="en"] .hero h1{font-size:clamp(34px,3.8vw,44px)}
.hero h1 em,.submit-section em{font-family:Georgia,serif;font-weight:400;letter-spacing:-.08em}
.hero-intro{color:#70757e;font-size:13px;line-height:1.55;margin-bottom:12px}
.hero-intro a{color:var(--three);text-decoration:underline;text-underline-offset:2px;font-weight:500}
.hero-intro a:hover{color:#e0570f}
.hero-actions{display:flex;align-items:center;gap:18px}
.button{border-radius:0;padding:13px 18px;display:inline-flex;gap:20px;align-items:center;font-size:12px;font-weight:800}
.button-dark{background:var(--ink);color:white}
.button-dark:hover{background:#393d43}
.button-light{background:var(--lime);color:var(--ink);padding:15px 20px}
.hero-note{font:11px "DM Mono",monospace;color:#999}
.hero-orbit{width:300px;height:220px;position:relative;margin-right:30px;transform:scale(.78)}
.orbit-ring{position:absolute;border:1px solid #d9dbdc;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.ring-one{width:270px;height:270px}
.ring-two{width:370px;height:195px;transform:translate(-50%,-50%) rotate(-28deg);border-color:#e1e2e3}
.orbit-core{width:110px;height:110px;border-radius:50%;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--ink);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.orbit-core span{font-size:22px;font-weight:800;letter-spacing:-.08em}
.orbit-core small{font:8px "DM Mono",monospace;color:#aaa;letter-spacing:.12em;text-align:center;margin-top:9px;line-height:1.4}
.orbit-label{position:absolute;background:#fff;border:1px solid #dfe0e1;padding:7px 10px;border-radius:0;font:10px "DM Mono",monospace;box-shadow:0 5px 18px #20232b0d}
.label-one{top:48px;left:50px;background:var(--lav)}
.label-two{top:198px;right:22px;background:var(--lime)}
.label-three{bottom:23px;left:105px;background:var(--blue)}
.stats-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding-top:18px;padding-bottom:18px}
.stats-strip div{display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line);padding-left:26px}
.stats-strip div:first-child{padding-left:0}
.stats-strip div:last-child{border:0}
.stats-strip strong{font-size:23px;letter-spacing:-.05em}
.stats-strip span{font:10px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.04em;color:#999}
.mono{font:500 17px "DM Mono",monospace!important;letter-spacing:0!important}
.directory{margin-top:-53px;padding-top:22px;padding-bottom:110px}
.directory-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.seo-summary{max-width:760px;margin:0 0 24px;color:#858a91;font-size:11px;line-height:1.7}
.seo-summary strong{color:#5f646b;font-weight:700}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:32px}
.section-heading h2{font-size:38px;letter-spacing:-.07em;margin:0}
.section-heading .eyebrow{margin-bottom:13px}
.search-wrap{height:40px;border:1px solid var(--line);background:white;width:250px;display:flex;align-items:center;padding:0 12px;gap:7px;border-radius:0}
.search-wrap span{font-size:24px;line-height:0;color:#999;transform:rotate(-20deg)}
.search-wrap input{border:0;outline:0;width:100%;font:12px Manrope;color:var(--ink);background:transparent}
.directory-controls{position:sticky;top:54px;z-index:7;margin-bottom:18px;padding:10px 0 14px;background:var(--paper);box-shadow:0 14px 24px #17191d0a}
/* 分类横向滑动：永不折行，超出可滑动 */
.category-row{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.category-row::-webkit-scrollbar{display:none}
/* 分类标签行：左右滑动按钮，仅在溢出时出现；整体 margin-bottom 由 .category-bar 承担，保证箭头与标签上下对齐 */
.category-bar{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.category-nav{flex:0 0 auto;width:30px;height:30px;border:1px solid var(--line);background:var(--card);border-radius:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#5b5f66;font-size:18px;line-height:1;box-shadow:0 2px 8px #17191d0d;transition:background .15s,color .15s,border-color .15s}
.category-nav:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.category-nav[hidden]{display:none}
.category-row{flex:1 1 auto;min-width:0}
.category{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);background:transparent;border-radius:0;padding:6px 9px;font:12px "DM Mono",monospace;color:#747980;cursor:pointer;line-height:1.2;transition:background .15s,border-color .15s,color .15s}
.category b{font-size:10px;color:#a3a6aa;margin-left:5px}
.category:hover,.category.active{background:var(--ink);border-color:var(--ink);color:white}
.category.active b{color:var(--three)}
/* 推荐标签：橙色高亮，排在「全部」之前 */
.category-hot{display:inline-flex;align-items:center;gap:4px;border-color:#ff7a18;color:#ff7a18;font-weight:600;background:#fff5ec}
.category-hot .hot-flame{font-size:11px;line-height:1}
.category-hot b{color:#ff9a4d}
.category-hot:hover{background:#ff7a18;border-color:#ff7a18;color:#fff}
.category-hot:hover .hot-flame{filter:none}
.category-hot:hover b{color:#fff}
.category-hot.active{background:#ff7a18;border-color:#ff7a18;color:#fff;box-shadow:0 4px 14px #ff7a1840}
.category-hot.active b{color:#ffe1c7}
.directory-toolbar{display:flex;justify-content:flex-start;align-items:center;color:#9a9da2;font:10px "DM Mono",monospace;text-transform:uppercase}
.item-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.item-card{background:var(--card);border:1px solid #e5e6e7;border-radius:0;padding:23px;min-height:245px;display:flex;flex-direction:column;cursor:pointer;transition:transform .2s,box-shadow .2s}
.item-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px #1a202b0d}
.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}
.icon-box{width:34px;height:34px;border-radius:0;display:grid;place-items:center;font-size:17px;font-weight:800}
.icon-box.lav{background:var(--lav)}
.icon-box.lime{background:var(--lime)}
.icon-box.blue{background:var(--blue)}
.icon-box.peach{background:#ffe3d0}
.icon-box.pink{background:#ffd9e9}
.card-metric{font:10px "DM Mono",monospace;color:#9a9da2}
.card-metric span{color:#d19f00;font-size:14px;vertical-align:-1px}
.item-card h3{font-size:17px;letter-spacing:-.05em;margin:0 0 8px}
.item-card p{font-size:11px;line-height:1.65;color:#82868d;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-bottom{display:flex;justify-content:space-between;align-items:end;margin-top:auto;padding-top:18px}
.card-trailing{display:flex;align-items:center;gap:12px}
.metric-delta{color:var(--ink);font:700 14px "DM Mono",monospace;white-space:nowrap}
.tag{font:9px "DM Mono",monospace;color:#84898e;background:#f0f1f2;padding:5px 7px;border-radius:0}
.card-arrow{font-size:17px;color:#9b9ea3}
.empty-state{text-align:center;padding:50px;color:#999;font-size:13px}
.empty-state button{border:0;background:transparent;text-decoration:underline;cursor:pointer;color:var(--ink)}
/* 非「全部」列表末尾的「查看全部」按钮 */
.view-all{aspect-ratio:10/9;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--card);border:1.5px dashed #cfd2d6;border-radius:0;color:#5b5f66;font:700 13px Manrope;cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.view-all:hover{border-color:var(--three);color:var(--three);background:#fff7f2}
.view-all .view-all-arrow{font-size:16px}
.ranking-section{background:#eef0f1;padding:83px 0 93px}
.ranking-heading{margin-bottom:28px}
.section-description{font-size:12px;color:#8b9096;line-height:1.7;text-align:right;margin:0}
.ranking-list{border-top:1px solid #d8dbdc}
.rank-row{display:grid;grid-template-columns:52px 1fr 160px 95px 30px;align-items:center;min-height:73px;border-bottom:1px solid #d8dbdc;font-size:13px}
.rank-number{font:12px "DM Mono",monospace;color:#9ca0a4}
.rank-name{font-weight:700}
.rank-owner{font:10px "DM Mono",monospace;color:#9ca0a4}
.rank-metric{font:11px "DM Mono",monospace;text-align:right}
.rank-metric span{color:#ce9c00;font-size:14px}
.rank-arrow{text-align:right;color:#8e9499;font-size:17px}
.submit-section{display:flex;align-items:center;justify-content:space-between;padding-top:105px;padding-bottom:105px}
.submit-section h2{font-size:44px;line-height:1.08;letter-spacing:-.07em;margin:0}
/* 提交按钮 hover 提示邮箱 */
.submit-wrap{position:relative;display:inline-flex}
.submit-tip{position:absolute;right:0;bottom:calc(100% + 10px);background:var(--ink);color:#fff;font:11px "DM Mono",monospace;padding:7px 10px;border-radius:0;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .16s ease,transform .16s ease;box-shadow:0 8px 22px #17191d2e;z-index:6}
.submit-tip::after{content:"";position:absolute;top:100%;right:18px;border:6px solid transparent;border-top-color:var(--ink)}
#submit-button:hover + .submit-tip{opacity:1;transform:translateY(0)}
.site-footer{border-top:1px solid var(--line);min-height:85px;display:flex;align-items:center;gap:28px;color:#9a9ea4;font-size:10px}
.site-footer .brand{color:var(--ink);margin-right:15px}
.site-footer .brand-mark,.site-footer .brand-dot,.site-footer .brand [data-slot="brand-text"]{font-size:18px}
.footer-right{margin-left:auto;font:10px "DM Mono",monospace}

/* 首页底部专题导航（SEO 内链） */
.topic-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:42px auto 0;padding:20px 0;border-top:1px dashed #e3e4e6}
.topic-nav-label{font:10px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.08em;color:#b3b6ba}
.topic-nav-link{font-size:13px;font-weight:600;color:#4b5158;text-decoration:none;padding:6px 12px;border:1px solid var(--line);border-radius:0;background:var(--card);transition:color .15s,border-color .15s,background .15s}
.topic-nav-link:hover{color:var(--accent,#7951df);border-color:var(--accent,#7951df);background:#fff}

.modal-backdrop{position:fixed;inset:0;background:#101319b8;display:grid;place-items:center;padding:20px;z-index:10}
.modal-backdrop[hidden]{display:none}
.modal{width:min(630px,100%);background:#fff;border-radius:0;overflow:hidden;position:relative;box-shadow:0 20px 80px #0005}
.modal-close{position:absolute;top:12px;right:15px;display:block;border:0;background:#ffffffeb;width:28px;height:28px;border-radius:0;font-size:21px;cursor:pointer;z-index:3}
.modal-image{height:210px;background:#20242b center/cover no-repeat}
.modal-body{padding:26px 28px 24px}
.modal-meta{display:flex;gap:12px;font:10px "DM Mono",monospace;text-transform:uppercase;color:#8e949a}
.modal-meta span:first-child{color:#7854ee}
.modal h2{font-size:30px;letter-spacing:-.07em;margin:12px 0 8px}
.modal-body>p{color:#777e86;font-size:13px;line-height:1.7;margin:0 0 22px}
.install-box{background:#f3f4f5;border-radius:0;display:flex;justify-content:space-between;align-items:center;padding:12px 13px}
.install-box small{display:block;font:9px "DM Mono",monospace;color:#999;margin-bottom:6px}
.install-box code{font:11px "DM Mono",monospace;color:#3e434b}
.install-box button{border:1px solid #d3d5d7;background:white;border-radius:0;padding:7px 10px;font:10px Manrope;cursor:pointer}
.modal-actions{display:flex;align-items:center;gap:15px;flex:0 0 auto;width:100%;padding:12px 28px 16px;background:#fff;border-top:1px solid #eceeef;box-shadow:0 -10px 24px #fff}
.modal-actions .button{padding:11px 14px}
.modal-updated{font:10px "DM Mono",monospace;color:#aaa}
@media(max-width:820px){.nav-links{display:none}
.directory{margin-top:0}
.hero{min-height:30vh}
.hero h1{font-size:46px}
.hero-orbit{width:260px;transform:scale(.68);margin-right:-25px}
.hero-metrics{width:340px;margin-right:0}
.item-grid{grid-template-columns:repeat(2,1fr)}
.rank-row{grid-template-columns:40px 1fr 100px 80px 20px}
.rank-owner{display:none}
.ad-slot{position:static;width:auto;box-shadow:0 8px 28px #17191d14;padding:14px 14px 13px;border-radius:0}
.ad-slot-mini{display:none}
.ad-slot-tag{display:inline-block;font:600 9px "DM Mono",monospace;color:#fff;background:#ff7a59;padding:3px 7px;border-radius:0;margin-bottom:9px;letter-spacing:.06em}
.ad-slot-eyebrow,.ad-slot-brand,.ad-slot-desc,.ad-slot-email-box,.ad-slot-cta{display:block}
.ad-slot-brand,.ad-slot-email-box{display:flex}
}
@media(max-width:560px){.wrap{padding-left:20px;padding-right:20px}
.site-header{padding:0 20px}
.site-header .header-search{left:18px;right:18px;width:auto;margin:0;transform:none}
.brand-sub{display:none}
.submit-link{font-size:11px}
.hero{display:block;padding-top:30px;min-height:30vh}
.hero-copy{padding:0}
.hero h1{font-size:39px}
.hero-orbit{display:none}
.hero-metrics{width:100%;grid-template-columns:repeat(2,1fr);gap:14px;margin:20px 0 0}
.hero-metrics div{padding-left:12px}
.hero-metrics strong{font-size:21px}
.hero-metrics .mono{font-size:21px!important}
.stats-strip{grid-template-columns:repeat(2,1fr);gap:18px}
.stats-strip div{padding-left:0;border-right:0}
.directory{margin-top:0;padding-top:21px;padding-bottom:75px}
.directory-controls{margin-left:-20px;margin-right:-20px;padding:10px 20px 14px;overflow:hidden}
.category-row{gap:5px}
.directory-topbar{margin-bottom:22px}
.section-heading h2{font-size:32px;margin-bottom:20px}
.search-wrap{width:100%}
.category{font-size:11px;padding:5px 8px}
.category b{font-size:9px;margin-left:4px}
.item-grid{grid-template-columns:1fr}
.item-card{min-height:225px}
.ranking-section{padding:65px 0}
.ranking-heading{display:flex}
.ranking-heading h2{font-size:31px}
.section-description{font-size:10px}
.rank-row{grid-template-columns:33px 1fr 75px 18px}
.rank-metric{font-size:10px}
.submit-section{display:block;padding-top:75px;padding-bottom:75px}
.submit-section h2{font-size:38px;margin-bottom:25px}
.site-footer{padding-top:22px;padding-bottom:22px;display:flex;flex-wrap:wrap;gap:8px}
.site-footer .brand{width:100%}
.footer-right{margin-left:0;width:100%}
.modal-image{height:145px}
.modal-body{padding:22px 18px}
.modal h2{font-size:25px}
.install-box{align-items:end;gap:10px}
.install-box code{font-size:9px}
.modal-updated{display:none}
}

.modal-description-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}
.modal-description-grid small,.modal-readme small{display:block;font:9px "DM Mono",monospace;color:#999;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.modal-description-grid p,.modal-readme p{font-size:12px;line-height:1.65;color:#777e86;margin:0}
.modal-readme{border-top:1px solid #eceeef;padding-top:14px;margin:16px 0}
.modal-actions{flex-wrap:wrap}
.modal-actions .button-light{padding:11px 14px;font-size:11px}
@media(max-width:560px){.modal-description-grid{grid-template-columns:1fr;gap:12px}
}

.modal-readme-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #eceeef;padding-top:14px;margin:16px 0}
.modal-readme-grid small{display:block;font:9px "DM Mono",monospace;color:#999;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.modal-readme-grid p{font-size:11px;line-height:1.65;color:#777e86;margin:0}
.modal-meta{flex-wrap:wrap}
.modal-meta span{white-space:nowrap}
@media(max-width:560px){.modal-readme-grid{grid-template-columns:1fr;gap:12px}
}

.modal{max-height:calc(100vh - 30px);display:flex;flex-direction:column}
.modal-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.modal-image{height:180px;flex:0 0 180px;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#20242b}
.modal-body{overflow:visible}
.modal-detail-block{border-top:1px solid #eceeef;padding-top:14px;margin:16px 0}
.modal-detail-block small{display:block;font:9px "DM Mono",monospace;color:#999;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.modal-detail-block p{font-size:12px;line-height:1.75;color:#777e86;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.modal-image{height:125px;flex-basis:125px}
}

.item-card{min-width:0}
.item-card-link{display:flex;flex:1;flex-direction:column;min-width:0;color:inherit;text-decoration:none}
.item-card p{overflow-wrap:anywhere;word-break:break-word}

.readme-content{color:#646a72;font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.readme-content h1,.readme-content h2,.readme-content h3,.readme-content h4{color:var(--ink);letter-spacing:-.045em;line-height:1.25;margin:18px 0 8px}
.readme-content h1{font-size:21px}
.readme-content h2{font-size:18px}
.readme-content h3{font-size:15px}
.readme-content p{margin:0 0 12px}
.readme-content a{color:#5a3ed0;text-decoration:underline;text-underline-offset:2px}
.readme-content strong{color:var(--ink)}
.readme-content blockquote{border-left:3px solid #d9dce0;margin:12px 0;padding:2px 0 2px 12px;color:#858b92}
.readme-content ul{margin:8px 0 14px;padding-left:20px}
.readme-content li{margin:3px 0}
.readme-content code{font:11px "DM Mono",monospace;background:#f0f1f2;border-radius:0;padding:2px 4px}
.readme-content pre{background:#20242b;color:#eef0f3;border-radius:0;overflow:auto;padding:13px;margin:12px 0}
.readme-content pre code{background:transparent;padding:0;color:inherit;white-space:pre}
.readme-content figure{margin:12px 0;text-align:center}
.readme-content img{display:block;max-width:100%;max-height:260px;height:auto;object-fit:contain;margin:0 auto;border-radius:0}
.readme-empty{color:#9a9ea4!important;font-style:italic}
.modal-readme-section{padding-bottom:2px}

.card-identity{display:flex;align-items:center;gap:10px;min-width:0}
.card-name{font-size:12px;font-weight:700;color:#555b63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal{overflow:hidden}
.modal-detail-block p#modal-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:3.5em}

/* ===== 图片卡片：模块恒为 1:1 正方形（不随屏幕/内容变化） =====
   海报固定 16:9 展示（零裁切），下方文字区显示名字 + 两行简介，
   hover 时文字区向上展开覆盖图片底部，简介可显示到 4 行。 */
.item-card--media{padding:0;overflow:hidden;aspect-ratio:10/9;height:auto;min-height:0;align-self:start;background:var(--card)}
.item-card--media .item-card-link{display:flex;flex-direction:column;height:100%;min-height:0}
.card-media{position:relative;flex:0 0 auto;width:100%;aspect-ratio:16/9;background:#f0f1f2;overflow:hidden;display:grid;place-items:center}
.card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.card-media-fallback{display:none;font-size:30px;font-weight:800;color:#17191d}
.card-media--empty{background:linear-gradient(150deg,#eef0f4,#e2e5ea)}
.card-media--empty img{display:none}
.card-media--empty .card-media-fallback{display:grid;place-items:center;width:100%;height:100%}
.item-card--media .card-info{position:relative;z-index:2;flex:1 1 auto;min-height:0;background:var(--card);padding:11px 13px 10px;display:flex;flex-direction:column;gap:4px;overflow:hidden}
.item-card--media .card-info h3{font-size:14px;line-height:1.3;letter-spacing:-.04em;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item-card--media .card-info p{font-size:11.5px;line-height:1.55;color:#82868d;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item-card--media .card-meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;font:10px "DM Mono",monospace;color:#a3a6aa;white-space:nowrap}
.item-card--media .card-meta .tag{font-size:10px;padding:2px 7px}
.item-card--media .card-meta .card-metric{font-size:10px;color:#a3a6aa}
/* hover 展开已取消：文字区固定高度，简介恒定 2 行 */
@media (hover:none){.item-card--media:hover .card-info{margin-top:0}}

/* Shared list / spatial browsing mode */
.hero-title-row{display:flex;align-items:center;gap:28px;margin-bottom:12px}
.hero-title-row h1{margin:0;flex-shrink:0}
.view-switch{display:flex;border:1px solid var(--line);border-radius:0;overflow:hidden;flex-shrink:0;align-self:center}
.view-switch button{font:500 12px Manrope,"Noto Sans SC",sans-serif;border:0;background:transparent;color:var(--muted);min-height:36px;padding:8px 12px;cursor:pointer;white-space:nowrap}
.view-switch button[aria-pressed="true"]{background:var(--ink);color:#fff}
.view-switch button:hover{box-shadow:inset 0 0 0 1px #999}
.view-switch button:focus-visible,.gallery3d button:focus-visible,.gallery3d a:focus-visible{outline:3px solid var(--three);outline-offset:-3px}
html[data-view="3d"] #item-grid,html[data-view="3d"] #empty-state{display:none!important}
html[data-view="3d"] .directory{max-width:1540px}
html[data-view="3d"] .hero{min-height:220px}
.gallery3d{height:clamp(560px,72vh,900px);position:relative;background:#e9e9df;border:1px solid #d8d9cd;border-radius:0;overflow:hidden;margin:10px 0 40px;isolation:isolate;color:#30362d}
.gallery3d[hidden]{display:none}
.gallery3d:fullscreen{height:100dvh;width:100vw;border:0;border-radius:0;margin:0}
.gallery-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}
.gallery-canvas:active{cursor:grabbing}
.gallery-canvas:focus-visible{box-shadow:inset 0 0 0 3px #ed7635}
.gallery-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;gap:12px}
.gallery-loading-mark{font-size:60px;color:var(--three)}
.gallery-loading strong{font-size:22px}.gallery-loading p{font-size:13px;color:#77806f;margin:0}
.gallery3d button{cursor:pointer;font:inherit;color:inherit}
@media(max-width:760px){.hero-title-row{gap:20px;justify-content:space-between}.hero-title-row h1{flex-shrink:1}.view-switch button{padding:9px 10px;min-height:44px;font-size:11px}html[data-view="3d"] .hero{min-height:0}html[data-view="3d"] .hero-metrics{display:none}.gallery3d{margin-left:-12px;margin-right:-12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Floating museum — editorial typography, warm plaster and quiet chrome. */
.gallery3d.museum{background:#eeeae3;border:0;border-radius:0;height:clamp(600px,78vh,1000px);color:#42392f}
.museum-heading{position:absolute;left:38px;top:35px;pointer-events:none}
.museum-kicker{font:9px "DM Mono",monospace;letter-spacing:.2em;color:#83766a}
.museum-heading h2{font:400 clamp(42px,4.5vw,70px)/.94 Georgia,"Times New Roman",serif;letter-spacing:-.055em;margin:22px 0 15px}
.museum-heading h2 em{font-weight:400;color:#b6633f}
.museum-subtitle{font-size:11px;color:#8b7c6b;letter-spacing:.04em}
.museum-edition{position:absolute;right:38px;top:37px;text-align:right}
.museum-edition>span{display:block;font:9px monospace;letter-spacing:.22em;color:#8b7c6b;margin-bottom:12px}
.museum-edition strong{font:400 32px Georgia,serif;letter-spacing:-.04em}.museum-edition i{font:italic 26px Georgia,serif;color:#b6a490;padding:0 6px}
.museum-tools{position:absolute;right:36px;top:125px;display:flex;gap:8px}
.museum-tools button{border:1px solid #c9bdad;border-radius:0;width:38px;height:38px;background:#f5f0e780;font-size:20px}
.museum-footer{position:absolute;bottom:0;left:30px;right:30px;height:72px;border-top:1px solid #bfb29d77;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(0deg,#eeeae3d9,transparent)}
.museum-caption{display:flex;align-items:center;gap:8px;font:10px monospace;color:#796b5b}.museum-dot{width:5px;height:5px;background:#c66b40;border-radius:50%}
.museum-pages{display:flex;align-items:center;gap:17px}.museum-pages button{background:none;border:1px solid #baaa94;border-radius:0;width:42px;height:42px;font-size:20px}.museum-pages button:hover:not(:disabled),.museum-tools button:hover{background:#fff8ed}.museum-pages button:disabled{opacity:.25;cursor:default}.museum-page{font:10px monospace;letter-spacing:.13em;color:#8a7964}
.museum-hint{font-size:10px;color:#8e806c}
.museum-tooltip{position:absolute;pointer-events:none;padding:11px 14px;background:#faf6edee;border:1px solid #d1c4b1;border-radius:0;max-width:230px;font-size:11px;color:#5f4f3b;z-index:3}
.museum-detail{position:absolute;right:30px;top:190px;width:300px;max-height:calc(100% - 285px);overflow:auto;background:#fbf7efee;border:1px solid #d8cbbb;padding:28px;backdrop-filter:blur(16px);box-shadow:0 20px 60px #5f473215;z-index:4}
.museum-detail[hidden],.museum-empty[hidden],.museum-tooltip[hidden]{display:none}
.museum-close{position:absolute;right:6px;top:6px;border:0;background:none;width:36px;height:36px;font-size:23px!important;color:#78604b!important}
.museum-detail-kicker{font:9px monospace;letter-spacing:.12em;color:#a37b5d;display:block;padding-right:15px}
.museum-detail h3{font-size:21px;font-weight:500;line-height:1.5;letter-spacing:-.03em;margin:16px 0}
.museum-detail p{font-size:12px;line-height:1.85;color:#96836c;margin-bottom:22px}
.museum-detail a{display:flex;justify-content:space-between;border-top:1px solid #d8c7b1;padding:17px 0 0;font-size:12px;color:#9e4f2a}.museum-detail a span{font-size:18px}
.museum-empty{position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);background:#faf6eced;padding:25px;font-size:13px;line-height:1.8;text-align:center;max-width:85%}
.museum:fullscreen{height:100dvh;border-radius:0}.museum:fullscreen .museum-heading h2{font-size:78px}
@media(max-width:760px){.gallery3d.museum{height:72dvh;min-height:570px}.museum-heading{left:22px;top:25px}.museum-heading h2{font-size:46px;margin:18px 0 12px}.museum-kicker{font-size:7px;letter-spacing:.12em}.museum-subtitle{font-size:9px}.museum-edition{right:20px;top:26px}.museum-edition>span{font-size:7px}.museum-edition strong{font-size:24px}.museum-tools{right:20px;top:100px}.museum-tools button{width:36px;height:36px}.museum-footer{left:18px;right:18px;flex-wrap:wrap;height:87px;padding:10px 0;gap:0}.museum-caption{font-size:9px;max-width:48%}.museum-pages{gap:8px}.museum-pages button{width:36px;height:36px}.museum-page{font-size:9px}.museum-hint{width:100%;text-align:center;font-size:9px}.museum-detail{left:14px;right:14px;width:auto;top:auto;bottom:95px;max-height:220px;padding:20px}.museum-detail h3{font-size:17px;margin:9px 0}.museum-detail p{font-size:11px;margin:0 0 9px}.museum-detail a{padding-top:11px}.museum:fullscreen .museum-heading h2{font-size:46px}}
@media(max-height:500px) and (min-width:600px){.gallery3d.museum{height:520px;min-height:0}.museum:fullscreen{height:100dvh}.museum-detail{top:110px;max-height:calc(100% - 190px)}.museum-heading h2,.museum:fullscreen .museum-heading h2{font-size:40px}.museum-hint{display:none}}

@media(max-width:760px){.museum-inspecting .museum-heading h2,.museum-inspecting .museum-subtitle{visibility:hidden}.museum-pages button,.museum-tools button{min-width:40px;min-height:40px}}
/* Planet view: one continuous collection, no exhibition pagination. */
.museum-heading h2{font-size:clamp(38px,4.5vw,66px)}
.planet-detail-image{display:block;width:100%;aspect-ratio:1.6;object-fit:cover;margin-top:18px;border:1px solid #d4c7b5}
.planet-finder select{max-width:250px;padding:10px 12px;background:#faf7ef;border:1px solid #cbbda6;color:#675a49;font:11px sans-serif;border-radius:0}
.planet-finder[hidden]{display:none}
@media(max-width:760px){.museum-heading h2{font-size:40px}.museum:fullscreen .museum-heading h2{font-size:40px}.museum-footer{height:90px}.planet-finder{max-width:60%}.planet-finder select{max-width:100%;width:190px;font-size:10px;padding:8px}.planet-detail-image{display:none}.museum-detail{max-height:230px}}
/* Nebula: image-led depth, discreet controls and a dark editorial surface. */
.gallery3d.nebula{background:#080a10;color:#dee3ed;border:1px solid #202633;border-radius:0}
.nebula-label{position:absolute;top:28px;left:30px;display:flex;gap:10px;align-items:center;font:10px "DM Mono",monospace;letter-spacing:.15em;color:#d4dce8;pointer-events:none}.nebula-label>span:not(.nebula-beacon){color:#465063}
.nebula-beacon{width:5px;height:5px;border-radius:50%;background:#a8c5fd;box-shadow:0 0 12px #a8c5fd80}
.nebula-search{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:230px}
.nebula-search input{width:100%;height:36px;padding:0 13px;color:#dae1ed;background:#111620b3;border:1px solid #ffffff14;border-radius:0;outline:none;font-size:11px;font-family:inherit;backdrop-filter:blur(10px)}.nebula-search input:focus{border-color:#8099c9}
.nebula .museum-tools{top:18px;right:23px}.nebula .museum-tools button{color:#aab7cb;border:1px solid #ffffff18;background:#111620b3;border-radius:0;font-size:18px}.nebula .museum-tools button:hover{background:#253046}
.nebula .museum-footer{border-color:#ffffff0c;background:linear-gradient(0deg,#080a10e6,transparent);height:65px}.nebula .museum-caption{color:#a5afc0;font-size:10px}.nebula .museum-dot{background:#91a9d1}.nebula .museum-hint{color:#637088;font-size:10px}
.nebula .museum-tooltip{background:#111722ec;color:#d3dcee;border:1px solid #ffffff1c;border-radius:0;box-shadow:0 6px 22px #0005}
.nebula .museum-detail{top:auto;bottom:94px;right:30px;width:280px;max-height:calc(100% - 180px);background:#0f1522da;border:1px solid #ffffff14;color:#dee5f0;border-radius:0;padding:23px;box-shadow:0 20px 60px #0005}
.nebula .museum-detail h3{font-size:20px;line-height:1.5;font-weight:500;color:#e7edf7}.nebula .museum-detail p{color:#8492aa;font-size:12px}.nebula .museum-detail-kicker{color:#74849e}.nebula .museum-close{color:#aab8cf!important}.nebula .museum-detail a{border-color:#ffffff14;color:#a8c6ff}.nebula .planet-detail-image{display:none}
.nebula .planet-finder select{background:#101724;color:#a9b9d1;border-color:#2c374b}.nebula .museum-empty{background:#101622e6;color:#adbcd3;border:1px solid #29364c;border-radius:0}
@media(max-width:760px){.nebula-label{top:26px;left:17px;font-size:8px;gap:7px;letter-spacing:.1em}.nebula-search{top:65px;width:calc(100% - 34px)}.nebula .museum-tools{top:16px;right:15px}.nebula .museum-tools button{width:35px;min-width:35px;min-height:35px;height:35px}.nebula .museum-footer{height:78px}.nebula .museum-detail{left:12px;right:12px;bottom:88px;width:auto;max-height:200px;padding:18px}.nebula .museum-detail h3{font-size:16px;margin:10px 0}.nebula .museum-detail p{font-size:11px;margin-bottom:12px}.nebula .museum-caption{font-size:9px}.nebula .museum-hint{font-size:9px}}

/* Dedicated immersive view; the switch returns to its hero slot in list mode. */
.hero-mode-slot{flex:0 0 auto;margin-left:32px;align-self:center}
html[data-view="3d"],html[data-view="3d"] body{height:100%;overflow:hidden;background:#080a10}
html[data-view="3d"] body>header,html[data-view="3d"] body>main,html[data-view="3d"] body>footer{display:none!important}
html[data-view="3d"] body>.gallery3d{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;z-index:100}
html[data-view="3d"] body>.view-switch{position:fixed;right:24px;top:20px;z-index:110;background:#111722;border-color:#ffffff26;color:#acb6c8}
html[data-view="3d"] .view-switch button{color:#aeb8ca}
html[data-view="3d"] .view-switch button[aria-pressed="true"]{background:#dce5f4;color:#111722}
html[data-view="3d"] .nebula .museum-tools{top:82px;right:24px}
@media(max-width:760px){.hero-mode-slot{margin:20px 0 24px}html[data-view="3d"] body>.view-switch{top:14px;right:14px}html[data-view="3d"] .nebula .museum-tools{top:116px;right:15px}.nebula-label{max-width:130px;font-size:7px}}

html[data-view="3d"] .museum-tools [data-action="full"]{display:none}

/* Keep the mode switch beside the title on narrow screens. */
@media(max-width:760px){
  .hero{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center;padding-top:30px}
  .hero-copy{display:contents}
  .hero h1{grid-column:1;grid-row:1;margin-bottom:0}
  .hero-mode-slot{grid-column:2;grid-row:1;margin:0;justify-self:end;align-self:center}
  .hero-intro{grid-column:1 / -1;grid-row:2;margin-top:18px}
}
@media(max-width:380px){
  .hero{column-gap:8px}
  .hero h1,html[data-lang="en"] .hero h1{font-size:32px}
  .hero-mode-slot .view-switch button{padding-left:7px;padding-right:7px;font-size:10px}
}

@media(max-width:760px){
  .hero{margin-top:-23px}
  #directory{margin-top:-28px}
}

/* Compact language controls remain beside search on phones. */
.language-switch{flex-shrink:0}
.lang-button{width:24px;height:22px;padding:0;text-align:center;font-size:9px}
@media(max-width:560px){
  .site-header{gap:12px}
  .site-header>.brand{display:none}
  .site-header .header-search{position:relative;left:auto;right:auto;transform:none;width:auto;min-width:0;flex:1}
  .site-header .language-switch{display:flex;margin-left:auto}
}

.music-credit{position:absolute;left:30px;bottom:82px;z-index:2;color:#8290a8;font:9px monospace;text-decoration:none;opacity:.7}.music-credit:hover{opacity:1;color:#c5d3ec}
@media(max-width:760px){.music-credit{left:18px;bottom:88px;font-size:8px}}

.hero-contact-panel{grid-column:2;grid-row:1;justify-self:end;align-self:center;position:relative}

@media(min-width:761px){
.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 30px}
.hero-copy{display:contents}
.hero h1{grid-column:1;grid-row:1}
.hero-intro{grid-column:1;grid-row:2}
.hero-mode-slot{grid-column:2;grid-row:2;justify-self:end;margin:0}
}
@media(max-width:760px){
.hero-contact-panel{grid-column:1 / -1;grid-row:3;justify-self:start}
.hero-mode-slot{grid-column:1 / -1;grid-row:4;justify-self:start;margin:8px 0 18px}
}

/* Keep the directory below every hero grid row, including contact feedback. */
.hero{min-height:0;margin-top:0;padding-top:30px;padding-bottom:24px;row-gap:18px}
.hero h1{margin-bottom:0}
.hero-intro{margin-top:0;margin-bottom:0;min-width:0;overflow-wrap:anywhere}
#directory{margin-top:0;padding-top:0}
@media(max-width:760px){
.hero{padding-top:24px;padding-bottom:20px}
.hero-mode-slot{margin:0}
}

/* Compact single-line home title. */
.hero{padding-top:22px;padding-bottom:16px;row-gap:10px}
.hero h1,html[data-lang="en"] .hero h1{font-size:clamp(28px,3.8vw,44px);line-height:1.15;white-space:nowrap}
.hero-intro{grid-column:1 / -1;grid-row:2}
@media(max-width:760px){.hero{padding-top:20px;padding-bottom:14px;row-gap:10px}.hero h1,html[data-lang="en"] .hero h1{font-size:clamp(27px,7.5vw,36px)}}
.hero-heading{grid-column:1;grid-row:1;display:flex;align-items:baseline;gap:clamp(8px,1.6vw,24px);min-width:0;white-space:nowrap}
.hero-title-js{color:var(--three);font-weight:inherit}
.hero-case-count{color:var(--three);font-size:clamp(13px,1.6vw,20px);font-weight:500;font-variant-numeric:tabular-nums}
.hero-case-count strong{font-weight:700}
.fable-showcase{margin-bottom:22px}
.fable-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.fable-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0}
.fable-showcase h2{margin:0;font-size:clamp(17px,2vw,23px);line-height:1.2}
.fable-count{color:var(--muted);font-size:13px;line-height:1.3;white-space:nowrap}
.fable-more{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 10px;border:1px solid var(--line);border-radius:0;background:var(--card);color:var(--three);font-size:13px;font-weight:700;text-decoration:none}
.fable-more:hover{border-color:var(--three)}
.fable-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px}
.fable-card{min-width:0}
.fable-card .fable-card-link{display:block;overflow:hidden;border:1px solid var(--line);border-radius:0;background:var(--card);color:inherit;text-decoration:none;height:100%}
.fable-card-link:hover,.fable-card-link:focus-visible{border-color:var(--three)}
.fable-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.fable-card h3{margin:0;padding:8px 10px;font-size:14px;line-height:1.3;letter-spacing:-.04em;overflow-wrap:anywhere}
@media(max-width:760px){
  .fable-cards{grid-auto-columns:clamp(135px,42%,220px);overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 5px}
  .fable-card{scroll-snap-align:start}
}
@media(max-width:760px){
  .hero-heading{grid-column:1 / -1}
  .hero-heading h1,html[data-lang="en"] .hero-heading h1{font-size:clamp(22px,7.3vw,36px)}
}

/* On wider screens the showcase and directory share the left column. */
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.catalog-layout > *{min-width:0}
.likes-ranking{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:0;background:var(--card)}
.likes-ranking h2{margin:0 0 10px;font-size:17px;line-height:1.3}
.likes-ranking-list{margin:0;padding:0;list-style:none;counter-reset:likes-place}
.likes-ranking-list li{display:grid;grid-template-columns:2ch minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.4;counter-increment:likes-place}
.likes-ranking-list li::before{content:counter(likes-place);color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.likes-ranking-list li:nth-child(-n+3)::before{color:#a63b0c;font-weight:700}
.likes-ranking-list a{font-weight:650;overflow-wrap:anywhere}
.likes-ranking-list a:hover{text-decoration:underline;text-underline-offset:3px}
.likes-ranking-count{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.likes-ranking-empty{margin:0;color:var(--muted);font-size:12px}
@media(min-width:900px){
  .catalog-layout{grid-template-columns:minmax(0,1fr) clamp(186px,20.5%,232px);column-gap:16px}
  .catalog-layout > .fable-showcase{grid-column:1;grid-row:1}
  .catalog-layout > .directory{grid-column:1;grid-row:2}
  .catalog-layout > .likes-ranking{grid-column:2;grid-row:1 / span 2;margin-bottom:0}
  .catalog-layout .fable-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .catalog-layout .item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-layout .item-card--media{aspect-ratio:auto;align-self:stretch}
  .catalog-layout .item-card--media .card-info{min-height:91px}
}

.directory-toolbar{flex:none;gap:1px;border:1px solid #c5c5c5;background:#fff}
.directory-toolbar button{
  min-height:26px;padding:3px 9px;border:0;border-radius:0;background:transparent;color:#444;
  font:600 12px Manrope,"Noto Sans SC",sans-serif;cursor:pointer
}
.directory-toolbar button:hover{background:#eee}
.directory-toolbar button[aria-pressed="true"]{background:#333;color:#fff}
.directory-toolbar button:focus-visible{outline:2px solid #999;outline-offset:-2px}
@media(min-width:761px){
  .category-row{flex-wrap:wrap;overflow:visible}
  .category-nav{display:none}
}

.likes-ranking-more{display:inline-block;margin-top:10px;color:#a63b0c;font-size:12px;font-weight:700}
.catalog-layout .likes-ranking-more{display:block;width:fit-content;margin:10px auto 0;color:#555}
.likes-ranking-more:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
  .catalog-layout .likes-ranking-list li:nth-child(n+4){display:none}
}
.ranking-page{max-width:760px;padding-top:24px;padding-bottom:48px}
.ranking-page > .likes-ranking-more{margin:0 0 14px}
.likes-ranking-page{padding:20px clamp(14px,4vw,28px)}
.likes-ranking-page h1{margin:0 0 16px;font-size:clamp(24px,5vw,34px)}
.likes-ranking-page .likes-ranking-list li{align-items:center;padding:10px 0;font-size:14px;column-gap:clamp(8px,1.5vw,12px)}
.likes-ranking-page .likes-ranking-list a{display:grid;grid-template-columns:clamp(60px,16vw,108px) minmax(0,1fr);align-items:center;gap:clamp(8px,1.5vw,14px)}
.likes-ranking-page .likes-ranking-list a:hover{text-decoration:none}
.likes-ranking-page .likes-ranking-list a:hover > :last-child{text-decoration:underline;text-underline-offset:3px}
.likes-ranking-poster{display:block;aspect-ratio:16/9;border-radius:0;overflow:hidden;background:#e9ebee}
.likes-ranking-poster img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:560px){.ranking-page-body .site-header>.brand{display:flex}}

.item-card:has(>.source-badge){position:relative}
.source-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 7px;border-radius:0;background:#e0e3e8;color:#333a45;
  font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap
}
a.source-badge:hover{background:#343b45;color:white}
a.source-badge:focus-visible{outline:2px solid var(--three);outline-offset:2px}
.item-card>.source-badge{position:absolute;left:23px;bottom:28px;z-index:3}
.item-card--media>.source-badge{left:13px;bottom:10px}
.item-card--media:has(>.source-badge) .card-meta{min-height:20px}
.fable-card:has(>.source-badge){position:relative}
.fable-card:has(>.source-badge) h3{padding-bottom:32px}
.fable-card>.source-badge{position:absolute;left:10px;bottom:7px;z-index:2}

/* Homepage gallery. The showcase and controls span the directory and ranking. */
.catalog-home,.topic-page>.site-header{--paper:#fff;--ink:#171715;--muted:#5e605e;--line:#dedfdb}
.catalog-home{--home-header:58px;--home-width:1240px;--home-wrap-gutter:clamp(16px,3.4vw,52px);--home-poster-ratio:16 / 9}
.topic-page{--topic-header-height:58px}
.catalog-home .wrap{max-width:var(--home-width);padding-inline:var(--home-wrap-gutter)}
:is(.catalog-home,.topic-page)>.site-header{
  padding-inline:clamp(16px,3.4vw,52px);gap:clamp(12px,2vw,30px);box-shadow:none;color:var(--ink)
}
.catalog-home>.site-header{
  max-width:var(--home-width);height:var(--home-header);
  display:grid;grid-template-columns:auto minmax(100px,1fr) auto;justify-content:normal
}
.topic-page>.site-header{height:var(--topic-header-height)}
:is(.catalog-home,.topic-page)>.site-header .hero-heading{grid-area:auto;align-items:center}
:is(.catalog-home,.topic-page)>.site-header .hero-heading :is(h1,.catalog-header-title){
  margin:0;font-size:clamp(18px,2vw,29px);font-weight:700;line-height:1.1;letter-spacing:-.045em
}
:is(.catalog-home,.topic-page)>.site-header .hero-case-count{font-size:12px;color:var(--muted)}
.catalog-updated{display:flex;align-items:center;gap:5px;margin-top:3px;color:var(--muted);font-size:10px;font-weight:400;line-height:1.2;white-space:nowrap}
.catalog-updated-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--three,#ff6a1f)}
.catalog-home .site-header .header-search{
  position:static;transform:none;width:min(100%,420px);justify-self:center;height:36px;
  border:0;border-radius:0;border-bottom:1px solid #767773;background:white;padding-inline:4px;margin:0
}
.catalog-home .header-search:focus-within{border-color:var(--three);box-shadow:0 1px var(--three)}
:is(:is(.catalog-home,.topic-page)>.site-header,.detail-page>header.wrap) .language-switch{border-color:#c5c5c5;gap:1px}
:is(:is(.catalog-home,.topic-page)>.site-header,.detail-page>header.wrap) .lang-button{
  display:inline-grid;place-items:center;width:22px;height:20px;border-radius:0;color:#444
}
:is(:is(.catalog-home,.topic-page)>.site-header,.detail-page>header.wrap) .lang-button.active{background:#333;color:#fff}
:is(:is(.catalog-home,.topic-page)>.site-header,.detail-page>header.wrap) .lang-button:focus-visible{outline:2px solid #999;outline-offset:-2px}
.catalog-home .hero-contact-panel{margin-block:10px 0;padding-top:10px;border-top:1px solid var(--line)}
.catalog-home .hero-contacts{display:grid;gap:5px;font-size:11px;line-height:1.45;color:var(--ink)}
.catalog-home .hero-contacts p{margin:0}
html[lang="en"] .hero-contacts .follow-prefix{display:none}
.catalog-home .hero-contacts a{
  text-decoration:none;text-underline-offset:2px;white-space:nowrap;
  -webkit-user-select:text;user-select:text
}
.catalog-home .hero-contacts a:is(:hover,:focus-visible){text-decoration:underline;color:var(--three)}
.catalog-home .hero-contacts .follow-arrow{
  display:inline-block;margin-inline-start:3px;font-size:.9em;color:var(--muted);user-select:none
}
.catalog-home .wechat-follow-qr{display:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
  .catalog-home .wechat-follow-link:is(:hover,:focus-visible) + .wechat-follow-qr{
    display:block;position:fixed;inset:0 auto auto 0;width:132px;z-index:8;
    translate:var(--qr-x, -200px) calc(var(--qr-bottom, 0px) - 100%);
    pointer-events:none
  }
  .catalog-home .wechat-follow-qr img{display:block;width:100%;height:auto}
}
.catalog-home .directory-submit{
  margin:0 0 0 auto;text-align:right;font-size:12px;line-height:1.4
}
.catalog-home .directory-submit a{color:var(--three);white-space:nowrap}
.catalog-home .directory-submit a:hover{text-decoration-thickness:2px}

.catalog-home .catalog-layout{
  --catalog-column-gap:clamp(16px,1.7vw,26px);
  --catalog-sidebar-width:max(185px,calc((min(100vw,var(--home-width)) - 2 * var(--home-wrap-gutter)) * .22));
  display:grid;grid-template-columns:clamp(124px,12vw,150px) minmax(0,1fr) var(--catalog-sidebar-width);
  column-gap:var(--catalog-column-gap)
}
.catalog-home .catalog-layout > .fable-showcase{
  grid-column:1 / -1;grid-row:1;margin:0 0 clamp(12px,1.25vw,18px);
  display:grid;grid-template-columns:minmax(0,27fr) minmax(0,46fr) minmax(0,27fr);
  gap:clamp(14px,1.8vw,26px);align-items:stretch;padding:clamp(18px,2.5vw,34px);
  color:#f7f8fa;background:#000
}
.showcase-intro{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.catalog-home .fable-heading{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.catalog-home .fable-heading h2{font-size:clamp(23px,2.65vw,37px);line-height:1.08;letter-spacing:-.055em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.catalog-home .fable-count{order:-1;color:#ffb781;font-weight:700}
.showcase-intro>p{font-size:clamp(12px,1.22vw,16px);line-height:1.6;color:#c9cfd8;margin:14px 0 19px;max-width:27ch}
.catalog-home .fable-more{border:0;border-radius:0;background:#f7f2ed;color:#211a17;padding:9px 16px;min-height:38px;white-space:nowrap}
.catalog-home .fable-more:hover{background:#ffdec8}
.catalog-home .fable-showcase .fable-card{position:relative;display:block;min-width:0}
.catalog-home .fable-showcase .fable-card-link{border:0;border-radius:0;background:transparent;display:block;height:100%}
.catalog-home .fable-showcase .showcase-caption h3{margin:0;padding:0;min-height:0;font-size:clamp(12px,1.3vw,18px);line-height:1.28;overflow-wrap:anywhere}
.showcase-caption p{
  margin:5px 0 0;color:#c9cfd8;font-size:clamp(11px,1.05vw,14px);line-height:1.4;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical
}
.catalog-home .fable-showcase img,.catalog-home .showcase-lead .fable-card-link{background:#e5e8eb}
.catalog-home .showcase-lead .fable-card-link{position:relative;width:100%;height:auto;aspect-ratio:var(--home-poster-ratio)}
.catalog-home .showcase-lead img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.catalog-home .showcase-lead .showcase-caption{
  position:absolute;inset:auto 0 0;color:white;padding:clamp(40px,6vw,90px) 14px 14px 16px;
  background:linear-gradient(to bottom,transparent,rgba(12,15,11,.72) 65%,rgba(12,15,11,.94))
}
.catalog-home .showcase-lead:has(>.source-badge) .showcase-caption{padding-bottom:36px}
.catalog-home .fable-showcase .showcase-lead h3{
  font-size:clamp(13.6px,1.52vw,22.4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.showcase-lead .showcase-caption p{color:#f6f6f3;margin-inline-end:50px;-webkit-line-clamp:2}
.showcase-list{display:grid;grid-auto-rows:1fr;gap:clamp(8px,1.05vw,16px);min-width:0}
.showcase-stage{display:grid;min-width:0;align-self:center}
.showcase-carousel,.showcase-track{display:contents}
.showcase-arrow,.showcase-dots{display:none}
.catalog-home .showcase-row .fable-card-link{
  display:grid;grid-template-columns:39% minmax(0,1fr);gap:clamp(8px,1.05vw,16px);align-items:center;padding-right:42px
}
.catalog-home .showcase-row img{aspect-ratio:var(--home-poster-ratio);object-fit:cover}
@media(min-width:761px){
  .catalog-home .catalog-layout > .fable-showcase{padding-block:clamp(6px,.75vw,10px)}
  .catalog-home .showcase-list{gap:5px}
  .catalog-home .showcase-row .fable-card-link{grid-template-columns:26% minmax(0,1fr);gap:9px;padding-right:28px}
  .catalog-home .showcase-stage .showcase-lead:not([data-current]){display:none}
  .catalog-home .showcase-row + .showcase-row{border-top:1px solid #d9e4f126;padding-top:5px}
  .catalog-home .fable-showcase .showcase-row .showcase-caption h3{
    font-size:clamp(11px,1.05vw,14px);line-height:1.2;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
  }
  .catalog-home .showcase-row .showcase-caption p{margin-top:3px;font-size:clamp(10px,.9vw,12px)}
  .catalog-home .showcase-row[data-current] .showcase-caption h3{color:#ffb781}
}
.catalog-home .showcase-row:has(>.source-badge) img{align-self:start}
.catalog-home .fable-showcase .fable-card>.like-button{position:absolute;right:0;margin:0;color:#e1e6ed}
.catalog-home .fable-showcase .fable-card>.like-button[aria-pressed=true]{color:#ff9d66}
.catalog-home .fable-showcase .showcase-lead>.like-button{bottom:7px;right:8px}
.catalog-home .fable-showcase .showcase-row>.like-button{bottom:0}
.catalog-home .fable-showcase :is(.fable-card-link,.fable-more,.like-button):focus-visible{outline:2px solid #ffb781;outline-offset:2px}

.catalog-home .catalog-layout > .directory-controls{
  grid-column:1 / -1;grid-row:2;top:var(--home-header);display:grid;grid-template-columns:minmax(0,1fr);
  margin:0 0 16px;padding:0;overflow:visible;box-shadow:none
}
.catalog-home .directory-subrow:has(.directory-game-categories:not([hidden])){
  min-width:0;padding-block:4px;border-top:1px solid var(--line)
}
.catalog-home .directory-topbar{
  display:flex;align-items:center;gap:12px;min-height:42px;padding:4px 0;
  border-bottom:1px solid var(--line);background:var(--paper)
}
.catalog-home .directory-toolbar[hidden]{display:none}
.catalog-home .directory-game-categories[hidden]{display:none}
.catalog-home .directory-controls .directory-game-categories.game-categories-animating{overflow:hidden}
.catalog-home .directory-game-categories .category{min-height:32px;font-size:12px}
:is(.catalog-home,.topic-game-filters) .category-row{gap:0 clamp(8px,1.15vw,16px);overflow:visible;padding:0;flex-wrap:wrap;align-items:stretch}
.catalog-home .category-row{
  flex:0 1 auto;flex-wrap:nowrap;gap:clamp(8px,1vw,14px);
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none
}
@media(min-width:761px){
  .catalog-home .catalog-layout.wrap{padding-inline:0}
  .catalog-home .catalog-layout > .directory-controls{
    grid-column:1;grid-row:2 / 4;display:flex;flex-direction:column;align-items:stretch;
    top:calc(var(--home-header) + 12px);margin:0;padding:0 8px 4px 0;border-inline-end:1px solid var(--line);
    max-height:calc(100dvh - var(--home-header) - 24px);overflow:auto
  }
  .catalog-home .directory-subrow{display:none}
  .catalog-home .directory-controls .category-row{flex-direction:column;overflow:visible;gap:0}
  .catalog-home .directory-controls .category{
    position:relative;isolation:isolate;justify-content:flex-start;text-align:start;
    min-height:42px;padding:4px 7px 4px 9px;border:0;font-weight:400
  }
  .catalog-home .directory-controls .category.active::before{
    content:"";position:absolute;inset:12.5% 0;z-index:-1;pointer-events:none;
    background:#ff6a1f12;border-inline-start:2px solid var(--three)
  }
  .catalog-home .directory-controls .category b{margin-inline-start:auto;font-weight:400}
  .catalog-home #categories > .category:is(.category-pick,.category-group-end){font-size:14px}
  .catalog-home .directory-controls .hero-contact-panel{
    align-self:stretch;min-width:0;margin:16px 7px 0 9px;padding-top:13px
  }
  .catalog-home #categories .category-group-end{margin:0 0 10px}
  .catalog-home #categories .category-group-end::after{
    inset:auto 0 -6px;height:0;border:0;border-bottom:1px solid #b4b7bc;transform:none
  }
  .catalog-home .directory-controls .directory-game-categories{
    margin:2px 0 4px 10px;border-inline-start:1px solid var(--line)
  }
  .catalog-home .directory-controls .directory-game-categories .category{min-height:36.4px;padding-inline-start:12px;font-size:11px}
  .catalog-home .directory-controls .directory-game-categories .category.active::before{inset-inline-start:-1px}
  .catalog-home .catalog-layout > .directory-topbar{
    grid-column:2 / -1;grid-row:2;position:sticky;top:var(--home-header);z-index:7;margin-bottom:16px
  }
}
@media(min-width:761px) and (max-width:1050px){
  .catalog-home .catalog-layout .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
:is(.catalog-home,.topic-game-filters) .category{
  display:inline-flex;align-items:center;border:0;border-radius:0;border-bottom:2px solid transparent;
  background:transparent;color:var(--ink);box-shadow:none;font:650 13px Manrope,"Noto Sans SC",sans-serif;
  min-height:45px;padding:4px 0;gap:6px
}
:is(.catalog-home,.topic-game-filters) .category b{margin-left:0;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
:is(.catalog-home,.topic-game-filters) .category b:empty{display:none}
:is(.catalog-home,.topic-game-filters) .category.active b{color:var(--three)}
:is(.catalog-home,.topic-game-filters) .category:hover,:is(.catalog-home,.topic-game-filters) .category.active{color:#a63c11}
:is(.catalog-home,.topic-game-filters) .category.active{border-bottom-color:var(--three)}
.catalog-home .directory-controls .category:is(:hover,.active){color:var(--three)}
.catalog-home .directory-controls .category.active b{color:var(--three)}
.catalog-home .category.category-pick{gap:6px}
.catalog-home .category.category-group-end{position:relative;margin-inline-end:12px}
.catalog-home .category.category-group-end::after{
  content:"";position:absolute;inset-inline-end:-12px;top:50%;height:22px;border-inline-end:2px solid #b4b7bc;
  transform:translateY(-50%);pointer-events:none
}
.category-icon{display:block;position:relative;flex:none;width:12px;height:12px}
.category-icon--code{display:grid;place-items:center;width:15px;color:var(--ink);font:700 11px/1 "DM Mono",monospace}
.category-icon--code::before{content:"</>"}
.category-icon--sparkle{
  background:#d05212;
  clip-path:polygon(50% 0,66% 34%,100% 50%,66% 66%,50% 100%,34% 66%,0 50%,34% 34%)
}
.category-icon--clock{background:#3e6f9d;border-radius:50%}
.category-icon--clock::before{
  content:"";position:absolute;left:5px;top:2px;width:3px;height:4px;
  border:solid #fff;border-width:0 0 1px 1px;border-radius:0 0 0 1px
}

.catalog-home .catalog-layout > .directory{grid-column:2;grid-row:3;padding-bottom:50px}
.directory-scope{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.catalog-home .catalog-discovery{
  grid-column:3;grid-row:3;align-self:start;min-width:0;padding-left:clamp(12px,1.5vw,20px);border-left:1px solid var(--line)
}
.catalog-discovery .likes-ranking{margin:0;padding:0;border:0;border-radius:0}
.catalog-discovery h2{font-size:clamp(17px,1.8vw,25px);margin:0 0 10px;line-height:1.3}
.sidebar-wechat{display:none}
.catalog-sidebar-ad{display:none}
@media(min-width:761px){
  .catalog-sidebar-ad:not([hidden]):not(:has([data-ad-status="unfilled"])){
    display:block;margin-top:24px;text-align:center
  }
  .catalog-sidebar-ad small{display:block;margin-bottom:6px;font-size:11px;color:var(--muted)}
  .catalog-sidebar-ad .adsbygoogle{display:block;width:100%;height:250px}
  .catalog-discovery:has(>.catalog-sidebar-ad:not([hidden])):not(:has(.adsbygoogle[data-ad-status="unfilled"]))>:is(.sidebar-time-garden,.sidebar-wechat){position:static}
}
.sidebar-time-garden{
  display:none;margin-top:24px;border:1px solid #e7d6c9;
  background:#fff8f0;color:#33251d
}
.time-garden-promo-link{display:block;color:inherit;text-decoration:none}
.time-garden-promo-link:is(:hover,:focus-visible){color:inherit;text-decoration:none}
.time-garden-promo-link:focus-visible{outline:3px solid var(--three,#ff6a1f);outline-offset:3px}
.time-garden-art{display:block;width:100%;height:auto}
.time-garden-copy{padding:13px 12px 12px}
@font-face{font-family:"Noto Serif SC";src:url("/assets/NotoSerifSC-SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
.time-garden-brand{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.time-garden-brand img{flex:none;border-radius:10px}
.sidebar-time-garden .time-garden-brand h2{font:600 18px/1.28 "Noto Serif SC",serif;margin:0;scroll-margin-top:260px}
.sidebar-time-garden p{font-size:13px;color:#604a3e;margin:0 0 12px}
.sidebar-time-garden .time-garden-subtitle{font-size:12px;font-weight:650;margin-bottom:6px}
.time-garden-cta{
  display:grid;place-items:center;text-align:center;min-height:44px;padding:5px 8px;
  background:#33251d;color:#fff8f0;font-size:13px;font-weight:650;text-decoration:none
}
.time-garden-promo-link:is(:hover,:focus-visible) .time-garden-cta{background:#743e2e}
.time-garden-scan{display:block;margin-top:4px;text-align:center}
.time-garden-scan-label{display:block;padding:7px 2px;font-size:12px;color:#604a3e}
.time-garden-scan img{display:none;max-width:100%;height:auto;margin:2px auto 0;scroll-margin-bottom:12px}
.time-garden-promo-link:focus-visible .time-garden-scan img{display:block}
@media(hover:hover){
  .time-garden-scan:hover img{display:block}
}

@media(min-width:761px){
  .sidebar-time-garden{display:block}
  .case-sidebar>.sidebar-time-garden{max-width:245px}
  html[lang^="zh"] .case-sidebar>.sidebar-time-garden{display:none}
  .catalog-home .catalog-discovery:has(>.sidebar-time-garden,>.sidebar-wechat){align-self:stretch}
  .catalog-discovery>.sidebar-time-garden{
    --time-garden-sticky-top:calc(var(--home-header) + 58px);
    position:sticky;top:var(--time-garden-sticky-top);
    max-height:calc(100dvh - var(--time-garden-sticky-top) - 12px);overflow:auto
  }
  .catalog-discovery #discovery-topics + #discovery-ranking{margin-top:24px}
  .catalog-discovery>.sidebar-wechat{display:block;position:sticky;top:calc(var(--home-header) + 58px);margin-top:24px;text-align:center}
  .catalog-discovery .sidebar-wechat h2{font-size:12px;font-weight:500;color:#555}
  .sidebar-wechat img{display:block;width:148px;max-width:100%;height:auto;margin-inline:auto}
}
.popular-topic-list{margin:0;padding:0;list-style:none}
.popular-topic-list a{
  display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 0;border-top:1px solid var(--line);
  font-size:12px;font-weight:400;text-decoration:none
}
.popular-topic-list a [aria-hidden]{color:#666}
.popular-topic-list a:hover [aria-hidden]{color:#333}
.popular-topic-list a:hover span:first-child{text-decoration:underline;text-underline-offset:3px}
.all-topics-link{
  display:flex;align-items:center;justify-content:center;min-height:40px;margin:12px 0 0;padding:7px 12px;
  border:1px solid var(--line);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none
}
.all-topics-link:is(:hover,:focus-visible){color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.topic-page--catalog main.topic-directory{max-width:780px}
.topic-directory .popular-topic-list{margin-top:24px;border-bottom:1px solid var(--line)}
.topic-directory .popular-topic-list a{font-size:clamp(18px,2vw,22px);font-weight:600;line-height:1.45;padding:20px 0;gap:16px}
.topic-directory .topic-hot-badge{font-size:10px;padding:3px 5px}
.topic-hot-badge{
  display:inline-block;vertical-align:1px;padding:2px 4px;
  background:var(--three);color:#fff;font-size:9px;line-height:1;font-weight:700;letter-spacing:.04em
}
.discovery-tabs{display:none}
.catalog-home .catalog-layout .likes-ranking-more{margin:12px auto 0}
.catalog-home .item-grid{gap:24px 16px}
.directory-pagination:not([hidden]){display:flex;justify-content:center;align-items:center;gap:5px;margin-top:24px}
.directory-pagination button{
  display:grid;place-items:center;min-width:32px;height:34px;padding:0 5px;border:1px solid var(--line);
  border-radius:0;background:var(--card);color:var(--ink);font:650 12px Manrope,sans-serif;cursor:pointer
}
.directory-pagination button[aria-current="page"]{border-color:var(--three);background:var(--three);color:var(--ink)}
.directory-pagination button:enabled:hover,.directory-pagination button:focus-visible{border-color:var(--three);outline:1px solid var(--three)}
.directory-pagination button:disabled{opacity:.35;cursor:default}
.directory-pagination button span{font-size:19px;line-height:1}
.catalog-card-list .item-card--media{
  --case-title-size:clamp(9.33px,.967vw,13.33px);
  --case-info-space:calc(44px + 37.2px + 1.3 * var(--case-title-size));
  position:relative;min-width:0;min-height:0;aspect-ratio:auto;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;transform:none;overflow:visible
}
.catalog-card-list .item-card--media .card-media{aspect-ratio:16/9}
#item-grid [data-recommended] .card-media::after {
  content: "推荐";
  position: absolute;
  z-index: 1;
  top: 11px;
  left: -30px;
  width: 96px;
  background: var(--three);
  color: white;
  font: 700 11px/19px Manrope, "Noto Sans SC", sans-serif;
  text-align: center;
  transform: rotate(-45deg);
  pointer-events: none;
}
html[lang="en"] #item-grid [data-recommended] .card-media::after {
  content: "Recommended";
  top: 15px;
  left: -26px;
  font-size: 8px;
}
.catalog-card-list .item-card--media .card-info{min-height:0;padding:8px 0 36px}
.catalog-card-list .item-card--media h3{font-size:var(--case-title-size);line-height:1.3;margin:0 0 4px}
@media(max-width:760px){
  .catalog-card-list .item-card--media{--case-title-size:14px}
  .case-sidebar>.sidebar-time-garden{display:block;max-width:320px}
}
.catalog-home .directory .item-card:not(.item-card--media) h3{font-size:11.33px}
.catalog-card-list .item-card--media p{color:var(--muted);font-size:12px}
.catalog-card-list .item-card--media .card-meta{padding-top:0}
.catalog-card-list .item-card--media>.like-button{right:0;bottom:0}
.catalog-card-list .item-card--media>.source-badge{left:0;bottom:4px}
.item-card:has(>.card-external-link){position:relative}
.card-external-link{
  position:absolute;right:4px;top:4px;z-index:3;display:grid;place-items:center;
  width:16px;height:16px;border-radius:0;color:#bfc3ca;background:#17191db8;
  font-size:13.6px;line-height:1;text-decoration:none
}
.item-card--media>.card-external-link{top:0;right:0}
.card-external-link:is(:hover,:focus-visible){background:#17191d;color:#bfc3ca;z-index:4}
.card-external-link:is(:hover,:focus-visible)::after{
  content:attr(aria-label);position:absolute;top:calc(100% + 4px);right:0;
  padding:5px 7px;color:#e1e3e7;background:#25272b;font-size:11px;line-height:1.3;
  white-space:nowrap;pointer-events:none
}
.card-external-link:focus-visible{outline:2px solid var(--three);outline-offset:2px}

@media(min-width:761px) and (hover:hover) and (pointer:fine){
  .catalog-card-list .item-card--media .item-card-link{padding-block-end:var(--case-info-space)}
  .catalog-card-list .item-card--media .card-info{
    position:absolute;inset:auto 0 0;min-height:var(--case-info-space)
  }
  .catalog-card-list .case-summary-truncated:is(:hover,:focus-within){z-index:4}
  .catalog-card-list .case-summary-truncated:is(:hover,:focus-within) .card-info{animation:case-info-rise .18s ease-out}
  .catalog-card-list .case-summary-truncated:is(:hover,:focus-within) .card-info h3{white-space:normal;overflow-wrap:anywhere}
  .catalog-card-list .case-summary-truncated:is(:hover,:focus-within) .card-info p{-webkit-line-clamp:unset;overflow-wrap:anywhere}
}
@keyframes case-info-rise{from{transform:translateY(8px)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .catalog-card-list .case-summary-truncated:is(:hover,:focus-within) .card-info{animation:none}
}

@media(max-width:1050px){
  :is(.catalog-home,.topic-page)>.site-header .hero-case-count{display:none}
}
@media(max-width:760px){
  .catalog-home{--home-header:92px;--home-brand-row:45px}
  .topic-page{--topic-header-height:45px}
  .catalog-home>.site-header{
    top:calc(-1 * var(--home-brand-row));grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:var(--home-brand-row) 38px;gap:0 10px
  }
  .catalog-home>.site-header .header-search{grid-column:1 / -1;grid-row:2;width:100%}
  .catalog-home>.site-header :is(.like-account,.language-switch){grid-column:2;grid-row:1}
  :is(.catalog-home,.topic-page)>.site-header .hero-heading{gap:6px}
  :is(.catalog-home,.topic-page)>.site-header .hero-heading :is(h1,.catalog-header-title){font-size:clamp(16px,3.5vw,23px)}
  :is(.catalog-home,.topic-page)>.site-header .hero-case-count{display:inline;color:#a63c11;font-size:11px}
  .catalog-home .catalog-layout{grid-template-columns:minmax(0,1fr)}
  .catalog-home .catalog-layout > .fable-showcase{
    grid-template-columns:minmax(0,1fr);gap:13px;padding:14px 14px 5px
  }
  .showcase-carousel{display:block;position:relative;min-width:0}
  .showcase-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .showcase-track::-webkit-scrollbar{display:none}
  .showcase-stage{display:contents}
  .showcase-list{display:none}
  .catalog-home .fable-showcase .fable-card{flex:0 0 100%;scroll-snap-align:start}
  .catalog-home .fable-showcase .fable-card-link{display:block;position:relative;min-height:0;height:auto;padding:0;aspect-ratio:var(--home-poster-ratio)}
  .catalog-home .fable-showcase .fable-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .catalog-home .fable-showcase .showcase-caption{
    position:absolute;inset:auto 0 0;color:white;padding:24px 12px 12px;
    background:linear-gradient(transparent,rgba(12,15,11,.91))
  }
  .catalog-home .fable-showcase .fable-card:has(>.source-badge) .showcase-caption{padding-bottom:30px}
  .catalog-home .fable-showcase .showcase-lead h3{font-size:clamp(12px,3.2vw,17.6px)}
  .catalog-home .fable-showcase .showcase-caption p{color:#f6f6f3;margin-inline-end:40px}
  .catalog-home .fable-showcase .fable-card>.like-button{top:auto;bottom:4px;right:6px;transform:none}
  .showcase-arrow:not([hidden]){
    display:grid;place-items:center;position:absolute;z-index:4;top:calc((100% - 26px) / 2);
    transform:translateY(-50%);width:38px;height:40px;padding:0;border:0;
    border-radius:0;color:#fff;background:#10141173;cursor:pointer
  }
  .showcase-arrow::before{content:"";width:9px;height:9px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg)}
  .showcase-prev{left:6px}
  .showcase-prev::before{transform:rotate(-135deg)}
  .showcase-next{right:6px}
  .showcase-dots:not([hidden]){display:flex;justify-content:center;height:26px}
  .showcase-dots button{display:grid;place-items:center;width:26px;padding:0;border:0;background:transparent;cursor:pointer}
  .showcase-dots button::before{content:"";width:6px;height:6px;border-radius:0;background:#87919d}
  .showcase-dots button[aria-current]::before{background:#ffb781}
  .showcase-intro{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
  .showcase-intro>p{display:none}
  .catalog-home .fable-heading{gap:3px}
  .catalog-home .fable-heading h2{font-size:clamp(18px,4.4vw,25px)}
  .catalog-home .fable-more{font-size:11px;padding-inline:10px}
  .catalog-home .catalog-layout > .directory-controls{
    grid-row:3;top:calc(var(--home-header) - var(--home-brand-row));margin:0 0 10px
  }
  .catalog-home .category-row:is(.category-fade-left,.category-fade-right){
    mask-image:linear-gradient(to right, var(--category-edge-left, #000) 0, #000 24px,
      #000 calc(100% - 24px), var(--category-edge-right, #000) 100%)
  }
  .catalog-home .category-fade-left{--category-edge-left:#0003}
  .catalog-home .category-fade-right{--category-edge-right:#0003}
  .catalog-home .directory-topbar{flex-wrap:wrap;gap:4px 10px;min-height:36px;border-top:1px solid var(--line)}
  .catalog-home .directory-scope{font-size:11px}
  .catalog-home .directory-submit{font-size:11px}
  .catalog-home .catalog-layout > .directory-submit{grid-column:1;grid-row:4;margin:0 0 12px}
  .catalog-home .hero-contact-panel{display:none}
  .catalog-home .category{min-height:36px;font-size:12px;gap:3px}
  .catalog-home .category-icon--code{width:3ch;margin-inline-end:2px}
  .catalog-home .catalog-discovery{grid-column:1;grid-row:2;border:0;padding:0 0 12px;margin:0 0 10px;border-bottom:1px solid var(--line)}
  .discovery-tabs:not([hidden]){display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:3px}
  .discovery-tabs button{
    min-height:38px;padding:0 0 4px;border:0;border-bottom:2px solid transparent;background:none;
    color:var(--muted);font:700 16px Manrope,"Noto Sans SC",sans-serif;cursor:pointer
  }
  .discovery-tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--three)}
  .catalog-discovery [role="tabpanel"] h2{display:none}
  .catalog-discovery [role="tabpanel"] li:first-child,.catalog-discovery [role="tabpanel"] li:first-child a{border-top:0}
  .catalog-home .catalog-layout > .directory{grid-column:1;grid-row:5}
  .catalog-home .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  :is(.catalog-home,.topic-page)>.site-header .hero-heading{flex-wrap:wrap;gap:2px 6px}
  .catalog-home .showcase-caption p{font-size:11px}
  .catalog-home .item-grid{grid-template-columns:minmax(0,1fr)}
}

.catalog-home .site-header .header-search svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75}
.catalog-home .site-header .header-search input{min-width:0;font-size:14px;font-family:inherit}
.catalog-home .category:focus-visible{outline:2px solid #bd410d;outline-offset:-2px}
@media(max-width:760px){
  .catalog-home .site-header .header-search input{font-size:16px}
}

.project-index{padding-block:32px 48px}
.project-index header,.project-index nav{display:flex;flex-wrap:wrap;gap:10px 20px}
.project-index a:hover,.project-index a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.project-index nav{padding-block:16px;border-block:1px solid var(--line)}
.project-index section{padding-top:16px}
.project-index ul{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
  gap:10px 24px;padding:0;list-style:none;overflow-wrap:anywhere
}

/* Rotate featured collections without changing the catalogue filters. */
.home-topic-showcase .showcase-topic-panel{display:contents}
.home-topic-showcase .showcase-topic-panel[hidden]{display:none}
.catalog-home .catalog-layout>.home-topic-showcase{position:relative;margin-bottom:32px}
.home-topic-controls{position:absolute;top:100%;left:0;right:0;display:flex;justify-content:center;min-width:0;height:28px;background:transparent}
.home-topic-tabs{display:flex;gap:0;min-width:0;align-items:center}
.home-topic-tabs button{position:relative;appearance:none;display:grid;place-items:center;width:26px;height:26px;border:0;padding:0;background:transparent;color:#555;font:600 10.5px/1 Manrope,sans-serif;cursor:pointer}
.home-topic-tabs button::before{content:"";position:absolute;width:13.5px;height:13.5px;border:1px solid #aaa;background:#fff}
.home-topic-tabs button>span{position:relative;z-index:1}
.home-topic-tabs button[aria-selected=true]{color:#fff}
.home-topic-tabs button[aria-selected=true]::before{border-color:var(--three);background:var(--three)}
.home-topic-tabs button:focus-visible{outline:2px solid var(--three);outline-offset:-2px}
@media(max-width:760px){.home-topic-showcase .showcase-topic-panel>.showcase-intro{grid-column:1 / -1}}

/* A single, fully clickable game poster above the five sidebar collections. */
.game-zone-poster{position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:4/5;background:#101112;color:#fff;margin-bottom:24px;text-decoration:none}
.game-zone-poster>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.game-zone-heading{position:absolute;inset:0 0 auto;padding:18px 16px 45px;background:linear-gradient(#101112b3,transparent)}
.game-zone-heading>span{font:600 9px/1.4 Manrope,sans-serif;letter-spacing:.1em;color:#ffbd99}
.game-zone-heading h2{margin:7px 0 5px;font:800 clamp(22px,2vw,30px)/1.08 Manrope,"Noto Sans SC",sans-serif;letter-spacing:-.04em;color:#fff}
.game-zone-heading p{margin:0;font-size:12px;line-height:1.5;color:#e0e0e0}
.game-zone-cta{position:absolute;inset:auto 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--three,#ff6a1f);padding:12px 14px;color:#fff;font:750 14px/1.3 Manrope,"Noto Sans SC",sans-serif}
.game-zone-poster:hover>img{transform:scale(1.025)}
.game-zone-poster:focus-visible{outline:3px solid var(--three,#ff6a1f);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.game-zone-poster>img{transition:none}.game-zone-poster:hover>img{transform:none}}
@media(max-width:760px){.game-zone-poster{aspect-ratio:16/9;margin-bottom:18px}.game-zone-heading{padding:14px 14px 35px}.game-zone-heading h2{font-size:24px}.game-zone-cta{inset:auto auto 12px 14px;min-width:160px;padding:9px 12px;font-size:12px}}

@media(min-width:761px){.catalog-home>.site-header{padding-inline:0}}
