Files
jinzuanwork/portal/universe.html
T
ywsandClaude Opus 5.5 e453ebb0da 门户卡片悬停恢复过渡;下单页入口卡拖拽不再被悬停样式盖住
- site.css:.js .rv.in 的 transition 优先级高于卡片自身,原来只有 opacity/translate →
  卡片浮现后悬停上浮 / 倾斜 / 阴影 / 描边全是硬跳(画展大卡最明显)。补回这几项(不带浮现延迟)。资源版本 v=6。
- order:.path/.entry 的悬停上浮从 transform …!important 改为独立的 translate,
  与拖拽写的 transform 叠加 —— 原来拖着没反应、松手才传送到松手处再弹回。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 03:34:10 +00:00

80 lines
11 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">
<title>金钻宇宙 · 金钻客栈</title>
<meta name="description" content="金钻编的平行世界:每一条世界线是一个星系,点开看设定。">
<meta name="theme-color" content="#FAFBFE">
<meta name="theme-color" content="#0D1020" media="(max-width: 760px) and (prefers-color-scheme: dark)">
<link rel="icon" href="assets/gem.webp" type="image/webp">
<link rel="preload" href="fonts/OPPOSans-B.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/fusion-pixel-12.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="assets/site.css?v=6">
<link rel="stylesheet" href="assets/universe/universe-page.css?v=5">
<script type="importmap">{"imports":{"three":"./assets/vendor/three.module.min.js"}}</script>
</head>
<body data-page="universe" class="uni">
<div class="jz-boot" id="jzBoot" aria-hidden="true"><div class="jz-boot-in"><canvas class="jz-boot-gem" width="168" height="168"></canvas><b class="jz-boot-name">金钻客栈</b><i class="jz-boot-bar"><i></i></i></div></div>
<script>/* 加载动画:同一个标签页里只在第一次打开时放;系统要求「减少动效」就不放 */
try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: reduce)').matches){document.getElementById('jzBoot').remove()}else{document.documentElement.classList.add('booting')}}catch(e){document.getElementById('jzBoot').remove()}</script>
<div class="orbs" aria-hidden="true"><i class="o1"></i><i class="o2"></i><i class="o3"></i><i class="o4"></i><i class="o5"></i></div>
<header class="top"><div class="wrap top-in"><a class="brand" href="index.html"><i class="gem-img" aria-hidden="true"></i><b>金钻客栈</b></a><nav class="nav" aria-label="导航"><a href="index.html">首页</a><a href="gallery.html">画展</a><a href="tools.html">工具与开源</a><a href="universe.html" aria-current="page">金钻宇宙</a><a href="links.html">平台入口</a><a href="about.html">关于</a></nav><div class="desk-btn"><a class="btn-pill" href="/order/"><span class="ic" aria-hidden="true"></span>自助渲染<svg width="15" height="15" 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></div><a class="cms-ent" href="admin/" aria-label="内容管理" title="内容管理"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg></a></div></header>
<main class="wrap">
<div class="room-head"><div class="zone num" aria-hidden="true" style="--zc:#9A6BE0;--zc2:#3FC9C4">03</div><div><h1>金钻宇宙</h1><p>金钻编的平行世界,每一条是一个星系。点星系或者下面的卡片,飞过去看设定。</p></div><div class="meta"></div></div>
<section class="skywin" id="skywin" aria-label="金钻宇宙星系图"><div class="stage" id="uStage"><canvas id="uGl" tabindex="0" aria-label="星系图:每条世界线是一个星系,点名牌或星球打开档案;下面的卡片可以做同样的事"></canvas><div class="labels" id="uLabels"></div><div class="hud" id="uHud"><span>世界线<b id="uAll">11</b></span><span>已点亮<b id="uLit">5</b></span><span>空槽<b id="uEmpty">6</b></span></div><aside class="panel" id="uPanel" aria-live="polite"></aside><div class="ctl"><button class="btn" id="uBack" type="button">回到星系图</button><button class="btn" id="uFull" type="button" aria-pressed="false">全屏</button></div><p class="tip">点星系看档案 · 拖动转视角 · Ctrl + 滚轮缩放</p><div class="ugate" id="uGate" aria-hidden="true"><div class="ugate-core"><span class="ugate-ring r1"></span><span class="ugate-ring r2"></span><span class="ugate-ring r3"></span><i class="gem-img"></i></div>
<div class="ugate-txt"><b>金钻宇宙</b><span id="uGateMsg">正在打开星门…</span></div><div class="ugate-slots" id="uGateSlots"></div></div></div></section>
<p class="sky-hint">在星图里拖动是转视角、双指缩放;要翻页,在星图外面滑</p>
<h2 class="row-title">世界线档案</h2>
<div class="uni-list" id="uniList"></div>
<div class="uslots" aria-label="空槽" id="uniSlots"></div>
</main>
<nav class="tabbar" aria-label="导航"><a href="index.html"><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 href="gallery.html"><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="mid" href="/order/"><i aria-hidden="true"></i><span>渲染</span></a><a href="universe.html" aria-current="page"><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" data-sheet="more" aria-expanded="false" aria-controls="more"><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="sheet" id="more" hidden><div class="panel"><nav class="more-grid" aria-label="更多"><a href="tools.html" style="--zc:#4F86E8;--zc2:#2E5BD8"><i><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.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.html" style="--zc:#22B573;--zc2:#3C8527"><i><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.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.html" style="--zc:#E0533D;--zc2:#E8913A"><i><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.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="more-qq">QQ 群:屑钻小窝 123456789</p></div></div>
<footer class="foot-site"><div class="wrap foot-in"><a class="brand" href="index.html"><i class="gem-img" aria-hidden="true"></i><b>金钻客栈</b></a></div></footer>
<script src="assets/site-info.js?v=5"></script>
<!-- 网站内容:内容后台发布时生成 content/site.js(window.JZ_CONTENT) -->
<script src="content/site.js"></script>
<script>/* 预览草稿:内容后台点「预览」会带 ?preview=1 打开;只有登录了内容后台的浏览器拿得到草稿(拿不到就还是正式内容) */
if(/[?&]preview=1(&|$)/.test(location.search)) document.write('<script src="/order/api/cms/draft.js"><\/script>');</script>
<script src="assets/universe/config.js?v=5"></script>
<script src="assets/pages.js?v=5"></script>
<script src="assets/site.js?v=5"></script>
<script src="assets/boot.js?v=5"></script>
<script src="assets/universe/gate.js?v=5"></script>
<script type="module">
import { mountGalaxy } from './assets/universe/galaxy.js?v=5';
const $ = id => document.getElementById(id), CFG = window.JZ_UNIVERSE;
const win = $('skywin'), stage = $('uStage');
const mob = () => innerWidth < 760, full = () => win.classList.contains('full');
let api, cur = null;
// 手机上档案卡也在星图窗里(底部抽屉),星球挪到上半个窗:一眼同时看到星球和档案
function mark(no) { document.querySelectorAll('.ucell,.uslots button').forEach(b => b.setAttribute('aria-current', String(b.dataset.no === no))); }
try {
api = mountGalaxy({ stage, canvas: $('uGl'), labels: $('uLabels'), panel: $('uPanel'), back: $('uBack'), hud: $('uHud'),
layout: () => mob() ? { x: 0, y: 0.26 } : { x: 0.17, y: 0 },
wheelZoom: () => full(),
onReady: () => window.JZGate && window.JZGate.open(), // 第一帧画好:星门打开,镜头接着俯冲进来
// start:开始飞(列表马上高亮、旧的档案先收起);arrive:镜头快到了(档案这时才出来,和星球落定同步)
onFocus: u => { cur = u; mark(u ? u.no : null); },
counts: (a, l, e) => { $('uAll').textContent = a; $('uLit').textContent = l; $('uEmpty').textContent = e; } });
} catch (e) { window.JZGate && window.JZGate.fail('这台设备打不开 3D 星图(' + e.message + '),下面的档案照样能看'); }
// 深链:universe.html#0001 → 星系图好了就飞过去(旧的单页地址 /#0001 也会跳到这里)
const deep = (location.hash || '').replace(/^#/, '');
if (api && /^\d{4}$/.test(deep)) setTimeout(() => api.fly(deep), 900);
// 点下面的卡片:先把窗户滚到眼前,再飞过去
document.querySelectorAll('.ucell,.uslots button').forEach(b => b.addEventListener('click', () => {
if (!api) return;
win.scrollIntoView({ block: 'center', behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
setTimeout(() => api.fly(b.dataset.no), 350);
}));
// 全屏:窗户铺满屏幕(滚轮直接缩放;手机上档案卡变成底部抽屉)
const fb = $('uFull');
function setFull(on) { win.classList.toggle('full', on); document.body.classList.toggle('sky-full', on); fb.textContent = on ? '退出全屏' : '全屏';
fb.setAttribute('aria-pressed', String(on)); api && api.resize(); }
fb.addEventListener('click', () => setFull(!full()));
addEventListener('keydown', e => { if (e.key === 'Escape' && full() && !cur) setFull(false); });
</script>
</body>
</html>