3f741b4f0a
- Add minAge/maxAge to events so infants can't go treasure hunting - Cache event panel DOM to prevent high-speed button destruction - Add 10s auto-select countdown for choice events - Fix event title/text field mapping (name/description → title/text) - Add rotating clock icon for time flow feedback - Fix speed/pause button active states - Fix shop affordability check (disable + show insufficient money) - Add red styling for unmet choice requirements - Fix log re-rendering on every tick
913 lines
26 KiB
HTML
913 lines
26 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>轮回录</title>
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');
|
|
|
|
:root {
|
|
--bg-primary: #0a0e1a;
|
|
--bg-panel: rgba(16, 22, 42, 0.75);
|
|
--border-glow: rgba(212, 168, 83, 0.25);
|
|
--accent-gold: #d4a853;
|
|
--accent-gold-dim: #8b7340;
|
|
--accent-red: #c0392b;
|
|
--accent-purple: #8e44ad;
|
|
--accent-blue: #2980b9;
|
|
--accent-green: #27ae60;
|
|
--text-primary: #e8e0d0;
|
|
--text-dim: #8a8a9a;
|
|
--text-gold: #f0d080;
|
|
--glass: rgba(20, 28, 56, 0.6);
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ===== 标题画面 ===== */
|
|
#title-screen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.85) 70%, var(--bg-primary) 100%),
|
|
url('assets/images/title_screen_001.jpg') center/cover no-repeat;
|
|
transition: opacity 1.2s ease, visibility 1.2s ease;
|
|
}
|
|
#title-screen.hidden {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
.title-logo {
|
|
font-size: 64px;
|
|
font-weight: 700;
|
|
color: var(--accent-gold);
|
|
text-shadow: 0 0 40px rgba(212,168,83,0.4), 0 2px 10px rgba(0,0,0,0.8);
|
|
letter-spacing: 12px;
|
|
margin-bottom: 8px;
|
|
animation: titlePulse 3s ease-in-out infinite;
|
|
}
|
|
.title-sub {
|
|
font-size: 16px;
|
|
color: var(--text-dim);
|
|
letter-spacing: 6px;
|
|
margin-bottom: 48px;
|
|
}
|
|
.title-start-btn {
|
|
padding: 14px 56px;
|
|
font-size: 18px;
|
|
font-family: inherit;
|
|
color: var(--bg-primary);
|
|
background: linear-gradient(135deg, var(--accent-gold), #b8943f);
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
letter-spacing: 4px;
|
|
box-shadow: 0 0 20px rgba(212,168,83,0.3);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
.title-start-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 30px rgba(212,168,83,0.5);
|
|
}
|
|
@keyframes titlePulse {
|
|
0%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(212,168,83,0.4), 0 2px 10px rgba(0,0,0,0.8); }
|
|
50% { opacity: 0.85; text-shadow: 0 0 60px rgba(212,168,83,0.6), 0 2px 10px rgba(0,0,0,0.8); }
|
|
}
|
|
|
|
/* ===== 粒子背景 ===== */
|
|
#particles {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(ellipse at 20% 20%, rgba(46, 32, 80, 0.15) 0%, transparent 50%),
|
|
radial-gradient(ellipse at 80% 80%, rgba(20, 40, 80, 0.12) 0%, transparent 50%);
|
|
}
|
|
|
|
/* ===== 主容器 ===== */
|
|
.container {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 16px;
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: 16px;
|
|
}
|
|
@media (max-width: 900px) {
|
|
.container { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ===== 玻璃面板 ===== */
|
|
.panel {
|
|
background: var(--glass);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-glow);
|
|
border-radius: 10px;
|
|
padding: 14px 18px;
|
|
margin-bottom: 14px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
transition: border-color 0.3s;
|
|
}
|
|
.panel:hover { border-color: rgba(212,168,83,0.35); }
|
|
.panel-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--accent-gold);
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
letter-spacing: 1px;
|
|
}
|
|
.panel-title::before {
|
|
content: '';
|
|
width: 3px;
|
|
height: 14px;
|
|
background: var(--accent-gold);
|
|
border-radius: 2px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ===== 顶部信息栏 ===== */
|
|
.top-bar {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
padding: 10px 18px;
|
|
}
|
|
.top-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.top-info .info-item {
|
|
font-size: 13px;
|
|
color: var(--text-dim);
|
|
}
|
|
.top-info .info-item span {
|
|
color: var(--text-gold);
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
}
|
|
.top-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.speed-btn, .control-btn, .sound-btn {
|
|
padding: 5px 12px;
|
|
border: 1px solid rgba(212,168,83,0.3);
|
|
background: rgba(212,168,83,0.08);
|
|
color: var(--text-primary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-family: inherit;
|
|
transition: all 0.2s;
|
|
letter-spacing: 1px;
|
|
}
|
|
.speed-btn:hover, .control-btn:hover, .sound-btn:hover {
|
|
background: rgba(212,168,83,0.2);
|
|
border-color: rgba(212,168,83,0.5);
|
|
}
|
|
.speed-btn.active, .control-btn.active {
|
|
background: var(--accent-gold);
|
|
color: var(--bg-primary);
|
|
border-color: var(--accent-gold);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* 时钟动画 */
|
|
.clock-icon {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid var(--accent-gold-dim);
|
|
border-radius: 50%;
|
|
position: relative;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
animation: clockSpin 2s linear infinite;
|
|
}
|
|
.clock-icon::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 2px;
|
|
height: 5px;
|
|
background: var(--accent-gold);
|
|
transform-origin: bottom center;
|
|
transform: translate(-50%, -100%);
|
|
animation: clockHand 2s linear infinite;
|
|
}
|
|
@keyframes clockSpin {
|
|
0% { border-color: var(--accent-gold-dim); }
|
|
50% { border-color: var(--accent-gold); }
|
|
100% { border-color: var(--accent-gold-dim); }
|
|
}
|
|
@keyframes clockHand {
|
|
0% { transform: translate(-50%, -100%) rotate(0deg); }
|
|
100% { transform: translate(-50%, -100%) rotate(360deg); }
|
|
}
|
|
|
|
/* 危机感 */
|
|
.crisis-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.crisis-bar {
|
|
width: 80px;
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.08);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
.crisis-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
background: linear-gradient(90deg, var(--accent-green), var(--accent-gold), var(--accent-red));
|
|
transition: width 0.5s;
|
|
}
|
|
.crisis-value {
|
|
font-size: 12px;
|
|
color: var(--accent-gold);
|
|
font-weight: 700;
|
|
min-width: 24px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* 外敌进度 */
|
|
.enemy-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 160px;
|
|
}
|
|
.enemy-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 10px;
|
|
}
|
|
.enemy-label {
|
|
width: 32px;
|
|
text-align: right;
|
|
color: var(--text-dim);
|
|
}
|
|
.enemy-progress {
|
|
flex: 1;
|
|
height: 5px;
|
|
background: rgba(255,255,255,0.06);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
.enemy-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.5s;
|
|
}
|
|
.enemy-military { background: linear-gradient(90deg, #8b2a2a, var(--accent-red)); }
|
|
.enemy-spiritual { background: linear-gradient(90deg, #5b2a6b, var(--accent-purple)); }
|
|
.enemy-political { background: linear-gradient(90deg, #1a5a8a, var(--accent-blue)); }
|
|
|
|
/* ===== 事件面板 ===== */
|
|
.event-area {
|
|
min-height: 180px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.event-bg-image {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
opacity: 0;
|
|
transition: opacity 0.5s;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
.event-bg-image.active { opacity: 0.18; }
|
|
.event-bg-image::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(180deg, transparent 0%, var(--glass) 100%);
|
|
}
|
|
.event-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.event-title {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text-gold);
|
|
margin-bottom: 8px;
|
|
letter-spacing: 1px;
|
|
}
|
|
.event-text {
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
color: var(--text-primary);
|
|
margin-bottom: 12px;
|
|
text-shadow: 0 1px 4px rgba(0,0,0,0.5);
|
|
}
|
|
.event-timer {
|
|
font-size: 12px;
|
|
color: var(--accent-red);
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
}
|
|
.event-choices {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.choice-btn {
|
|
background: rgba(30, 45, 80, 0.6);
|
|
color: var(--text-primary);
|
|
border: 1px solid rgba(212,168,83,0.2);
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.choice-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--accent-gold);
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.choice-btn:hover:not(:disabled) {
|
|
background: rgba(30, 45, 80, 0.9);
|
|
border-color: rgba(212,168,83,0.5);
|
|
transform: translateX(4px);
|
|
}
|
|
.choice-btn:hover:not(:disabled)::before { opacity: 1; }
|
|
.choice-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
.choice-btn .req-missing {
|
|
color: var(--accent-red);
|
|
margin-left: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 银两不足 */
|
|
.shop-item-cost.insufficient {
|
|
color: var(--accent-red);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ===== 日志流 ===== */
|
|
.log-area {
|
|
height: 220px;
|
|
overflow-y: auto;
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
}
|
|
.log-area::-webkit-scrollbar { width: 4px; }
|
|
.log-area::-webkit-scrollbar-thumb { background: rgba(212,168,83,0.3); border-radius: 2px; }
|
|
.log-entry {
|
|
padding: 3px 0;
|
|
border-bottom: 1px solid rgba(255,255,255,0.03);
|
|
animation: logFadeIn 0.3s ease;
|
|
}
|
|
@keyframes logFadeIn {
|
|
from { opacity: 0; transform: translateY(-4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
.log-time {
|
|
color: var(--accent-gold-dim);
|
|
margin-right: 6px;
|
|
font-size: 11px;
|
|
}
|
|
.log-normal { color: var(--text-dim); }
|
|
.log-impact { color: #a8c8e8; }
|
|
.log-major { color: var(--text-gold); }
|
|
.log-death { color: var(--accent-red); }
|
|
.log-ability { color: var(--accent-green); }
|
|
.log-promote { color: #b088d0; }
|
|
.log-crisis { color: #e09040; }
|
|
|
|
/* ===== 词条 ===== */
|
|
.talent-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.talent-tag {
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
border: 1px solid;
|
|
transition: transform 0.2s;
|
|
cursor: default;
|
|
}
|
|
.talent-tag:hover { transform: translateY(-2px); }
|
|
.talent-tag.identity { border-color: rgba(243,156,18,0.5); color: #f0b040; background: rgba(243,156,18,0.08); }
|
|
.talent-tag.talent { border-color: rgba(39,174,96,0.5); color: #50c878; background: rgba(39,174,96,0.08); }
|
|
.talent-tag.item { border-color: rgba(52,152,219,0.5); color: #60a8e0; background: rgba(52,152,219,0.08); }
|
|
.talent-tag.curse { border-color: rgba(192,57,43,0.5); color: #d06050; background: rgba(192,57,43,0.08); }
|
|
|
|
/* ===== 属性 ===== */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 10px;
|
|
}
|
|
@media (max-width: 600px) {
|
|
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
.stat-item {
|
|
background: rgba(255,255,255,0.03);
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
border: 1px solid rgba(255,255,255,0.04);
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
.stat-item:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
border-color: rgba(212,168,83,0.15);
|
|
}
|
|
.stat-icon {
|
|
font-size: 18px;
|
|
margin-bottom: 4px;
|
|
opacity: 0.7;
|
|
}
|
|
.stat-name {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
margin-bottom: 4px;
|
|
}
|
|
.stat-value {
|
|
font-size: 20px;
|
|
color: var(--text-gold);
|
|
font-weight: 700;
|
|
transition: color 0.3s;
|
|
}
|
|
.stat-value.changed {
|
|
animation: statFlash 0.6s ease;
|
|
}
|
|
@keyframes statFlash {
|
|
0% { color: #fff; transform: scale(1.15); }
|
|
100% { color: var(--text-gold); transform: scale(1); }
|
|
}
|
|
|
|
/* ===== 职业 ===== */
|
|
.career-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.career-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 12px;
|
|
background: rgba(255,255,255,0.03);
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255,255,255,0.04);
|
|
transition: background 0.2s;
|
|
}
|
|
.career-item:hover { background: rgba(255,255,255,0.06); }
|
|
.career-icon { font-size: 16px; opacity: 0.8; }
|
|
.career-name { width: 80px; font-size: 13px; }
|
|
.career-level {
|
|
width: 44px;
|
|
text-align: center;
|
|
color: var(--text-gold);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
}
|
|
.career-bar-wrap {
|
|
flex: 1;
|
|
height: 14px;
|
|
background: rgba(255,255,255,0.06);
|
|
border-radius: 7px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
.career-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #1a6a3a, var(--accent-green));
|
|
border-radius: 7px;
|
|
transition: width 0.4s ease;
|
|
}
|
|
.career-exp-text {
|
|
position: absolute;
|
|
inset: 0;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
line-height: 14px;
|
|
color: rgba(255,255,255,0.7);
|
|
text-shadow: 0 0 3px rgba(0,0,0,0.8);
|
|
}
|
|
.career-income {
|
|
width: 70px;
|
|
text-align: right;
|
|
font-size: 11px;
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
/* ===== 神器 ===== */
|
|
.artifact-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.artifact-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
background: rgba(255,255,255,0.03);
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(212,168,83,0.1);
|
|
}
|
|
.artifact-name { color: var(--text-gold); font-size: 13px; }
|
|
.artifact-level { color: var(--accent-gold-dim); font-size: 12px; }
|
|
|
|
/* ===== 商铺 ===== */
|
|
.shop-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.shop-tab {
|
|
padding: 5px 14px;
|
|
cursor: pointer;
|
|
border: 1px solid rgba(212,168,83,0.15);
|
|
background: rgba(212,168,83,0.05);
|
|
color: var(--text-dim);
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-family: inherit;
|
|
transition: all 0.2s;
|
|
}
|
|
.shop-tab:hover { border-color: rgba(212,168,83,0.4); color: var(--text-primary); }
|
|
.shop-tab.active {
|
|
background: rgba(212,168,83,0.2);
|
|
color: var(--accent-gold);
|
|
border-color: rgba(212,168,83,0.5);
|
|
font-weight: 600;
|
|
}
|
|
.shop-list {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 8px;
|
|
}
|
|
.shop-item {
|
|
background: rgba(255,255,255,0.03);
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
.shop-item:hover { background: rgba(255,255,255,0.05); }
|
|
.shop-item.locked { opacity: 0.45; }
|
|
.shop-item-info { flex: 1; min-width: 0; }
|
|
.shop-item-name { font-size: 13px; color: var(--text-gold); margin-bottom: 2px; }
|
|
.shop-item-desc { font-size: 11px; color: var(--text-dim); }
|
|
.shop-item-cost { font-size: 12px; color: var(--accent-gold-dim); white-space: nowrap; }
|
|
.shop-buy-btn {
|
|
padding: 4px 12px;
|
|
font-size: 11px;
|
|
font-family: inherit;
|
|
background: rgba(212,168,83,0.15);
|
|
color: var(--accent-gold);
|
|
border: 1px solid rgba(212,168,83,0.3);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: all 0.2s;
|
|
}
|
|
.shop-buy-btn:hover:not(:disabled) {
|
|
background: var(--accent-gold);
|
|
color: var(--bg-primary);
|
|
}
|
|
.shop-buy-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ===== 记忆 ===== */
|
|
.memory-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.memory-tag {
|
|
background: rgba(139, 90, 43, 0.2);
|
|
color: #c8a060;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
border: 1px solid rgba(139,90,43,0.3);
|
|
}
|
|
.meta-exp-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.meta-exp-item {
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
}
|
|
.meta-exp-item span { color: var(--accent-gold-dim); }
|
|
|
|
/* ===== 死亡结算 ===== */
|
|
.death-screen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(5, 8, 16, 0.92);
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
.death-screen.hidden { display: none; }
|
|
.death-content {
|
|
background: var(--glass);
|
|
border: 1px solid var(--border-glow);
|
|
padding: 32px;
|
|
border-radius: 14px;
|
|
max-width: 520px;
|
|
width: 90%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
text-align: center;
|
|
box-shadow: 0 0 60px rgba(212,168,83,0.1);
|
|
}
|
|
.death-content h2 {
|
|
color: var(--accent-red);
|
|
font-size: 32px;
|
|
margin-bottom: 20px;
|
|
letter-spacing: 6px;
|
|
}
|
|
.death-content p {
|
|
line-height: 1.8;
|
|
margin: 6px 0;
|
|
color: var(--text-dim);
|
|
}
|
|
.death-content p strong { color: var(--text-primary); }
|
|
.death-content h4 {
|
|
color: var(--accent-gold);
|
|
margin: 18px 0 8px;
|
|
font-size: 14px;
|
|
}
|
|
.career-achievements {
|
|
background: rgba(255,255,255,0.03);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
line-height: 1.8;
|
|
text-align: left;
|
|
}
|
|
.new-entries { color: var(--accent-green); margin: 8px 0; }
|
|
.action-btn {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 14px;
|
|
margin-top: 24px;
|
|
background: linear-gradient(135deg, var(--accent-gold), #b8943f);
|
|
color: var(--bg-primary);
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
font-family: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
letter-spacing: 4px;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
.action-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 20px rgba(212,168,83,0.3);
|
|
}
|
|
|
|
/* ===== 空文本 ===== */
|
|
.empty-text {
|
|
color: rgba(255,255,255,0.15);
|
|
font-size: 12px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ===== 浮动通知 ===== */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(20px);
|
|
background: var(--glass);
|
|
border: 1px solid var(--border-glow);
|
|
padding: 10px 24px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: var(--text-gold);
|
|
z-index: 3000;
|
|
opacity: 0;
|
|
transition: all 0.4s;
|
|
pointer-events: none;
|
|
}
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
/* ===== 滚动条 ===== */
|
|
::-webkit-scrollbar { width: 5px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: rgba(212,168,83,0.2); border-radius: 3px; }
|
|
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,83,0.35); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="particles"></div>
|
|
|
|
<!-- 标题画面 -->
|
|
<div id="title-screen">
|
|
<div class="title-logo">轮回录</div>
|
|
<div class="title-sub">万世轮回 · 逆天改命</div>
|
|
<button class="title-start-btn" id="title-start-btn">进入轮回</button>
|
|
</div>
|
|
|
|
<!-- 主游戏界面 -->
|
|
<div class="container" id="game-container" style="opacity:0; transition: opacity 1s;">
|
|
<!-- 顶部栏 -->
|
|
<div class="panel top-bar">
|
|
<div class="top-info">
|
|
<div class="info-item">第 <span id="reincarnation">0</span> 世</div>
|
|
<div class="info-item"><span class="clock-icon"></span>第 <span id="year">0</span> 年 <span id="day">0</span> 天</div>
|
|
<div class="info-item"><span id="age">0</span> 岁</div>
|
|
<div class="info-item"><span id="money">0</span> 两</div>
|
|
<div class="crisis-wrap">
|
|
<span style="font-size:11px; color:var(--text-dim);">危机</span>
|
|
<div class="crisis-bar"><div class="crisis-fill" id="crisis-bar" style="width:0%"></div></div>
|
|
<span class="crisis-value" id="crisis">0</span>
|
|
</div>
|
|
</div>
|
|
<div class="enemy-bar">
|
|
<div class="enemy-row"><span class="enemy-label">军</span><div class="enemy-progress"><div class="enemy-fill enemy-military" id="enemy-military" style="width:0%"></div></div></div>
|
|
<div class="enemy-row"><span class="enemy-label">灵</span><div class="enemy-progress"><div class="enemy-fill enemy-spiritual" id="enemy-spiritual" style="width:0%"></div></div></div>
|
|
<div class="enemy-row"><span class="enemy-label">政</span><div class="enemy-progress"><div class="enemy-fill enemy-political" id="enemy-political" style="width:0%"></div></div></div>
|
|
</div>
|
|
<div class="top-controls">
|
|
<button class="speed-btn active" data-speed="0">1x</button>
|
|
<button class="speed-btn" data-speed="1">10x</button>
|
|
<button class="speed-btn" data-speed="2">100x</button>
|
|
<button class="speed-btn" data-speed="3">MAX</button>
|
|
<button class="control-btn" id="pause-btn">暂停</button>
|
|
<button class="sound-btn" id="sound-btn">🔊</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 左列 -->
|
|
<div class="col-left">
|
|
<!-- 事件 -->
|
|
<div class="panel event-area" id="event-panel">
|
|
<div class="event-bg-image" id="event-bg-image"></div>
|
|
<div class="event-content">
|
|
<div class="event-title" id="event-title"></div>
|
|
<div class="event-text" id="event-text"></div>
|
|
<div class="event-timer" id="event-timer"></div>
|
|
<div class="event-choices" id="event-choices"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 日志 -->
|
|
<div class="panel">
|
|
<div class="panel-title">人生日志</div>
|
|
<div class="log-area" id="log-stream">
|
|
<div class="log-entry"><span class="log-time">[0年0天]</span><span class="log-normal">等待进入轮回...</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 属性 -->
|
|
<div class="panel">
|
|
<div class="panel-title">六维属性</div>
|
|
<div class="stats-grid">
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#c0392b;">武</div>
|
|
<div class="stat-name">体质</div>
|
|
<div class="stat-value" id="stat-body">0</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#2980b9;">悟</div>
|
|
<div class="stat-name">悟性</div>
|
|
<div class="stat-value" id="stat-wisdom">0</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#e84393;">魅</div>
|
|
<div class="stat-name">魅力</div>
|
|
<div class="stat-value" id="stat-charm">0</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#f39c12;">运</div>
|
|
<div class="stat-name">气运</div>
|
|
<div class="stat-value" id="stat-destiny">0</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#27ae60;">商</div>
|
|
<div class="stat-name">经商</div>
|
|
<div class="stat-value" id="stat-business">0</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-icon" style="color:#8e44ad;">谋</div>
|
|
<div class="stat-name">智谋</div>
|
|
<div class="stat-value" id="stat-intelligence">0</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 职业 -->
|
|
<div class="panel">
|
|
<div class="panel-title">职业</div>
|
|
<div class="career-list" id="career-list"><span class="empty-text">尚无职业</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 右列 -->
|
|
<div class="col-right">
|
|
<!-- 词条 -->
|
|
<div class="panel">
|
|
<div class="panel-title">词条</div>
|
|
<div class="talent-list" id="talent-list"><span class="empty-text">暂无词条</span></div>
|
|
</div>
|
|
|
|
<!-- 神器 -->
|
|
<div class="panel">
|
|
<div class="panel-title">神器</div>
|
|
<div class="artifact-list" id="artifact-list"><span class="empty-text">暂无神器</span></div>
|
|
</div>
|
|
|
|
<!-- 商铺 -->
|
|
<div class="panel">
|
|
<div class="panel-title">商铺</div>
|
|
<div class="shop-tabs" id="shop-tabs"></div>
|
|
<div id="shop-panel"><span class="empty-text">加载中...</span></div>
|
|
</div>
|
|
|
|
<!-- 记忆 -->
|
|
<div class="panel">
|
|
<div class="panel-title">前世记忆</div>
|
|
<div class="memory-list" id="memory-list"><span class="empty-text">暂无记忆</span></div>
|
|
<div style="margin-top:10px; font-size:12px; color:var(--text-dim);">元经验加成</div>
|
|
<div class="meta-exp-list" id="meta-exp-list"><span class="empty-text">尚无积累</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 死亡结算 -->
|
|
<div class="death-screen hidden" id="death-screen">
|
|
<div class="death-content" id="death-content"></div>
|
|
</div>
|
|
|
|
<!-- 浮动通知 -->
|
|
<div class="toast" id="toast"></div>
|
|
|
|
<script type="module" src="src/main.js"></script>
|
|
</body>
|
|
</html> |