维护页:钻石镐改用 Minecraft 原版 16×16 物品图(平时整像素对齐、就是原版图标;挥的时候绕柄尾转)

Browse Source
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yws
2026-10-06 11:34:36 +00:00
co-authored by Claude Opus 5.5
parent 6a7c7b267f
commit 09311aac5b
3 changed files with 9 additions and 11 deletions
+8 -10
View File
@@ -50,11 +50,12 @@ body{min-height:100%;display:flex;align-items:center;justify-content:center;padd
.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; .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} 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}
/* 像素钻石镐:绕握把末端转,抬起 → 猛地敲下 → 回弹 */ /* 像素钻石镐:绕握把末端转,抬起 → 猛地敲下 → 回弹 */
/* 握在左下角的柄尾(16×16 图第 1 列第 14 行那格),镐头在右上;顺时针转 = 往钻石那边砸 */ /* 钻石镐:Minecraft 原版 16×16 物品图(assets/diamond-pickaxe.png),一格像素放大成 3px;
.pick{position:absolute;left:12px;top:-26px;width:64px;height:64px;transform-origin:6px 58px;animation:swing var(--T) cubic-bezier(.5,0,.2,1) infinite} 平时就是原版图标的样子(0°、整像素对齐),只在挥的时候绕柄尾(左下角那格)转;顺时针转 = 往钻石那边砸 */
.pick svg{display:block;width:100%;height:100%;shape-rendering:crispEdges;filter:drop-shadow(1px 3px 2px rgba(30,36,64,.25))} .pick{position:absolute;left:22px;top:-17px;width:48px;height:48px;transform-origin:8px 43px;animation:swing var(--T) cubic-bezier(.5,0,.2,1) infinite}
.pick img{display:block;width:48px;height:48px;image-rendering:pixelated;image-rendering:crisp-edges;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{position:absolute;left:61px;top:23px;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(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(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(3){background:#6FDB9A;--dx:22px;--dy:-36px}
@@ -63,8 +64,8 @@ body{min-height:100%;display:flex;align-items:center;justify-content:center;padd
@keyframes spin{to{transform:rotate(360deg)}} @keyframes spin{to{transform:rotate(360deg)}}
@keyframes float{0%,100%{transform:translateY(0)}25%{transform:translateY(-6px)}} @keyframes float{0%,100%{transform:translateY(0)}25%{transform:translateY(-6px)}}
/* 一轮 2.4s:0–30% 往后抡起,30–37% 砸下,37–38% 镐尖碰到钻石(敲中),之后弹开、落回 */ /* 一轮 2.4s:0% 原版图标的样子 → 28% 往后抡起 → 36–38% 砸下、镐尖碰到钻石顶(敲中)→ 弹开、落回 0° */
@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 swing{0%{transform:rotate(0)}28%{transform:rotate(-38deg)}36%{transform:rotate(16deg)}38%{transform:rotate(14deg)}47%{transform:rotate(4deg)}56%,100%{transform:rotate(0)}}
@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 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 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 glint{0%,42%{background-position:120% 0}64%,100%{background-position:-20% 0}}
@@ -109,10 +110,7 @@ small{display:block;margin-top:16px;color:var(--ink-3);font-size:12.5px}
<span class="halo"></span><span class="ring"></span><span class="floor"></span> <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> <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> <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"> <div class="pick" aria-hidden="true"><img src="/assets/diamond-pickaxe.png" alt="" width="48" height="48"></div>
<!-- 像素钻石镐:标准 16×16 物品图的样子(拱形镐头沿上边和右边、两头尖、凹面朝柄;木柄从左下斜插进拱的内角;钻石青配色 + 深青描边) -->
<svg viewBox="0 0 16 16"><g fill="#113F3C"><rect x="4" y="0" width="1" height="1"/><rect x="5" y="0" width="1" height="1"/><rect x="2" y="1" width="1" height="1"/><rect x="3" 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="8" y="1" width="1" height="1"/><rect x="1" y="2" width="1" height="1"/><rect x="9" y="2" width="1" height="1"/><rect x="2" y="3" width="1" height="1"/><rect x="3" y="3" width="1" height="1"/><rect x="4" y="3" width="1" height="1"/><rect x="10" y="3" width="1" height="1"/><rect x="5" y="4" width="1" height="1"/><rect x="11" y="4" width="1" height="1"/><rect x="6" y="5" width="1" height="1"/><rect x="7" y="5" width="1" height="1"/><rect x="12" y="5" width="1" height="1"/><rect x="8" y="6" width="1" height="1"/><rect x="13" y="6" width="1" height="1"/><rect x="9" y="7" width="1" height="1"/><rect x="14" y="7" width="1" height="1"/><rect x="10" y="8" width="1" height="1"/><rect x="14" y="8" width="1" height="1"/><rect x="10" y="9" width="1" height="1"/><rect x="14" y="9" width="1" height="1"/><rect x="11" y="10" width="1" height="1"/><rect x="15" y="10" width="1" height="1"/><rect x="12" y="11" width="1" height="1"/><rect x="15" y="11" width="1" height="1"/><rect x="12" y="12" width="1" height="1"/><rect x="14" y="12" width="1" height="1"/><rect x="12" y="13" width="1" height="1"/><rect x="14" y="13" width="1" height="1"/><rect x="13" y="14" width="1" height="1"/></g><g fill="#A1FBE8"><rect x="4" 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="8" y="2" width="1" height="1"/><rect x="9" y="3" width="1" height="1"/><rect x="10" y="4" width="1" height="1"/><rect x="11" y="5" width="1" height="1"/><rect x="12" y="6" width="1" height="1"/><rect x="13" y="7" width="1" height="1"/><rect x="13" y="8" width="1" height="1"/><rect x="13" y="9" width="1" height="1"/><rect x="14" y="10" width="1" height="1"/><rect x="14" y="11" width="1" height="1"/></g><g fill="#4AEDD9"><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="5" 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="8" y="4" width="1" height="1"/><rect x="9" y="4" width="1" height="1"/><rect x="10" y="5" width="1" height="1"/><rect x="11" y="6" width="1" height="1"/><rect x="11" y="7" width="1" height="1"/><rect x="12" y="7" width="1" height="1"/><rect x="12" y="8" width="1" height="1"/><rect x="12" y="9" width="1" height="1"/><rect x="13" y="10" width="1" height="1"/><rect x="13" y="11" width="1" height="1"/><rect x="13" y="12" width="1" height="1"/><rect x="13" y="13" width="1" height="1"/></g><g fill="#24A694"><rect x="5" y="3" width="1" height="1"/><rect x="6" y="4" width="1" height="1"/><rect x="7" y="4" width="1" height="1"/><rect x="8" y="5" width="1" height="1"/><rect x="9" y="5" width="1" height="1"/><rect x="9" y="6" width="1" height="1"/><rect x="10" y="6" width="1" height="1"/><rect x="10" y="7" width="1" height="1"/><rect x="11" y="8" width="1" height="1"/><rect x="11" y="9" width="1" height="1"/><rect x="12" y="10" width="1" height="1"/></g><g fill="#493615"><rect x="8" y="7" width="1" height="1"/><rect x="6" y="9" width="1" height="1"/><rect x="4" y="11" width="1" height="1"/><rect x="2" y="13" width="1" height="1"/></g><g fill="#896727"><rect x="7" y="8" width="1" height="1"/><rect x="5" y="10" width="1" height="1"/><rect x="3" y="12" width="1" height="1"/><rect x="1" y="14" width="1" height="1"/></g></svg>
</div>
</div> </div>
<h1>金钻客栈</h1> <h1>金钻客栈</h1>
<div class="tag">正在打磨中<span class="dots" aria-hidden="true"><i>.</i><i>.</i><i>.</i></span></div> <div class="tag">正在打磨中<span class="dots" aria-hidden="true"><i>.</i><i>.</i><i>.</i></span></div>