/* ============ 更新记录 · 现代化 UI 2026-07-05 ============ */
/* 独立命名空间 .update-page，覆盖 list.css 的 .left.update float 布局，不影响其他列表页 */
.update-page{--up-accent:#5b8def;--up-accent-2:#7ea6f5;--up-radius:16px}

/* ---------- 顶部 Hero ---------- */
.update-header{position:relative;width:100%;height:260px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(125deg,#0b0f16 0%,#171a20 45%,#20242c 70%,#0f1218 100%)}
.update-header:before{content:"";position:absolute;inset:-10%;background:radial-gradient(80% 120% at 15% 10%,rgba(91,141,239,.32),transparent 55%),radial-gradient(70% 110% at 88% 20%,rgba(126,166,245,.26),transparent 55%),radial-gradient(90% 130% at 60% 120%,rgba(123,80,255,.20),transparent 60%);animation:upHeroGlow 14s ease-in-out infinite}
@keyframes upHeroGlow{0%{transform:translate3d(0,0,0) scale(1);opacity:.9}50%{transform:translate3d(2.5%,-2%,0) scale(1.08);opacity:1}100%{transform:translate3d(0,0,0) scale(1);opacity:.9}}
@media (prefers-reduced-motion:reduce){.update-header:before{animation:none}}
.update-header:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(120% 100% at 50% 0,#000,transparent 75%);mask-image:radial-gradient(120% 100% at 50% 0,#000,transparent 75%)}
.update-header-mask{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,10,16,.05),rgba(8,10,16,.55))}
.update-header-inner{position:relative;z-index:2;text-align:center;padding:0 20px;max-width:1000px}
.update-header-title{color:#fff;font-size:36px;font-weight:800;letter-spacing:1px;line-height:1.2;text-shadow:0 6px 24px rgba(0,0,0,.5)}
.update-header-title i{font-size:32px;background:linear-gradient(135deg,var(--up-accent-2),var(--up-accent));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;margin-right:8px}
.update-header-desc{color:rgba(255,255,255,.82);font-size:15px;line-height:1.7;margin-top:12px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ---------- 主体容器 ---------- */
.update-main{margin-top:-48px;position:relative;z-index:3;padding-bottom:40px}
.update-main>.container{background:transparent;box-sizing:border-box}

/* ---------- 列表：覆盖 list.css float 为 flex 行 ---------- */
.update-page .left.update{width:100%;background:#fff;border-radius:20px;box-sizing:border-box;padding:10px 22px;box-shadow:0 20px 50px -24px rgba(15,30,60,.35)}
.update-page .left.update>ul{margin:0}
.update-page .left.update>ul li{display:flex;align-items:center;gap:10px;height:auto;min-height:0;padding:8px 8px;border-bottom:1px solid #f0f2f5;line-height:1.4;position:relative;transition:background .25s,padding-left .25s}
/* 当天更新角标 */
.update-page .left.update>ul li .up-badge{flex-shrink:0;align-self:center;display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 8px;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;color:#fff!important;border-radius:6px;letter-spacing:.5px}
body.night .update-page .left.update>ul li .up-badge{color:#fff!important}
.update-page .left.update>ul li .up-badge.is-new{background:linear-gradient(135deg,#ff4d6d,#e60039)}
.update-page .left.update>ul li .up-badge.is-update{background:linear-gradient(135deg,#ffa53d,#ff7a18)}
.update-page .left.update>ul li:first-child{margin-top:0}
.update-page .left.update>ul li:last-child{border-bottom:0}
/* 去掉 list.css 那条从左铺开的 :after 灰底动画 */
.update-page .left.update>ul li:after{display:none}
.update-page .left.update>ul li:hover{background:#f7f9fc;padding-left:16px}
/* 左侧青蓝竖条高亮 */
.update-page .left.update>ul li:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:0;background:var(--up-accent);border-radius:0 3px 3px 0;transition:height .25s}
.update-page .left.update>ul li:hover:before{height:60%}

/* 分类标签 */
.update-page .left.update>ul li span{float:none;margin:0;flex-shrink:0;border:0;background:#eef3fd;color:var(--up-accent);border-radius:8px;padding:5px 11px;font-size:12px;line-height:1;font-weight:500;min-width:66px;text-align:center}
/* 游戏名：自适应 + 省略号，防换行重叠 */
.update-page .left.update>ul li .tit{float:none;flex:1;min-width:0;font-size:15px;color:#2b323d;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:color .25s}
.update-page .left.update>ul li:hover .tit{color:var(--up-accent)}
/* 日期 */
.update-page .left.update>ul li time{float:none;margin:0;flex-shrink:0;color:#9aa3b0;font-size:13px;font-variant-numeric:tabular-nums}
/* 查看按钮 */
.update-page .left.update>ul li .link{float:none;margin:0;flex-shrink:0;background:#eef3fd;color:var(--up-accent);padding:6px 16px;border-radius:999px;font-size:12px;line-height:1;height:auto;font-weight:600;transition:all .25s}
.update-page .left.update>ul li:hover .link{background:var(--up-accent);color:#fff;box-shadow:0 4px 10px -4px rgba(91,141,239,.35)}
body.night .update-page .left.update>ul li:hover .link{background:#3a6db5;color:#fff;box-shadow:0 4px 10px -4px rgba(0,0,0,.5)}

/* ---------- 分页 ---------- */
.update-page .pages{margin-top:24px;text-align:center;padding-bottom:10px}
.update-page .pages li a{border-color:var(--up-accent);color:var(--up-accent)}
.update-page .pages li a:hover{color:#3f6fd0}
.update-page .pages .thisclass a{background:var(--up-accent);border-color:var(--up-accent);color:#fff}
.update-page .pages .thisclass a:hover{color:#fff}

/* ---------- 夜间模式 ---------- */
body.night .update-page .left.update{background:#292a2d;box-shadow:none}
body.night .update-page .left.update>ul li{border-bottom-color:#3a3d42}
body.night .update-page .left.update>ul li:hover{background:#323438}
body.night .update-page .left.update>ul li span{background:#2a3a4d;color:#8bb0f7}
body.night .update-page .left.update>ul li .tit{color:#d4d8de}
body.night .update-page .left.update>ul li .link{background:#2a3a4d;color:#8bb0f7}

/* ---------- 响应式 ---------- */
@media screen and (max-width:1520px){.update-main>.container{width:1300px}}
@media screen and (max-width:1320px){.update-main>.container{width:1200px}}
@media screen and (max-width:800px){
  .update-header{height:auto;min-height:11rem;padding-top:5rem;padding-bottom:2rem;box-sizing:border-box}
  .update-header-title{font-size:1.5rem}
  .update-header-title i{font-size:1.3rem}
  .update-header-desc{font-size:.85rem;margin-top:8px}
  .update-main{margin-top:12px}
  .update-main>.container{width:94%}
  .update-page .left.update{padding:6px 14px;border-radius:16px}
  .update-page .left.update>ul li{flex-wrap:wrap;gap:4px 8px;min-height:0;padding:9px 6px}
  .update-page .left.update>ul li span{order:1;flex-shrink:0;padding:3px 8px;font-size:11px;min-width:0}
  .update-page .left.update>ul li .tit{order:2;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:20px}
  .update-page .left.update>ul li time{order:3;flex-shrink:0;font-size:12px}
  .update-page .left.update>ul li .link{display:none}
}

/* ============ 子分类 Tab + 排行榜（2026-07-05 新增） ============ */
.update-page .update-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:14px 8px 16px;margin-bottom:6px;border-bottom:1px solid #f0f2f5}
.update-page .update-tabs .tab-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 20px;font-size:14px;font-weight:600;color:#5a6572;background:#f4f6f9;border-radius:999px;cursor:pointer;transition:all .25s;white-space:nowrap}
.update-page .update-tabs .tab-btn i{font-size:14px}
.update-page .update-tabs .tab-btn:hover{color:var(--up-accent);background:#eef3fd;transform:translateY(-1px)}
.update-page .update-tabs .tab-btn.hover{color:#fff;background:linear-gradient(135deg,var(--up-accent),var(--up-accent-2));box-shadow:0 4px 10px -4px rgba(91,141,239,.35)}

/* 面板显隐 */
.update-page .tab-panel{display:none;margin:0}
.update-page .tab-panel.ing{display:block}

/* 排行榜序号 */
.update-page .left.update>ul.ranklist li .rk{flex-shrink:0;width:26px;height:26px;line-height:26px;text-align:center;font-size:13px;font-weight:700;font-style:normal;color:#9aa3b0;background:#f2f4f7;border-radius:8px}
.update-page .left.update>ul.ranklist li:nth-child(1) .rk{background:linear-gradient(135deg,#ffb43d,#ff8a00);color:#fff}
.update-page .left.update>ul.ranklist li:nth-child(2) .rk{background:linear-gradient(135deg,#c3ccd8,#9aa7b8);color:#fff}
.update-page .left.update>ul.ranklist li:nth-child(3) .rk{background:linear-gradient(135deg,#e6a877,#cd7f43);color:#fff}
.update-page .left.update>ul.ranklist li time.num{color:var(--up-accent);font-weight:600}

body.night .update-page .update-tabs{border-bottom-color:#3a3d42}
body.night .update-page .update-tabs .tab-btn{background:#323335;color:#c0c4cc}
body.night .update-page .update-tabs .tab-btn:hover{background:#2a3a4d;color:#8bb0f7}
body.night .update-page .update-tabs .tab-btn.hover{background:linear-gradient(135deg,#3a6db5,#4f7cc0);color:#fff;box-shadow:0 4px 10px -4px rgba(0,0,0,.5)}
body.night .update-page .left.update>ul.ranklist li .rk{background:#3a3d42;color:#c0c4cc}

@media screen and (max-width:800px){
  .update-page .update-tabs{gap:8px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:12px 6px 14px}
  .update-page .update-tabs::-webkit-scrollbar{height:0}
  .update-page .update-tabs .tab-btn{padding:8px 15px;font-size:13px}
  .update-page .left.update>ul.ranklist li .rk{order:0}
}
