| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <!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="theme-color" content="#0d1424">
- <meta name="description" content="世界树·太阳系:让生命之绿覆盖整个太阳系">
- <title>世界树 · 太阳系</title>
- <link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
- <link rel="stylesheet" href="css/style.css">
- </head>
- <body>
- <a class="skip-link" href="#goal">跳到当前目标</a>
- <div id="app" class="app" hidden>
- <!-- 顶栏:资源 / 等级 / 纪元 -->
- <header class="topbar">
- <div class="res" id="res-box" aria-live="off">
- <svg class="ico-res" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3c2.2 3 3.2 5.6 3.2 8a3.2 3.2 0 1 1-6.4 0c0-2.4 1-5 3.2-8Z" fill="currentColor"/><path d="M12 18v3" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
- <b id="res-val">0</b>
- <span id="res-rate">+0/秒</span>
- </div>
- <div class="top-right">
- <button class="chip" id="root-chip" title="根系:升级世界树"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21V6m0 9-5-4m5 2 5-4M12 18l-4 3m4-3 4 3" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" fill="none"/><circle cx="12" cy="4.5" r="2.2" fill="currentColor"/></svg>根 <b id="root-lv">0</b></button>
- <button class="chip gold" id="crystal-chip" title="时间结晶"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2 4 9l8 13 8-13-8-7Z" fill="currentColor" opacity=".9"/></svg><b id="crystal-val">0</b></button>
- <button class="icon-btn" id="btn-menu" aria-label="菜单">☰</button>
- </div>
- </header>
- <!-- 目标指示:任何时刻都知道下一步 -->
- <button class="goal" id="goal" aria-live="polite">
- <span class="goal-pin" aria-hidden="true">◎</span>
- <span class="goal-txt"><b id="goal-text">…</b><small id="goal-sub"></small></span>
- <span class="goal-go" aria-hidden="true">›</span>
- </button>
- <!-- 太阳系星图 -->
- <section class="stage" id="stage" aria-label="太阳系星图">
- <svg id="system" viewBox="-5 -2 370 260" preserveAspectRatio="xMidYMid meet" aria-hidden="true"></svg>
- <div class="planet-chip" id="planet-chip" hidden></div>
- </section>
- <!-- 底部:世界树 / 复苏进度 / 生命 -->
- <section class="dock">
- <div class="tree-wrap">
- <button class="tree" id="tree" aria-label="点击世界树获得本源">
- <svg viewBox="0 0 120 120" aria-hidden="true">
- <defs>
- <radialGradient id="glowG" cx="50%" cy="50%" r="50%"><stop offset="0" stop-color="#9CFFC0" stop-opacity=".55"/><stop offset="1" stop-color="#5FD68A" stop-opacity="0"/></radialGradient>
- <linearGradient id="trunkG" x1="0" y1="1" x2="0" y2="0"><stop offset="0" stop-color="#8A6A4E"/><stop offset="1" stop-color="#5FD68A"/></linearGradient>
- </defs>
- <circle cx="60" cy="52" r="46" fill="url(#glowG)"/>
- <g class="tree-roots" stroke="url(#trunkG)" stroke-width="3" stroke-linecap="round" fill="none">
- <path d="M60 112V70"/><path d="M60 102 46 114M60 102l14 12M60 94l-10 6M60 94l10 6"/>
- </g>
- <path class="tree-crown" d="M60 74c-14 0-24-8-24-19 0-8 5-13 11-15-1-10 6-17 13-17s14 7 13 17c6 2 11 7 11 15 0 11-10 19-24 19Z" fill="#5FD68A"/>
- <circle class="tree-fruit" cx="44" cy="46" r="3" fill="#F6FFE0"/><circle class="tree-fruit" cx="70" cy="38" r="2.6" fill="#E8FFC9"/><circle class="tree-fruit" cx="66" cy="56" r="2.2" fill="#F6FFE0"/>
- </svg>
- <span class="tree-float" id="tree-float">+1</span>
- </button>
- </div>
- <div class="progress-card" id="progress-card">
- <div class="pc-head"><span class="pc-name" id="pc-name">地球</span><span class="pc-env" id="pc-env"></span></div>
- <div class="bar"><i id="pc-bar"></i><span id="pc-pct">0%</span></div>
- <div class="pc-foot"><span id="pc-note">根系待命</span><button class="mini" id="btn-explore">勘探</button>
- </div>
- </div>
- <div class="lives" id="lives" aria-label="生命"></div>
- </section>
- <!-- 底栏按钮 -->
- <nav class="tabbar">
- <button data-nav="lives"><svg viewBox="0 0 24 24"><path d="M12 21c-4.5-3-8-6.6-8-10.2C4 7.7 6.5 5.5 9 5.5c1.3 0 2.4.6 3 1.6.6-1 1.7-1.6 3-1.6 2.5 0 5 2.2 5 5.3 0 3.6-3.5 7.2-8 10.2Z" stroke="currentColor" stroke-width="1.8" fill="none"/></svg>生命</button>
- <button data-nav="star"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="3.2" fill="currentColor"/><ellipse cx="12" cy="12" rx="9.2" ry="4.2" stroke="currentColor" stroke-width="1.6" fill="none" transform="rotate(-22 12 12)"/><circle cx="19.5" cy="8" r="1.6" fill="currentColor"/></svg>星图</button>
- <button data-nav="era" id="nav-era"><svg viewBox="0 0 24 24"><path d="M20 12a8 8 0 1 1-2.4-5.7" stroke="currentColor" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M20 3v5h-5" stroke="currentColor" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>纪元</button>
- <button data-nav="ach"><svg viewBox="0 0 24 24"><path d="M7 4h10v4a5 5 0 0 1-10 0V4Z" stroke="currentColor" stroke-width="1.8" fill="none"/><path d="M7 6H4v2a3 3 0 0 0 3 3m10-5h3v2a3 3 0 0 1-3 3M12 13v4m-3 3h6" stroke="currentColor" stroke-width="1.8" fill="none" stroke-linecap="round"/></svg>成就</button>
- </nav>
- <div class="era-badge" id="era-badge" hidden></div>
- </div>
- <!-- 开场故事 -->
- <div class="screen prologue" id="prologue" hidden>
- <div class="pro-bg" id="pro-bg"></div>
- <div class="pro-body">
- <div class="pro-kicker" id="pro-kicker"></div>
- <div class="pro-text" id="pro-text"></div>
- <div class="pro-lines" id="pro-lines"></div>
- </div>
- <div class="pro-foot">
- <div class="pro-dots" id="pro-dots"></div>
- <button class="btn primary" id="pro-next">继续</button>
- <button class="link" id="pro-skip">跳过</button>
- </div>
- </div>
- <!-- 弹层 -->
- <div class="sheet-mask" id="sheet-mask" hidden>
- <div class="sheet" id="sheet" role="dialog" aria-modal="true" aria-labelledby="sheet-title" tabindex="-1">
- <header class="sheet-head"><h2 id="sheet-title"></h2><button class="icon-btn" id="sheet-x" aria-label="关闭">✕</button></header>
- <div class="sheet-body" id="sheet-body"></div>
- <footer class="sheet-foot" id="sheet-foot"></footer>
- </div>
- </div>
- <!-- 事件 / 里程碑弹窗 -->
- <div class="modal-mask" id="modal-mask" hidden>
- <div class="modal" id="modal" role="dialog" aria-modal="true" aria-labelledby="modal-title" tabindex="-1">
- <div class="modal-art" id="modal-art"></div>
- <div class="modal-body">
- <div class="modal-kicker" id="modal-kicker"></div>
- <h2 id="modal-title"></h2>
- <div class="modal-text" id="modal-text"></div>
- <div class="modal-choices" id="modal-choices"></div>
- </div>
- </div>
- </div>
- <div id="toasts" aria-live="polite"></div>
- <div id="fx" aria-hidden="true"></div>
- <script type="module" src="js/main.js"></script>
- </body>
- </html>
|