/* ===================== 基础 ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #222; background: #fff; overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a { cursor: pointer; }
.hidden { display: none !important; }

.stage { display: none; min-height: 100vh; }
.stage.active { display: block; }

/* ===================== 第 0 幕 A：五秒盾 ===================== */
#stage-cf { background: #fff; color: #313131; font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
#stage-cf.active { display: flex; flex-direction: column; }
.cf-wrap { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 12vh 16px 40px; }
.cf-host { font-size: 36px; font-weight: 500; margin: 0 0 8px; word-break: break-all; }
.cf-sub { font-size: 20px; font-weight: 400; margin: 0 0 28px; color: #404040; }
.cf-box {
  width: 300px; max-width: 100%; height: 65px; border: 1px solid #e0e0e0; background: #fafafa;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px;
  border-radius: 4px; box-shadow: 0 0 4px rgba(0,0,0,.04);
}
.cf-box.shake { animation: shake .4s; }
.cf-left { display: flex; align-items: center; gap: 10px; }
.cf-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e6e6e6; border-top-color: #f38020; animation: spin .8s linear infinite; }
.cf-check {
  width: 26px; height: 26px; border: 2px solid #666; border-radius: 3px; background: #fff; padding: 0; position: relative;
}
.cf-check:hover { border-color: #f38020; }
.cf-check.ok { border: none; background: #1e8e3e; border-radius: 50%; }
.cf-check.ok .cf-tick { position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.cf-label { font-size: 14px; }
.cf-brand { text-align: right; line-height: 1.1; display: flex; flex-direction: column; align-items: flex-end; }
.cf-brand b { font-size: 11px; letter-spacing: .3px; color: #404040; }
.cf-brand small { font-size: 8px; color: #8a8a8a; }
.cf-brand .cf-links { text-decoration: underline; }
.cf-cloud { position: relative; width: 34px; height: 14px; margin-bottom: 2px; }
.cf-cloud i { position: absolute; background: #f38020; border-radius: 50%; }
.cf-cloud i:nth-child(1) { width: 14px; height: 14px; left: 4px; top: 2px; }
.cf-cloud i:nth-child(2) { width: 18px; height: 16px; left: 11px; top: -3px; background: #f6821f; }
.cf-cloud i:nth-child(3) { width: 34px; height: 7px; left: 0; top: 8px; border-radius: 4px; background: #faad3f; }
.cf-desc { margin: 26px 0 6px; font-size: 15px; }
.cf-desc.err { color: #d93025; font-weight: 600; }
.cf-desc2 { color: #595959; font-size: 14px; margin: 0; }
.cf-foot { text-align: center; font-size: 12px; color: #595959; padding: 16px; border-top: 1px solid #eee; }
.cf-foot code { font-family: ui-monospace, Consolas, monospace; }

/* ===================== 第 0 幕 B：节点 ===================== */
#stage-nodes { background: radial-gradient(ellipse at 30% 20%, #10213a, #050a14 70%); color: #d7e6ff; font-family: "Microsoft YaHei", sans-serif; }
#stage-nodes.active { display: flex; flex-direction: column; }
.nd-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 18px 24px 8px; }
.nd-title { font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 0 10px #39f; }
.nd-dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
.nd-step { font-size: 15px; color: #9ad; }
.nd-body { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 0 24px 24px; min-height: 0; }
.nd-mapwrap { position: relative; min-height: 420px; border: 1px solid #1d3b66; border-radius: 8px; background: rgba(10,25,50,.5); overflow: hidden; }
#ndMap { position: absolute; inset: 0; }
.nd-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 12px; font-size: 12px; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 4px; }
.nd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.nd-inject {
  position: absolute; left: 50%; top: 14%; transform: translate(-50%, 0) scale(0); white-space: nowrap;
  font-size: clamp(18px, 3.2vw, 34px); font-weight: 900; color: #ffea00; padding: 10px 24px;
  background: linear-gradient(90deg, #ff3d00, #ff9100); border: 3px solid #fff; border-radius: 8px;
  box-shadow: 0 0 30px #ff6d00; text-shadow: 2px 2px 0 #b00; opacity: 0; pointer-events: none; z-index: 3;
}
.nd-inject.show { animation: injectIn .5s cubic-bezier(.2,1.6,.4,1) forwards, blinkSoft .25s 0.5s 8 alternate; }
.nd-inject.docked { animation: none; opacity: 1; top: 8px; transform: translate(-50%, 0) scale(.6); transition: top .4s, transform .4s; }
.nd-stamp {
  position: absolute; right: 6%; top: 8%; width: 190px; height: 190px; border-radius: 50%;
  border: 6px double #ff2b2b; color: #ff2b2b; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; transform: rotate(-16deg) scale(4); opacity: 0; z-index: 4; pointer-events: none;
  background: rgba(255,250,235,.94); box-shadow: 0 0 0 4px rgba(255,250,235,.94), 0 8px 30px rgba(0,0,0,.6);
}
.nd-stamp b { font-size: 46px; line-height: 1; font-family: Impact, "Arial Black", sans-serif; }
.nd-stamp small { font-size: 16px; }
.nd-stamp.show { animation: stampIn .35s cubic-bezier(.3,1.4,.5,1) forwards; }
.nd-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.nd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nd-stats div { background: rgba(20,45,85,.7); border: 1px solid #1d3b66; border-radius: 6px; padding: 8px; text-align: center; }
.nd-stats small { display: block; font-size: 11px; color: #8aa; }
.nd-stats b { font-size: 20px; color: #8fe39b; font-family: Consolas, monospace; }
.nd-stats b.bad { color: #ff3b3b; }
.nd-stats b.up { color: #ffd600; }
.nd-log {
  flex: 1; min-height: 200px; max-height: 52vh; overflow: hidden; margin: 0; padding: 10px 10px 10px 34px;
  font: 12px/1.7 Consolas, "Microsoft YaHei", monospace; background: #020611; border: 1px solid #1d3b66; border-radius: 6px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.nd-log li { color: #9fb6d9; animation: fadeIn .2s; }
.nd-log li.ok { color: #8fe39b; }
.nd-log li.bad { color: #ff5252; }
.nd-log li.warn { color: #ffd600; }
.nd-go {
  padding: 14px; font-size: 18px; font-weight: 700; color: #fff; border: 0; border-radius: 6px;
  background: linear-gradient(90deg, #00c853, #00b0ff); box-shadow: 0 0 20px rgba(0,200,120,.6); animation: pulse 1s infinite;
}

/* ===================== 第 1 幕：资源站 ===================== */
#stage-site {
  font-family: "Microsoft YaHei", "SimSun", sans-serif; font-size: 13px;
  background: #b30000 url(../img/bg_burst.jpg) center top / cover fixed;
  padding-bottom: 110px;
}
.s-wrap { width: min(1000px, 100%); margin: 0 auto; }
.s-topbar { background: #f2f2f2; border-bottom: 1px solid #ddd; font-size: 12px; color: #666; line-height: 28px; }
.s-topbar .s-wrap { padding: 0 8px; }
.s-today { float: right; }
.s-today b { color: #f00; }
.s-header { background: #fff; display: flex; align-items: center; gap: 20px; padding: 12px; flex-wrap: wrap; }
.s-logo { height: 70px; width: auto; animation: logoWobble 3s ease-in-out infinite; }
.s-search { flex: 1; min-width: 260px; }
.s-search input { width: calc(100% - 80px); height: 34px; border: 2px solid #e60000; padding: 0 8px; font-size: 13px; vertical-align: top; }
.s-search button { width: 76px; height: 34px; border: 0; background: #e60000; color: #fff; font-weight: 700; vertical-align: top; }
.s-hot { font-size: 12px; color: #888; margin-top: 4px; }
.s-hot a { color: #06c; margin-right: 6px; text-decoration: underline; }
.s-nav { background: linear-gradient(#ff2a2a, #b80000); border-top: 2px solid #ffd000; border-bottom: 2px solid #800; }
.s-nav .s-wrap { display: flex; flex-wrap: wrap; }
.s-nav a { color: #fff; font-size: 15px; font-weight: 700; padding: 0 16px; line-height: 40px; text-shadow: 1px 1px 0 #600; }
.s-nav a:hover, .s-nav a.on { background: #ffd000; color: #c00; text-shadow: none; }
.s-nav sup { color: #ff0; font-size: 9px; animation: blinkHard .5s steps(1) infinite; }
.s-marquee { background: #e00000; border-bottom: 3px solid #ffd000; overflow: hidden; white-space: nowrap; height: 38px; }
.s-marquee-in { display: inline-block; padding-left: 100%; line-height: 38px; font-size: 20px; font-weight: 900; color: #ffee00; text-shadow: 2px 2px 0 #700; animation: marquee 26s linear infinite; }
.s-marquee-in span { margin-right: 60px; }
.s-marquee-in span:nth-child(3n) { color: #fff; }
.s-banner { display: block; margin: 8px 0; border: 3px solid #ffd000; }
.s-crumbs { background: #fff; padding: 6px 10px; border: 1px solid #ccc; font-size: 12px; color: #666; }
.s-crumbs a { color: #06c; }
.s-grid { display: grid; grid-template-columns: 1fr 250px; gap: 8px; margin-top: 8px; }
.s-post { background: #fff; border: 1px solid #ccc; padding: 14px; min-width: 0; }
.s-title { font-size: 22px; color: #c00; margin: 0 0 6px; line-height: 1.4; }
.s-title em { font-style: normal; color: #06c; }
.tag-hot, .tag-new { display: inline-block; font-size: 11px; color: #fff; padding: 0 4px; margin-left: 4px; vertical-align: 4px; line-height: 16px; }
.tag-hot { background: #f00; animation: blinkHard .6s steps(1) infinite; }
.tag-new { background: #f90; animation: blinkHard .6s .3s steps(1) infinite; }
.s-meta { color: #999; font-size: 12px; border-bottom: 1px dashed #ccc; padding-bottom: 8px; }
.s-meta b { color: #f60; }
.s-meta a { color: #06c; }
.s-info { display: flex; gap: 14px; margin: 12px 0; flex-wrap: wrap; }
.s-cover { width: 220px; border: 4px solid #fff; outline: 1px solid #ccc; box-shadow: 3px 3px 0 #ddd; }
.s-table { flex: 1; min-width: 260px; border-collapse: collapse; font-size: 13px; }
.s-table th, .s-table td { border: 1px solid #e3e3e3; padding: 6px 8px; text-align: left; }
.s-table th { width: 80px; background: #fff5e6; color: #a40; font-weight: 400; }
.stars { color: #f90; letter-spacing: 1px; }
.safe { color: #090; }
.go-dl { color: #f00; font-weight: 700; text-decoration: underline; }
.s-block { margin-top: 14px; }
.s-h3 { font-size: 15px; color: #fff; background: linear-gradient(90deg, #d00, #f60 60%, transparent); padding: 4px 10px; margin: 0 0 8px; }
.s-h3 small { color: #ffe; font-weight: 400; font-size: 12px; }
.s-block p { margin: 6px 0; text-indent: 2em; }
.red { color: #f00; }
.hl { background: #ff0; color: #c00; font-weight: 700; }
.s-note { color: #999; font-size: 12px; }
.s-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-shots img { width: 100%; border: 1px solid #ccc; transition: transform .2s; }
.s-shots img:hover { transform: scale(1.05) rotate(-1deg); }
.s-cfg { width: 100%; border-collapse: collapse; }
.s-cfg th, .s-cfg td { border: 1px solid #ddd; padding: 5px 8px; text-align: left; }
.s-cfg tr:first-child th { background: #333; color: #ff0; }
.s-cfg th { background: #f6f6f6; width: 70px; }

/* --- 正文里夹的广告 --- */
.s-inad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.s-inad a { display: block; border: 3px solid #ffd000; }

/* --- 下载区 --- */
.s-dl { border: 2px dashed #f00; padding: 10px; background: #fffbe6; }
.dl-vip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vip-btn {
  position: relative; border: 3px solid #fff; border-radius: 14px; padding: 16px 8px; color: #fff;
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #00e676, #00b0ff, #7c4dff, #ff00c8, #ff0040);
  background-size: 400% 100%; animation: rgbFlow 2s linear infinite, glow 1s ease-in-out infinite alternate;
  text-shadow: 2px 2px 0 #000, 0 0 8px #000; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 6px 0 #900, 0 0 22px rgba(255,0,120,.6); transition: transform .1s;
}
.vip-btn:nth-child(2) { animation-delay: -.5s, -.25s; }
.vip-btn:nth-child(3) { animation-delay: -1s, -.5s; }
.vip-btn:nth-child(4) { animation-delay: -1.5s, -.75s; }
.vip-btn:hover { transform: scale(1.04) rotate(-1deg); }
.vip-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #900; }
.vip-btn b { font-size: clamp(20px, 3.4vw, 30px); letter-spacing: 2px; }
.vip-btn small { font-size: 13px; }
.vip-badge {
  position: absolute; top: -12px; right: -8px; font-style: normal; background: #ffd000; color: #c00; font-weight: 900;
  font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 2px solid #c00; animation: badgeSpin 1.2s ease-in-out infinite; text-shadow: none;
}
.dl-mid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mid-btn { position: relative; padding: 10px 4px; border: 1px solid #06c; border-radius: 4px; background: linear-gradient(#5bb6ff, #0a6fd6); color: #fff; font-weight: 700; font-size: 14px; }
.mid-btn i { position: absolute; right: -4px; top: -8px; font-style: normal; font-size: 10px; background: #f00; padding: 0 4px; animation: blinkHard .4s steps(1) infinite; }
.mid-btn:hover { filter: brightness(1.15); }
.dl-tip { color: #c00; font-size: 13px; text-indent: 0 !important; margin-top: 12px !important; }
.dl-boring p { color: #aaa; font-size: 11px; line-height: 1.6; }
.dl-real { text-align: center; padding: 18px 0 2px; }
#realLink { font-size: 9px; color: #d4d4d4; cursor: pointer; text-decoration: none; }
#realLink:hover { color: #bbb; }

/* --- 评论 --- */
.s-comments { list-style: none; margin: 0; padding: 0; }
.s-comments li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dotted #ddd; }
.s-comments img { width: 44px; height: 44px; border: 1px solid #ccc; flex: none; }
.s-comments .c-name { color: #06c; font-size: 12px; }
.s-comments .c-name em { color: #999; font-style: normal; margin-left: 8px; }
.s-comments .c-text { margin: 2px 0; }
.s-comments .c-act { font-size: 12px; color: #999; }
.s-comments .c-act a { margin-right: 12px; color: #c60; }
.s-comments .c-sub { background: #f7f7f7; border: 1px solid #eee; padding: 4px 8px; margin-top: 4px; font-size: 12px; }
.s-comments .c-sub b { color: #c00; }
.s-comments .c-vip { background: #f60; color: #fff; font-size: 10px; padding: 0 3px; margin-left: 4px; }
.s-reply { display: flex; gap: 6px; margin-top: 10px; }
.s-reply textarea { flex: 1; height: 54px; border: 1px solid #ccc; padding: 6px; font: inherit; resize: none; }
.s-reply button { border: 0; background: #f60; color: #fff; padding: 0 16px; font-weight: 700; }

/* --- 侧栏 --- */
.s-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s-box { background: #fff; border: 1px solid #ccc; }
.s-box h4 { margin: 0; background: linear-gradient(#444, #111); color: #ffd000; padding: 5px 10px; font-size: 14px; }
.s-rank { margin: 0; padding: 6px 10px 8px 30px; }
.s-rank li { line-height: 26px; border-bottom: 1px dotted #eee; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-rank li:nth-child(-n+3)::marker { color: #f00; font-weight: 700; }
.s-rank li a { color: #333; }
.s-rank li a:hover { color: #f00; }
.s-sidead { display: block; border: 2px solid #ffd000; }
.s-feed { height: 150px; overflow: hidden; }
.s-feed ul { list-style: none; margin: 0; padding: 4px 8px; font-size: 12px; animation: feedUp 18s linear infinite; }
.s-feed li { line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-feed b { color: #f60; }
.s-footer { background: #222; color: #888; text-align: center; font-size: 12px; padding: 14px 8px; margin-top: 8px; border-top: 4px solid #f00; }
.s-footer p { margin: 4px 0; }
.s-footer a { color: #aaa; }

/* --- 对联 / 底部横幅 --- */
.couplet { position: fixed; top: 120px; width: 140px; z-index: 30; animation: coupletBob 2.4s ease-in-out infinite; }
.couplet.left { left: 6px; }
.couplet.right { right: 6px; animation-delay: -1.2s; }
.couplet img { border: 2px solid #ffd000; }
.bottom-ad { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1000px, 100%); z-index: 35; border: 3px solid #ffd000; border-bottom: 0; background: #000; }
.bottom-ad img { width: 100%; max-height: 100px; object-fit: cover; }
.fake-x { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.65); color: #fff; font: 12px/18px Arial, sans-serif; padding: 0 5px; cursor: pointer; z-index: 2; }
.fake-x:hover { background: #f00; }
@media (max-width: 1340px) { .couplet { display: none; } }

/* ===================== 假装网很卡 ===================== */
#stage-site.is-loading, #stage-site.is-loading * { cursor: progress; }
.slow-hide { visibility: hidden; }
/* 渐进式 JPEG：先糊着一行行往下刷，刷完再变清楚 */
.slow-img { animation: scanLoad var(--scan, 1000ms) steps(14, end) both !important; }
.ie-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; transition: opacity .4s; }
.ie-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #29d, #7cf); box-shadow: 0 0 8px #29d; transition: width .3s; }
.ie-progress.done { opacity: 0; }
.ie-status {
  position: fixed; left: 0; bottom: 0; z-index: 36; max-width: min(560px, 90vw); pointer-events: none;
  background: #f0f0f0; border: 1px solid #a0a0a0; border-left: 0; border-bottom: 0; color: #333;
  font: 12px/20px "Microsoft YaHei", "SimSun", sans-serif; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== 牛皮癣弹窗 ===================== */
#popLayer { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.pop {
  position: absolute; pointer-events: auto; background: #fff; border: 2px solid #333; box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  width: var(--w, 240px); max-width: 46vw; cursor: pointer; animation-duration: var(--dur, 1s);
}
.pop .pop-bar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, #0a246a, #3a6ea5); color: #fff; font-size: 11px; padding: 1px 2px 1px 6px; white-space: nowrap; overflow: hidden; }
.pop .pop-bar b { overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.pop .pop-x { flex: none; width: 16px; height: 14px; line-height: 12px; text-align: center; background: #d4d0c8; color: #000; border: 1px outset #fff; font: 700 11px Arial, sans-serif; }
.pop .pop-x:hover { background: #e81123; color: #fff; }
.pop img { width: 100%; }
.pop.enter { animation: popIn .35s cubic-bezier(.2,1.8,.4,1) both; }
.pop.leave { animation: popOut .2s ease-in forwards !important; pointer-events: none; }

/* 各种劣质动效，用在 .pop 和其他元素上 */
.pop-blink { animation: blinkBorder .3s steps(1) infinite; }
.pop-shake { animation: shake .5s infinite; }
.pop-shake-slow { animation: shakeSlow 3s infinite; display: block; }
.pop-zoom { animation: zoomPulse .8s ease-in-out infinite; }
.pop-swing { animation: swing 1.2s ease-in-out infinite; transform-origin: top center; }
.pop-jelly { animation: jelly 1.4s infinite; }
.pop-hue { animation: hue 2s linear infinite; }
.pop-rainbow { animation: rainbowBorder .6s linear infinite; border-width: 5px; }
.pop-spin { animation: wobbleSpin 2.2s ease-in-out infinite; }

/* 乱跑的角色 */
.walker { position: fixed; z-index: 41; pointer-events: auto; cursor: pointer; width: var(--size, 110px); will-change: transform; }
.walker img { width: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); animation: bob .5s ease-in-out infinite alternate; }
.walker .bubble {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap;
  background: #fff; border: 2px solid #f00; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #f00;
  animation: blinkSoft .5s infinite alternate;
}
.walker.flip img { transform: scaleX(-1); }

/* 鼠标尾巴 */
.spark { position: fixed; pointer-events: none; z-index: 9999; font-size: 14px; animation: sparkFall .8s ease-out forwards; }

/* ===================== 全局模态 / 假窗口 ===================== */
#modalLayer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#modalLayer > * { pointer-events: auto; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s; }
.win {
  width: min(460px, 100%); background: #f0f0f0; border: 1px solid #7a7a7a; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  font: 13px/1.5 "Microsoft YaHei", "Segoe UI", sans-serif; color: #000; animation: popIn .25s ease-out;
}
.win.shake { animation: shake .35s; }
.win-title { display: flex; align-items: center; gap: 6px; height: 32px; padding-left: 10px; background: #fff; border-bottom: 1px solid #ddd; }
.win-title img { width: 18px; height: 18px; }
.win-title span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.win-title .win-x { width: 46px; height: 32px; border: 0; background: transparent; font-size: 16px; }
.win-title .win-x:hover { background: #e81123; color: #fff; }
.win-body { padding: 16px 18px; }
.win-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #e8e8e8; border-top: 1px solid #ddd; }
.win-foot button { min-width: 86px; height: 28px; border: 1px solid #adadad; background: #e1e1e1; }
.win-foot button.primary { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
.win-foot button:hover { background: #e5f1fb; border-color: #0078d7; }
.bar { height: 18px; background: #e6e6e6; border: 1px solid #bcbcbc; position: relative; overflow: hidden; margin: 8px 0; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#5fd35f, #06b025); transition: width .15s linear; }
.bar.fast i { transition: width .5s cubic-bezier(.7,0,.2,1); }

/* 2345 下载器 */
.w2345 .win-title { background: linear-gradient(90deg, #0b7be0, #19b0f4); color: #fff; border: 0; }
.w2345 .win-title .win-x { color: #fff; }
.w2345-head { display: flex; gap: 12px; align-items: center; }
.w2345-head img { width: 64px; height: 64px; animation: zoomPulse 1s infinite; }
.w2345-head b { font-size: 15px; display: block; }
.w2345-head small { color: #666; }
.w2345-list { margin: 8px 0 0; padding-left: 18px; color: #c00; font-size: 12px; max-height: 120px; overflow: hidden; }
.w2345-list li { animation: fadeIn .2s; }
.w2345-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f7fbff; border-top: 1px solid #dbe9f7; }
.w2345-foot .big { background: linear-gradient(#ffb300, #ff6d00); color: #fff; border: 0; font-weight: 700; padding: 8px 22px; border-radius: 3px; font-size: 14px; animation: pulse 1s infinite; }
.w2345-foot .tiny { border: 0; background: none; color: #aaa; font-size: 11px; text-decoration: underline; }

/* 砍一刀全屏 */
.kan { position: fixed; inset: 0; background: #1a0000; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; overflow: hidden; }
.kan.closing { animation: kanOut .25s ease-in forwards; }
.kan-count { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(0,0,0,.6); color: #fff; border-radius: 16px; padding: 4px 14px; font-size: 13px; }
.kan-x { position: absolute; z-index: 6; width: 38px; height: 38px; padding: 0; border: 0; background: none; transition: top .15s, left .15s; opacity: .8; }
.kan-x img { width: 100%; }
.kan-x:hover { opacity: 1; }

/* 场景：横屏 16:9 / 竖屏 9:16，按视口等比缩放 */
.ks { position: relative; overflow: hidden; cursor: pointer; container-type: inline-size; animation: kanIn .5s cubic-bezier(.2,1.6,.4,1); user-select: none; }
.ks.wide { width: min(100vw, 177.78vh); aspect-ratio: 1376 / 768; }
.ks.tall { width: min(100vw, 56.25vh); aspect-ratio: 9 / 16; }
.ks.shake { animation: shake .3s; }
.ks-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; animation: kenBurns 5s ease-in-out infinite alternate, flicker 1.6s steps(1) infinite; }
.ks-rays {
  position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(rgba(255,255,200,.38) 0 6deg, transparent 6deg 18deg);
  mix-blend-mode: overlay; animation: raySpin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%); mask-image: radial-gradient(circle, #000 15%, transparent 60%);
}
.ks-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.ks-twinkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ks-twinkles i { position: absolute; font-style: normal; color: #fff8c0; font-size: clamp(12px, 2.2cqw, 30px); text-shadow: 0 0 8px #ffd000, 0 0 16px #ff8000; animation: twinkle 1.5s ease-in-out infinite; }

/* 图层：.L 定位（以中心为锚点），.a 跑动效 */
.L { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%); z-index: 1; }
.L .a { position: relative; }
.L img { width: 100%; max-width: none; }
.ks-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.95) 52%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  mix-blend-mode: overlay; animation: shineSweep 2.2s ease-in-out infinite;
}

.wide .l-head { --x: 50%; --y: 14%; --w: 66%; }
.wide .l-prog { --x: 50%; --y: 31%; --w: 50%; }
.wide .l-sub  { --x: 50%; --y: 48%; --w: 40%; }
.wide .l-box  { --x: 16%; --y: 58%; --w: 19%; }
.wide .l-gpu  { --x: 84%; --y: 58%; --w: 22%; }
.wide .l-btn  { --x: 50%; --y: 73%; --w: 38%; }
.wide .l-hand { --x: 68%; --y: 84%; --w: 8%; }
.wide .l-foot { --x: 50%; --y: 92%; --w: 34%; }

.tall .l-head { --x: 50%; --y: 9%;  --w: 94%; }
.tall .l-prog { --x: 50%; --y: 19%; --w: 86%; }
.tall .l-sub  { --x: 50%; --y: 28%; --w: 88%; }
.tall .l-box  { --x: 28%; --y: 50%; --w: 40%; }
.tall .l-gpu  { --x: 72%; --y: 51%; --w: 44%; }
.tall .l-btn  { --x: 50%; --y: 75%; --w: 84%; }
.tall .l-hand { --x: 84%; --y: 82%; --w: 17%; }
.tall .l-foot { --x: 50%; --y: 92%; --w: 80%; }

/* 进场（带延迟依次砸进来）+ 循环 */
.l-head .a { animation: slamIn .55s .1s cubic-bezier(.2,1.5,.4,1) both, headPulse .55s .7s ease-in-out infinite alternate; }
.l-head img { filter: drop-shadow(0 0 1.2cqw rgba(255,220,0,.9)); }
.l-prog .a { animation: dropIn .4s .35s cubic-bezier(.2,1.5,.4,1) both, nervous .12s 1s linear infinite; }
.l-sub  .a { animation: zoomIn .45s .5s cubic-bezier(.2,1.6,.4,1) both, wobble 1.6s 1s ease-in-out infinite; }
.l-box  .a { animation: flyLeft .6s .65s cubic-bezier(.2,1.3,.4,1) both, floatA 2.4s 1.3s ease-in-out infinite; }
.l-box img { filter: drop-shadow(0 0 1.5cqw rgba(255,230,120,.9)); }
.l-gpu  .a { animation: flyRight .6s .75s cubic-bezier(.2,1.3,.4,1) both, floatB 2.8s 1.4s ease-in-out infinite; }
.l-gpu img { animation: gpuGlow 1s ease-in-out infinite alternate; }
.l-btn  .a { animation: zoomIn .45s .9s cubic-bezier(.2,1.8,.4,1) both, heartbeat 1s 1.4s ease-in-out infinite; }
.l-btn img { filter: drop-shadow(0 0 1cqw rgba(255,255,0,.9)); }
.l-hand { z-index: 2; }
.l-hand .a { animation: fadeIn .3s 1.2s both, tap .8s 1.4s ease-in-out infinite; }
.l-foot .a { animation: fadeIn .4s 1.1s both, blinkSoft .7s 1.5s ease-in-out infinite alternate; }

/* 特效粒子 */
.ks-drop { position: absolute; top: -60px; font-style: normal; animation: drop linear forwards; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.ks-float { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 900 clamp(18px, 3.4cqw, 44px)/1 "Microsoft YaHei", sans-serif; color: #fff200; -webkit-text-stroke: 2px #b00000; text-shadow: 0 4px 0 #700; animation: floatUp 1s ease-out forwards; }
.ks-slash { position: absolute; width: clamp(80px, 16cqw, 220px); height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff, #fff6a0, transparent); box-shadow: 0 0 14px #fff, 0 0 30px #ff0; transform: translate(-50%, -50%) rotate(-30deg) scaleX(0); animation: slash .35s ease-out forwards; }
.ks-burst { position: absolute; font-style: normal; font-size: clamp(16px, 2.4cqw, 30px); transform: translate(-50%, -50%); animation: burst .7s ease-out forwards; }

/* 提取码 */
.code-shot { position: relative; margin: 6px 0 12px; border: 1px solid #ccc; }
.code-shot canvas { width: 100%; display: block; filter: blur(2.4px) contrast(.9); }
.code-shot small { position: absolute; right: 6px; bottom: 4px; color: #999; font-size: 10px; background: rgba(255,255,255,.8); padding: 0 4px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; height: 30px; border: 1px solid #7a7a7a; padding: 0 8px; font-size: 15px; letter-spacing: 4px; }
.code-err { color: #d00; font-size: 12px; min-height: 18px; margin-top: 4px; }

/* 下载对话框 */
.dlwin .win-body { min-height: 150px; }
.dl-file { display: flex; gap: 12px; align-items: center; }
.dl-file .zip { width: 40px; height: 48px; background: linear-gradient(#ffd54f, #ffb300); position: relative; border-radius: 2px; flex: none; }
.dl-file .zip::after { content: "ZIP"; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 700 10px Arial, sans-serif; color: #7a5200; }
.dl-file .zip::before { content: ""; position: absolute; left: 17px; top: 0; width: 6px; height: 24px; background: repeating-linear-gradient(#7a5200 0 3px, transparent 3px 6px); }
.dl-stat { font-size: 12px; color: #555; display: grid; grid-template-columns: 70px 1fr; gap: 2px 6px; }
.dl-stat b { font-weight: 400; color: #000; font-family: Consolas, monospace; }
.dl-boost { margin-top: 8px; color: #fff; background: #d00; padding: 4px 8px; font-weight: 700; text-align: center; animation: blinkSoft .2s infinite alternate; }

/* toast */
#toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 200; pointer-events: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#toast div { background: rgba(0,0,0,.82); color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 14px; animation: toast 2.2s forwards; max-width: 90vw; text-align: center; }

/* ===================== 下一幕占位 ===================== */
#stage-next { background: #0b2a5b; color: #fff; }
#stage-next.active { display: flex; align-items: center; justify-content: center; }
.next-box { text-align: center; padding: 16px; max-width: 560px; }
.next-box h2 { margin: 14px 0 10px; }
.next-box p { margin: 6px 0; color: #cfe0ff; }
.next-box a { color: #ffd000; }
.next-note { font-size: 12px; }
.next-exe { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 22px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); animation: pulse 1.2s infinite; }
.next-exe img { width: 56px; height: 56px; }
.next-exe small { color: #9fb6d9; }
.next-arrow { position: fixed; top: 6px; right: 70px; font-size: 64px; color: #ffd000; text-shadow: 0 0 12px #f80; animation: nudge .8s ease-in-out infinite; }
.next-box button { margin-top: 12px; padding: 8px 20px; border: 1px solid #fff; background: transparent; color: #fff; }
@keyframes nudge { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(10px, -10px); } }

/* ===================== 关键帧 ===================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6px,2px); } 40% { transform: translate(5px,-2px); } 60% { transform: translate(-4px,1px); } 80% { transform: translate(3px,-1px); } }
@keyframes shakeSlow { 0%,88%,100% { transform: translate(0); } 90% { transform: translate(-4px,0) rotate(-.5deg); } 92% { transform: translate(4px,0) rotate(.5deg); } 94% { transform: translate(-3px,0); } 96% { transform: translate(3px,0); } }
@keyframes blinkHard { 50% { visibility: hidden; } }
@keyframes blinkSoft { from { opacity: 1; } to { opacity: .35; } }
@keyframes blinkBorder { 0% { border-color: #f00; box-shadow: 0 0 0 3px #ff0; } 50% { border-color: #ff0; box-shadow: 0 0 0 3px #f00; } }
@keyframes zoomPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes jelly { 0%,100% { transform: scale(1,1); } 25% { transform: scale(.92,1.08); } 50% { transform: scale(1.08,.92); } 75% { transform: scale(.96,1.04); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes rainbowBorder { 0% { border-color: #f00; } 17% { border-color: #f90; } 33% { border-color: #ff0; } 50% { border-color: #0f0; } 67% { border-color: #0cf; } 83% { border-color: #90f; } 100% { border-color: #f00; } }
@keyframes wobbleSpin { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-12deg) scale(1.05); } 75% { transform: rotate(12deg) scale(.95); } }
@keyframes popIn { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
@keyframes popOut { to { transform: scale(0) rotate(30deg); opacity: 0; } }
@keyframes kanIn { from { transform: scale(.2) rotate(8deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes logoWobble { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-2deg) scale(1.03); } 20% { transform: rotate(2deg); } 30% { transform: rotate(0); } }
@keyframes rgbFlow { to { background-position: 400% 0; } }
@keyframes glow { from { box-shadow: 0 6px 0 #900, 0 0 10px rgba(255,0,120,.5); } to { box-shadow: 0 6px 0 #900, 0 0 34px rgba(255,230,0,.9); } }
@keyframes badgeSpin { 0%,100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.25); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes coupletBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes feedUp { to { transform: translateY(-50%); } }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
@keyframes sparkFall { to { transform: translate(var(--dx, 0), 40px) scale(.2) rotate(180deg); opacity: 0; } }
@keyframes injectIn { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes stampIn { 0% { transform: rotate(-16deg) scale(4); opacity: 0; } 70% { transform: rotate(-16deg) scale(.9); opacity: 1; } 100% { transform: rotate(-16deg) scale(1); opacity: 1; } }
@keyframes scanLoad {
  0%   { clip-path: inset(0 0 100% 0); filter: blur(7px) saturate(.6); }
  70%  { clip-path: inset(0 0 0 0);    filter: blur(7px) saturate(.6); }
  85%  { clip-path: inset(0 0 0 0);    filter: blur(3px); }
  100% { clip-path: inset(0 0 0 0);    filter: none; }
}
/* 砍一刀场景 */
@keyframes kanOut { to { opacity: 0; transform: scale(.85); } }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.09) rotate(.6deg); } }
@keyframes flicker { 0%,100% { filter: none; } 50% { filter: brightness(1.12) saturate(1.25); } }
@keyframes raySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes twinkle { 0%,100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1.3) rotate(90deg); opacity: 1; } }
@keyframes shineSweep { 0% { background-position: -150% 0; } 60%,100% { background-position: 250% 0; } }
@keyframes slamIn { 0% { transform: scale(3.2) rotate(-6deg); opacity: 0; filter: blur(6px); } 60% { opacity: 1; filter: none; } 100% { transform: scale(1); } }
@keyframes headPulse { from { transform: scale(1) rotate(-1.2deg); } to { transform: scale(1.06) rotate(1.2deg); } }
@keyframes dropIn { from { transform: translateY(-300%); opacity: 0; } }
@keyframes nervous { 0% { transform: translate(0, 0); } 25% { transform: translate(-.25cqw, .1cqw); } 50% { transform: translate(.2cqw, -.1cqw); } 75% { transform: translate(-.1cqw, -.1cqw); } }
@keyframes zoomIn { from { transform: scale(0); opacity: 0; } }
@keyframes wobble { 0%,100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04); } }
@keyframes flyLeft { from { transform: translateX(-160%) rotate(-200deg); opacity: 0; } }
@keyframes flyRight { from { transform: translateX(160%) rotate(200deg); opacity: 0; } }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-6%) rotate(-2deg); } }
@keyframes floatB { 0%,100% { transform: translateY(-4%) rotate(6deg); } 50% { transform: translateY(3%) rotate(1deg); } }
@keyframes gpuGlow { from { filter: drop-shadow(0 0 .6cqw rgba(0,255,120,.6)); } to { filter: drop-shadow(0 0 2.4cqw rgba(120,255,80,1)) brightness(1.15); } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 70% { transform: scale(1); } }
@keyframes tap { 0%,100% { transform: translate(0, 0) scale(1) rotate(-10deg); } 45% { transform: translate(-22%, -26%) scale(.86) rotate(-14deg); } 55% { transform: translate(-22%, -26%) scale(.86) rotate(-14deg); } }
@keyframes drop { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--sway, 0), 110vh) rotate(var(--rot, 360deg)); } }
@keyframes floatUp { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -90%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -260%) scale(1); opacity: 0; } }
@keyframes slash { 0% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(0); opacity: 1; } 60% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.1); opacity: 0; } }
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4) rotate(200deg); opacity: 0; } }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 10%,80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ===================== 窄屏 ===================== */
@media (max-width: 860px) {
  .nd-body { grid-template-columns: 1fr; }
  .nd-mapwrap { min-height: 360px; }
  .nd-log { max-height: 180px; min-height: 140px; }
  .nd-stamp { width: 130px; height: 130px; font-size: 14px; right: 4%; }
  .nd-stamp b { font-size: 30px; }
  .nd-stamp small { font-size: 11px; }
  .s-grid { grid-template-columns: 1fr; }
  .s-today { float: none; display: block; }
  .s-cover { width: 100%; max-width: 320px; margin: 0 auto; }
  .dl-mid { grid-template-columns: repeat(2, 1fr); }
  .s-nav a { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 520px) {
  .cf-host { font-size: 26px; }
  .dl-vip { grid-template-columns: 1fr; }
  .s-shots { grid-template-columns: 1fr; }
}
