style: 金钻客栈 2026 改版(白光藏色 × MC 方块),替换上一轮暗色覆盖层
- 删除 redesign-2026 暗色覆盖块;两页 </body> 前新增 jz-2026 样式/脚本块
- 浅色配色、流动淡彩背景、MC 方块按钮、像素标题字体(OFL,子集)
- 门户顶栏加「自助渲染」入口;手机端底部物品栏导航 +「更多」面板
- 下单页加与门户一致的顶栏/底栏;页头改版,隐藏四段进度条
- 修复工具卡正文被挤成一指宽的布局问题
- 原有 <script>/<style> 块与 d1e34b7 逐块一致,未改 JS 逻辑与接口
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+284
-559
@@ -635,6 +635,14 @@ html[data-skin="1"] .se-b{animation-name:se-drift-b-mild}
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body data-step="1">
|
<body data-step="1">
|
||||||
|
<!-- jz-2026-top:start -->
|
||||||
|
<!-- 跟门户同一个顶栏:logo + 板块 + 自助渲染(当前页)。只是链接,不碰下单逻辑 -->
|
||||||
|
<header class="jz-top"><div class="jz-top-in">
|
||||||
|
<a class="jz-brand" href="/#/home"><i aria-hidden="true"></i><b>金钻客栈</b></a>
|
||||||
|
<nav class="jz-nav" aria-label="导航"><a href="/#/home">首页</a><a href="/#/gallery">画展</a><a href="/#/apps">工具与开源</a><a href="/#/universe">金钻宇宙</a><a href="/#/links">平台入口</a><a href="/#/about">关于</a></nav>
|
||||||
|
<a class="jz-pill" href="/order/" aria-current="page"><i aria-hidden="true"></i>自助渲染</a>
|
||||||
|
</div></header>
|
||||||
|
<!-- jz-2026-top:end -->
|
||||||
|
|
||||||
<!-- 网点层(halftone · 默认就有,与 ?skin= 春意开关解耦):单层;点径 0.7px / 间距 3.6px /
|
<!-- 网点层(halftone · 默认就有,与 ?skin= 春意开关解耦):单层;点径 0.7px / 间距 3.6px /
|
||||||
opacity .06 / rotate(-25deg) / 135deg 渐隐 mask;z-index:0 → 在内容(.wrap z-index:1)之下,
|
opacity .06 / rotate(-25deg) / 135deg 渐隐 mask;z-index:0 → 在内容(.wrap z-index:1)之下,
|
||||||
@@ -659,7 +667,7 @@ html[data-skin="1"] .se-b{animation-name:se-drift-b-mild}
|
|||||||
<div class="wrap hd">
|
<div class="wrap hd">
|
||||||
<div class="brand">
|
<div class="brand">
|
||||||
<h1>自助模板渲染</h1>
|
<h1>自助模板渲染</h1>
|
||||||
<span class="sub">金钻工坊 · 传皮肤 · 选模板 · 出图</span>
|
<span class="sub">传一张皮肤,选个模板,等一会儿就能拿到渲染图。</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="machine" id="mach"><span class="dot" id="machDot"></span><span id="machTxt">检测中…</span></span>
|
<span class="machine" id="mach"><span class="dot" id="machDot"></span><span id="machTxt">检测中…</span></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -4175,578 +4183,295 @@ document.addEventListener('touchmove',function(e){
|
|||||||
window.addEventListener('blur',function(){ if(drag) onUp({}); });
|
window.addEventListener('blur',function(){ if(drag) onUp({}); });
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<style id="redesign-2026">
|
<!-- jz-2026:start -->
|
||||||
|
<!-- 手机底部导航 + 「更多」面板(只做跳转,读当前地址高亮;不碰页面原有逻辑) -->
|
||||||
|
<nav class="jz-tabbar" aria-label="导航"><a class="jz-tab" href="/#/home" data-b="home"><svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"/><path d="M5 9.5V21h14V9.5"/><path d="M10 21v-6h4v6"/></svg><span>首页</span></a><a class="jz-tab" href="/#/gallery" data-b="gallery"><svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/></svg><span>画展</span></a><a class="jz-tab jz-mid" href="/order/" aria-current="page"><i aria-hidden="true"></i><span>渲染</span></a><a class="jz-tab" href="/#/universe" data-b="universe"><svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="5"/><path d="M4.2 15.6c-1.6 2.5 4.2 2.4 9.6-.2s9-6.6 7.5-8.6c-.8-1-2.9-.9-5.4 0"/></svg><span>宇宙</span></a><button type="button" class="jz-tab" id="jzMoreBtn" aria-expanded="false" aria-controls="jzMore"><i class="ic-a"><svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3.5" y="3.5" width="7" height="7" rx="2"/><rect x="13.5" y="3.5" width="7" height="7" rx="2"/><rect x="3.5" y="13.5" width="7" height="7" rx="2"/><rect x="13.5" y="13.5" width="7" height="7" rx="2"/></svg></i><i class="ic-b"><svg width="23" height="23" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="M6 6l12 12"/></svg></i><span class="lb-a">更多</span><span class="lb-b">收起</span></button></nav>
|
||||||
|
<div class="jz-sheet" id="jzMore" hidden><div class="jz-panel"><nav class="jz-more" aria-label="更多"><a href="/#/apps" data-b="apps" style="--zc:#4F86E8;--zc2:#2E5BD8"><i><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg></i><span>工具与开源</span></a><a href="/#/links" data-b="links" style="--zc:#22B573;--zc2:#3C8527"><i><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg></i><span>平台入口</span></a><a href="/#/about" data-b="about" style="--zc:#E0533D;--zc2:#E8913A"><i><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></i><span>关于</span></a></nav><p class="jz-qq">QQ 群:屑钻小窝 123456789</p></div></div>
|
||||||
|
|
||||||
|
<style id="jz-2026">
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
2026 视觉重设计:精致暗色 + 宝石色 (Linear / Vercel / Raycast 克制高级暗色风格)
|
金钻客栈 2026 · 白光藏色 × MC 方块(下单页覆盖层)
|
||||||
|
只改样式:所有规则都在这一块里、放在页面最后;不改任何 JS 逻辑与接口调用。
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
@font-face{font-family:'JZ Pixel';src:url('assets/jz-pixel-12.woff2') format('woff2');font-display:swap}
|
||||||
|
:root{
|
||||||
|
--icd-gem:url("data:image/webp;base64,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");
|
||||||
|
--bg:#F5F7FB;
|
||||||
|
--surface:rgba(255,255,255,.74); --surface-2:rgba(255,255,255,.86); --surface-3:#fff;
|
||||||
|
--line:rgba(30,36,64,.13); --line-soft:rgba(30,36,64,.08);
|
||||||
|
--txt:#1E2440; --txt-2:#454B6B; --txt-3:#5E6482; --txt-4:#7E849C; --dim:#7E849C; --dim2:#959AAF;
|
||||||
|
--acc:#3C8527; --acc-hi:#5BAA3C; --acc-hover:#2F6E1F;
|
||||||
|
--ok:#3C8527; --ok-t:#2F6E1F; --warn:#C98A12; --warn-t:#9A6A0C; --bad:#D2483A; --bad-t:#B33A2E;
|
||||||
|
--glass:rgba(255,255,255,.74); --glass-deep:rgba(236,240,248,.8); --glass-blur:none;
|
||||||
|
--pixel:'JZ Pixel','OPPO Sans',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
|
||||||
|
--mc-green:#3C8527; --mc-green-hi:#5BAA3C; --mc-green-lo:#1D4D13;
|
||||||
|
--stone:#F3F4F6; --stone-lo:#B4B7BE; --stone-edge:#9EA2AA;
|
||||||
|
--panel-shadow:inset 0 1px 0 #fff,0 22px 44px -28px rgba(100,110,190,.38);
|
||||||
|
color-scheme:light;
|
||||||
|
}
|
||||||
|
body{background:var(--bg) !important;color:var(--txt)}
|
||||||
|
body::before{content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;background:
|
||||||
|
radial-gradient(40% 34% at 6% 0%,rgba(150,215,255,.30),transparent 70%),radial-gradient(36% 30% at 100% 8%,rgba(255,176,204,.24),transparent 70%),
|
||||||
|
radial-gradient(48% 38% at 72% 100%,rgba(255,214,150,.22),transparent 70%),radial-gradient(42% 36% at 0% 72%,rgba(170,235,200,.22),transparent 70%),var(--bg)}
|
||||||
|
#halftone,#springEnv{display:none !important}
|
||||||
|
#jzBg{position:fixed;inset:0;z-index:-2;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity 1.2s cubic-bezier(.23,1,.32,1)}
|
||||||
|
html.jz-gl #jzBg{opacity:1}
|
||||||
|
html.jz-gl body::before{opacity:0}
|
||||||
|
::selection{background:rgba(91,170,60,.25);color:var(--txt)}
|
||||||
|
|
||||||
/* ---- 0. 全局设计变量与调色板 ---- */
|
/* ---------- 顶栏:跟门户一样 ---------- */
|
||||||
:root {
|
.jz-top{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.72);border-bottom:1px solid rgba(255,255,255,.9);box-shadow:0 10px 30px -24px rgba(80,90,170,.45);
|
||||||
--bg: #0a0b0d !important;
|
-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
|
||||||
--surface: #111316 !important;
|
.jz-top-in{max-width:1140px;margin:0 auto;padding:0 20px;min-height:66px;display:flex;align-items:center;gap:22px}
|
||||||
--surface-2: #15181c !important;
|
.jz-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--txt)}
|
||||||
--surface-3: #1a1e23 !important;
|
.jz-brand i{width:30px;height:30px;background:var(--icd-gem) center/contain no-repeat;image-rendering:pixelated}
|
||||||
--glass: #111316 !important;
|
.jz-brand b{font:400 24px/1 var(--pixel);letter-spacing:.04em;-webkit-font-smoothing:none}
|
||||||
--glass-deep: rgba(10, 11, 13, 0.85) !important;
|
.jz-nav{display:flex;gap:4px;flex:1}
|
||||||
--glass-blur: none !important;
|
.jz-nav a{display:inline-flex;align-items:center;height:40px;padding:0 13px;border-radius:4px;color:var(--txt-2);font-size:15px;text-decoration:none}
|
||||||
--line: rgba(255, 255, 255, 0.08) !important;
|
.jz-nav a:hover{background:rgba(255,255,255,.85);color:var(--txt)}
|
||||||
--line-soft: rgba(255, 255, 255, 0.05) !important;
|
.jz-pill{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px 3px 8px;border-radius:4px;border:2px solid var(--mc-green-lo);background:var(--mc-green);color:#fff;font:700 15px/1 'OPPO Sans',sans-serif;text-decoration:none;white-space:nowrap;
|
||||||
--txt: #f0f2f5 !important;
|
box-shadow:inset 0 2px 0 var(--mc-green-hi),inset 0 -4px 0 var(--mc-green-lo),0 0 0 3px rgba(91,170,60,.28)}
|
||||||
--txt-2: #c9cdd2 !important;
|
.jz-pill i{width:26px;height:26px;border-radius:3px;background:#fff var(--icd-gem) center/18px no-repeat;image-rendering:pixelated;box-shadow:inset 0 -2px 0 #C9CDD4}
|
||||||
--txt-3: #8b9198 !important;
|
|
||||||
--txt-4: #5a6068 !important;
|
|
||||||
--acc: #3ecf8e !important;
|
|
||||||
--acc-hi: #4ade9f !important;
|
|
||||||
--acc-hover: #34b77c !important;
|
|
||||||
--ok: #3ecf8e !important;
|
|
||||||
--ok-t: #4ade9f !important;
|
|
||||||
--warn: #e9c46a !important;
|
|
||||||
--warn-t: #f4d068 !important;
|
|
||||||
--bad: #f87171 !important;
|
|
||||||
--bad-t: #fca5a5 !important;
|
|
||||||
--r: 10px !important;
|
|
||||||
--r-sm: 8px !important;
|
|
||||||
--r-lg: 16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 1. 底色与全局重置 ---- */
|
/* ---------- 页头:钻石方块 + 像素标题 + 一句话 + 一行小灰字(渲染机状态) ---------- */
|
||||||
body {
|
header:not(.jz-top){background:none !important;border:0 !important;box-shadow:none !important;position:static !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
|
||||||
background: #0a0b0d !important;
|
.hd{display:grid !important;grid-template-columns:auto minmax(0,1fr);column-gap:24px;row-gap:4px;align-items:center;padding-top:40px !important;padding-bottom:24px !important;margin-bottom:6px;border-bottom:1px solid var(--line-soft)}
|
||||||
color: var(--txt-2) !important;
|
.hd::before{content:"";grid-row:1/3;width:84px;height:84px;border-radius:8px;border:2px solid #fff;background:#fff var(--icd-gem) center/48px no-repeat;image-rendering:pixelated;
|
||||||
font-family: 'OPPO Sans', system-ui, -apple-system, sans-serif !important;
|
box-shadow:-5px 10px 18px -12px rgba(255,110,140,.4),5px 10px 18px -12px rgba(70,140,255,.4)}
|
||||||
font-size: 15px !important;
|
.hd .brand{gap:8px}
|
||||||
line-height: 1.7 !important;
|
.hd h1{font:400 36px/1.2 var(--pixel) !important;letter-spacing:.02em !important;color:var(--txt) !important;-webkit-font-smoothing:none}
|
||||||
-webkit-font-smoothing: antialiased !important;
|
.hd .sub{font-size:15.5px !important;letter-spacing:0 !important;color:var(--txt-2) !important}
|
||||||
text-rendering: optimizeLegibility !important;
|
.machine{grid-column:2;margin:0 !important;padding:0 !important;border:0 !important;background:none !important;font-size:13.5px !important;color:var(--txt-3) !important;justify-self:start}
|
||||||
overflow-x: hidden !important;
|
.machine .dot{display:none}
|
||||||
}
|
.prog{display:none !important}
|
||||||
|
|
||||||
/* 背景顶光微调 */
|
/* ---------- 卡片:白色晶体 ---------- */
|
||||||
body::before {
|
.card{background:linear-gradient(160deg,rgba(255,255,255,.88),rgba(255,255,255,.66)) !important;border:2px solid rgba(255,255,255,.95) !important;border-radius:8px !important;
|
||||||
content: "" !important;
|
box-shadow:var(--panel-shadow) !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
|
||||||
position: fixed !important;
|
.step h2{font:400 24px/1.3 var(--pixel) !important;letter-spacing:.02em !important;color:var(--txt) !important;-webkit-font-smoothing:none}
|
||||||
left: 0 !important;
|
.step .num{border-radius:4px !important;background:var(--stone) !important;border:2px solid var(--stone-edge) !important;color:var(--txt) !important;font-family:var(--pixel) !important;box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 var(--stone-lo)}
|
||||||
right: 0 !important;
|
.hint{color:var(--txt-3)}
|
||||||
top: 0 !important;
|
.hint b{color:var(--txt-2) !important}
|
||||||
height: 48vh !important;
|
.hr{background:var(--line-soft) !important}
|
||||||
pointer-events: none !important;
|
|
||||||
z-index: 0 !important;
|
|
||||||
background: radial-gradient(75% 100% at 50% 0%, rgba(62, 207, 142, 0.055), transparent 72%) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 彻底去除背景网点与多余网格 */
|
/* ---------- 按钮:MC 方块按钮(绿 = 主,石头白 = 次) ---------- */
|
||||||
#halftone, #bgBlur, body::after {
|
button.pri,.pri{border-radius:4px !important;border:2px solid var(--mc-green-lo) !important;background:var(--mc-green) !important;color:#fff !important;font-weight:700 !important;padding-bottom:3px;
|
||||||
display: none !important;
|
box-shadow:inset 0 2px 0 var(--mc-green-hi),inset 0 -4px 0 var(--mc-green-lo) !important;transition:transform .08s linear,box-shadow .08s linear,background .12s}
|
||||||
opacity: 0 !important;
|
.pri:hover:not(:disabled){background:#469A2E !important}
|
||||||
visibility: hidden !important;
|
.pri:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 var(--mc-green-hi),inset 0 -2px 0 var(--mc-green-lo) !important}
|
||||||
}
|
.pri:disabled{opacity:.45 !important;filter:saturate(.4)}
|
||||||
.card::before, .tpl .thumb::after, button::before, .tpl::before, .seg label::before, .entry::before, .drop::before, .chip::before, .lrow::before, .linkbtn::before {
|
button.ghost,.ghost,.addbtn{border-radius:4px !important;border:2px solid var(--stone-edge) !important;background:var(--stone) !important;color:var(--txt) !important;font-weight:700 !important;
|
||||||
display: none !important;
|
box-shadow:inset 0 2px 0 #fff,inset 0 -4px 0 var(--stone-lo) !important;transition:transform .08s linear,box-shadow .08s linear,background .12s}
|
||||||
pointer-events: none !important;
|
.ghost:hover:not(:disabled),.addbtn:hover{background:#fff !important}
|
||||||
}
|
.ghost:active:not(:disabled),.addbtn:active{transform:translateY(2px);box-shadow:inset 0 2px 0 #fff,inset 0 -2px 0 var(--stone-lo) !important}
|
||||||
|
.linkbtn{color:var(--mc-green) !important;font-weight:700}
|
||||||
|
|
||||||
/* ---- 2. 顶栏与显著进度条 ---- */
|
/* ---------- 两条路 ---------- */
|
||||||
header {
|
.entry{background:linear-gradient(160deg,#fff,#F6F8FE) !important;border:2px solid rgba(30,36,64,.08) !important;border-radius:8px !important;color:var(--txt-2) !important;
|
||||||
background: rgba(10, 11, 13, 0.85) !important;
|
box-shadow:0 14px 28px -22px rgba(80,90,170,.5) !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;transition:transform .2s,box-shadow .2s,border-color .2s}
|
||||||
backdrop-filter: blur(16px) saturate(180%) !important;
|
.entry:hover{transform:translateY(-2px);border-color:rgba(60,133,39,.5) !important}
|
||||||
-webkit-backdrop-filter: blur(16px) saturate(180%) !important;
|
.entry,.entry span{font-weight:400 !important;color:var(--txt-2) !important}
|
||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
|
.entry em{font-weight:700}
|
||||||
}
|
.entry b{font:400 22px/1.3 var(--pixel) !important;color:var(--txt) !important;-webkit-font-smoothing:none}
|
||||||
.hd h1 {
|
.entry em{color:var(--mc-green) !important;font-style:normal}
|
||||||
font-size: 18px !important;
|
.lrow{background:#fff !important;border:2px solid rgba(30,36,64,.08) !important;border-radius:6px !important;color:var(--txt-2) !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
|
||||||
font-weight: 700 !important;
|
|
||||||
letter-spacing: -0.015em !important;
|
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
.hd .sub {
|
|
||||||
font-size: 12.5px !important;
|
|
||||||
color: #8b9198 !important;
|
|
||||||
}
|
|
||||||
.machine {
|
|
||||||
background: rgba(255, 255, 255, 0.03) !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-radius: 9999px !important;
|
|
||||||
color: #c9cdd2 !important;
|
|
||||||
font-size: 12px !important;
|
|
||||||
}
|
|
||||||
.dot.on {
|
|
||||||
background: #3ecf8e !important;
|
|
||||||
box-shadow: 0 0 8px rgba(62, 207, 142, 0.6) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 顶部进度条更明显:4px 高度 + 发光激活条 */
|
/* ---------- 输入 ---------- */
|
||||||
.prog {
|
textarea,input[type=text],input[type=email],input[type=tel],input:not([type]),select{background:#fff !important;border:2px solid rgba(30,36,64,.12) !important;border-radius:6px !important;color:var(--txt) !important}
|
||||||
display: flex !important;
|
textarea:focus,input:focus{border-color:var(--mc-green) !important;outline:none;box-shadow:0 0 0 3px rgba(91,170,60,.2) !important}
|
||||||
gap: 8px !important;
|
input[type=checkbox],input[type=radio]{accent-color:var(--mc-green) !important}
|
||||||
padding: 0 0 14px !important;
|
.drop{background:rgba(255,255,255,.7) !important;border:2px dashed rgba(30,36,64,.2) !important;border-radius:8px !important;color:var(--txt-2) !important}
|
||||||
}
|
.drop:hover,.drop.over{border-color:var(--mc-green) !important;background:#fff !important}
|
||||||
.prog i {
|
details pre{background:rgba(30,36,64,.04) !important;color:var(--txt-3) !important}
|
||||||
flex: 1 !important;
|
|
||||||
height: 4px !important;
|
|
||||||
border-radius: 9999px !important;
|
|
||||||
background: rgba(255, 255, 255, 0.08) !important;
|
|
||||||
transition: background 0.3s ease, box-shadow 0.3s ease !important;
|
|
||||||
}
|
|
||||||
body[data-step="1"] .prog i:nth-child(-n+1),
|
|
||||||
body[data-step="2"] .prog i:nth-child(-n+2),
|
|
||||||
body[data-step="3"] .prog i:nth-child(-n+3),
|
|
||||||
body[data-step="4"] .prog i:nth-child(-n+4),
|
|
||||||
body[data-step="5"] .prog i:nth-child(-n+4) {
|
|
||||||
background: #3ecf8e !important;
|
|
||||||
box-shadow: 0 0 10px rgba(62, 207, 142, 0.6) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 3. 卡片系统与圆角 ---- */
|
/* ---------- 分段选择、模板卡 ---------- */
|
||||||
.card {
|
.seg label,.seg button{border-radius:4px !important}
|
||||||
background: #111316 !important;
|
.seg label:has(input:checked),.seg .on,.seg [aria-pressed=true]{background:#fff !important;color:var(--txt) !important;box-shadow:inset 0 0 0 2px var(--mc-green) !important}
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
.tpl{background:#fff !important;border:2px solid rgba(30,36,64,.08) !important;border-radius:8px !important}
|
||||||
border-radius: 16px !important;
|
.tpl.on,.tpl.sel,.tpl:has(input:checked){border-color:var(--mc-green) !important;box-shadow:0 0 0 3px rgba(91,170,60,.2) !important}
|
||||||
padding: 28px !important;
|
|
||||||
margin: 20px 0 !important;
|
|
||||||
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
isolation: auto !important;
|
|
||||||
}
|
|
||||||
.card.raised {
|
|
||||||
border-radius: 16px !important;
|
|
||||||
}
|
|
||||||
.card.locked {
|
|
||||||
opacity: 0.35 !important;
|
|
||||||
transform: translateY(4px) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 步骤编号做成小圆形徽章 */
|
/* ---------- 弹窗 / 提示 ---------- */
|
||||||
.step {
|
.mask{background:rgba(236,240,248,.72) !important;-webkit-backdrop-filter:blur(6px) !important;backdrop-filter:blur(6px) !important}
|
||||||
display: flex !important;
|
.modal{background:#fff !important;border:2px solid #fff !important;border-radius:10px !important;color:var(--txt) !important;box-shadow:0 40px 80px -40px rgba(60,70,140,.6) !important}
|
||||||
align-items: center !important;
|
.toast{background:#fff !important;color:var(--txt) !important;border:2px solid #fff !important;border-radius:6px !important;box-shadow:0 18px 36px -20px rgba(60,70,140,.55) !important}
|
||||||
gap: 12px !important;
|
.notice{background:rgba(255,255,255,.8) !important;border-color:var(--line-soft) !important;color:var(--txt-2) !important}
|
||||||
margin: 0 0 8px !important;
|
.oid{font-family:var(--pixel) !important;color:var(--txt) !important}
|
||||||
}
|
.ok-mark{background:var(--mc-green) !important;color:#fff !important;border-radius:6px !important}
|
||||||
.step .num {
|
footer:not(.jz-foot){color:var(--txt-3) !important}
|
||||||
width: 26px !important;
|
|
||||||
height: 26px !important;
|
|
||||||
min-width: 26px !important;
|
|
||||||
border-radius: 50% !important;
|
|
||||||
background: rgba(62, 207, 142, 0.12) !important;
|
|
||||||
border: 1px solid rgba(62, 207, 142, 0.35) !important;
|
|
||||||
color: #3ecf8e !important;
|
|
||||||
font-family: 'OPPO Sans', system-ui, sans-serif !important;
|
|
||||||
font-size: 12.5px !important;
|
|
||||||
font-weight: 700 !important;
|
|
||||||
display: inline-flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
justify-content: center !important;
|
|
||||||
line-height: 1 !important;
|
|
||||||
letter-spacing: 0 !important;
|
|
||||||
}
|
|
||||||
.step h2 {
|
|
||||||
font-size: 18px !important;
|
|
||||||
font-weight: 700 !important;
|
|
||||||
color: #fff !important;
|
|
||||||
letter-spacing: -0.01em !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
font-size: 13.5px !important;
|
|
||||||
line-height: 1.68 !important;
|
|
||||||
color: #8b9198 !important;
|
|
||||||
margin: 6px 0 20px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 4. 两个入口 (.entry) 做成 hover 抬升的大卡 ---- */
|
/* ==========================================================================
|
||||||
.entry2 {
|
手机:底部 MC 物品栏导航(「渲染」是当前页)+「更多」面板,跟门户一致
|
||||||
display: grid !important;
|
========================================================================== */
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
.jz-tabbar,.jz-sheet{display:none}
|
||||||
gap: 16px !important;
|
@media (max-width:760px){
|
||||||
margin-top: 14px !important;
|
.jz-top-in{min-height:56px;padding:0 16px}
|
||||||
}
|
.jz-nav,.jz-pill{display:none !important}
|
||||||
@media (max-width: 639px) {
|
.jz-brand b{font-size:22px}
|
||||||
.entry2 {
|
.hd{grid-template-columns:auto minmax(0,1fr);column-gap:14px;padding-top:22px !important;padding-bottom:18px !important}
|
||||||
grid-template-columns: 1fr !important;
|
.hd::before{width:56px;height:56px;background-size:32px}
|
||||||
}
|
.hd h1{font-size:28px !important}
|
||||||
}
|
.hd .sub{font-size:14px !important}
|
||||||
.entry {
|
body{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
|
||||||
display: flex !important;
|
.to-top{bottom:calc(98px + env(safe-area-inset-bottom)) !important}
|
||||||
flex-direction: column !important;
|
|
||||||
justify-content: flex-start !important;
|
|
||||||
text-align: left !important;
|
|
||||||
width: 100% !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
padding: 22px 24px !important;
|
|
||||||
border-radius: 14px !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
background: #15181c !important;
|
|
||||||
transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
|
|
||||||
border-color 0.2s ease,
|
|
||||||
background-color 0.2s ease,
|
|
||||||
box-shadow 0.2s ease !important;
|
|
||||||
position: relative !important;
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
.entry::before {
|
|
||||||
content: "" !important;
|
|
||||||
position: absolute !important;
|
|
||||||
top: 0 !important;
|
|
||||||
left: 0 !important;
|
|
||||||
right: 0 !important;
|
|
||||||
bottom: auto !important;
|
|
||||||
height: 2px !important;
|
|
||||||
background: linear-gradient(90deg, #3ecf8e, #7dd3e0) !important;
|
|
||||||
opacity: 0 !important;
|
|
||||||
transition: opacity 0.2s ease !important;
|
|
||||||
pointer-events: none !important;
|
|
||||||
}
|
|
||||||
.entry:hover {
|
|
||||||
border-color: rgba(62, 207, 142, 0.45) !important;
|
|
||||||
background: #181d22 !important;
|
|
||||||
transform: translateY(-4px) !important;
|
|
||||||
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(62, 207, 142, 0.2) !important;
|
|
||||||
}
|
|
||||||
.entry:hover::before {
|
|
||||||
opacity: 1 !important;
|
|
||||||
}
|
|
||||||
.entry b {
|
|
||||||
display: block !important;
|
|
||||||
font-size: 16px !important;
|
|
||||||
font-weight: 700 !important;
|
|
||||||
color: #fff !important;
|
|
||||||
margin-bottom: 8px !important;
|
|
||||||
letter-spacing: -0.01em !important;
|
|
||||||
}
|
|
||||||
.entry span, .entry {
|
|
||||||
font-size: 13px !important;
|
|
||||||
line-height: 1.65 !important;
|
|
||||||
color: #8b9198 !important;
|
|
||||||
}
|
|
||||||
.entry em {
|
|
||||||
display: inline-block !important;
|
|
||||||
margin-top: 8px !important;
|
|
||||||
font-style: normal !important;
|
|
||||||
color: #3ecf8e !important;
|
|
||||||
font-size: 12.5px !important;
|
|
||||||
font-weight: 600 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 细条入口 */
|
/* 底栏:物品栏格子;中间「渲染」是绿色方块 */
|
||||||
.lrow {
|
.jz-tabbar{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;height:72px;padding:6px;border-radius:8px;
|
||||||
background: #15181c !important;
|
border:2px solid rgba(255,255,255,.95);background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
box-shadow:0 16px 34px -18px rgba(100,110,190,.55),0 2px 8px rgba(30,36,64,.06)}
|
||||||
border-radius: 10px !important;
|
.jz-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:56px;padding:0;border:0;border-radius:4px;background:rgba(30,36,64,.04);
|
||||||
padding: 12px 16px !important;
|
box-shadow:inset 0 0 0 2px rgba(30,36,64,.08);font:12px/1 'OPPO Sans',sans-serif;color:var(--txt-3);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s cubic-bezier(.23,1,.32,1)}
|
||||||
backdrop-filter: none !important;
|
.jz-tab:active{transform:scale(.92)}
|
||||||
-webkit-backdrop-filter: none !important;
|
.jz-tab svg{width:23px;height:23px}
|
||||||
cursor: pointer !important;
|
.jz-tab span{font-size:12px}
|
||||||
}
|
.jz-tab[aria-current=page],.jz-tab[aria-expanded=true]{background:#fff;color:var(--txt);box-shadow:inset 0 0 0 3px var(--mc-green)}
|
||||||
.lrow:hover {
|
.jz-tab.jz-mid{gap:2px;color:#fff;background:var(--mc-green);box-shadow:inset 0 2px 0 var(--mc-green-hi),inset 0 -4px 0 var(--mc-green-lo)}
|
||||||
background: #181d22 !important;
|
.jz-mid i{width:28px;height:28px;border-radius:3px;background:#fff var(--icd-gem) center/20px no-repeat;image-rendering:pixelated;box-shadow:inset 0 -2px 0 #C9CDD4}
|
||||||
border-color: rgba(255, 255, 255, 0.16) !important;
|
.jz-tab i{display:block;line-height:0}
|
||||||
}
|
.jz-tab .ic-b,.jz-tab .lb-b,.jz-tab[aria-expanded=true] .ic-a,.jz-tab[aria-expanded=true] .lb-a{display:none}
|
||||||
|
.jz-tab[aria-expanded=true] .ic-b{display:block}
|
||||||
|
.jz-tab[aria-expanded=true] .lb-b{display:inline}
|
||||||
|
|
||||||
/* ---- 5. 按钮系统 ---- */
|
.jz-sheet{position:fixed;inset:0;z-index:55;display:block;pointer-events:none;touch-action:none}
|
||||||
button.pri, .pri {
|
.jz-sheet::before{content:"";position:absolute;inset:0;background:rgba(30,36,64,.16);opacity:0;transition:opacity .22s cubic-bezier(.23,1,.32,1)}
|
||||||
background: #3ecf8e !important;
|
.jz-panel{position:absolute;left:12px;right:12px;bottom:calc(90px + env(safe-area-inset-bottom));padding:6px;border-radius:8px;border:2px solid #fff;background:#fff;
|
||||||
border: 1px solid #3ecf8e !important;
|
box-shadow:0 16px 34px -18px rgba(100,110,190,.55),0 2px 8px rgba(30,36,64,.06);opacity:0;transform:translateY(12px);transition:opacity .2s cubic-bezier(.23,1,.32,1),transform .22s cubic-bezier(.23,1,.32,1)}
|
||||||
color: #07150e !important;
|
.jz-sheet[hidden]{display:none !important}
|
||||||
font-weight: 700 !important;
|
.jz-sheet.open{pointer-events:auto}
|
||||||
border-radius: 10px !important;
|
.jz-sheet.open::before{opacity:1}
|
||||||
padding: 12px 22px !important;
|
.jz-sheet.open .jz-panel{opacity:1;transform:none}
|
||||||
font-size: 14px !important;
|
.jz-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
|
||||||
letter-spacing: 0.01em !important;
|
.jz-more a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:84px;border-radius:4px;text-decoration:none;-webkit-tap-highlight-color:transparent;
|
||||||
box-shadow: 0 2px 10px rgba(62, 207, 142, 0.25) !important;
|
font:700 13.5px/1 'OPPO Sans',sans-serif;color:var(--txt);transition:transform .12s cubic-bezier(.23,1,.32,1);
|
||||||
transition: all 0.16s cubic-bezier(0.23, 1, 0.32, 1) !important;
|
background:#F1F4FA;background:linear-gradient(160deg,color-mix(in srgb,var(--zc) 20%,#fff),color-mix(in srgb,var(--zc2) 10%,#fff));
|
||||||
cursor: pointer !important;
|
box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--zc) 28%,transparent)}
|
||||||
|
.jz-more a span{font-family:'OPPO Sans',sans-serif;font-weight:700;-webkit-font-smoothing:antialiased}
|
||||||
|
.jz-more a:active{transform:scale(.95)}
|
||||||
|
.jz-more a[aria-current=page]{box-shadow:inset 0 0 0 3px var(--zc)}
|
||||||
|
.jz-more i{display:grid;place-items:center;color:var(--txt)}
|
||||||
|
.jz-more svg{width:24px;height:24px}
|
||||||
|
.jz-qq{margin:0;padding:10px 8px 4px;font-size:13px;color:var(--txt-3)}
|
||||||
}
|
}
|
||||||
button.pri:hover:not(:disabled), .pri:hover:not(:disabled) {
|
@media (prefers-reduced-motion:reduce){.jz-panel,.jz-sheet::before{transition:none}}
|
||||||
background: #4ade9f !important;
|
html.rm .jz-panel,html.rm .jz-sheet::before{transition:none}
|
||||||
border-color: #4ade9f !important;
|
.readouts .ro{text-align:left}
|
||||||
color: #07150e !important;
|
.step .num{display:inline-grid !important;place-items:center;min-width:28px;height:28px;padding:0 0 2px !important;font-size:14px !important;line-height:1 !important}
|
||||||
transform: translateY(-2px) !important;
|
.step{align-items:center !important}
|
||||||
box-shadow: 0 6px 20px rgba(62, 207, 142, 0.45) !important;
|
.mask{z-index:90 !important}
|
||||||
}
|
.toast{z-index:95 !important}
|
||||||
button.ghost, button:not(.pri):not(.entry):not(.addbtn):not(.linkbtn) {
|
.modal input[type=text],.modal input:not([type]){width:100%}
|
||||||
background: rgba(255, 255, 255, 0.04) !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
|
||||||
color: #c9cdd2 !important;
|
|
||||||
font-weight: 500 !important;
|
|
||||||
border-radius: 10px !important;
|
|
||||||
padding: 11px 18px !important;
|
|
||||||
font-size: 14px !important;
|
|
||||||
transition: all 0.16s cubic-bezier(0.23, 1, 0.32, 1) !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
|
||||||
button.ghost:hover:not(:disabled), button:not(.pri):not(.entry):not(.addbtn):not(.linkbtn):hover:not(:disabled) {
|
|
||||||
background: rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-color: rgba(255, 255, 255, 0.22) !important;
|
|
||||||
color: #fff !important;
|
|
||||||
transform: translateY(-2px) !important;
|
|
||||||
}
|
|
||||||
.addbtn {
|
|
||||||
border-radius: 10px !important;
|
|
||||||
padding: 12px !important;
|
|
||||||
border: 1px dashed rgba(62, 207, 142, 0.5) !important;
|
|
||||||
background: rgba(62, 207, 142, 0.08) !important;
|
|
||||||
color: #3ecf8e !important;
|
|
||||||
font-weight: 600 !important;
|
|
||||||
transition: all 0.16s ease !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
|
||||||
.addbtn:hover {
|
|
||||||
background: rgba(62, 207, 142, 0.16) !important;
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 6. 输入表单与上传区 ---- */
|
|
||||||
textarea, input.t, #codeInput, #codeFirst {
|
|
||||||
background: #0d0f12 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
|
||||||
border-radius: 10px !important;
|
|
||||||
color: #f0f2f5 !important;
|
|
||||||
padding: 13px 15px !important;
|
|
||||||
font-size: 14px !important;
|
|
||||||
transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
|
|
||||||
}
|
|
||||||
textarea:focus, input.t:focus, #codeInput:focus, #codeFirst:focus {
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15) !important;
|
|
||||||
outline: none !important;
|
|
||||||
}
|
|
||||||
.drop {
|
|
||||||
background: #0d0f12 !important;
|
|
||||||
border: 1px dashed rgba(255, 255, 255, 0.14) !important;
|
|
||||||
border-radius: 14px !important;
|
|
||||||
padding: 38px 24px !important;
|
|
||||||
transition: all 0.2s ease !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
|
||||||
.drop:hover, .drop.over {
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
background: rgba(62, 207, 142, 0.05) !important;
|
|
||||||
}
|
|
||||||
.drop .big {
|
|
||||||
color: #fff !important;
|
|
||||||
font-size: 15px !important;
|
|
||||||
}
|
|
||||||
.drop .small {
|
|
||||||
color: #8b9198 !important;
|
|
||||||
font-size: 13px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 手臂与分段选择 */
|
|
||||||
.seg label {
|
|
||||||
border-radius: 8px !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
background: #0d0f12 !important;
|
|
||||||
padding: 10px 14px !important;
|
|
||||||
color: #8b9198 !important;
|
|
||||||
font-size: 13px !important;
|
|
||||||
transition: all 0.15s ease !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
|
||||||
.seg label:hover {
|
|
||||||
border-color: rgba(255, 255, 255, 0.18) !important;
|
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
.seg label.sel {
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
background: rgba(62, 207, 142, 0.12) !important;
|
|
||||||
color: #fff !important;
|
|
||||||
box-shadow: 0 0 0 1px #3ecf8e !important;
|
|
||||||
}
|
|
||||||
.armbox {
|
|
||||||
background: #0d0f12 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
||||||
border-radius: 12px !important;
|
|
||||||
padding: 18px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 预览框 */
|
|
||||||
.preview {
|
|
||||||
background: #0d0f12 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-radius: 12px !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 7. 模板卡片与状态色(严格保全排队/渲染/完成/失败/不足/超出) ---- */
|
|
||||||
.tpl {
|
|
||||||
background: #111316 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-radius: 12px !important;
|
|
||||||
overflow: hidden !important;
|
|
||||||
transition: all 0.2s ease !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
|
||||||
.tpl:hover {
|
|
||||||
border-color: rgba(255, 255, 255, 0.18) !important;
|
|
||||||
transform: translateY(-2px) !important;
|
|
||||||
}
|
|
||||||
.tpl.sel {
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
box-shadow: inset 0 0 0 1px #3ecf8e, 0 0 16px rgba(62, 207, 142, 0.25) !important;
|
|
||||||
}
|
|
||||||
.tpl.sel .pick {
|
|
||||||
background: #3ecf8e !important;
|
|
||||||
border-color: #3ecf8e !important;
|
|
||||||
color: #07150e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 状态色 1:超出卡密数量 (红) */
|
|
||||||
.tpl.over, .tpl.over.sel {
|
|
||||||
border-color: #f87171 !important;
|
|
||||||
box-shadow: inset 0 0 0 1px #f87171, 0 0 16px rgba(248, 113, 113, 0.35) !important;
|
|
||||||
}
|
|
||||||
/* 状态色 2:不足指定张数 (黄) */
|
|
||||||
.tpl.short, .tpl.short.sel {
|
|
||||||
border-color: #e9c46a !important;
|
|
||||||
box-shadow: inset 0 0 0 1px #e9c46a, 0 0 16px rgba(233, 196, 106, 0.35) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 质检报告 item 状态色 */
|
|
||||||
.item {
|
|
||||||
border-radius: 8px !important;
|
|
||||||
background: rgba(255, 255, 255, 0.02) !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
||||||
}
|
|
||||||
.item.ok .tag::before {
|
|
||||||
background: #3ecf8e !important;
|
|
||||||
box-shadow: 0 0 6px rgba(62, 207, 142, 0.6) !important;
|
|
||||||
}
|
|
||||||
.item.warn {
|
|
||||||
background: rgba(233, 196, 106, 0.08) !important;
|
|
||||||
border-color: rgba(233, 196, 106, 0.25) !important;
|
|
||||||
}
|
|
||||||
.item.warn .tag::before {
|
|
||||||
background: #e9c46a !important;
|
|
||||||
box-shadow: 0 0 6px rgba(233, 196, 106, 0.6) !important;
|
|
||||||
}
|
|
||||||
.item.bad {
|
|
||||||
background: rgba(248, 113, 113, 0.08) !important;
|
|
||||||
border-color: rgba(248, 113, 113, 0.25) !important;
|
|
||||||
}
|
|
||||||
.item.bad .tag::before {
|
|
||||||
background: #f87171 !important;
|
|
||||||
box-shadow: 0 0 6px rgba(248, 113, 113, 0.6) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 提示与通知状态框 */
|
|
||||||
.notice {
|
|
||||||
background: rgba(248, 113, 113, 0.08) !important;
|
|
||||||
border: 1px solid rgba(248, 113, 113, 0.25) !important;
|
|
||||||
border-radius: 10px !important;
|
|
||||||
color: #fca5a5 !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
}
|
|
||||||
.notice.blue {
|
|
||||||
background: rgba(62, 207, 142, 0.08) !important;
|
|
||||||
border: 1px solid rgba(62, 207, 142, 0.25) !important;
|
|
||||||
border-radius: 10px !important;
|
|
||||||
color: #6ee7b7 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 历史订单状态 */
|
|
||||||
.hrow {
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-radius: 12px !important;
|
|
||||||
background: #111316 !important;
|
|
||||||
padding: 14px 16px !important;
|
|
||||||
}
|
|
||||||
.hrow .hs.ok {
|
|
||||||
color: #3ecf8e !important;
|
|
||||||
border-color: rgba(62, 207, 142, 0.4) !important;
|
|
||||||
background: rgba(62, 207, 142, 0.08) !important;
|
|
||||||
}
|
|
||||||
.hrow .hs.warn {
|
|
||||||
color: #e9c46a !important;
|
|
||||||
border-color: rgba(233, 196, 106, 0.4) !important;
|
|
||||||
background: rgba(233, 196, 106, 0.08) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡密校验状态 */
|
|
||||||
.codes .ok { color: #3ecf8e !important; }
|
|
||||||
.codes .bad { color: #f87171 !important; }
|
|
||||||
|
|
||||||
/* ---- 8. 弹窗与遮罩最高层级与可用性保障 ---- */
|
|
||||||
.mask {
|
|
||||||
background: rgba(5, 6, 8, 0.8) !important;
|
|
||||||
backdrop-filter: blur(16px) !important;
|
|
||||||
-webkit-backdrop-filter: blur(16px) !important;
|
|
||||||
z-index: 1000 !important;
|
|
||||||
}
|
|
||||||
.modal {
|
|
||||||
background: #111316 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
|
||||||
border-radius: 16px !important;
|
|
||||||
padding: 26px !important;
|
|
||||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
z-index: 1001 !important;
|
|
||||||
}
|
|
||||||
.result {
|
|
||||||
background: #111316 !important;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
||||||
border-radius: 16px !important;
|
|
||||||
backdrop-filter: none !important;
|
|
||||||
-webkit-backdrop-filter: none !important;
|
|
||||||
}
|
|
||||||
.toast {
|
|
||||||
z-index: 2000 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 9. 手机端 (390px) 响应式适配 ---- */
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
.wrap {
|
|
||||||
padding: 0 16px !important;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
padding: 20px 16px !important;
|
|
||||||
margin: 16px 0 !important;
|
|
||||||
border-radius: 14px !important;
|
|
||||||
}
|
|
||||||
.hd {
|
|
||||||
padding: 12px 16px 10px !important; /* 原为 12px 0:手机端标题贴屏幕边 */
|
|
||||||
}
|
|
||||||
.entry {
|
|
||||||
padding: 18px 16px !important;
|
|
||||||
}
|
|
||||||
.btns {
|
|
||||||
flex-direction: column !important;
|
|
||||||
}
|
|
||||||
.btns button {
|
|
||||||
width: 100% !important;
|
|
||||||
min-width: 100% !important;
|
|
||||||
}
|
|
||||||
.lbtn {
|
|
||||||
flex-direction: column !important;
|
|
||||||
align-items: flex-start !important;
|
|
||||||
gap: 8px !important;
|
|
||||||
}
|
|
||||||
.split {
|
|
||||||
grid-template-columns: 1fr !important;
|
|
||||||
}
|
|
||||||
.preview canvas {
|
|
||||||
margin: 0 auto !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---- 10. prefers-reduced-motion ---- */
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
*, *::before, *::after {
|
|
||||||
animation-duration: 0.01ms !important;
|
|
||||||
animation-iteration-count: 1 !important;
|
|
||||||
transition-duration: 0.01ms !important;
|
|
||||||
scroll-behavior: auto !important;
|
|
||||||
}
|
|
||||||
.entry:hover, button.pri:hover, button.ghost:hover, .tpl:hover, .lrow:hover {
|
|
||||||
transform: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
<script id="jz-2026-js">
|
||||||
|
/* 金钻客栈 2026 覆盖层脚本:整页流动背景 + 手机底栏 / 「更多」面板。
|
||||||
|
独立运行,不调用、不修改页面原有的任何函数和接口。 */
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
var reduce = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||||
|
var mouseX = 0, mouseY = 0;
|
||||||
|
/* ---------- 整页动态背景:WebGL 流动淡彩(低分辨率、30fps;不支持就留 CSS 渐变) ---------- */
|
||||||
|
(function glBackground() {
|
||||||
|
var c = document.createElement('canvas');
|
||||||
|
c.id = 'jzBg'; c.setAttribute('aria-hidden', 'true');
|
||||||
|
var gl = null;
|
||||||
|
try { gl = c.getContext('webgl', { antialias: false, alpha: false, depth: false, stencil: false, powerPreference: 'low-power' }); } catch (e) {}
|
||||||
|
if (!gl) return;
|
||||||
|
var VS = 'attribute vec2 p;void main(){gl_Position=vec4(p,0.0,1.0);}';
|
||||||
|
var FS = [
|
||||||
|
'precision mediump float;uniform vec2 uRes;uniform float uTime;uniform vec2 uMouse;uniform float uUni;',
|
||||||
|
'vec3 m289(vec3 x){return x-floor(x*(1.0/289.0))*289.0;}vec4 m289(vec4 x){return x-floor(x*(1.0/289.0))*289.0;}',
|
||||||
|
'vec4 perm(vec4 x){return m289(((x*34.0)+1.0)*x);}vec4 tis(vec4 r){return 1.79284291400159-0.85373472095314*r;}',
|
||||||
|
'float sn(vec3 v){const vec2 C=vec2(1.0/6.0,1.0/3.0);const vec4 D=vec4(0.0,0.5,1.0,2.0);',
|
||||||
|
'vec3 i=floor(v+dot(v,C.yyy));vec3 x0=v-i+dot(i,C.xxx);vec3 g=step(x0.yzx,x0.xyz);vec3 l=1.0-g;',
|
||||||
|
'vec3 i1=min(g.xyz,l.zxy);vec3 i2=max(g.xyz,l.zxy);vec3 x1=x0-i1+C.xxx;vec3 x2=x0-i2+C.yyy;vec3 x3=x0-D.yyy;',
|
||||||
|
'i=m289(i);vec4 p=perm(perm(perm(i.z+vec4(0.0,i1.z,i2.z,1.0))+i.y+vec4(0.0,i1.y,i2.y,1.0))+i.x+vec4(0.0,i1.x,i2.x,1.0));',
|
||||||
|
'float n_=0.142857142857;vec3 ns=n_*D.wyz-D.xzx;vec4 j=p-49.0*floor(p*ns.z*ns.z);vec4 x_=floor(j*ns.z);vec4 y_=floor(j-7.0*x_);',
|
||||||
|
'vec4 x=x_*ns.x+ns.yyyy;vec4 y=y_*ns.x+ns.yyyy;vec4 h=1.0-abs(x)-abs(y);vec4 b0=vec4(x.xy,y.xy);vec4 b1=vec4(x.zw,y.zw);',
|
||||||
|
'vec4 s0=floor(b0)*2.0+1.0;vec4 s1=floor(b1)*2.0+1.0;vec4 sh=-step(h,vec4(0.0));vec4 a0=b0.xzyw+s0.xzyw*sh.xxyy;vec4 a1=b1.xzyw+s1.xzyw*sh.zzww;',
|
||||||
|
'vec3 p0=vec3(a0.xy,h.x);vec3 p1=vec3(a0.zw,h.y);vec3 p2=vec3(a1.xy,h.z);vec3 p3=vec3(a1.zw,h.w);',
|
||||||
|
'vec4 nm=tis(vec4(dot(p0,p0),dot(p1,p1),dot(p2,p2),dot(p3,p3)));p0*=nm.x;p1*=nm.y;p2*=nm.z;p3*=nm.w;',
|
||||||
|
'vec4 m=max(0.6-vec4(dot(x0,x0),dot(x1,x1),dot(x2,x2),dot(x3,x3)),0.0);m=m*m;',
|
||||||
|
'return 42.0*dot(m*m,vec4(dot(p0,x0),dot(p1,x1),dot(p2,x2),dot(p3,x3)));}',
|
||||||
|
'void main(){vec2 uv=gl_FragCoord.xy/uRes;vec2 q=vec2(uv.x*uRes.x/uRes.y,uv.y)*1.25+uMouse*0.09;float t=uTime*0.085;',
|
||||||
|
'float n1=sn(vec3(q*0.85,t));float n2=sn(vec3(q*1.4+vec2(3.1,1.7),t*1.25));float n3=sn(vec3(q*0.6-vec2(5.2,2.3),t*0.8));float n4=sn(vec3(q*1.1+vec2(-2.7,4.4),t*1.1));',
|
||||||
|
'vec3 pink=vec3(0.55,0.90,0.90);vec3 blue=vec3(0.58,0.72,1.0);vec3 mint=vec3(0.56,0.88,0.64);vec3 peach=vec3(1.0,0.86,0.48);vec3 lav=vec3(0.76,0.66,0.98);',
|
||||||
|
'vec3 col=mix(pink,blue,smoothstep(-0.55,0.55,n1));col=mix(col,mint,smoothstep(0.05,0.85,n2)*0.85);',
|
||||||
|
'col=mix(col,peach,smoothstep(0.15,0.9,n3)*0.75);col=mix(col,lav,smoothstep(0.2,0.95,n4)*0.7);col=mix(col,lav,0.28*uUni);',
|
||||||
|
'float w=0.74+0.14*sn(vec3(q*0.45,t*0.6));col=mix(col,vec3(0.975,0.98,0.985),clamp(w,0.6,0.9));gl_FragColor=vec4(col,1.0);}'
|
||||||
|
].join('');
|
||||||
|
function sh(type, src) { var o = gl.createShader(type); gl.shaderSource(o, src); gl.compileShader(o); return gl.getShaderParameter(o, gl.COMPILE_STATUS) ? o : null; }
|
||||||
|
var v = sh(gl.VERTEX_SHADER, VS), f = sh(gl.FRAGMENT_SHADER, FS);
|
||||||
|
if (!v || !f) return;
|
||||||
|
var prog = gl.createProgram(); gl.attachShader(prog, v); gl.attachShader(prog, f); gl.linkProgram(prog);
|
||||||
|
if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) return;
|
||||||
|
gl.useProgram(prog);
|
||||||
|
var buf = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buf);
|
||||||
|
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);
|
||||||
|
var loc = gl.getAttribLocation(prog, 'p'); gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
|
||||||
|
var uRes = gl.getUniformLocation(prog, 'uRes'), uTime = gl.getUniformLocation(prog, 'uTime'),
|
||||||
|
uMouse = gl.getUniformLocation(prog, 'uMouse'), uUni = gl.getUniformLocation(prog, 'uUni');
|
||||||
|
gl.uniform1f(uUni, 0);
|
||||||
|
document.body.insertBefore(c, document.body.firstChild);
|
||||||
|
document.documentElement.classList.add('jz-gl');
|
||||||
|
var scale = window.innerWidth < 760 ? 0.25 : 0.18, t0 = performance.now(), last = 0;
|
||||||
|
function resize() {
|
||||||
|
var w = Math.max(16, Math.round(window.innerWidth * scale)), h = Math.max(16, Math.round(window.innerHeight * scale));
|
||||||
|
c.width = w; c.height = h; gl.viewport(0, 0, w, h); gl.uniform2f(uRes, w, h); draw(performance.now());
|
||||||
|
}
|
||||||
|
function draw(now) {
|
||||||
|
gl.uniform1f(uTime, (now - t0) / 1000 + 20);
|
||||||
|
gl.uniform2f(uMouse, mouseX, -mouseY);
|
||||||
|
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
||||||
|
}
|
||||||
|
function loop(now) { requestAnimationFrame(loop); if (now - last < 33 || document.documentElement.classList.contains('rm')) return; last = now; draw(now); }
|
||||||
|
resize();
|
||||||
|
window.addEventListener('resize', function () { clearTimeout(c._rt); c._rt = setTimeout(resize, 150); });
|
||||||
|
if (!reduce) requestAnimationFrame(loop);
|
||||||
|
})();
|
||||||
|
|
||||||
|
/* ---------- 手机底栏:按当前板块高亮(只读 location.hash) ---------- */
|
||||||
|
var bar = document.querySelector('.jz-tabbar'), sh = document.getElementById('jzMore'), btn = document.getElementById('jzMoreBtn');
|
||||||
|
if (!bar || !sh || !btn) return;
|
||||||
|
function board() { var m = /^#\/([\w-]+)/.exec(location.hash); return m ? m[1] : 'home'; }
|
||||||
|
function mark() {
|
||||||
|
var b = board();
|
||||||
|
[].forEach.call(document.querySelectorAll('.jz-tabbar [data-b], .jz-more [data-b]'), function (a) {
|
||||||
|
if (a.getAttribute('data-b') === b) a.setAttribute('aria-current', 'page'); else a.removeAttribute('aria-current');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (!document.querySelector('.jz-top')) { window.addEventListener('hashchange', mark); mark(); }
|
||||||
|
|
||||||
|
/* ---------- 「更多」:底栏按钮开/关,底栏保持可点;返回键、点空白、Esc 都能收起 ---------- */
|
||||||
|
var pushed = false, timer;
|
||||||
|
function isOpen() { return btn.getAttribute('aria-expanded') === 'true'; }
|
||||||
|
function open(kb) {
|
||||||
|
clearTimeout(timer); sh.hidden = false; btn.setAttribute('aria-expanded', 'true');
|
||||||
|
requestAnimationFrame(function () { requestAnimationFrame(function () { sh.classList.add('open'); }); });
|
||||||
|
if (kb) { var a = sh.querySelector('a'); if (a) a.focus(); }
|
||||||
|
try { history.pushState({ jzMore: 1 }, ''); pushed = true; } catch (e) {}
|
||||||
|
}
|
||||||
|
function close(fromPop) {
|
||||||
|
if (!isOpen()) return;
|
||||||
|
sh.classList.remove('open'); btn.setAttribute('aria-expanded', 'false');
|
||||||
|
timer = setTimeout(function () { sh.hidden = true; }, reduce ? 0 : 240);
|
||||||
|
if (pushed) { pushed = false; if (!fromPop) history.back(); }
|
||||||
|
}
|
||||||
|
btn.addEventListener('click', function (e) { if (isOpen()) close(); else open(e.detail === 0); });
|
||||||
|
sh.addEventListener('click', function (e) { if (e.target === sh) close(); });
|
||||||
|
window.addEventListener('popstate', function () { if (pushed) { pushed = false; close(true); } });
|
||||||
|
document.addEventListener('keydown', function (e) { if (e.key === 'Escape' && isOpen()) { close(); btn.focus(); } });
|
||||||
|
/* 开着面板时点板块:替换掉多出来的那条历史再跳,返回键不用按两次 */
|
||||||
|
document.addEventListener('click', function (e) {
|
||||||
|
if (!pushed || e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
||||||
|
var a = e.target.closest && e.target.closest('a[href]');
|
||||||
|
if (!a || !(sh.contains(a) || bar.contains(a))) return;
|
||||||
|
e.preventDefault(); pushed = false;
|
||||||
|
sh.classList.remove('open'); btn.setAttribute('aria-expanded', 'false'); sh.hidden = true;
|
||||||
|
location.replace(a.href);
|
||||||
|
});
|
||||||
|
window.addEventListener('pageshow', function (e) {
|
||||||
|
if (e.persisted && isOpen()) { pushed = false; sh.classList.remove('open'); sh.hidden = true; btn.setAttribute('aria-expanded', 'false'); }
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- jz-2026:end -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user