feat: MVP 工程脚手架——剧情引擎、Act 1 三章内容、Jev 服务层、画像报告与分享卡、Tauri 壳
This commit is contained in:
+279
@@ -0,0 +1,279 @@
|
||||
.app {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ---- 影游场景 ---- */
|
||||
.scene {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding: 24px;
|
||||
background: linear-gradient(160deg, #14101e 30%, #2a2338 100%);
|
||||
border-radius: 12px;
|
||||
min-height: 80vh;
|
||||
transition: background 0.8s ease;
|
||||
}
|
||||
|
||||
.scene-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 12px 20px;
|
||||
font-size: 13px;
|
||||
color: #b0a490;
|
||||
background: rgba(20, 16, 30, 0.8);
|
||||
}
|
||||
|
||||
.variant-tag {
|
||||
color: #d4a96a;
|
||||
}
|
||||
|
||||
.dialogue-box {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
background: rgba(20, 16, 30, 0.85);
|
||||
border: 1px solid #3a3248;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sprite {
|
||||
flex-shrink: 0;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28px;
|
||||
color: #f0e6d2;
|
||||
}
|
||||
|
||||
.speaker-name {
|
||||
font-weight: 700;
|
||||
color: #d4a96a;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.dialogue-text {
|
||||
line-height: 1.8;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.hint {
|
||||
font-size: 12px;
|
||||
color: #8a7f6a;
|
||||
}
|
||||
|
||||
/* ---- 选择点 ---- */
|
||||
.choice-box,
|
||||
.narration-box {
|
||||
background: rgba(20, 16, 30, 0.85);
|
||||
border: 1px solid #3a3248;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.choice-prompt,
|
||||
.narration-prompt {
|
||||
font-size: 17px;
|
||||
line-height: 1.7;
|
||||
color: #f0e6d2;
|
||||
}
|
||||
|
||||
.choice-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.choice-btn {
|
||||
text-align: left;
|
||||
padding: 12px 16px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #4a3f5a;
|
||||
background: #241e33;
|
||||
color: #e8dcc8;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, background 0.2s;
|
||||
}
|
||||
|
||||
.choice-btn:hover {
|
||||
border-color: #d4a96a;
|
||||
background: #2e2642;
|
||||
}
|
||||
|
||||
/* ---- 讲述点 ---- */
|
||||
.mechanism-tag {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
color: #1a1626;
|
||||
background: #d4a96a;
|
||||
border-radius: 4px;
|
||||
padding: 2px 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.hold-btn {
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
padding: 18px;
|
||||
border-radius: 999px;
|
||||
border: 2px solid #d4a96a;
|
||||
background: transparent;
|
||||
color: #d4a96a;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.hold-btn.holding {
|
||||
background: #d4a96a;
|
||||
color: #1a1626;
|
||||
}
|
||||
|
||||
/* ---- 过场 ---- */
|
||||
.cutscene {
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cutscene-placeholder {
|
||||
border: 2px dashed #4a3f5a;
|
||||
border-radius: 12px;
|
||||
padding: 80px 20px;
|
||||
font-size: 20px;
|
||||
color: #8a7f6a;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* ---- 通用按钮 ---- */
|
||||
button.primary,
|
||||
button.secondary {
|
||||
margin-top: 16px;
|
||||
padding: 12px 24px;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button.primary {
|
||||
border: none;
|
||||
background: #d4a96a;
|
||||
color: #1a1626;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
button.secondary {
|
||||
border: 1px solid #4a3f5a;
|
||||
background: transparent;
|
||||
color: #b0a490;
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.chapter-end {
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
/* ---- 画像报告 ---- */
|
||||
.report {
|
||||
padding: 32px 24px;
|
||||
}
|
||||
|
||||
.report h1 {
|
||||
color: #d4a96a;
|
||||
}
|
||||
|
||||
.badge-banner {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
align-items: center;
|
||||
background: rgba(212, 169, 106, 0.08);
|
||||
border: 1px solid #d4a96a;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
margin: 16px 0 24px;
|
||||
}
|
||||
|
||||
.badge-medal {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: #d4a96a;
|
||||
color: #1a1626;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.badge-note {
|
||||
font-size: 13px;
|
||||
color: #8a7f6a;
|
||||
}
|
||||
|
||||
.dimension-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.dimension-row {
|
||||
display: grid;
|
||||
grid-template-columns: 140px 1fr 190px;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.dimension-label {
|
||||
color: #e8dcc8;
|
||||
}
|
||||
|
||||
.dimension-bar {
|
||||
height: 14px;
|
||||
background: #2a2338;
|
||||
border-radius: 7px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dimension-fill {
|
||||
height: 100%;
|
||||
background: #d4a96a;
|
||||
}
|
||||
|
||||
.dimension-value {
|
||||
font-size: 13px;
|
||||
color: #b0a490;
|
||||
}
|
||||
|
||||
/* ---- 分享卡 ---- */
|
||||
.share-card {
|
||||
text-align: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.share-canvas {
|
||||
max-width: 320px;
|
||||
width: 100%;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #3a3248;
|
||||
display: block;
|
||||
margin: 0 auto 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user