Files
jinzuanwork/portal/maintenance.html
T
ywsandClaude Opus 5.5 4f76ec4b11 修五个问题 + 点击光效回归 + 手机深色模式 + 维护页
- 下单页模板样图改 1:1(原图是方图)
- 全景 / 动态壁纸拖出画框松手不再把大图关掉
- 画展长图在大图里整张显示;缩略图没下完先铺缩略图
- 点击光效 + Q 弹(assets/fx.js / fx.css,门户和下单页共用):按下照亮自己和附近板块 / 按钮的边,松手弹一下;下单页旧的暗底光效停用
- 手机深色模式(≤760px 跟随系统):门户六页、画展大图、宇宙页、加载动画、下单页、流动背景都有夜间版
- 维护页 portal/maintenance.html:「钻石在打磨中」像素镐敲钻石小动画 + MC 方块进度条

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 10:36:35 +00:00

151 lines
15 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#FAFBFE">
<title>金钻客栈 · 维护中</title>
<link rel="icon" href="/assets/gem.webp" type="image/webp">
<style>
/* 金钻客栈 · 维护页(2026-10-06):「钻石在打磨中」
一把像素钻石镐抬起 → 敲一下钻石 → 钻石被敲得一扁一弹(Q 弹)→ 迸出几粒光谱色的像素火花 → 一道白光扫过;
下面一排 MC 方块进度条,每敲一下多亮一格,满了闪一下光谱色再重来。点一下钻石也会自己敲一下。
动画都是 CSS(一轮 2.4 秒);脚本只管进度条跟拍子、点钻石敲一下、读群号;系统要求「减少动效」就全部静止。 */
@font-face{font-family:'Fusion Pixel';src:url('/fonts/fusion-pixel-12.woff2') format('woff2');font-display:swap}
:root{--ink:#1E2440;--ink-2:#4A5070;--ink-3:#737891;--bg:#FAFBFE;--mc:#3C8527;--mc-hi:#5BAA3C;--mc-lo:#1D4D13;
--spec:linear-gradient(90deg,#FF9BB0 0%,#FFCC7A 25%,#94E3B4 50%,#8CC8FF 75%,#B9A2FF 100%);
--pixel:'Fusion Pixel','PingFang SC','Microsoft YaHei',sans-serif;--T:2.4s}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 16px;overflow:hidden;color:var(--ink);
font:15px/1.7 'OPPO Sans',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;-webkit-font-smoothing:antialiased;background:var(--bg)}
/* 背后几团慢慢漂的彩光(白光藏色) */
.orbs{position:fixed;inset:-20%;z-index:-1;pointer-events:none}
.orbs i{position:absolute;width:60vmax;height:60vmax;border-radius:50%;opacity:.55;animation:drift 18s ease-in-out infinite alternate}
.orbs i:nth-child(1){left:-10%;top:-10%;background:radial-gradient(circle,rgba(255,182,204,.8),transparent 65%)}
.orbs i:nth-child(2){right:-15%;top:5%;background:radial-gradient(circle,rgba(160,206,255,.8),transparent 65%);animation-duration:22s}
.orbs i:nth-child(3){left:20%;bottom:-25%;background:radial-gradient(circle,rgba(170,238,204,.75),transparent 65%);animation-duration:26s}
@keyframes drift{to{transform:translate(8vw,6vh) scale(1.1)}}
.card{position:relative;width:100%;max-width:440px;padding:30px 28px 26px;text-align:center;border-radius:12px;
border:2px solid rgba(255,255,255,.95);background:linear-gradient(160deg,rgba(255,255,255,.86),rgba(255,255,255,.62));
box-shadow:inset 0 0 0 1px rgba(30,36,64,.05),0 26px 50px -30px rgba(80,100,170,.5);
-webkit-backdrop-filter:blur(10px) saturate(1.3);backdrop-filter:blur(10px) saturate(1.3)}
/* ---------- 打磨台:钻石 + 镐 + 火花 ---------- */
.forge{position:relative;width:180px;height:150px;margin:0 auto 6px;cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none}
.forge .halo{position:absolute;left:50%;top:58px;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;
background:radial-gradient(circle,rgba(255,255,255,.95) 0%,rgba(166,213,255,.45) 38%,rgba(205,185,255,.18) 58%,transparent 72%);animation:halo var(--T) ease-in-out infinite}
.forge .ring{position:absolute;left:50%;top:58px;width:104px;height:104px;margin:-52px 0 0 -52px;border-radius:50%;padding:2px;
background:conic-gradient(from 0deg,#FFB3C3,#FFD99A,#A9EBC6,#A6D5FF,#CDB9FF,#FFB3C3);
-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
opacity:.55;animation:spin 14s linear infinite}
.forge .floor{position:absolute;left:50%;bottom:10px;width:70px;height:10px;margin-left:-35px;border-radius:50%;background:rgba(30,36,64,.14);filter:blur(2px);animation:floor var(--T) ease-in-out infinite}
/* 钻石:平时轻轻漂浮;被敲那一下先扁后弹,最后落定 */
.gem{position:absolute;left:50%;top:22px;width:72px;height:72px;margin-left:-36px;animation:float var(--T) ease-in-out infinite}
.gem img{display:block;width:72px;height:72px;image-rendering:pixelated;transform-origin:50% 90%;animation:squash var(--T) cubic-bezier(.3,0,.3,1) infinite;
filter:drop-shadow(-5px 9px 9px rgba(255,110,140,.25)) drop-shadow(5px 9px 9px rgba(70,140,255,.25))}
/* 敲完一道白光斜着扫过钻石(只扫钻石的形状:用钻石图当遮罩) */
.gem::after{content:"";position:absolute;inset:0;-webkit-mask:url('/assets/gem.webp') center/contain no-repeat;mask:url('/assets/gem.webp') center/contain no-repeat;
background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.95) 50%,transparent 65%) no-repeat;background-size:260% 100%;background-position:120% 0;animation:glint var(--T) ease-out infinite}
/* 像素钻石镐:绕握把末端转,抬起 → 猛地敲下 → 回弹 */
/* 握在左下角的柄尾(第 0 列第 7 行那格的中心),镐头在右上;顺时针转 = 往钻石那边砸 */
.pick{position:absolute;left:15px;top:-13px;width:66px;height:54px;transform-origin:3px 45px;animation:swing var(--T) cubic-bezier(.5,0,.2,1) infinite}
.pick svg{display:block;width:100%;height:100%;shape-rendering:crispEdges;filter:drop-shadow(1px 3px 2px rgba(30,36,64,.25))}
/* 火花:五粒光谱色像素,敲中时迸出去、划个弧落下 */
.spark{position:absolute;left:63px;top:25px;width:6px;height:6px;opacity:0;animation:spark var(--T) cubic-bezier(.2,.7,.4,1) infinite}
.spark:nth-of-type(1){background:#FF8FAB;--dx:-30px;--dy:-26px}
.spark:nth-of-type(2){background:#FFC24D;--dx:-6px;--dy:-44px;width:5px;height:5px}
.spark:nth-of-type(3){background:#6FDB9A;--dx:22px;--dy:-36px}
.spark:nth-of-type(4){background:#6FB8FF;--dx:-38px;--dy:-6px;width:4px;height:4px}
.spark:nth-of-type(5){background:#B496FF;--dx:34px;--dy:-14px;width:4px;height:4px}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes float{0%,100%{transform:translateY(0)}25%{transform:translateY(-6px)}}
/* 一轮 2.4s:0–30% 往后抡起,30–37% 砸下,37–38% 镐尖碰到钻石(敲中),之后弹开、落回 */
@keyframes swing{0%{transform:rotate(-36deg)}30%{transform:rotate(-78deg)}37%{transform:rotate(-11deg)}38%{transform:rotate(-12deg)}46%{transform:rotate(-26deg)}53%{transform:rotate(-19deg)}66%,100%{transform:rotate(-36deg)}}
@keyframes squash{0%,37%{transform:scale(1,1)}40%{transform:scale(1.14,.82)}46%{transform:scale(.92,1.1)}53%{transform:scale(1.04,.97)}60%,100%{transform:scale(1,1)}}
@keyframes spark{0%,37%{opacity:0;transform:translate(0,0)}39%{opacity:1;transform:translate(calc(var(--dx)*.25),calc(var(--dy)*.4))}58%{opacity:1;transform:translate(var(--dx),var(--dy))}74%{opacity:0;transform:translate(calc(var(--dx)*1.3),calc(var(--dy)*.2 + 26px))}100%{opacity:0}}
@keyframes glint{0%,42%{background-position:120% 0}64%,100%{background-position:-20% 0}}
@keyframes halo{0%,37%,100%{transform:scale(1);opacity:.9}42%{transform:scale(1.14);opacity:1}}
@keyframes floor{0%,100%{transform:scale(1);opacity:1}25%{transform:scale(.82);opacity:.7}40%{transform:scale(1.12);opacity:1}}
/* ---------- 字 ---------- */
h1{margin:4px 0 2px;font:400 36px/1.2 var(--pixel);letter-spacing:.04em;-webkit-font-smoothing:none}
.tag{display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-radius:4px;background:rgba(255,255,255,.75);
box-shadow:inset 0 0 0 1px rgba(30,36,64,.06);font-size:13px;font-weight:700;color:var(--ink-2);margin-bottom:14px}
.dots i{font-style:normal;animation:dot 1.2s steps(1) infinite}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,100%{opacity:.15}40%{opacity:1}}
p{margin:0 0 4px;color:var(--ink-2)}
/* ---------- MC 方块进度条:每敲一下亮一格,满了闪一下光谱色再从头来 ---------- */
.blocks{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:20px auto 18px;max-width:300px;padding:5px;border-radius:6px;
background:rgba(30,36,64,.06);box-shadow:inset 0 2px 0 rgba(30,36,64,.08)}
.blocks i{height:18px;border-radius:2px;background:#E9ECF4;box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 #C9CDD8;transition:background .12s,box-shadow .12s}
.blocks i.on{background:var(--mc);box-shadow:inset 0 2px 0 var(--mc-hi),inset 0 -3px 0 var(--mc-lo);animation:pop .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes pop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.blocks.flash i{animation:rainbow .6s ease}
.blocks.flash i:nth-child(8n+1){--c:#FF9BB0}.blocks.flash i:nth-child(8n+2){--c:#FFB98A}.blocks.flash i:nth-child(8n+3){--c:#FFCC7A}.blocks.flash i:nth-child(8n+4){--c:#94E3B4}
.blocks.flash i:nth-child(8n+5){--c:#7FD6C8}.blocks.flash i:nth-child(8n+6){--c:#8CC8FF}.blocks.flash i:nth-child(8n+7){--c:#A6A9FF}.blocks.flash i:nth-child(8n+8){--c:#B9A2FF}
@keyframes rainbow{0%,60%{background:var(--c);box-shadow:inset 0 2px 0 rgba(255,255,255,.7),inset 0 -3px 0 rgba(30,36,64,.15);transform:translateY(-3px)}100%{transform:none}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px 3px;border-radius:4px;border:2px solid var(--mc-lo);
background:var(--mc);color:#fff;font-weight:700;font-size:14.5px;text-decoration:none;box-shadow:inset 0 2px 0 var(--mc-hi),inset 0 -4px 0 var(--mc-lo),0 8px 16px -10px rgba(29,77,19,.55);
transition:transform .08s linear,box-shadow .08s linear,background .15s}
.btn:hover{background:#469A2E}
.btn:active{transform:translateY(2px);box-shadow:inset 0 2px 0 var(--mc-hi),inset 0 -2px 0 var(--mc-lo)}
small{display:block;margin-top:16px;color:var(--ink-3);font-size:12.5px}
@media (max-width:420px){.card{padding:26px 18px 22px}h1{font-size:30px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important}}
</style>
</head>
<body>
<div class="orbs" aria-hidden="true"><i></i><i></i><i></i></div>
<main class="card">
<div class="forge" id="forge" role="img" aria-label="金钻正在打磨钻石(点一下也能帮忙敲一下)" tabindex="0">
<span class="halo"></span><span class="ring"></span><span class="floor"></span>
<div class="gem"><img src="/assets/gem.webp" alt="" width="72" height="72"></div>
<i class="spark"></i><i class="spark"></i><i class="spark"></i><i class="spark"></i><i class="spark"></i>
<div class="pick" aria-hidden="true">
<!-- 像素钻石镐(MC 经典样子:拱形镐头两头尖,木柄从左下斜着插进拱的里角) -->
<svg viewBox="0 0 11 9"><g fill="#1E4F4C"><rect x="2" y="0" width="1" height="1"/><rect x="3" y="0" width="1" height="1"/><rect x="4" y="0" width="1" height="1"/><rect x="5" y="0" width="1" height="1"/><rect x="1" y="1" width="1" height="1"/><rect x="6" y="1" width="1" height="1"/><rect x="7" y="1" width="1" height="1"/><rect x="2" y="2" width="1" height="1"/><rect x="3" y="2" width="1" height="1"/><rect x="4" y="2" width="1" height="1"/><rect x="8" y="2" width="1" height="1"/><rect x="5" y="3" width="1" height="1"/><rect x="9" y="3" width="1" height="1"/><rect x="6" y="4" width="1" height="1"/><rect x="9" y="4" width="1" height="1"/><rect x="6" y="5" width="1" height="1"/><rect x="9" y="5" width="1" height="1"/><rect x="7" y="6" width="1" height="1"/><rect x="10" y="6" width="1" height="1"/><rect x="7" y="7" width="1" height="1"/><rect x="10" y="7" width="1" height="1"/><rect x="8" y="8" width="1" height="1"/><rect x="9" y="8" width="1" height="1"/></g><g fill="#4FD6CD"><rect x="2" y="1" width="1" height="1"/><rect x="5" y="1" width="1" height="1"/><rect x="6" y="2" width="1" height="1"/><rect x="7" y="2" width="1" height="1"/><rect x="6" y="3" width="1" height="1"/><rect x="7" y="3" width="1" height="1"/><rect x="8" y="3" width="1" height="1"/><rect x="7" y="4" width="1" height="1"/><rect x="7" y="5" width="1" height="1"/><rect x="8" y="5" width="1" height="1"/><rect x="8" y="6" width="1" height="1"/><rect x="9" y="6" width="1" height="1"/><rect x="8" y="7" width="1" height="1"/><rect x="9" y="7" width="1" height="1"/></g><g fill="#B6F4EE"><rect x="3" y="1" width="1" height="1"/><rect x="4" y="1" width="1" height="1"/><rect x="5" y="2" width="1" height="1"/><rect x="8" y="4" width="1" height="1"/></g><g fill="#9A6A3A"><rect x="4" y="3" width="1" height="1"/><rect x="3" y="4" width="1" height="1"/><rect x="1" y="6" width="1" height="1"/></g><g fill="#6B4424"><rect x="2" y="5" width="1" height="1"/><rect x="0" y="7" width="1" height="1"/></g></svg>
</div>
</div>
<h1>金钻客栈</h1>
<div class="tag">正在打磨中<span class="dots" aria-hidden="true"><i>.</i><i>.</i><i>.</i></span></div>
<p>网站在升级,稍后就回来。</p>
<p>你的订单和作品都不受影响。</p>
<div class="blocks" id="blocks" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
<a class="btn" href="/order/">下单 / 取图照常 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg></a>
<small id="qq">如有急事,可通过平时联系我的渠道找到我</small>
</main>
<script src="/assets/site-info.js"></script>
<script>
(function () {
/* 群号从站点信息读(有就写上) */
var S = window.JZ_SITE; if (S && S.qq) document.getElementById('qq').textContent = '有急事来 QQ 群找金钻:' + (S.qqName || '') + ' ' + S.qq;
/* 进度条:跟着镐的节奏走 —— 镐每转一轮(animationiteration)在敲中那一刻(第 38%)亮一格;第 9 下整排闪一下光谱色、清空重来 */
var bl = document.getElementById('blocks'), cells = bl.querySelectorAll('i'), pick = document.querySelector('.pick'), n = 0, T = 2400;
function hit() {
if (n >= cells.length) { bl.classList.remove('flash'); void bl.offsetWidth; bl.classList.add('flash'); [].forEach.call(cells, function (c) { c.classList.remove('on'); }); n = 0; return; }
cells[n++].classList.add('on');
}
function loop() { setTimeout(hit, T * .38); }
loop(); pick.addEventListener('animationiteration', loop);
/* 点一下钻石:它自己也被敲一下(重放一次扁 → 弹 + 火花) */
var f = document.getElementById('forge'), img = f.querySelector('.gem img'), sp = f.querySelectorAll('.spark');
function tap() {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
var a = img.animate([{ transform: 'scale(1,1)' }, { transform: 'scale(1.16,.8)', offset: .2 }, { transform: 'scale(.9,1.12)', offset: .5 }, { transform: 'scale(1.04,.97)', offset: .75 }, { transform: 'scale(1,1)' }], { duration: 480, easing: 'cubic-bezier(.3,0,.3,1)', composite: 'replace' });
[].forEach.call(sp, function (s) { var cs = getComputedStyle(s); s.animate([{ opacity: 1, transform: 'translate(0,0)' }, { opacity: 1, transform: 'translate(calc(' + cs.getPropertyValue('--dx') + '),' + cs.getPropertyValue('--dy') + ')', offset: .55 }, { opacity: 0, transform: 'translate(calc(' + cs.getPropertyValue('--dx') + ' * 1.3),30px)' }], { duration: 620, easing: 'cubic-bezier(.2,.7,.4,1)' }); });
}
f.addEventListener('click', tap);
f.addEventListener('keydown', function (e) { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); tap(); } });
})();
</script>
</body>
</html>