.xu5-tabs-wrapper{display:flex;min-height:300px}

/* 搜索模式：右侧只显示搜索结果，分类面板隐藏 */
#xu5TabsWrapper.xu5-search-mode .xu5-category-panels{display:none}
#xu5TabsWrapper.xu5-search-mode .xu5-search-results{display:block}

/* 搜索模式：左侧只显示"全部软件"，样式与普通分类按钮一致 */
#xu5TabsWrapper.xu5-search-mode .xu5-tab-nav .xu5-tab-btn{
  display:none;
}
#xu5TabsWrapper.xu5-search-mode .xu5-tab-nav::before{
  content:'全部资源';
  display:block;
  width:calc(100% - 12px);
  margin:2px 6px;
  padding:6px 10px;
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:#409eff;
  background:#e8f0fe;
  border-radius:6px;
  box-sizing:border-box;
}
.xu5-tab-nav{width:120px;flex-shrink:0;border-right:1px solid #e4e7ed;padding:8px 0}
.xu5-tab-btn{display:block;width:calc(100% - 12px);margin:2px 4px;padding:4px 4px;border:none;background:none;text-align:center;cursor:pointer;font-size:14px;color:#303133;transition:color .2s,background .2s,border-radius .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:6px;box-sizing:border-box}
.xu5-tab-btn:hover{color:#409eff;background:#f0f2f5}
.xu5-tab-btn.active{color:#409eff;font-weight:600;background:#e8f0fe87;border-right:none}
.xu5-tab-panels{flex:1;min-width:0;padding:0 1px}
.xu5-tab-panel{display:none}
.xu5-tab-panel.active{display:block}
.xu5-accordion-item{border-bottom:1px solid #ebeef5}
.xu5-accordion-header{display:flex;align-items:center;padding:10px 14px;cursor:pointer;transition:background .2s;font-size:16px;color:#673AB7;font-weight:500}
.xu5-accordion-header:hover{background:#f5f7fa}
.xu5-accordion-header .icon-container{width:32px;height:32px;margin-right:8px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:8px;overflow:hidden}
.xu5-accordion-header .icon-container .img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.xu5-accordion-header .arrow{margin-left:auto;transition:transform .2s;font-size:14px;color:#999}
.xu5-accordion-header.open .arrow{transform:rotate(90deg)}
.xu5-accordion-body{display:none;padding:0 10px 10px}
.xu5-accordion-body.open{display:block}
.xu5-accordion-header:focus-visible,.url:focus-visible{outline:2px solid #409eff;outline-offset:-2px;border-radius:6px}
.xu5-search-row{display:flex;align-items:center;gap:10px;margin:12px auto;max-width:800px;padding:0 15px;box-sizing:border-box}
.xu5-search{position:relative;flex:1;min-width:0}
.xu5-ra-float-btn{display:inline-flex;align-items:center;gap:5px;height:44px;padding:0 16px;border:1px solid #e0e0e0;border-radius:8px;background:#fff;color:#999;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .3s;flex-shrink:0;box-shadow:inset 0 1px 3px rgba(0,0,0,0.06)}
.xu5-ra-float-btn:hover{border-color:#409eff;color:#409eff;box-shadow:inset 0 1px 3px rgba(0,0,0,0.06),0 0 0 3px rgba(64,158,255,0.08)}
.xu5-ra-float-btn svg{width:15px;height:15px;flex-shrink:0}
.xu5-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#aaa;pointer-events:none}
.xu5-search-input{width:100%;height:44px;border-radius:8px;border:1px solid #e0e0e0;font-size:14px;padding:0 40px 0 42px;outline:none;box-shadow:inset 0 1px 3px rgba(0,0,0,0.06);transition:border-color .3s,box-shadow .3s;box-sizing:border-box}
.xu5-search-input:focus{border-color:#999;box-shadow:inset 0 1px 3px rgba(0,0,0,0.06),0 0 0 3px rgba(0,0,0,0.04)}
.xu5-search-clear{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:#999;cursor:pointer;display:none;line-height:1}
.xu5-search-clear.visible{display:block}
.xu5-search-empty{text-align:center;color:#666;margin:15px 0;font-size:14px;padding:12px;background:#f5f5f5;border-radius:4px;display:none}
.xu5-search-info{text-align:center;color:#666;margin:15px 0;font-size:15px;padding:12px;background:#f5f5f5;border-radius:4px;display:none}
.xu5-search-results{display:none}
.xu5-no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f2f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8c8c8' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/40% no-repeat;border-radius:8px;font-size:0;color:transparent}
/* ─── 游戏封面卡片（横版） ─── */
.xu5-game-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:12px 14px}
.xu5-game-card{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#1a1a2e;box-shadow:0 2px 8px rgba(0,0,0,0.15);transition:transform .2s,box-shadow .2s;text-decoration:none;color:inherit}
.xu5-game-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.25)}
.xu5-game-cover{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#0d0d1a}
.xu5-game-cover img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.xu5-game-card:hover .xu5-game-cover img{transform:scale(1.05)}
.xu5-game-nocover{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:48px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff}
.xu5-game-info{padding:10px 12px}
.xu5-game-title{font-size:14px;font-weight:600;color:#e0e0e0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xu5-game-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.xu5-game-tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:500;color:#fff;background:#409eff}
.xu5-game-tag-cat{background:#7b1fa2}

/* ─── 分页 ─── */
.xu5-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px 0;flex-wrap:wrap}
.xu5-page-btn{padding:6px 14px;border:1px solid #dcdfe6;border-radius:6px;background:#fff;cursor:pointer;font-size:13px;color:#606266;transition:all .2s}
.xu5-page-btn:hover:not(:disabled){border-color:#409eff;color:#409eff}
.xu5-page-btn:disabled{opacity:.4;cursor:not-allowed}
.xu5-page-btn.active{background:#409eff;color:#fff;border-color:#409eff}
.xu5-page-nums{display:flex;gap:4px}
.xu5-page-num{min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #dcdfe6;border-radius:6px;background:#fff;cursor:pointer;font-size:13px;color:#606266;transition:all .2s}
.xu5-page-num:hover{border-color:#409eff;color:#409eff}
.xu5-page-num.active{background:#409eff;color:#fff;border-color:#409eff;font-weight:600}
.xu5-page-ellipsis{min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#999}
.xu5-page-info{font-size:12px;color:#909399;margin-left:8px}

@media(max-width:1024px){
  .xu5-game-cards{grid-template-columns:repeat(2,1fr);gap:14px}
}
@media(max-width:768px){
  .item-tabs{margin-left:4px;margin-right:4px}
  .xu5-search-row{margin:12px 0;padding:0 10px}
  .xu5-ra-float-btn span{display:none}
  .xu5-ra-float-btn{padding:0 12px;height:40px}
  .xu5-tab-nav{width:100px;font-size:12px}
  .xu5-tab-btn{padding:7px 8px;font-size:12px}
  .xu5-accordion-header{padding:8px 10px;font-size:14px}
  .xu5-accordion-header .icon-container{width:28px;height:28px}
  .xu5-search-input{height:40px;font-size:13px;padding:0 36px 0 38px}
  .xu5-search-icon{width:16px;height:16px;left:12px}
  .item-content .nav{flex-direction:column;align-items:unset}
  .item-content .nav .name{max-width:100%;margin-right:0}
  .item-content .nav .urls{margin-top:6px;flex-wrap:wrap}
  .xu5-game-cards{grid-template-columns:1fr;gap:10px;padding:8px 10px}
  .xu5-game-info{padding:8px 10px}
  .xu5-game-title{font-size:13px}
}

/* ==========================================================================
   游戏档案页（平台/分类）· 深色电影主题（对齐游戏详情页）
   作用域 body.xu5-game-archive —— 仅游戏平台/分类页生效，软件列表页不受影响
   ========================================================================== */
body.xu5-game-archive{background:#0d1117}
/* 统一深色画布 + 细微氛围光：固定全屏底层，彻底消除 html(#000) 与 body(#0d1117) 首屏以下的接缝，并提升高级质感 */
body.xu5-game-archive::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(1200px 560px at 50% -180px,rgba(124,58,237,.16),transparent 68%),radial-gradient(900px 640px at 94% -60px,rgba(56,98,235,.1),transparent 60%),#0d1117}
body.xu5-game-archive .container .item-tabs{background:transparent;border-radius:0}

/* 搜索框深色 */
body.xu5-game-archive .xu5-search-input{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:#e6edf3;box-shadow:none}
body.xu5-game-archive .xu5-search-input::placeholder{color:#8a94a3}
body.xu5-game-archive .xu5-search-input:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.18)}
body.xu5-game-archive .xu5-search-icon{color:#8a94a3}
body.xu5-game-archive .xu5-search-clear{color:#aab2bd}
body.xu5-game-archive .xu5-ra-float-btn{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:#cbd3de;box-shadow:none}
body.xu5-game-archive .xu5-ra-float-btn:hover{border-color:#8b5cf6;color:#c4b5fd;box-shadow:0 0 0 3px rgba(139,92,246,.12)}
body.xu5-game-archive .xu5-search-empty,body.xu5-game-archive .xu5-search-info{background:rgba(255,255,255,.05);color:#aab2bd}

/* 左侧分类导航深色 */
body.xu5-game-archive .xu5-tab-nav{border-right-color:rgba(255,255,255,.08)}
body.xu5-game-archive .xu5-tab-btn{color:#aab2bd}
body.xu5-game-archive .xu5-tab-btn:hover{color:#fff;background:rgba(255,255,255,.06)}
body.xu5-game-archive .xu5-tab-btn.active{color:#fff;background:linear-gradient(90deg,rgba(139,92,246,.3),rgba(139,92,246,.1));box-shadow:inset 0 0 0 1px rgba(139,92,246,.32)}
body.xu5-game-archive #xu5TabsWrapper.xu5-search-mode .xu5-tab-nav::before{color:#c4b5fd;background:rgba(139,92,246,.18)}

/* 游戏卡片：玻璃态（对齐详情页截图卡），高级化描边/阴影/层次 */
body.xu5-game-archive .xu5-game-cards{gap:18px;padding:16px 14px}
body.xu5-game-archive .xu5-game-card{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.07);border-radius:16px;box-shadow:0 8px 20px -10px rgba(0,0,0,.55);transition:transform .26s cubic-bezier(.2,.7,.3,1),box-shadow .26s,border-color .26s}
body.xu5-game-archive .xu5-game-card:hover{transform:translateY(-6px);border-color:rgba(168,85,247,.5);box-shadow:0 24px 46px -22px rgba(124,58,237,.62),0 0 0 1px rgba(168,85,247,.25)}
body.xu5-game-archive .xu5-game-cover{background:#0d1117}
body.xu5-game-archive .xu5-game-cover::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(to top,rgba(8,10,18,.5),transparent);pointer-events:none}
body.xu5-game-archive .xu5-game-nocover{background:linear-gradient(135deg,#1b2030,#241a36)}
body.xu5-game-archive .xu5-game-title{color:#f0f3f8}
body.xu5-game-archive .xu5-game-tag{background:rgba(139,92,246,.2);color:#cdbcff;border:1px solid rgba(139,92,246,.3)}
body.xu5-game-archive .xu5-game-tag-cat{background:rgba(255,255,255,.08);color:#cbd3de;border:1px solid rgba(255,255,255,.12)}

/* 分页深色 */
body.xu5-game-archive .xu5-page-btn,body.xu5-game-archive .xu5-page-num{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:#cbd3de}
body.xu5-game-archive .xu5-page-btn:hover:not(:disabled),body.xu5-game-archive .xu5-page-num:hover{border-color:#8b5cf6;color:#fff}
body.xu5-game-archive .xu5-page-btn.active,body.xu5-game-archive .xu5-page-num.active{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
body.xu5-game-archive .xu5-page-info{color:#8a94a3}

/* ==========================================================================
   游戏分类页 · v2.1 高大上美化增强 · 克制收敛版（追加层，删除本段即可整体回滚）
   调色：靛蓝 #6366f1 → 紫 #8b5cf6 双色（去粉色 ec4899、降饱和），纹理/辉光/位移均收窄
   仅 body.xu5-game-archive 生效，软件列表页不受影响
   ========================================================================== */
/* 游戏卡：顶部渐变光带(hover) + 封面缩放 + 封面底部渐隐加强 + 标题/标签精修 */
body.xu5-game-archive .xu5-game-card{position:relative;isolation:isolate}
body.xu5-game-archive .xu5-game-card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;z-index:3;pointer-events:none;border-radius:16px 16px 0 0;background:linear-gradient(90deg,#6366f1,#8b5cf6);opacity:0;transition:opacity .26s ease}
body.xu5-game-archive .xu5-game-card:hover::before{opacity:.82}
body.xu5-game-archive .xu5-game-cover img{transition:transform .4s cubic-bezier(.2,.7,.3,1)}
body.xu5-game-archive .xu5-game-card:hover .xu5-game-cover img{transform:scale(1.04)}
body.xu5-game-archive .xu5-game-cover::after{height:50%;background:linear-gradient(to top,rgba(8,10,18,.55),transparent)}
body.xu5-game-archive .xu5-game-title{transition:color .2s ease}
body.xu5-game-archive .xu5-game-card:hover .xu5-game-title{color:#fff}
body.xu5-game-archive .xu5-game-tag{transition:transform .2s ease}
body.xu5-game-archive .xu5-game-tag:first-child{background:rgba(99,102,241,.26);color:#cdbcff;border:1px solid rgba(99,102,241,.4)}

/* 左侧分类导航 active：左侧渐变高亮条 */
body.xu5-game-archive .xu5-tab-btn{position:relative}
body.xu5-game-archive .xu5-tab-btn.active::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:60%;border-radius:3px;background:linear-gradient(180deg,#6366f1,#a855f7)}

/* 搜索框聚焦：紫色辉光层次加强 */
body.xu5-game-archive .xu5-search-input:focus{box-shadow:0 0 0 3px rgba(139,92,246,.16),0 6px 16px -12px rgba(124,58,237,.32)}

/* 分页 active：渐变胶囊 */
body.xu5-game-archive .xu5-page-btn.active,body.xu5-game-archive .xu5-page-num.active{background:linear-gradient(135deg,#6366f1,#7c83f3);border-color:transparent;box-shadow:0 6px 14px -10px rgba(124,58,237,.5)}

@media(prefers-reduced-motion:reduce){
  body.xu5-game-archive .xu5-game-cover img,
  body.xu5-game-archive .xu5-game-card::before,
  body.xu5-game-archive .xu5-game-title,
  body.xu5-game-archive .xu5-game-tag{transition:none}
}

/* 游戏卡角标：左上 NEW（近 14 天）/ 右上 评分 */
body.xu5-game-archive .xu5-game-badge-new{position:absolute;top:8px;left:8px;z-index:4;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.6px;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6);box-shadow:0 4px 10px -4px rgba(124,58,237,.8)}
body.xu5-game-archive .xu5-game-badge-rating{position:absolute;top:8px;right:8px;z-index:4;display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:6px;font-size:12px;font-weight:800;color:#ffd86b;background:rgba(7,9,14,.6);border:1px solid rgba(255,255,255,.14)}
body.xu5-game-archive .xu5-game-badge-rating svg{width:11px;height:11px;fill:#ffd86b}

/* 深色自定义滚动条（窗口 + 内部容器） */
html:has(body.xu5-game-archive){scrollbar-color:#2a2f3a #0d1117;scrollbar-width:thin}
html:has(body.xu5-game-archive)::-webkit-scrollbar{width:12px;height:12px}
html:has(body.xu5-game-archive)::-webkit-scrollbar-track{background:#0d1117}
html:has(body.xu5-game-archive)::-webkit-scrollbar-thumb{background:#2a2f3a;border-radius:8px;border:3px solid #0d1117}
html:has(body.xu5-game-archive)::-webkit-scrollbar-thumb:hover{background:#3a4150}

/* 统一 focus-visible 紫色环（可访问性） */
body.xu5-game-archive a:focus-visible,
body.xu5-game-archive button:focus-visible,
body.xu5-game-archive input:focus-visible,
body.xu5-game-archive .xu5-tab-btn:focus-visible,
body.xu5-game-archive .xu5-game-card:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px;border-radius:8px}

/* 干掉残留旧蓝：页脚 / 友链 hover 统一到紫 */
body.xu5-game-archive .xu5-footer-nav-link:hover,
body.xu5-game-archive .xu5-friend-link:hover,
body.xu5-game-archive .tutorial-footer-wrapper .footer-links a{color:#b39dff}

/* 骨架屏（搜索/加载占位，替代空白等待） */
.xu5-skel-card{border-radius:12px;overflow:hidden}
.xu5-skel-cover{width:100%;padding-top:56.25%}
.xu5-skel-cover,.xu5-skel-line{position:relative;overflow:hidden;background:rgba(127,127,127,.15)}
.xu5-skel-line{height:12px;margin:10px 12px;border-radius:6px}
.xu5-skel-line.short{width:50%}
@keyframes xu5-shimmer{100%{transform:translateX(100%)}}
.xu5-skel-cover::after,.xu5-skel-line::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(127,127,127,.18),transparent);animation:xu5-shimmer 1.2s infinite}
@media(prefers-reduced-motion:reduce){.xu5-skel-cover::after,.xu5-skel-line::after{animation:none}}

/* 搜索关键词高亮 */
.xu5-hl{background:rgba(139,92,246,.28);color:inherit;border-radius:3px;padding:0 1px}
body.xu5-game-archive .xu5-hl{background:rgba(139,92,246,.34);color:#fff}
