refactor: 階段4完成-世界Boss正式化為boss.html與boss-battle.js,實作0秒瞬回免重讀
Browse files- boss-test.html +2 -1497
- boss.html +181 -0
- css/boss.css +1497 -0
- index.html +5 -0
- js/boss-battle.js +961 -0
- js/game.js +47 -0
- js/map.js +7 -3
- teacher.html +1 -1
- tools/verify-integrity.mjs +5 -1
boss-test.html
CHANGED
|
@@ -12,1502 +12,7 @@
|
|
| 12 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 13 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 14 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
| 15 |
-
<
|
| 16 |
-
:root {
|
| 17 |
-
--gold: #f5c451;
|
| 18 |
-
--gold-deep: #d98a14;
|
| 19 |
-
--glass-bg: rgba(255, 255, 255, 0.10);
|
| 20 |
-
--glass-line: rgba(255, 255, 255, 0.28);
|
| 21 |
-
--glass-hi: rgba(255, 255, 255, 0.18);
|
| 22 |
-
}
|
| 23 |
-
* { box-sizing: border-box; }
|
| 24 |
-
html, body {
|
| 25 |
-
margin: 0;
|
| 26 |
-
height: 100%;
|
| 27 |
-
background: #07080d;
|
| 28 |
-
color: #f8fafc;
|
| 29 |
-
font-family: 'Inter', 'Noto Sans TC', sans-serif;
|
| 30 |
-
user-select: none;
|
| 31 |
-
overflow: hidden;
|
| 32 |
-
}
|
| 33 |
-
.hidden { display: none !important; }
|
| 34 |
-
|
| 35 |
-
/* ========== 測試控制列(僅測試用,預設完全隱藏,需帶 ?debug=1 網址參數) ========== */
|
| 36 |
-
.debug-bar {
|
| 37 |
-
display: none !important;
|
| 38 |
-
position: fixed;
|
| 39 |
-
left: 10px;
|
| 40 |
-
bottom: 10px;
|
| 41 |
-
z-index: 3000;
|
| 42 |
-
background: rgba(10, 10, 16, 0.88);
|
| 43 |
-
backdrop-filter: blur(8px);
|
| 44 |
-
border: 1px solid rgba(245, 196, 81, 0.35);
|
| 45 |
-
border-radius: 12px;
|
| 46 |
-
padding: 6px 8px;
|
| 47 |
-
gap: 5px;
|
| 48 |
-
flex-wrap: wrap;
|
| 49 |
-
align-items: center;
|
| 50 |
-
max-width: 560px;
|
| 51 |
-
font-size: 11px;
|
| 52 |
-
color: #cbd5e1;
|
| 53 |
-
}
|
| 54 |
-
.debug-bar.debug-active {
|
| 55 |
-
display: flex !important;
|
| 56 |
-
}
|
| 57 |
-
.debug-bar.collapsed > :not(.debug-toggle) { display: none; }
|
| 58 |
-
.debug-btn {
|
| 59 |
-
background: #1e1a24;
|
| 60 |
-
color: #fde68a;
|
| 61 |
-
border: 1px solid #6b4a12;
|
| 62 |
-
padding: 4px 8px;
|
| 63 |
-
border-radius: 6px;
|
| 64 |
-
font-size: 11px;
|
| 65 |
-
font-weight: 700;
|
| 66 |
-
cursor: pointer;
|
| 67 |
-
transition: background 0.15s, transform 0.15s;
|
| 68 |
-
}
|
| 69 |
-
.debug-btn:hover { background: #6b4a12; color: #fff; transform: translateY(-1px); }
|
| 70 |
-
|
| 71 |
-
/* ========== 退出大地圖按鈕樣式 ========== */
|
| 72 |
-
.btn-exit-map {
|
| 73 |
-
position: relative;
|
| 74 |
-
min-height: 58px;
|
| 75 |
-
padding: 0 24px;
|
| 76 |
-
border: 1px solid rgba(255, 255, 255, 0.22);
|
| 77 |
-
border-radius: 16px;
|
| 78 |
-
font-size: 16px;
|
| 79 |
-
font-weight: 800;
|
| 80 |
-
letter-spacing: 1px;
|
| 81 |
-
color: #e2e8f0;
|
| 82 |
-
background: rgba(255, 255, 255, 0.08);
|
| 83 |
-
backdrop-filter: blur(8px);
|
| 84 |
-
box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
|
| 85 |
-
cursor: pointer;
|
| 86 |
-
display: inline-flex;
|
| 87 |
-
align-items: center;
|
| 88 |
-
justify-content: center;
|
| 89 |
-
gap: 8px;
|
| 90 |
-
white-space: nowrap;
|
| 91 |
-
transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
|
| 92 |
-
}
|
| 93 |
-
.btn-exit-map:hover {
|
| 94 |
-
background: rgba(255, 255, 255, 0.16);
|
| 95 |
-
border-color: rgba(245, 196, 81, 0.6);
|
| 96 |
-
color: #fff;
|
| 97 |
-
transform: translateY(-2px);
|
| 98 |
-
box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 12px rgba(245, 196, 81, 0.25);
|
| 99 |
-
}
|
| 100 |
-
.btn-exit-map:active { transform: scale(0.98); }
|
| 101 |
-
|
| 102 |
-
.btn-card-close {
|
| 103 |
-
position: absolute;
|
| 104 |
-
top: 14px;
|
| 105 |
-
right: 14px;
|
| 106 |
-
z-index: 20;
|
| 107 |
-
width: 44px;
|
| 108 |
-
height: 44px;
|
| 109 |
-
min-width: 44px;
|
| 110 |
-
min-height: 44px;
|
| 111 |
-
border-radius: 50%;
|
| 112 |
-
border: 1.5px solid rgba(255, 255, 255, 0.4);
|
| 113 |
-
background: rgba(15, 23, 42, 0.85);
|
| 114 |
-
backdrop-filter: blur(10px);
|
| 115 |
-
-webkit-backdrop-filter: blur(10px);
|
| 116 |
-
color: #f1f5f9;
|
| 117 |
-
font-size: 18px;
|
| 118 |
-
font-weight: 800;
|
| 119 |
-
display: flex;
|
| 120 |
-
align-items: center;
|
| 121 |
-
justify-content: center;
|
| 122 |
-
cursor: pointer;
|
| 123 |
-
touch-action: manipulation;
|
| 124 |
-
box-shadow: 0 4px 14px rgba(0,0,0,0.5);
|
| 125 |
-
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
|
| 126 |
-
}
|
| 127 |
-
.btn-card-close:hover {
|
| 128 |
-
background: rgba(239, 68, 68, 0.85);
|
| 129 |
-
border-color: #fca5a5;
|
| 130 |
-
color: #fff;
|
| 131 |
-
transform: scale(1.08);
|
| 132 |
-
}
|
| 133 |
-
.btn-card-close:active {
|
| 134 |
-
transform: scale(0.95);
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
/* ========== 共用背景 ========== */
|
| 138 |
-
.scene {
|
| 139 |
-
position: fixed;
|
| 140 |
-
inset: 0;
|
| 141 |
-
overflow: hidden;
|
| 142 |
-
}
|
| 143 |
-
.scene-bg {
|
| 144 |
-
position: absolute;
|
| 145 |
-
inset: 0;
|
| 146 |
-
background: url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
/* =====================================================
|
| 150 |
-
第一頁:Boss 介紹
|
| 151 |
-
===================================================== */
|
| 152 |
-
#screenIntro .scene-bg {
|
| 153 |
-
filter: blur(6px) brightness(0.45) saturate(1.1);
|
| 154 |
-
transform: scale(1.06);
|
| 155 |
-
}
|
| 156 |
-
.intro-wrap {
|
| 157 |
-
position: relative;
|
| 158 |
-
z-index: 2;
|
| 159 |
-
height: 100%;
|
| 160 |
-
display: flex;
|
| 161 |
-
align-items: flex-start; /* 防禦性:永遠自頂部對齊,解決平板/小螢幕負座標溢出導致頂部 X 按鈕消失的 Bug */
|
| 162 |
-
justify-content: center;
|
| 163 |
-
padding: 24px 16px 48px;
|
| 164 |
-
overflow-y: auto;
|
| 165 |
-
-webkit-overflow-scrolling: touch;
|
| 166 |
-
touch-action: pan-y;
|
| 167 |
-
overscroll-behavior-y: contain;
|
| 168 |
-
}
|
| 169 |
-
.intro-card {
|
| 170 |
-
width: 100%;
|
| 171 |
-
max-width: 1040px;
|
| 172 |
-
margin: auto 0; /* 內容高度小於螢幕��垂直居中,大於螢幕時頂部自然貼齊並平滑向下捲動 */
|
| 173 |
-
display: grid;
|
| 174 |
-
grid-template-columns: 1fr 1.1fr;
|
| 175 |
-
gap: 28px;
|
| 176 |
-
background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
|
| 177 |
-
backdrop-filter: blur(18px) saturate(1.2);
|
| 178 |
-
-webkit-backdrop-filter: blur(18px) saturate(1.2);
|
| 179 |
-
border: 1px solid var(--glass-line);
|
| 180 |
-
border-radius: 24px;
|
| 181 |
-
padding: 26px;
|
| 182 |
-
box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 var(--glass-hi);
|
| 183 |
-
animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
|
| 184 |
-
touch-action: pan-y;
|
| 185 |
-
}
|
| 186 |
-
@keyframes cardIn {
|
| 187 |
-
from { opacity: 0; transform: translateY(18px) scale(0.98); }
|
| 188 |
-
to { opacity: 1; transform: none; }
|
| 189 |
-
}
|
| 190 |
-
.intro-portrait {
|
| 191 |
-
position: relative;
|
| 192 |
-
border-radius: 18px;
|
| 193 |
-
background:
|
| 194 |
-
radial-gradient(circle at 50% 55%, rgba(168, 85, 247, 0.45), transparent 62%),
|
| 195 |
-
url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 196 |
-
border: 1px solid rgba(245, 196, 81, 0.35);
|
| 197 |
-
overflow: hidden;
|
| 198 |
-
display: flex;
|
| 199 |
-
align-items: flex-end;
|
| 200 |
-
justify-content: center;
|
| 201 |
-
min-height: 380px;
|
| 202 |
-
box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
|
| 203 |
-
}
|
| 204 |
-
.intro-portrait::after {
|
| 205 |
-
content: '';
|
| 206 |
-
position: absolute;
|
| 207 |
-
inset: 0;
|
| 208 |
-
background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
|
| 209 |
-
pointer-events: none;
|
| 210 |
-
}
|
| 211 |
-
.intro-portrait img {
|
| 212 |
-
position: relative;
|
| 213 |
-
z-index: 1;
|
| 214 |
-
width: 100%;
|
| 215 |
-
max-height: 400px;
|
| 216 |
-
object-fit: contain;
|
| 217 |
-
filter: drop-shadow(0 16px 26px rgba(0,0,0,0.85));
|
| 218 |
-
animation: idleFloat 3.8s ease-in-out infinite;
|
| 219 |
-
}
|
| 220 |
-
.intro-info {
|
| 221 |
-
display: flex;
|
| 222 |
-
flex-direction: column;
|
| 223 |
-
gap: 16px;
|
| 224 |
-
min-width: 0;
|
| 225 |
-
}
|
| 226 |
-
.boss-title {
|
| 227 |
-
margin: 0;
|
| 228 |
-
font-size: 40px;
|
| 229 |
-
font-weight: 900;
|
| 230 |
-
letter-spacing: 4px;
|
| 231 |
-
background: linear-gradient(180deg, #fff 20%, #fde68a 60%, #f59e0b);
|
| 232 |
-
-webkit-background-clip: text;
|
| 233 |
-
background-clip: text;
|
| 234 |
-
-webkit-text-fill-color: transparent;
|
| 235 |
-
filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
|
| 236 |
-
}
|
| 237 |
-
.boss-desc {
|
| 238 |
-
margin: 0;
|
| 239 |
-
font-size: 14px;
|
| 240 |
-
line-height: 1.8;
|
| 241 |
-
color: #e2e8f0;
|
| 242 |
-
}
|
| 243 |
-
.class-progress {
|
| 244 |
-
display: flex;
|
| 245 |
-
flex-direction: column;
|
| 246 |
-
gap: 6px;
|
| 247 |
-
font-size: 12px;
|
| 248 |
-
color: #cbd5e1;
|
| 249 |
-
}
|
| 250 |
-
.class-progress-row {
|
| 251 |
-
display: flex;
|
| 252 |
-
justify-content: space-between;
|
| 253 |
-
font-weight: 700;
|
| 254 |
-
}
|
| 255 |
-
.mini-hp {
|
| 256 |
-
height: 8px;
|
| 257 |
-
border-radius: 99px;
|
| 258 |
-
background: rgba(0,0,0,0.45);
|
| 259 |
-
overflow: hidden;
|
| 260 |
-
border: 1px solid rgba(255,255,255,0.15);
|
| 261 |
-
}
|
| 262 |
-
.mini-hp > div {
|
| 263 |
-
height: 100%;
|
| 264 |
-
background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
|
| 265 |
-
transition: width 0.4s;
|
| 266 |
-
}
|
| 267 |
-
|
| 268 |
-
.reward-box {
|
| 269 |
-
background: rgba(0, 0, 0, 0.28);
|
| 270 |
-
border: 1px solid rgba(245, 196, 81, 0.3);
|
| 271 |
-
border-radius: 16px;
|
| 272 |
-
padding: 14px 16px;
|
| 273 |
-
}
|
| 274 |
-
.reward-head {
|
| 275 |
-
display: flex;
|
| 276 |
-
justify-content: space-between;
|
| 277 |
-
align-items: baseline;
|
| 278 |
-
gap: 8px;
|
| 279 |
-
margin-bottom: 10px;
|
| 280 |
-
flex-wrap: wrap;
|
| 281 |
-
}
|
| 282 |
-
.reward-head h2 {
|
| 283 |
-
margin: 0;
|
| 284 |
-
font-size: 16px;
|
| 285 |
-
font-weight: 900;
|
| 286 |
-
color: var(--gold);
|
| 287 |
-
letter-spacing: 1px;
|
| 288 |
-
}
|
| 289 |
-
.reward-head span {
|
| 290 |
-
font-size: 11px;
|
| 291 |
-
color: #94a3b8;
|
| 292 |
-
}
|
| 293 |
-
.reward-list {
|
| 294 |
-
display: grid;
|
| 295 |
-
grid-template-columns: 1fr 1fr;
|
| 296 |
-
gap: 8px;
|
| 297 |
-
}
|
| 298 |
-
.reward-item {
|
| 299 |
-
display: flex;
|
| 300 |
-
align-items: center;
|
| 301 |
-
gap: 10px;
|
| 302 |
-
background: rgba(255,255,255,0.06);
|
| 303 |
-
border: 1px solid rgba(255,255,255,0.12);
|
| 304 |
-
border-radius: 12px;
|
| 305 |
-
padding: 9px 12px;
|
| 306 |
-
transition: transform 0.2s, border-color 0.2s, background 0.2s;
|
| 307 |
-
}
|
| 308 |
-
.reward-item:hover {
|
| 309 |
-
transform: translateY(-2px);
|
| 310 |
-
border-color: rgba(245, 196, 81, 0.6);
|
| 311 |
-
background: rgba(245, 196, 81, 0.10);
|
| 312 |
-
}
|
| 313 |
-
.reward-item.mvp {
|
| 314 |
-
grid-column: 1 / -1;
|
| 315 |
-
border-color: rgba(239, 68, 68, 0.4);
|
| 316 |
-
background: rgba(239, 68, 68, 0.10);
|
| 317 |
-
}
|
| 318 |
-
.reward-ico { font-size: 22px; flex-shrink: 0; }
|
| 319 |
-
.reward-name { font-size: 13px; font-weight: 800; color: #fef3c7; }
|
| 320 |
-
.reward-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
|
| 321 |
-
.reward-qual {
|
| 322 |
-
margin-top: 10px;
|
| 323 |
-
font-size: 12px;
|
| 324 |
-
font-weight: 700;
|
| 325 |
-
color: #fca5a5;
|
| 326 |
-
}
|
| 327 |
-
.reward-qual.ok { color: #86efac; }
|
| 328 |
-
|
| 329 |
-
.btn-start {
|
| 330 |
-
position: relative;
|
| 331 |
-
overflow: hidden;
|
| 332 |
-
width: 100%;
|
| 333 |
-
min-height: 58px;
|
| 334 |
-
border: none;
|
| 335 |
-
border-radius: 16px;
|
| 336 |
-
font-size: 20px;
|
| 337 |
-
font-weight: 900;
|
| 338 |
-
letter-spacing: 4px;
|
| 339 |
-
color: #2a1500;
|
| 340 |
-
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 341 |
-
box-shadow: 0 10px 30px rgba(245, 179, 35, 0.45), inset 0 2px 0 rgba(255,255,255,0.6);
|
| 342 |
-
cursor: pointer;
|
| 343 |
-
transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
|
| 344 |
-
}
|
| 345 |
-
.btn-start::before {
|
| 346 |
-
content: '';
|
| 347 |
-
position: absolute;
|
| 348 |
-
top: 0; left: -60%;
|
| 349 |
-
width: 40%; height: 100%;
|
| 350 |
-
background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent);
|
| 351 |
-
transform: skewX(-20deg);
|
| 352 |
-
animation: shine 2.8s infinite;
|
| 353 |
-
}
|
| 354 |
-
@keyframes shine {
|
| 355 |
-
0% { left: -60%; }
|
| 356 |
-
60%, 100% { left: 130%; }
|
| 357 |
-
}
|
| 358 |
-
.btn-start:hover:not(:disabled) {
|
| 359 |
-
transform: translateY(-2px) scale(1.01);
|
| 360 |
-
box-shadow: 0 14px 38px rgba(245, 179, 35, 0.6), inset 0 2px 0 rgba(255,255,255,0.6);
|
| 361 |
-
}
|
| 362 |
-
.btn-start:active:not(:disabled) { transform: scale(0.98); }
|
| 363 |
-
.btn-start:disabled {
|
| 364 |
-
cursor: not-allowed;
|
| 365 |
-
color: #94a3b8;
|
| 366 |
-
background: linear-gradient(180deg, #475569, #334155);
|
| 367 |
-
box-shadow: none;
|
| 368 |
-
}
|
| 369 |
-
.btn-start:disabled::before { display: none; }
|
| 370 |
-
|
| 371 |
-
/* =====================================================
|
| 372 |
-
第二頁:全螢幕戰鬥
|
| 373 |
-
===================================================== */
|
| 374 |
-
#screenBattle {
|
| 375 |
-
display: flex;
|
| 376 |
-
flex-direction: column;
|
| 377 |
-
}
|
| 378 |
-
#screenBattle .scene-bg {
|
| 379 |
-
filter: brightness(0.95) contrast(1.05);
|
| 380 |
-
}
|
| 381 |
-
.battle-hud {
|
| 382 |
-
position: relative;
|
| 383 |
-
z-index: 20;
|
| 384 |
-
margin: 12px 14px 0;
|
| 385 |
-
padding: 10px 18px 12px;
|
| 386 |
-
border-radius: 16px;
|
| 387 |
-
background: rgba(10, 8, 16, 0.62);
|
| 388 |
-
backdrop-filter: blur(12px);
|
| 389 |
-
-webkit-backdrop-filter: blur(12px);
|
| 390 |
-
border: 1px solid rgba(255,255,255,0.16);
|
| 391 |
-
box-shadow: 0 8px 24px rgba(0,0,0,0.45);
|
| 392 |
-
}
|
| 393 |
-
.hud-row {
|
| 394 |
-
display: flex;
|
| 395 |
-
justify-content: space-between;
|
| 396 |
-
align-items: center;
|
| 397 |
-
gap: 10px;
|
| 398 |
-
margin-bottom: 8px;
|
| 399 |
-
}
|
| 400 |
-
.hud-name {
|
| 401 |
-
font-size: 20px;
|
| 402 |
-
font-weight: 900;
|
| 403 |
-
letter-spacing: 3px;
|
| 404 |
-
color: #fff;
|
| 405 |
-
text-shadow: 0 2px 8px rgba(0,0,0,0.7);
|
| 406 |
-
}
|
| 407 |
-
.hud-hp-text {
|
| 408 |
-
font-size: 15px;
|
| 409 |
-
font-weight: 800;
|
| 410 |
-
color: #fca5a5;
|
| 411 |
-
font-variant-numeric: tabular-nums;
|
| 412 |
-
}
|
| 413 |
-
.hp-bar-outer {
|
| 414 |
-
height: 20px;
|
| 415 |
-
background: rgba(0,0,0,0.6);
|
| 416 |
-
border-radius: 99px;
|
| 417 |
-
overflow: hidden;
|
| 418 |
-
border: 1.5px solid rgba(245, 196, 81, 0.5);
|
| 419 |
-
box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
|
| 420 |
-
}
|
| 421 |
-
.hp-bar-inner {
|
| 422 |
-
height: 100%;
|
| 423 |
-
background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
|
| 424 |
-
border-radius: 99px;
|
| 425 |
-
transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
| 426 |
-
box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
|
| 427 |
-
}
|
| 428 |
-
.hp-bar-inner.low {
|
| 429 |
-
background: linear-gradient(90deg, #b91c1c, #ef4444);
|
| 430 |
-
animation: hpPulse 1.2s infinite;
|
| 431 |
-
}
|
| 432 |
-
@keyframes hpPulse { 50% { opacity: 0.6; } }
|
| 433 |
-
|
| 434 |
-
.battle-stage {
|
| 435 |
-
position: relative;
|
| 436 |
-
z-index: 10;
|
| 437 |
-
flex: 1;
|
| 438 |
-
min-height: 0;
|
| 439 |
-
display: flex;
|
| 440 |
-
align-items: flex-end;
|
| 441 |
-
justify-content: center;
|
| 442 |
-
pointer-events: none;
|
| 443 |
-
}
|
| 444 |
-
.boss-sprite {
|
| 445 |
-
height: 100%;
|
| 446 |
-
max-height: 100%;
|
| 447 |
-
max-width: 92vw;
|
| 448 |
-
object-fit: contain;
|
| 449 |
-
margin-bottom: -40px; /* 讓 Boss 微微壓在題目卡後方,增加層次 */
|
| 450 |
-
filter: drop-shadow(0 18px 28px rgba(0,0,0,0.85)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.45));
|
| 451 |
-
animation: idleFloat 3.8s ease-in-out infinite;
|
| 452 |
-
transition: filter 0.35s ease, transform 0.25s ease;
|
| 453 |
-
}
|
| 454 |
-
@keyframes idleFloat {
|
| 455 |
-
0%, 100% { transform: translateY(0); }
|
| 456 |
-
50% { transform: translateY(-10px); }
|
| 457 |
-
}
|
| 458 |
-
.boss-sprite.hit {
|
| 459 |
-
animation: bossHit 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
| 460 |
-
filter: drop-shadow(0 0 35px #ef4444) brightness(1.5);
|
| 461 |
-
}
|
| 462 |
-
@keyframes bossHit {
|
| 463 |
-
10%, 90% { transform: translate3d(-8px, 0, 0) scale(0.97); }
|
| 464 |
-
20%, 80% { transform: translate3d(10px, -4px, 0) scale(1.03); }
|
| 465 |
-
30%, 50%, 70% { transform: translate3d(-12px, 4px, 0); }
|
| 466 |
-
40%, 60% { transform: translate3d(12px, 0, 0); }
|
| 467 |
-
}
|
| 468 |
-
.boss-sprite.crit-hit {
|
| 469 |
-
animation: bossCrit 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
| 470 |
-
filter: drop-shadow(0 0 60px #f59e0b) drop-shadow(0 0 30px #ef4444) brightness(2);
|
| 471 |
-
}
|
| 472 |
-
@keyframes bossCrit {
|
| 473 |
-
15% { transform: scale(1.18) rotate(7deg) translateY(-20px); }
|
| 474 |
-
35% { transform: scale(0.88) rotate(-6deg) translateY(12px); }
|
| 475 |
-
55% { transform: scale(1.08) rotate(3deg); }
|
| 476 |
-
75% { transform: scale(0.97) rotate(-1deg); }
|
| 477 |
-
100% { transform: none; }
|
| 478 |
-
}
|
| 479 |
-
|
| 480 |
-
/* 浮動傷害 */
|
| 481 |
-
.floating-dmg-box {
|
| 482 |
-
position: absolute;
|
| 483 |
-
top: 38%;
|
| 484 |
-
left: 50%;
|
| 485 |
-
transform: translate(-50%, -50%);
|
| 486 |
-
z-index: 60;
|
| 487 |
-
pointer-events: none;
|
| 488 |
-
width: 100%;
|
| 489 |
-
display: flex;
|
| 490 |
-
justify-content: center;
|
| 491 |
-
}
|
| 492 |
-
.dmg-normal {
|
| 493 |
-
font-size: 48px;
|
| 494 |
-
font-weight: 900;
|
| 495 |
-
color: #ff6b6b;
|
| 496 |
-
text-shadow: 0 4px 14px rgba(0,0,0,0.9), 0 0 14px rgba(239, 68, 68, 0.8);
|
| 497 |
-
animation: dmgUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
|
| 498 |
-
}
|
| 499 |
-
.dmg-notice {
|
| 500 |
-
font-size: 26px;
|
| 501 |
-
color: #fde68a;
|
| 502 |
-
}
|
| 503 |
-
@keyframes dmgUp {
|
| 504 |
-
0% { opacity: 0; transform: translateY(0) scale(0.6); }
|
| 505 |
-
20% { opacity: 1; transform: translateY(-25px) scale(1.2); }
|
| 506 |
-
80% { opacity: 1; transform: translateY(-50px) scale(1); }
|
| 507 |
-
100% { opacity: 0; transform: translateY(-75px) scale(0.8); }
|
| 508 |
-
}
|
| 509 |
-
.dmg-crit {
|
| 510 |
-
text-align: center;
|
| 511 |
-
font-size: 68px;
|
| 512 |
-
font-weight: 900;
|
| 513 |
-
line-height: 1.1;
|
| 514 |
-
background: linear-gradient(180deg, #fff 15%, #fef08a 45%, #f59e0b 80%, #b45309);
|
| 515 |
-
-webkit-background-clip: text;
|
| 516 |
-
background-clip: text;
|
| 517 |
-
-webkit-text-fill-color: transparent;
|
| 518 |
-
filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.9)) drop-shadow(0 6px 12px rgba(0,0,0,0.9));
|
| 519 |
-
animation: dmgCrit 1.35s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
|
| 520 |
-
}
|
| 521 |
-
.dmg-crit small {
|
| 522 |
-
display: block;
|
| 523 |
-
font-size: 26px;
|
| 524 |
-
letter-spacing: 3px;
|
| 525 |
-
margin-top: 4px;
|
| 526 |
-
}
|
| 527 |
-
@keyframes dmgCrit {
|
| 528 |
-
0% { opacity: 0; transform: scale(0.2) rotate(-14deg); }
|
| 529 |
-
15% { opacity: 1; transform: scale(1.45) rotate(4deg); }
|
| 530 |
-
30% { transform: scale(1.1) rotate(-3deg); }
|
| 531 |
-
75% { opacity: 1; transform: scale(1) translateY(-30px); }
|
| 532 |
-
100% { opacity: 0; transform: scale(0.8) translateY(-70px); }
|
| 533 |
-
}
|
| 534 |
-
|
| 535 |
-
/* 暴擊特效 */
|
| 536 |
-
.screen-flash {
|
| 537 |
-
position: fixed;
|
| 538 |
-
inset: 0;
|
| 539 |
-
z-index: 2500;
|
| 540 |
-
pointer-events: none;
|
| 541 |
-
opacity: 0;
|
| 542 |
-
background: radial-gradient(circle, rgba(254, 240, 138, 0.9), rgba(245, 158, 11, 0.6) 45%, rgba(239, 68, 68, 0.4) 85%, transparent);
|
| 543 |
-
}
|
| 544 |
-
.screen-flash.active { animation: flash 0.4s ease-out forwards; }
|
| 545 |
-
@keyframes flash { 15% { opacity: 1; } 100% { opacity: 0; } }
|
| 546 |
-
.speed-lines {
|
| 547 |
-
position: absolute;
|
| 548 |
-
inset: -20%;
|
| 549 |
-
z-index: 15;
|
| 550 |
-
pointer-events: none;
|
| 551 |
-
opacity: 0;
|
| 552 |
-
background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(254, 240, 138, 0.28) 0deg 6deg, transparent 6deg 18deg);
|
| 553 |
-
}
|
| 554 |
-
.speed-lines.active { animation: lines 0.6s ease-out forwards; }
|
| 555 |
-
@keyframes lines {
|
| 556 |
-
0% { opacity: 0; transform: scale(0.8); }
|
| 557 |
-
20% { opacity: 1; transform: scale(1.05) rotate(4deg); }
|
| 558 |
-
100% { opacity: 0; transform: scale(1.3) rotate(12deg); }
|
| 559 |
-
}
|
| 560 |
-
.slash {
|
| 561 |
-
position: absolute;
|
| 562 |
-
top: 45%;
|
| 563 |
-
left: 50%;
|
| 564 |
-
width: 130%;
|
| 565 |
-
height: 8px;
|
| 566 |
-
z-index: 25;
|
| 567 |
-
pointer-events: none;
|
| 568 |
-
background: linear-gradient(90deg, transparent, #fff 25%, #fef08a 50%, #f59e0b 75%, transparent);
|
| 569 |
-
box-shadow: 0 0 25px #f59e0b, 0 0 45px #fff;
|
| 570 |
-
transform: translate(-50%, -50%) rotate(-30deg) scaleX(0);
|
| 571 |
-
}
|
| 572 |
-
.slash.active { animation: slash 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
| 573 |
-
@keyframes slash {
|
| 574 |
-
40% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.2); opacity: 1; }
|
| 575 |
-
100% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.4); opacity: 0; }
|
| 576 |
-
}
|
| 577 |
-
.heavy-shake { animation: heavyShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
|
| 578 |
-
@keyframes heavyShake {
|
| 579 |
-
10% { transform: translate(-14px, -10px) rotate(-1deg); }
|
| 580 |
-
20% { transform: translate(16px, 12px) rotate(1.5deg); }
|
| 581 |
-
30% { transform: translate(-18px, 8px) rotate(-1deg); }
|
| 582 |
-
40% { transform: translate(14px, -8px) rotate(1deg); }
|
| 583 |
-
50% { transform: translate(-10px, 6px); }
|
| 584 |
-
60% { transform: translate(8px, -4px); }
|
| 585 |
-
80% { transform: translate(-4px, 2px); }
|
| 586 |
-
100% { transform: none; }
|
| 587 |
-
}
|
| 588 |
-
|
| 589 |
-
/* ========== 玻璃鏡面題目卡 ========== */
|
| 590 |
-
.glass-card {
|
| 591 |
-
position: relative;
|
| 592 |
-
z-index: 30;
|
| 593 |
-
width: calc(100% - 28px);
|
| 594 |
-
max-width: 820px;
|
| 595 |
-
margin: 0 auto 14px;
|
| 596 |
-
padding: 14px 18px 16px;
|
| 597 |
-
border-radius: 22px;
|
| 598 |
-
background: linear-gradient(140deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.10));
|
| 599 |
-
backdrop-filter: blur(22px) saturate(1.4);
|
| 600 |
-
-webkit-backdrop-filter: blur(22px) saturate(1.4);
|
| 601 |
-
border: 1px solid var(--glass-line);
|
| 602 |
-
box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.08);
|
| 603 |
-
overflow: hidden;
|
| 604 |
-
}
|
| 605 |
-
/* 鏡面高光 */
|
| 606 |
-
.glass-card::before {
|
| 607 |
-
content: '';
|
| 608 |
-
position: absolute;
|
| 609 |
-
top: 0; left: 0; right: 0;
|
| 610 |
-
height: 45%;
|
| 611 |
-
background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
|
| 612 |
-
pointer-events: none;
|
| 613 |
-
}
|
| 614 |
-
.q-meta {
|
| 615 |
-
position: relative;
|
| 616 |
-
display: flex;
|
| 617 |
-
justify-content: space-between;
|
| 618 |
-
align-items: center;
|
| 619 |
-
gap: 8px;
|
| 620 |
-
margin-bottom: 10px;
|
| 621 |
-
font-size: 12px;
|
| 622 |
-
color: rgba(255,255,255,0.75);
|
| 623 |
-
}
|
| 624 |
-
.q-badge {
|
| 625 |
-
font-weight: 800;
|
| 626 |
-
padding: 3px 10px;
|
| 627 |
-
border-radius: 99px;
|
| 628 |
-
background: rgba(239, 68, 68, 0.25);
|
| 629 |
-
border: 1px solid rgba(252, 165, 165, 0.55);
|
| 630 |
-
color: #fecaca;
|
| 631 |
-
}
|
| 632 |
-
.q-badge.charge {
|
| 633 |
-
background: rgba(245, 196, 81, 0.28);
|
| 634 |
-
border-color: rgba(253, 230, 138, 0.7);
|
| 635 |
-
color: #fef3c7;
|
| 636 |
-
box-shadow: 0 0 12px rgba(245, 196, 81, 0.5);
|
| 637 |
-
}
|
| 638 |
-
.q-meta .crit-hint.buff { color: #fde68a; font-weight: 800; }
|
| 639 |
-
.q-stem {
|
| 640 |
-
position: relative;
|
| 641 |
-
font-size: 17px;
|
| 642 |
-
font-weight: 700;
|
| 643 |
-
line-height: 1.5;
|
| 644 |
-
color: #fff;
|
| 645 |
-
text-shadow: 0 1px 6px rgba(0,0,0,0.5);
|
| 646 |
-
padding: 12px 16px;
|
| 647 |
-
margin-bottom: 12px;
|
| 648 |
-
border-radius: 14px;
|
| 649 |
-
background: rgba(0,0,0,0.22);
|
| 650 |
-
border: 1px solid rgba(255,255,255,0.14);
|
| 651 |
-
}
|
| 652 |
-
.q-stem .tag { font-size: 12px; color: rgba(255,255,255,0.55); margin-left: 6px; font-weight: 500; }
|
| 653 |
-
.q-stem .charge-tag { color: #fde68a; font-weight: 900; margin-right: 4px; }
|
| 654 |
-
.q-stem img {
|
| 655 |
-
display: block;
|
| 656 |
-
max-width: 100%;
|
| 657 |
-
max-height: 220px;
|
| 658 |
-
height: auto;
|
| 659 |
-
margin: 10px auto;
|
| 660 |
-
border-radius: 10px;
|
| 661 |
-
object-fit: contain;
|
| 662 |
-
background: #ffffff;
|
| 663 |
-
padding: 4px;
|
| 664 |
-
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
|
| 665 |
-
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 666 |
-
}
|
| 667 |
-
.options-grid {
|
| 668 |
-
position: relative;
|
| 669 |
-
display: grid;
|
| 670 |
-
grid-template-columns: 1fr 1fr;
|
| 671 |
-
gap: 10px;
|
| 672 |
-
}
|
| 673 |
-
.opt-btn {
|
| 674 |
-
display: flex;
|
| 675 |
-
align-items: center;
|
| 676 |
-
gap: 10px;
|
| 677 |
-
min-height: 50px;
|
| 678 |
-
padding: 10px 14px;
|
| 679 |
-
border-radius: 14px;
|
| 680 |
-
font-family: inherit;
|
| 681 |
-
font-size: 15px;
|
| 682 |
-
font-weight: 600;
|
| 683 |
-
color: #fff;
|
| 684 |
-
text-align: left;
|
| 685 |
-
cursor: pointer;
|
| 686 |
-
background: rgba(255,255,255,0.10);
|
| 687 |
-
border: 1px solid rgba(255,255,255,0.25);
|
| 688 |
-
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
|
| 689 |
-
transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
| 690 |
-
touch-action: manipulation;
|
| 691 |
-
}
|
| 692 |
-
.opt-btn:hover:not(:disabled) {
|
| 693 |
-
transform: translateY(-2px);
|
| 694 |
-
background: rgba(255,255,255,0.20);
|
| 695 |
-
border-color: rgba(253, 230, 138, 0.8);
|
| 696 |
-
box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 16px rgba(245, 196, 81, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
|
| 697 |
-
}
|
| 698 |
-
.opt-btn:active:not(:disabled) { transform: scale(0.98); }
|
| 699 |
-
.opt-btn:disabled { cursor: default; }
|
| 700 |
-
.opt-btn img {
|
| 701 |
-
display: inline-block;
|
| 702 |
-
vertical-align: middle;
|
| 703 |
-
max-width: 130px;
|
| 704 |
-
max-height: 80px;
|
| 705 |
-
height: auto;
|
| 706 |
-
border-radius: 6px;
|
| 707 |
-
object-fit: contain;
|
| 708 |
-
background: #ffffff;
|
| 709 |
-
padding: 3px;
|
| 710 |
-
margin: 2px 0;
|
| 711 |
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
| 712 |
-
}
|
| 713 |
-
.opt-btn .opt-tag {
|
| 714 |
-
display: inline-flex;
|
| 715 |
-
align-items: center;
|
| 716 |
-
justify-content: center;
|
| 717 |
-
width: 28px;
|
| 718 |
-
height: 28px;
|
| 719 |
-
border-radius: 8px;
|
| 720 |
-
flex-shrink: 0;
|
| 721 |
-
font-size: 13px;
|
| 722 |
-
font-weight: 900;
|
| 723 |
-
color: #fef3c7;
|
| 724 |
-
background: rgba(0,0,0,0.3);
|
| 725 |
-
border: 1px solid rgba(255,255,255,0.25);
|
| 726 |
-
}
|
| 727 |
-
.opt-btn.correct {
|
| 728 |
-
background: rgba(16, 185, 129, 0.38);
|
| 729 |
-
border-color: #6ee7b7;
|
| 730 |
-
box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
|
| 731 |
-
}
|
| 732 |
-
.opt-btn.wrong {
|
| 733 |
-
background: rgba(239, 68, 68, 0.38);
|
| 734 |
-
border-color: #fca5a5;
|
| 735 |
-
}
|
| 736 |
-
.opt-btn.dim { opacity: 0.5; }
|
| 737 |
-
.requeue-notice {
|
| 738 |
-
position: relative;
|
| 739 |
-
margin-top: 10px;
|
| 740 |
-
padding: 7px 12px;
|
| 741 |
-
border-radius: 10px;
|
| 742 |
-
font-size: 12px;
|
| 743 |
-
font-weight: 700;
|
| 744 |
-
color: #fde68a;
|
| 745 |
-
background: rgba(245, 158, 11, 0.18);
|
| 746 |
-
border: 1px solid rgba(245, 196, 81, 0.45);
|
| 747 |
-
}
|
| 748 |
-
|
| 749 |
-
/* ========== 結算彈窗 ========== */
|
| 750 |
-
.modal-overlay {
|
| 751 |
-
position: fixed;
|
| 752 |
-
inset: 0;
|
| 753 |
-
z-index: 2000;
|
| 754 |
-
display: flex;
|
| 755 |
-
align-items: center;
|
| 756 |
-
justify-content: center;
|
| 757 |
-
padding: 16px;
|
| 758 |
-
background: rgba(0,0,0,0.6);
|
| 759 |
-
backdrop-filter: blur(6px);
|
| 760 |
-
}
|
| 761 |
-
.modal-card {
|
| 762 |
-
width: 100%;
|
| 763 |
-
max-width: 440px;
|
| 764 |
-
text-align: center;
|
| 765 |
-
padding: 24px;
|
| 766 |
-
border-radius: 22px;
|
| 767 |
-
background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
|
| 768 |
-
backdrop-filter: blur(20px);
|
| 769 |
-
-webkit-backdrop-filter: blur(20px);
|
| 770 |
-
border: 1px solid var(--glass-line);
|
| 771 |
-
box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
|
| 772 |
-
animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 773 |
-
}
|
| 774 |
-
.modal-card h2 { margin: 6px 0 14px; font-size: 22px; color: var(--gold); letter-spacing: 2px; }
|
| 775 |
-
.res-rows {
|
| 776 |
-
text-align: left;
|
| 777 |
-
font-size: 14px;
|
| 778 |
-
background: rgba(0,0,0,0.25);
|
| 779 |
-
border: 1px solid rgba(255,255,255,0.12);
|
| 780 |
-
border-radius: 14px;
|
| 781 |
-
padding: 12px 16px;
|
| 782 |
-
margin-bottom: 14px;
|
| 783 |
-
}
|
| 784 |
-
.res-rows div { display: flex; justify-content: space-between; padding: 4px 0; }
|
| 785 |
-
.tail-kill {
|
| 786 |
-
margin-bottom: 14px;
|
| 787 |
-
padding: 10px;
|
| 788 |
-
border-radius: 12px;
|
| 789 |
-
font-weight: 800;
|
| 790 |
-
color: #fecaca;
|
| 791 |
-
background: rgba(239, 68, 68, 0.2);
|
| 792 |
-
border: 1px solid rgba(252, 165, 165, 0.5);
|
| 793 |
-
}
|
| 794 |
-
.btn-modal {
|
| 795 |
-
width: 100%;
|
| 796 |
-
min-height: 48px;
|
| 797 |
-
border: none;
|
| 798 |
-
border-radius: 14px;
|
| 799 |
-
font-family: inherit;
|
| 800 |
-
font-size: 16px;
|
| 801 |
-
font-weight: 900;
|
| 802 |
-
letter-spacing: 2px;
|
| 803 |
-
color: #2a1500;
|
| 804 |
-
cursor: pointer;
|
| 805 |
-
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 806 |
-
transition: transform 0.15s;
|
| 807 |
-
}
|
| 808 |
-
.btn-modal:hover { transform: translateY(-2px); }
|
| 809 |
-
|
| 810 |
-
/* ========== 手機版 ========== */
|
| 811 |
-
@media (max-width: 760px) {
|
| 812 |
-
.intro-card { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
|
| 813 |
-
.intro-portrait { min-height: 240px; }
|
| 814 |
-
.intro-portrait img { max-height: 260px; }
|
| 815 |
-
.boss-title { font-size: 30px; }
|
| 816 |
-
.reward-list { grid-template-columns: 1fr; }
|
| 817 |
-
html, body { overflow: auto; }
|
| 818 |
-
#screenIntro { position: absolute; min-height: 100%; }
|
| 819 |
-
.hud-name { font-size: 16px; }
|
| 820 |
-
.q-stem { font-size: 15px; }
|
| 821 |
-
.options-grid { grid-template-columns: 1fr; gap: 8px; }
|
| 822 |
-
.opt-btn { min-height: 46px; font-size: 14px; }
|
| 823 |
-
.boss-sprite { margin-bottom: -20px; }
|
| 824 |
-
.dmg-crit { font-size: 44px; }
|
| 825 |
-
}
|
| 826 |
-
|
| 827 |
-
/* ========== 版本更新公告模版 ========== */
|
| 828 |
-
.patch-modal-wrap {
|
| 829 |
-
position: relative;
|
| 830 |
-
border-radius: 20px;
|
| 831 |
-
overflow: hidden;
|
| 832 |
-
border: 1.5px solid rgba(245, 196, 81, 0.45);
|
| 833 |
-
box-shadow: 0 25px 70px rgba(0,0,0,0.8), 0 0 40px rgba(168, 85, 247, 0.25);
|
| 834 |
-
background: #090a10;
|
| 835 |
-
max-width: 520px;
|
| 836 |
-
width: 100%;
|
| 837 |
-
color: #fff;
|
| 838 |
-
animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 839 |
-
text-align: left;
|
| 840 |
-
}
|
| 841 |
-
.patch-stage {
|
| 842 |
-
position: relative;
|
| 843 |
-
width: 100%;
|
| 844 |
-
height: 220px;
|
| 845 |
-
overflow: hidden;
|
| 846 |
-
background: url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 847 |
-
display: flex;
|
| 848 |
-
align-items: flex-end;
|
| 849 |
-
justify-content: center;
|
| 850 |
-
}
|
| 851 |
-
.patch-stage::after {
|
| 852 |
-
content: '';
|
| 853 |
-
position: absolute;
|
| 854 |
-
inset: 0;
|
| 855 |
-
background: linear-gradient(180deg, rgba(9, 10, 16, 0.15) 0%, rgba(9, 10, 16, 0.95) 90%);
|
| 856 |
-
pointer-events: none;
|
| 857 |
-
}
|
| 858 |
-
.patch-silhouette-wrap {
|
| 859 |
-
position: relative;
|
| 860 |
-
z-index: 2;
|
| 861 |
-
width: 100%;
|
| 862 |
-
height: 100%;
|
| 863 |
-
display: flex;
|
| 864 |
-
align-items: flex-end;
|
| 865 |
-
justify-content: center;
|
| 866 |
-
}
|
| 867 |
-
.patch-silhouette-box {
|
| 868 |
-
position: relative;
|
| 869 |
-
display: inline-block;
|
| 870 |
-
line-height: 0;
|
| 871 |
-
animation: silhouettePulse 3.5s ease-in-out infinite alternate;
|
| 872 |
-
transform-origin: center bottom;
|
| 873 |
-
}
|
| 874 |
-
.patch-silhouette-img.is-silhouette {
|
| 875 |
-
height: 200px;
|
| 876 |
-
width: 200px;
|
| 877 |
-
object-fit: contain;
|
| 878 |
-
filter: brightness(0) drop-shadow(0 0 16px rgba(245, 196, 81, 0.95)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.8));
|
| 879 |
-
display: block;
|
| 880 |
-
}
|
| 881 |
-
@keyframes silhouettePulse {
|
| 882 |
-
0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 12px rgba(245, 196, 81, 0.7)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)); }
|
| 883 |
-
100% { transform: scale(1.025) translateY(-4px); filter: drop-shadow(0 0 22px rgba(245, 196, 81, 1)) drop-shadow(0 0 45px rgba(239, 68, 68, 0.75)); }
|
| 884 |
-
}
|
| 885 |
-
.silhouette-eye {
|
| 886 |
-
position: absolute;
|
| 887 |
-
border-radius: 50%;
|
| 888 |
-
background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%);
|
| 889 |
-
box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444;
|
| 890 |
-
z-index: 5;
|
| 891 |
-
pointer-events: none;
|
| 892 |
-
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg));
|
| 893 |
-
transform-origin: center center;
|
| 894 |
-
animation: eyeBlink 4s infinite ease-in-out;
|
| 895 |
-
}
|
| 896 |
-
.eye-left {
|
| 897 |
-
left: var(--eye-l-x, 24.5%);
|
| 898 |
-
top: var(--eye-l-y, 48.1%);
|
| 899 |
-
width: var(--eye-l-w, 9px);
|
| 900 |
-
height: var(--eye-l-h, 6px);
|
| 901 |
-
--eye-rot: var(--eye-l-rot, 14deg);
|
| 902 |
-
}
|
| 903 |
-
.eye-right {
|
| 904 |
-
left: var(--eye-r-x, 37.7%);
|
| 905 |
-
top: var(--eye-r-y, 44.5%);
|
| 906 |
-
width: var(--eye-r-w, 11px);
|
| 907 |
-
height: var(--eye-r-h, 8px);
|
| 908 |
-
--eye-rot: var(--eye-r-rot, -6deg);
|
| 909 |
-
}
|
| 910 |
-
@keyframes eyeBlink {
|
| 911 |
-
0%, 90%, 100% {
|
| 912 |
-
opacity: 1;
|
| 913 |
-
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 1);
|
| 914 |
-
}
|
| 915 |
-
93%, 95% {
|
| 916 |
-
opacity: 0.15;
|
| 917 |
-
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 0.1);
|
| 918 |
-
}
|
| 919 |
-
}
|
| 920 |
-
|
| 921 |
-
/* 眼睛定位與校準工具 (Eyes Calibrator) 專屬樣式 */
|
| 922 |
-
.calibrator-modal {
|
| 923 |
-
width: 94%;
|
| 924 |
-
max-width: 820px;
|
| 925 |
-
max-height: 92vh;
|
| 926 |
-
background: #0f172a;
|
| 927 |
-
border: 1px solid rgba(245, 196, 81, 0.4);
|
| 928 |
-
border-radius: 18px;
|
| 929 |
-
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 196, 81, 0.2);
|
| 930 |
-
display: flex;
|
| 931 |
-
flex-direction: column;
|
| 932 |
-
overflow: hidden;
|
| 933 |
-
animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
| 934 |
-
}
|
| 935 |
-
.calibrator-header {
|
| 936 |
-
padding: 14px 20px;
|
| 937 |
-
background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
|
| 938 |
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 939 |
-
display: flex;
|
| 940 |
-
justify-content: space-between;
|
| 941 |
-
align-items: center;
|
| 942 |
-
}
|
| 943 |
-
.calibrator-header h3 {
|
| 944 |
-
margin: 0;
|
| 945 |
-
font-size: 16px;
|
| 946 |
-
color: #fde68a;
|
| 947 |
-
display: flex;
|
| 948 |
-
align-items: center;
|
| 949 |
-
gap: 8px;
|
| 950 |
-
}
|
| 951 |
-
.calibrator-body {
|
| 952 |
-
padding: 16px;
|
| 953 |
-
overflow-y: auto;
|
| 954 |
-
display: grid;
|
| 955 |
-
grid-template-columns: 290px 1fr;
|
| 956 |
-
gap: 20px;
|
| 957 |
-
}
|
| 958 |
-
@media (max-width: 720px) {
|
| 959 |
-
.calibrator-body {
|
| 960 |
-
grid-template-columns: 1fr;
|
| 961 |
-
}
|
| 962 |
-
}
|
| 963 |
-
.calibrator-preview-col {
|
| 964 |
-
display: flex;
|
| 965 |
-
flex-direction: column;
|
| 966 |
-
align-items: center;
|
| 967 |
-
gap: 12px;
|
| 968 |
-
}
|
| 969 |
-
.calibrator-stage-wrap {
|
| 970 |
-
width: 270px;
|
| 971 |
-
height: 270px;
|
| 972 |
-
background: radial-gradient(circle, #1e293b 0%, #090d16 100%);
|
| 973 |
-
border: 2px dashed rgba(245, 196, 81, 0.35);
|
| 974 |
-
border-radius: 14px;
|
| 975 |
-
position: relative;
|
| 976 |
-
overflow: hidden;
|
| 977 |
-
display: flex;
|
| 978 |
-
align-items: center;
|
| 979 |
-
justify-content: center;
|
| 980 |
-
user-select: none;
|
| 981 |
-
}
|
| 982 |
-
.cal-underlay-img {
|
| 983 |
-
position: absolute;
|
| 984 |
-
width: 250px;
|
| 985 |
-
height: 250px;
|
| 986 |
-
object-fit: contain;
|
| 987 |
-
pointer-events: none;
|
| 988 |
-
transition: opacity 0.2s ease;
|
| 989 |
-
}
|
| 990 |
-
.cal-silhouette-img {
|
| 991 |
-
position: absolute;
|
| 992 |
-
width: 250px;
|
| 993 |
-
height: 250px;
|
| 994 |
-
object-fit: contain;
|
| 995 |
-
filter: brightness(0) drop-shadow(0 0 12px rgba(245, 196, 81, 0.9)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.7));
|
| 996 |
-
pointer-events: none;
|
| 997 |
-
transition: opacity 0.2s ease;
|
| 998 |
-
}
|
| 999 |
-
.cal-box {
|
| 1000 |
-
width: 250px;
|
| 1001 |
-
height: 250px;
|
| 1002 |
-
position: relative;
|
| 1003 |
-
}
|
| 1004 |
-
.cal-eye {
|
| 1005 |
-
position: absolute;
|
| 1006 |
-
border-radius: 50%;
|
| 1007 |
-
background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%);
|
| 1008 |
-
box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444;
|
| 1009 |
-
pointer-events: none;
|
| 1010 |
-
z-index: 10;
|
| 1011 |
-
transform: translate(-50%, -50%);
|
| 1012 |
-
}
|
| 1013 |
-
/* 拖曳握把 */
|
| 1014 |
-
.cal-handle {
|
| 1015 |
-
position: absolute;
|
| 1016 |
-
width: 24px;
|
| 1017 |
-
height: 24px;
|
| 1018 |
-
border-radius: 50%;
|
| 1019 |
-
border: 2px solid #fff;
|
| 1020 |
-
transform: translate(-50%, -50%);
|
| 1021 |
-
cursor: grab;
|
| 1022 |
-
z-index: 20;
|
| 1023 |
-
display: flex;
|
| 1024 |
-
align-items: center;
|
| 1025 |
-
justify-content: center;
|
| 1026 |
-
font-size: 11px;
|
| 1027 |
-
font-weight: 900;
|
| 1028 |
-
color: #fff;
|
| 1029 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.8);
|
| 1030 |
-
touch-action: none;
|
| 1031 |
-
}
|
| 1032 |
-
.cal-handle:active {
|
| 1033 |
-
cursor: grabbing;
|
| 1034 |
-
transform: translate(-50%, -50%) scale(1.15);
|
| 1035 |
-
}
|
| 1036 |
-
.cal-handle.handle-l {
|
| 1037 |
-
background: rgba(16, 185, 129, 0.85);
|
| 1038 |
-
box-shadow: 0 0 10px #10b981;
|
| 1039 |
-
}
|
| 1040 |
-
.cal-handle.handle-r {
|
| 1041 |
-
background: rgba(14, 165, 233, 0.85);
|
| 1042 |
-
box-shadow: 0 0 10px #0ea5e9;
|
| 1043 |
-
}
|
| 1044 |
-
.cal-mode-pills {
|
| 1045 |
-
display: flex;
|
| 1046 |
-
gap: 6px;
|
| 1047 |
-
width: 100%;
|
| 1048 |
-
justify-content: center;
|
| 1049 |
-
}
|
| 1050 |
-
.cal-pill-btn {
|
| 1051 |
-
padding: 5px 10px;
|
| 1052 |
-
font-size: 12px;
|
| 1053 |
-
background: rgba(255, 255, 255, 0.08);
|
| 1054 |
-
border: 1px solid rgba(255, 255, 255, 0.15);
|
| 1055 |
-
color: #cbd5e1;
|
| 1056 |
-
border-radius: 6px;
|
| 1057 |
-
cursor: pointer;
|
| 1058 |
-
font-weight: 700;
|
| 1059 |
-
transition: all 0.15s;
|
| 1060 |
-
}
|
| 1061 |
-
.cal-pill-btn.active {
|
| 1062 |
-
background: #d97706;
|
| 1063 |
-
border-color: #f59e0b;
|
| 1064 |
-
color: #fff;
|
| 1065 |
-
box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
|
| 1066 |
-
}
|
| 1067 |
-
.cal-controls-col {
|
| 1068 |
-
display: flex;
|
| 1069 |
-
flex-direction: column;
|
| 1070 |
-
gap: 12px;
|
| 1071 |
-
}
|
| 1072 |
-
.cal-card-group {
|
| 1073 |
-
display: grid;
|
| 1074 |
-
grid-template-columns: 1fr 1fr;
|
| 1075 |
-
gap: 10px;
|
| 1076 |
-
}
|
| 1077 |
-
.cal-eye-card {
|
| 1078 |
-
background: rgba(255, 255, 255, 0.04);
|
| 1079 |
-
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 1080 |
-
border-radius: 10px;
|
| 1081 |
-
padding: 10px;
|
| 1082 |
-
}
|
| 1083 |
-
.cal-card-title {
|
| 1084 |
-
font-size: 13px;
|
| 1085 |
-
font-weight: 800;
|
| 1086 |
-
margin-bottom: 8px;
|
| 1087 |
-
display: flex;
|
| 1088 |
-
align-items: center;
|
| 1089 |
-
gap: 6px;
|
| 1090 |
-
}
|
| 1091 |
-
.cal-field {
|
| 1092 |
-
margin-bottom: 6px;
|
| 1093 |
-
font-size: 12px;
|
| 1094 |
-
color: #94a3b8;
|
| 1095 |
-
}
|
| 1096 |
-
.cal-field label {
|
| 1097 |
-
display: flex;
|
| 1098 |
-
justify-content: space-between;
|
| 1099 |
-
margin-bottom: 2px;
|
| 1100 |
-
}
|
| 1101 |
-
.cal-field label b {
|
| 1102 |
-
color: #fde68a;
|
| 1103 |
-
}
|
| 1104 |
-
.cal-field input[type="range"] {
|
| 1105 |
-
width: 100%;
|
| 1106 |
-
accent-color: #f59e0b;
|
| 1107 |
-
cursor: pointer;
|
| 1108 |
-
}
|
| 1109 |
-
.cal-json-box {
|
| 1110 |
-
background: #020617;
|
| 1111 |
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 1112 |
-
border-radius: 8px;
|
| 1113 |
-
padding: 8px 12px;
|
| 1114 |
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
| 1115 |
-
font-size: 11px;
|
| 1116 |
-
color: #4ade80;
|
| 1117 |
-
max-height: 120px;
|
| 1118 |
-
overflow-y: auto;
|
| 1119 |
-
white-space: pre-wrap;
|
| 1120 |
-
word-break: break-all;
|
| 1121 |
-
}
|
| 1122 |
-
.cal-actions {
|
| 1123 |
-
display: flex;
|
| 1124 |
-
gap: 8px;
|
| 1125 |
-
flex-wrap: wrap;
|
| 1126 |
-
}
|
| 1127 |
-
.cal-act-btn {
|
| 1128 |
-
flex: 1;
|
| 1129 |
-
padding: 8px 12px;
|
| 1130 |
-
font-size: 12px;
|
| 1131 |
-
font-weight: 800;
|
| 1132 |
-
border-radius: 8px;
|
| 1133 |
-
border: none;
|
| 1134 |
-
cursor: pointer;
|
| 1135 |
-
display: inline-flex;
|
| 1136 |
-
align-items: center;
|
| 1137 |
-
justify-content: center;
|
| 1138 |
-
gap: 6px;
|
| 1139 |
-
transition: transform 0.15s, box-shadow 0.15s;
|
| 1140 |
-
}
|
| 1141 |
-
.cal-btn-copy {
|
| 1142 |
-
background: linear-gradient(135deg, #15803d, #22c55e);
|
| 1143 |
-
color: #fff;
|
| 1144 |
-
}
|
| 1145 |
-
.cal-btn-copy:hover {
|
| 1146 |
-
box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
|
| 1147 |
-
transform: translateY(-1px);
|
| 1148 |
-
}
|
| 1149 |
-
.cal-btn-apply {
|
| 1150 |
-
background: linear-gradient(135deg, #b45309, #f59e0b);
|
| 1151 |
-
color: #fff;
|
| 1152 |
-
}
|
| 1153 |
-
.cal-btn-apply:hover {
|
| 1154 |
-
box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
|
| 1155 |
-
transform: translateY(-1px);
|
| 1156 |
-
}
|
| 1157 |
-
.cal-btn-reset {
|
| 1158 |
-
background: rgba(255, 255, 255, 0.1);
|
| 1159 |
-
color: #cbd5e1;
|
| 1160 |
-
flex: 0 0 auto;
|
| 1161 |
-
}
|
| 1162 |
-
.patch-body {
|
| 1163 |
-
position: relative;
|
| 1164 |
-
z-index: 3;
|
| 1165 |
-
padding: 0 20px 20px;
|
| 1166 |
-
background: #090a10;
|
| 1167 |
-
}
|
| 1168 |
-
.patch-badge-pill {
|
| 1169 |
-
display: inline-flex;
|
| 1170 |
-
align-items: center;
|
| 1171 |
-
gap: 6px;
|
| 1172 |
-
background: linear-gradient(135deg, #b45309, #d97706);
|
| 1173 |
-
color: #fff;
|
| 1174 |
-
font-size: 11px;
|
| 1175 |
-
font-weight: 900;
|
| 1176 |
-
padding: 3px 12px;
|
| 1177 |
-
border-radius: 99px;
|
| 1178 |
-
letter-spacing: 1px;
|
| 1179 |
-
box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
|
| 1180 |
-
}
|
| 1181 |
-
.patch-title {
|
| 1182 |
-
margin: 6px 0 4px 0;
|
| 1183 |
-
font-size: 22px;
|
| 1184 |
-
font-weight: 900;
|
| 1185 |
-
letter-spacing: 2px;
|
| 1186 |
-
background: linear-gradient(180deg, #fff 20%, #fde68a 65%, #f59e0b 100%);
|
| 1187 |
-
-webkit-background-clip: text;
|
| 1188 |
-
background-clip: text;
|
| 1189 |
-
-webkit-text-fill-color: transparent;
|
| 1190 |
-
}
|
| 1191 |
-
.patch-subtitle {
|
| 1192 |
-
margin: 0 0 12px 0;
|
| 1193 |
-
font-size: 13px;
|
| 1194 |
-
font-weight: 700;
|
| 1195 |
-
color: #fca5a5;
|
| 1196 |
-
letter-spacing: 0.5px;
|
| 1197 |
-
}
|
| 1198 |
-
.patch-lore-box {
|
| 1199 |
-
background: rgba(255, 255, 255, 0.05);
|
| 1200 |
-
border: 1px solid rgba(245, 196, 81, 0.25);
|
| 1201 |
-
border-left: 4px solid #f59e0b;
|
| 1202 |
-
border-radius: 12px;
|
| 1203 |
-
padding: 10px 14px;
|
| 1204 |
-
font-size: 13px;
|
| 1205 |
-
line-height: 1.65;
|
| 1206 |
-
color: #e2e8f0;
|
| 1207 |
-
margin-bottom: 12px;
|
| 1208 |
-
}
|
| 1209 |
-
.patch-features-grid {
|
| 1210 |
-
display: flex;
|
| 1211 |
-
flex-direction: column;
|
| 1212 |
-
gap: 8px;
|
| 1213 |
-
margin-bottom: 16px;
|
| 1214 |
-
}
|
| 1215 |
-
.patch-feat-item {
|
| 1216 |
-
display: flex;
|
| 1217 |
-
align-items: flex-start;
|
| 1218 |
-
gap: 10px;
|
| 1219 |
-
background: rgba(255, 255, 255, 0.04);
|
| 1220 |
-
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 1221 |
-
border-radius: 10px;
|
| 1222 |
-
padding: 8px 12px;
|
| 1223 |
-
}
|
| 1224 |
-
.patch-feat-icon {
|
| 1225 |
-
font-size: 18px;
|
| 1226 |
-
line-height: 1;
|
| 1227 |
-
flex-shrink: 0;
|
| 1228 |
-
margin-top: 2px;
|
| 1229 |
-
}
|
| 1230 |
-
.patch-feat-tit {
|
| 1231 |
-
font-size: 13px;
|
| 1232 |
-
font-weight: 800;
|
| 1233 |
-
color: #fef3c7;
|
| 1234 |
-
}
|
| 1235 |
-
.patch-feat-sub {
|
| 1236 |
-
font-size: 11px;
|
| 1237 |
-
color: #cbd5e1;
|
| 1238 |
-
margin-top: 2px;
|
| 1239 |
-
line-height: 1.35;
|
| 1240 |
-
}
|
| 1241 |
-
.patch-btn-confirm {
|
| 1242 |
-
width: 100%;
|
| 1243 |
-
min-height: 46px;
|
| 1244 |
-
border: none;
|
| 1245 |
-
border-radius: 14px;
|
| 1246 |
-
font-family: inherit;
|
| 1247 |
-
font-size: 16px;
|
| 1248 |
-
font-weight: 900;
|
| 1249 |
-
letter-spacing: 2px;
|
| 1250 |
-
color: #2a1500;
|
| 1251 |
-
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 1252 |
-
cursor: pointer;
|
| 1253 |
-
box-shadow: 0 8px 24px rgba(245, 179, 35, 0.4);
|
| 1254 |
-
transition: transform 0.15s, box-shadow 0.15s;
|
| 1255 |
-
}
|
| 1256 |
-
.patch-btn-confirm:hover {
|
| 1257 |
-
transform: translateY(-2px);
|
| 1258 |
-
box-shadow: 0 12px 30px rgba(245, 179, 35, 0.55);
|
| 1259 |
-
}
|
| 1260 |
-
|
| 1261 |
-
/* =====================================================
|
| 1262 |
-
大地圖沙盤呈現預覽模態視窗
|
| 1263 |
-
===================================================== */
|
| 1264 |
-
.map-preview-modal {
|
| 1265 |
-
width: 96vw;
|
| 1266 |
-
max-width: 1280px;
|
| 1267 |
-
height: 92vh;
|
| 1268 |
-
max-height: 840px;
|
| 1269 |
-
background: #0f121d;
|
| 1270 |
-
border: 1px solid rgba(245, 196, 81, 0.45);
|
| 1271 |
-
border-radius: 20px;
|
| 1272 |
-
display: flex;
|
| 1273 |
-
flex-direction: column;
|
| 1274 |
-
overflow: hidden;
|
| 1275 |
-
box-shadow: 0 30px 90px rgba(0,0,0,0.9);
|
| 1276 |
-
animation: cardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
|
| 1277 |
-
}
|
| 1278 |
-
.map-preview-header {
|
| 1279 |
-
padding: 12px 20px;
|
| 1280 |
-
background: #161a29;
|
| 1281 |
-
border-bottom: 1px solid rgba(255,255,255,0.1);
|
| 1282 |
-
display: flex;
|
| 1283 |
-
align-items: center;
|
| 1284 |
-
justify-content: space-between;
|
| 1285 |
-
gap: 12px;
|
| 1286 |
-
flex-wrap: wrap;
|
| 1287 |
-
}
|
| 1288 |
-
.map-preview-body {
|
| 1289 |
-
flex: 1;
|
| 1290 |
-
position: relative;
|
| 1291 |
-
overflow: hidden;
|
| 1292 |
-
display: flex;
|
| 1293 |
-
align-items: center;
|
| 1294 |
-
justify-content: center;
|
| 1295 |
-
background: #faede1;
|
| 1296 |
-
padding: 8px;
|
| 1297 |
-
}
|
| 1298 |
-
.sandbox-wrap {
|
| 1299 |
-
position: relative;
|
| 1300 |
-
width: 100%;
|
| 1301 |
-
height: 100%;
|
| 1302 |
-
max-height: 100%;
|
| 1303 |
-
aspect-ratio: 16 / 9;
|
| 1304 |
-
border-radius: 14px;
|
| 1305 |
-
overflow: hidden;
|
| 1306 |
-
box-shadow: 0 16px 40px rgba(0,0,0,0.35);
|
| 1307 |
-
container-type: inline-size;
|
| 1308 |
-
user-select: none;
|
| 1309 |
-
}
|
| 1310 |
-
.sandbox-bg {
|
| 1311 |
-
width: 100%;
|
| 1312 |
-
height: 100%;
|
| 1313 |
-
object-fit: cover;
|
| 1314 |
-
display: block;
|
| 1315 |
-
pointer-events: none;
|
| 1316 |
-
}
|
| 1317 |
-
.sandbox-spots {
|
| 1318 |
-
position: absolute;
|
| 1319 |
-
inset: 0;
|
| 1320 |
-
pointer-events: none;
|
| 1321 |
-
}
|
| 1322 |
-
.sandbox-spot {
|
| 1323 |
-
position: absolute;
|
| 1324 |
-
pointer-events: auto;
|
| 1325 |
-
transform: translate(-50%, -50%);
|
| 1326 |
-
display: flex;
|
| 1327 |
-
flex-direction: column;
|
| 1328 |
-
align-items: center;
|
| 1329 |
-
gap: 2px;
|
| 1330 |
-
cursor: pointer;
|
| 1331 |
-
transition: all .25s cubic-bezier(.34,1.56,.64,1);
|
| 1332 |
-
}
|
| 1333 |
-
.sandbox-spot:hover {
|
| 1334 |
-
transform: translate(-50%, -54%) scale(1.08);
|
| 1335 |
-
z-index: 40;
|
| 1336 |
-
}
|
| 1337 |
-
.sandbox-thumb {
|
| 1338 |
-
position: relative;
|
| 1339 |
-
display: flex;
|
| 1340 |
-
align-items: center;
|
| 1341 |
-
justify-content: center;
|
| 1342 |
-
}
|
| 1343 |
-
.sandbox-thumb img {
|
| 1344 |
-
width: 100%;
|
| 1345 |
-
height: 100%;
|
| 1346 |
-
object-fit: contain;
|
| 1347 |
-
filter: drop-shadow(0 10px 18px rgba(45,30,20, 0.45));
|
| 1348 |
-
}
|
| 1349 |
-
.sandbox-label {
|
| 1350 |
-
background: rgba(255,255,255,0.92);
|
| 1351 |
-
border: 1px solid rgba(180,130,100,0.35);
|
| 1352 |
-
border-radius: 8px;
|
| 1353 |
-
padding: 3px 8px;
|
| 1354 |
-
font-size: 11px;
|
| 1355 |
-
font-weight: 800;
|
| 1356 |
-
color: #334155;
|
| 1357 |
-
white-space: nowrap;
|
| 1358 |
-
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
| 1359 |
-
text-align: center;
|
| 1360 |
-
}
|
| 1361 |
-
|
| 1362 |
-
/* 世界 Boss 沙盤微縮手辦專屬特效 */
|
| 1363 |
-
.spot-boss-wrap {
|
| 1364 |
-
position: relative;
|
| 1365 |
-
display: flex;
|
| 1366 |
-
align-items: center;
|
| 1367 |
-
justify-content: center;
|
| 1368 |
-
animation: bossHoverFloat 4.2s ease-in-out infinite;
|
| 1369 |
-
}
|
| 1370 |
-
@keyframes bossHoverFloat {
|
| 1371 |
-
0%, 100% { transform: translateY(0); }
|
| 1372 |
-
50% { transform: translateY(-8px); }
|
| 1373 |
-
}
|
| 1374 |
-
.spot-boss-aura {
|
| 1375 |
-
position: absolute; inset: -15%; border-radius: 50%; pointer-events: none; z-index: 1;
|
| 1376 |
-
background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(239, 68, 68, 0.28) 45%, transparent 72%);
|
| 1377 |
-
animation: bossAuraPulse 3.2s ease-in-out infinite alternate;
|
| 1378 |
-
}
|
| 1379 |
-
@keyframes bossAuraPulse {
|
| 1380 |
-
0% { transform: scale(0.92); opacity: 0.75; }
|
| 1381 |
-
100% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6)); }
|
| 1382 |
-
}
|
| 1383 |
-
.spot-boss-img {
|
| 1384 |
-
position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block;
|
| 1385 |
-
filter: drop-shadow(0 14px 26px rgba(40, 10, 30, 0.6)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.65));
|
| 1386 |
-
transition: all .28s cubic-bezier(.34,1.56,.64,1);
|
| 1387 |
-
}
|
| 1388 |
-
.sandbox-spot:hover .spot-boss-img {
|
| 1389 |
-
filter: drop-shadow(0 20px 36px rgba(40, 10, 30, 0.75)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.9));
|
| 1390 |
-
transform: scale(1.08);
|
| 1391 |
-
}
|
| 1392 |
-
/* 封印態 */
|
| 1393 |
-
.sandbox-spot.boss-sealed .spot-boss-aura {
|
| 1394 |
-
background: radial-gradient(circle, rgba(100, 116, 139, 0.35) 0%, rgba(15, 23, 42, 0.6) 55%, transparent 75%);
|
| 1395 |
-
}
|
| 1396 |
-
.sandbox-spot.boss-sealed .spot-boss-img {
|
| 1397 |
-
filter: brightness(0.24) contrast(1.45) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(245, 196, 81, 0.4));
|
| 1398 |
-
}
|
| 1399 |
-
.sandbox-spot.boss-sealed:hover .spot-boss-img {
|
| 1400 |
-
filter: brightness(0.35) contrast(1.4) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(245, 196, 81, 0.8));
|
| 1401 |
-
}
|
| 1402 |
-
.spot-boss-seal-ring {
|
| 1403 |
-
position: absolute; inset: 4%; border: 2px dashed rgba(245, 196, 81, 0.7);
|
| 1404 |
-
border-radius: 50%; pointer-events: none; z-index: 3;
|
| 1405 |
-
animation: sealRingRotate 18s linear infinite;
|
| 1406 |
-
box-shadow: inset 0 0 15px rgba(245, 196, 81, 0.3), 0 0 15px rgba(245, 196, 81, 0.3);
|
| 1407 |
-
}
|
| 1408 |
-
@keyframes sealRingRotate {
|
| 1409 |
-
from { transform: rotate(0deg); }
|
| 1410 |
-
to { transform: rotate(360deg); }
|
| 1411 |
-
}
|
| 1412 |
-
.spot-badge-boss {
|
| 1413 |
-
position: absolute; top: -6px; left: -8px; z-index: 6;
|
| 1414 |
-
background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff;
|
| 1415 |
-
font-size: 11px; font-weight: 900; padding: 2px 10px; border-radius: 99px;
|
| 1416 |
-
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45); border: 1.5px solid rgba(255, 255, 255, 0.9);
|
| 1417 |
-
display: flex; align-items: center; gap: 4px; white-space: nowrap;
|
| 1418 |
-
}
|
| 1419 |
-
.sandbox-spot.boss-sealed .spot-badge-boss {
|
| 1420 |
-
background: linear-gradient(135deg, #475569, #1e293b); color: #cbd5e1;
|
| 1421 |
-
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.5); border-color: rgba(245, 196, 81, 0.6);
|
| 1422 |
-
}
|
| 1423 |
-
.sandbox-spot.spot-boss .sandbox-label {
|
| 1424 |
-
background: linear-gradient(135deg, rgba(26, 16, 36, 0.95), rgba(45, 18, 30, 0.95)) !important;
|
| 1425 |
-
border: 1.5px solid rgba(245, 196, 81, 0.6) !important;
|
| 1426 |
-
color: #fde047 !important;
|
| 1427 |
-
box-shadow: 0 8px 20px rgba(20, 10, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
|
| 1428 |
-
}
|
| 1429 |
-
|
| 1430 |
-
/* ========== 平板與手機響應式適配 (解決平板看不到右上角 X、手機難滑動問題) ========== */
|
| 1431 |
-
@media (max-width: 900px) {
|
| 1432 |
-
.intro-wrap {
|
| 1433 |
-
padding: 16px 12px 40px;
|
| 1434 |
-
}
|
| 1435 |
-
.intro-card {
|
| 1436 |
-
grid-template-columns: 1fr;
|
| 1437 |
-
gap: 16px;
|
| 1438 |
-
padding: 18px;
|
| 1439 |
-
border-radius: 18px;
|
| 1440 |
-
}
|
| 1441 |
-
.btn-card-close {
|
| 1442 |
-
top: 12px;
|
| 1443 |
-
right: 12px;
|
| 1444 |
-
width: 44px;
|
| 1445 |
-
height: 44px;
|
| 1446 |
-
}
|
| 1447 |
-
.intro-portrait {
|
| 1448 |
-
min-height: 220px;
|
| 1449 |
-
max-height: 260px;
|
| 1450 |
-
}
|
| 1451 |
-
.intro-portrait img {
|
| 1452 |
-
max-height: 220px;
|
| 1453 |
-
}
|
| 1454 |
-
.boss-title {
|
| 1455 |
-
font-size: 32px;
|
| 1456 |
-
letter-spacing: 2px;
|
| 1457 |
-
}
|
| 1458 |
-
.reward-list {
|
| 1459 |
-
grid-template-columns: 1fr 1fr;
|
| 1460 |
-
gap: 6px;
|
| 1461 |
-
}
|
| 1462 |
-
.reward-item {
|
| 1463 |
-
padding: 8px 10px;
|
| 1464 |
-
}
|
| 1465 |
-
.btn-start {
|
| 1466 |
-
min-height: 52px;
|
| 1467 |
-
font-size: 18px;
|
| 1468 |
-
}
|
| 1469 |
-
}
|
| 1470 |
-
|
| 1471 |
-
@media (max-height: 820px) {
|
| 1472 |
-
.intro-wrap {
|
| 1473 |
-
padding: 12px 14px 30px;
|
| 1474 |
-
}
|
| 1475 |
-
.intro-card {
|
| 1476 |
-
gap: 18px;
|
| 1477 |
-
padding: 18px 22px;
|
| 1478 |
-
}
|
| 1479 |
-
.intro-portrait {
|
| 1480 |
-
min-height: 280px;
|
| 1481 |
-
}
|
| 1482 |
-
.intro-portrait img {
|
| 1483 |
-
max-height: 280px;
|
| 1484 |
-
}
|
| 1485 |
-
.boss-title {
|
| 1486 |
-
font-size: 30px;
|
| 1487 |
-
letter-spacing: 2px;
|
| 1488 |
-
}
|
| 1489 |
-
.boss-desc {
|
| 1490 |
-
font-size: 13px;
|
| 1491 |
-
line-height: 1.6;
|
| 1492 |
-
}
|
| 1493 |
-
.reward-box {
|
| 1494 |
-
padding: 10px 14px;
|
| 1495 |
-
}
|
| 1496 |
-
.btn-start {
|
| 1497 |
-
min-height: 50px;
|
| 1498 |
-
font-size: 18px;
|
| 1499 |
-
}
|
| 1500 |
-
}
|
| 1501 |
-
|
| 1502 |
-
@media (max-width: 600px) {
|
| 1503 |
-
.reward-list {
|
| 1504 |
-
grid-template-columns: 1fr;
|
| 1505 |
-
}
|
| 1506 |
-
.boss-title {
|
| 1507 |
-
font-size: 26px;
|
| 1508 |
-
}
|
| 1509 |
-
}
|
| 1510 |
-
</style>
|
| 1511 |
</head>
|
| 1512 |
<body>
|
| 1513 |
|
|
@@ -3187,7 +1692,7 @@
|
|
| 3187 |
console.error('[boss] 學生資料載入失敗:', err);
|
| 3188 |
const lbEl = $('leaderboardList');
|
| 3189 |
if (lbEl) {
|
| 3190 |
-
lbEl.innerHTML = `<div style="color:#fca5a5; text-align:center; padding:8px;">讀取戰況連線逾時,請點擊 <a href="
|
| 3191 |
}
|
| 3192 |
}
|
| 3193 |
});
|
|
|
|
| 12 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 13 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 14 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
| 15 |
+
<link rel="stylesheet" href="css/boss.css?v=20261031_v1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
|
|
|
|
| 1692 |
console.error('[boss] 學生資料載入失敗:', err);
|
| 1693 |
const lbEl = $('leaderboardList');
|
| 1694 |
if (lbEl) {
|
| 1695 |
+
lbEl.innerHTML = `<div style="color:#fca5a5; text-align:center; padding:8px;">讀取戰況連線逾時,請點擊 <a href="javascript:location.reload()" style="color:#fde047; font-weight:800;">重新整理</a> 再試一次</div>`;
|
| 1696 |
}
|
| 1697 |
}
|
| 1698 |
});
|
boss.html
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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able=no">
|
| 6 |
+
<title>世界 Boss 決戰殿堂|爭霸天下</title>
|
| 7 |
+
<meta name="description" content="全班共抗太古凶神!破除錯題迷障、連擊合力封印,奪取神獸寶庫與至高榮譽稱號!">
|
| 8 |
+
<link rel="stylesheet" href="css/base.css?v=20261031_v1">
|
| 9 |
+
<link rel="stylesheet" href="css/boss.css?v=20261031_v1">
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap" rel="stylesheet">
|
| 13 |
+
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 14 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 15 |
+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
| 16 |
+
</head>
|
| 17 |
+
<body>
|
| 18 |
+
|
| 19 |
+
<div class="screen-flash" id="flashOverlay"></div>
|
| 20 |
+
|
| 21 |
+
<!-- ===================== 第一頁:Boss 介紹 ===================== -->
|
| 22 |
+
<section class="scene" id="screenIntro">
|
| 23 |
+
<div class="scene-bg" id="introSceneBg"></div>
|
| 24 |
+
<div class="intro-wrap">
|
| 25 |
+
<div class="intro-card" style="position: relative;">
|
| 26 |
+
<button class="btn-card-close" id="btnExitToMapTop" type="button" title="返回九州大地圖">✕</button>
|
| 27 |
+
<div class="intro-portrait">
|
| 28 |
+
<img id="introBossImg" src="assets/boss_taotie.png" alt="上古・饕餮">
|
| 29 |
+
</div>
|
| 30 |
+
|
| 31 |
+
<div class="intro-info">
|
| 32 |
+
<h1 class="boss-title" id="introBossTitle">上古・饕餮</h1>
|
| 33 |
+
<div id="introBossSubtitle" style="display:inline-flex; align-items:center; gap:6px; background:rgba(245,158,11,0.15); border:1px solid rgba(245,158,11,0.4); border-radius:6px; padding:3px 10px; font-size:12px; color:#fde68a; font-weight:700; margin-bottom:10px;">
|
| 34 |
+
🏛️ 門檻:完成第三單元(51-75)軍機策驗 | ⏳ 實裝破印時間:10/27(二)
|
| 35 |
+
</div>
|
| 36 |
+
<p class="boss-desc" id="introBossDesc">
|
| 37 |
+
貪食萬物的太古凶獸,自封印中甦醒,盤踞在雲海之上的八卦古壇。
|
| 38 |
+
牠以學子們的「錯題」為食——答錯越多,牠就越強大。
|
| 39 |
+
唯有全班齊心,親手克服自己的弱點題,才能將牠重新封印!
|
| 40 |
+
</p>
|
| 41 |
+
|
| 42 |
+
<div class="class-progress">
|
| 43 |
+
<div class="class-progress-row">
|
| 44 |
+
<span id="introClassTitle">全班討伐進度</span>
|
| 45 |
+
<span id="introHpText">500 / 500 HP</span>
|
| 46 |
+
</div>
|
| 47 |
+
<div class="mini-hp"><div id="introHpBar" style="width:100%"></div></div>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<!-- 終結一擊英雄榮譽橫幅 (擊破後顯示) -->
|
| 51 |
+
<div id="killerBanner" class="killer-banner hidden" style="background:linear-gradient(90deg, rgba(239,68,68,0.25), rgba(245,158,11,0.25)); border:1.5px solid #f59e0b; border-radius:12px; padding:10px 14px; display:flex; align-items:center; gap:12px; box-shadow:0 0 15px rgba(245,158,11,0.3);">
|
| 52 |
+
<span style="font-size:26px; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.8));">👑</span>
|
| 53 |
+
<div style="flex:1;">
|
| 54 |
+
<div style="font-size:11px; color:#fde68a; font-weight:800; letter-spacing:1px;">⚡ 終結一擊英雄・斬魔將軍</div>
|
| 55 |
+
<div id="killerName" style="font-size:15px; font-weight:900; color:#fff; text-shadow:0 2px 4px rgba(0,0,0,0.8);">座號 — 英雄同袍</div>
|
| 56 |
+
</div>
|
| 57 |
+
<span class="badge" style="background:#dc2626; color:#fff; font-size:11px; font-weight:800; border-radius:6px; padding:2px 8px;">首破封印</span>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<!-- 全班傷害功勳金榜 -->
|
| 61 |
+
<div class="leaderboard-box" style="background:rgba(0,0,0,0.35); border:1px solid rgba(245,196,81,0.25); border-radius:14px; padding:12px 14px;">
|
| 62 |
+
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:13px; font-weight:800; color:var(--gold);">
|
| 63 |
+
<span style="display:flex; align-items:center; gap:6px;">🏆 <span>班級討伐戰功金榜</span></span>
|
| 64 |
+
<span id="myRankSummary" style="font-size:11px; color:#cbd5e1; font-weight:600;">我的傷害:0 HP</span>
|
| 65 |
+
</div>
|
| 66 |
+
<div id="leaderboardList" style="display:flex; flex-direction:column; gap:5px; font-size:12px; max-height:120px; overflow-y:auto; padding-right:4px;">
|
| 67 |
+
<div style="color:#94a3b8; text-align:center; padding:6px;">載入班級討伐戰況中…</div>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="reward-box">
|
| 72 |
+
<div class="reward-head">
|
| 73 |
+
<h2>討伐成功獎勵</h2>
|
| 74 |
+
<span id="rewardTierTag">依個人遊戲進度動態調整・擊破後全員發放</span>
|
| 75 |
+
</div>
|
| 76 |
+
<div class="reward-list">
|
| 77 |
+
<div class="reward-item">
|
| 78 |
+
<span class="reward-ico">🌾</span>
|
| 79 |
+
<div>
|
| 80 |
+
<div class="reward-name" id="rewardGrainTitle">1 小時產量包 ×4</div>
|
| 81 |
+
<div class="reward-sub" id="rewardGrainSub">依個人當下產能與進度補給(2~8小時)</div>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="reward-item">
|
| 85 |
+
<span class="reward-ico">🧧</span>
|
| 86 |
+
<div>
|
| 87 |
+
<div class="reward-name" id="rewardBpTitle">兵符 ×4</div>
|
| 88 |
+
<div class="reward-sub" id="rewardBpSub">依通關進度動態提升(2~10枚)</div>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="reward-item">
|
| 92 |
+
<span class="reward-ico">📜</span>
|
| 93 |
+
<div>
|
| 94 |
+
<div class="reward-name" id="rewardScrollTitle">錦囊包 ×2</div>
|
| 95 |
+
<div class="reward-sub" id="rewardScrollSub">偷看卷+刪去卷各 2 張</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
<div class="reward-item">
|
| 99 |
+
<span class="reward-ico">🏅</span>
|
| 100 |
+
<div>
|
| 101 |
+
<div class="reward-name">個人稱號</div>
|
| 102 |
+
<div class="reward-sub" id="rewardTitleSub">【平妖勇士】</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="reward-item mvp">
|
| 106 |
+
<span class="reward-ico">⚔️</span>
|
| 107 |
+
<div>
|
| 108 |
+
<div class="reward-name" id="rewardMvpTitle">MVP/最後一擊加碼:兵符 +2(共 6 枚)</div>
|
| 109 |
+
<div class="reward-sub" id="rewardMvpSub">傷害第一【破魔先鋒】・最後一擊【斬魔將軍】</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="reward-qual" id="introQual">領獎資格:個人累計傷害 0 / 5</div>
|
| 114 |
+
<button class="btn-claim-reward hidden" id="btnClaimReward" type="button" style="width:100%; margin-top:10px; min-height:44px; padding:10px; background:linear-gradient(135deg, #10b981, #059669); color:#fff; border:1px solid #34d399; border-radius:12px; font-weight:900; font-size:15px; cursor:pointer; box-shadow:0 4px 18px rgba(16,185,129,0.45); transition:transform 0.15s, box-shadow 0.15s;">
|
| 115 |
+
🎁 領取全服首破勝利神獸寶庫!
|
| 116 |
+
</button>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div style="display:flex; gap:12px; align-items:stretch; margin-top:4px;">
|
| 120 |
+
<button class="btn-exit-map" id="btnExitToMap" type="button">🚪 返回地圖</button>
|
| 121 |
+
<button class="btn-start" id="btnStart" type="button" style="flex:1;">開始討伐(3/3)</button>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</section>
|
| 127 |
+
|
| 128 |
+
<!-- ===================== 第二頁:全螢幕戰鬥 ===================== -->
|
| 129 |
+
<section class="scene hidden" id="screenBattle">
|
| 130 |
+
<div class="scene-bg" id="battleSceneBg"></div>
|
| 131 |
+
<div class="speed-lines" id="speedLines"></div>
|
| 132 |
+
<div class="slash" id="slashFx"></div>
|
| 133 |
+
|
| 134 |
+
<header class="battle-hud">
|
| 135 |
+
<div class="hud-row">
|
| 136 |
+
<span class="hud-name" id="battleBossName">上古・饕餮</span>
|
| 137 |
+
<span class="hud-hp-text" id="hpText">500 / 500 HP (100.0%)</span>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="hp-bar-outer"><div class="hp-bar-inner" id="hpBar" style="width:100%"></div></div>
|
| 140 |
+
</header>
|
| 141 |
+
|
| 142 |
+
<div class="battle-stage">
|
| 143 |
+
<img src="assets/boss_taotie.png" class="boss-sprite" id="bossSprite" alt="上古・饕餮">
|
| 144 |
+
<div class="floating-dmg-box" id="floatingDmgBox"></div>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div class="glass-card" id="glassCard">
|
| 148 |
+
<div class="q-meta">
|
| 149 |
+
<div style="display:flex; align-items:center; gap:8px;">
|
| 150 |
+
<span class="q-badge" id="qBadge">攻擊回合 1/5</span>
|
| 151 |
+
<span id="qQueue">待精熟:5 題</span>
|
| 152 |
+
</div>
|
| 153 |
+
<span class="crit-hint" id="qCrit">暴擊率 15%</span>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="q-stem" id="qStem">載入中…</div>
|
| 156 |
+
<div class="options-grid" id="optContainer"></div>
|
| 157 |
+
<div class="requeue-notice hidden" id="requeueNotice">🔄 本題已揭示正解,移到隊伍最後,稍後再挑戰一次!</div>
|
| 158 |
+
</div>
|
| 159 |
+
</section>
|
| 160 |
+
|
| 161 |
+
<!-- ===================== 結算彈窗 ===================== -->
|
| 162 |
+
<div class="modal-overlay hidden" id="modalResult">
|
| 163 |
+
<div class="modal-card">
|
| 164 |
+
<div style="font-size:44px;" id="resIcon">🎉</div>
|
| 165 |
+
<h2 id="resTitle">本場討伐完成</h2>
|
| 166 |
+
<div class="res-rows">
|
| 167 |
+
<div><span>本場造成傷害</span><b id="resDmg" style="color:#fca5a5;">+0 HP</b></div>
|
| 168 |
+
<div><span>饕餮剩餘血量</span><b id="resBossHp">500 / 500</b></div>
|
| 169 |
+
<div><span>個人累計傷害</span><b id="resMyDmg">0 HP</b></div>
|
| 170 |
+
<div><span>領獎資格</span><b id="resQual">未達標</b></div>
|
| 171 |
+
</div>
|
| 172 |
+
<div class="tail-kill hidden" id="tailKill">⚔️ 最後一擊!獲得【斬魔將軍】與兵符 ×1</div>
|
| 173 |
+
<button class="btn-modal" id="btnModalClose" type="button">返回</button>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<!-- ===================== 版本更新公告彈窗(模版展示) ===================== -->
|
| 178 |
+
|
| 179 |
+
<script type="module" src="js/boss-battle.js?v=20261031_v1"></script>
|
| 180 |
+
</body>
|
| 181 |
+
</html>
|
css/boss.css
ADDED
|
@@ -0,0 +1,1497 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ==========================================================================
|
| 2 |
+
css/boss.css - 世界 Boss 決戰殿堂專用樣式表
|
| 3 |
+
========================================================================== */
|
| 4 |
+
:root {
|
| 5 |
+
--gold: #f5c451;
|
| 6 |
+
--gold-deep: #d98a14;
|
| 7 |
+
--glass-bg: rgba(255, 255, 255, 0.10);
|
| 8 |
+
--glass-line: rgba(255, 255, 255, 0.28);
|
| 9 |
+
--glass-hi: rgba(255, 255, 255, 0.18);
|
| 10 |
+
}
|
| 11 |
+
* { box-sizing: border-box; }
|
| 12 |
+
html, body {
|
| 13 |
+
margin: 0;
|
| 14 |
+
height: 100%;
|
| 15 |
+
background: #07080d;
|
| 16 |
+
color: #f8fafc;
|
| 17 |
+
font-family: 'Inter', 'Noto Sans TC', sans-serif;
|
| 18 |
+
user-select: none;
|
| 19 |
+
overflow: hidden;
|
| 20 |
+
}
|
| 21 |
+
.hidden { display: none !important; }
|
| 22 |
+
|
| 23 |
+
/* ========== 測試控制列(僅測試用,預設完全隱藏,需帶 ?debug=1 網址參數) ========== */
|
| 24 |
+
.debug-bar {
|
| 25 |
+
display: none !important;
|
| 26 |
+
position: fixed;
|
| 27 |
+
left: 10px;
|
| 28 |
+
bottom: 10px;
|
| 29 |
+
z-index: 3000;
|
| 30 |
+
background: rgba(10, 10, 16, 0.88);
|
| 31 |
+
backdrop-filter: blur(8px);
|
| 32 |
+
border: 1px solid rgba(245, 196, 81, 0.35);
|
| 33 |
+
border-radius: 12px;
|
| 34 |
+
padding: 6px 8px;
|
| 35 |
+
gap: 5px;
|
| 36 |
+
flex-wrap: wrap;
|
| 37 |
+
align-items: center;
|
| 38 |
+
max-width: 560px;
|
| 39 |
+
font-size: 11px;
|
| 40 |
+
color: #cbd5e1;
|
| 41 |
+
}
|
| 42 |
+
.debug-bar.debug-active {
|
| 43 |
+
display: flex !important;
|
| 44 |
+
}
|
| 45 |
+
.debug-bar.collapsed > :not(.debug-toggle) { display: none; }
|
| 46 |
+
.debug-btn {
|
| 47 |
+
background: #1e1a24;
|
| 48 |
+
color: #fde68a;
|
| 49 |
+
border: 1px solid #6b4a12;
|
| 50 |
+
padding: 4px 8px;
|
| 51 |
+
border-radius: 6px;
|
| 52 |
+
font-size: 11px;
|
| 53 |
+
font-weight: 700;
|
| 54 |
+
cursor: pointer;
|
| 55 |
+
transition: background 0.15s, transform 0.15s;
|
| 56 |
+
}
|
| 57 |
+
.debug-btn:hover { background: #6b4a12; color: #fff; transform: translateY(-1px); }
|
| 58 |
+
|
| 59 |
+
/* ========== 退出大地圖按鈕樣式 ========== */
|
| 60 |
+
.btn-exit-map {
|
| 61 |
+
position: relative;
|
| 62 |
+
min-height: 58px;
|
| 63 |
+
padding: 0 24px;
|
| 64 |
+
border: 1px solid rgba(255, 255, 255, 0.22);
|
| 65 |
+
border-radius: 16px;
|
| 66 |
+
font-size: 16px;
|
| 67 |
+
font-weight: 800;
|
| 68 |
+
letter-spacing: 1px;
|
| 69 |
+
color: #e2e8f0;
|
| 70 |
+
background: rgba(255, 255, 255, 0.08);
|
| 71 |
+
backdrop-filter: blur(8px);
|
| 72 |
+
box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
|
| 73 |
+
cursor: pointer;
|
| 74 |
+
display: inline-flex;
|
| 75 |
+
align-items: center;
|
| 76 |
+
justify-content: center;
|
| 77 |
+
gap: 8px;
|
| 78 |
+
white-space: nowrap;
|
| 79 |
+
transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
|
| 80 |
+
}
|
| 81 |
+
.btn-exit-map:hover {
|
| 82 |
+
background: rgba(255, 255, 255, 0.16);
|
| 83 |
+
border-color: rgba(245, 196, 81, 0.6);
|
| 84 |
+
color: #fff;
|
| 85 |
+
transform: translateY(-2px);
|
| 86 |
+
box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 12px rgba(245, 196, 81, 0.25);
|
| 87 |
+
}
|
| 88 |
+
.btn-exit-map:active { transform: scale(0.98); }
|
| 89 |
+
|
| 90 |
+
.btn-card-close {
|
| 91 |
+
position: absolute;
|
| 92 |
+
top: 14px;
|
| 93 |
+
right: 14px;
|
| 94 |
+
z-index: 20;
|
| 95 |
+
width: 44px;
|
| 96 |
+
height: 44px;
|
| 97 |
+
min-width: 44px;
|
| 98 |
+
min-height: 44px;
|
| 99 |
+
border-radius: 50%;
|
| 100 |
+
border: 1.5px solid rgba(255, 255, 255, 0.4);
|
| 101 |
+
background: rgba(15, 23, 42, 0.85);
|
| 102 |
+
backdrop-filter: blur(10px);
|
| 103 |
+
-webkit-backdrop-filter: blur(10px);
|
| 104 |
+
color: #f1f5f9;
|
| 105 |
+
font-size: 18px;
|
| 106 |
+
font-weight: 800;
|
| 107 |
+
display: flex;
|
| 108 |
+
align-items: center;
|
| 109 |
+
justify-content: center;
|
| 110 |
+
cursor: pointer;
|
| 111 |
+
touch-action: manipulation;
|
| 112 |
+
box-shadow: 0 4px 14px rgba(0,0,0,0.5);
|
| 113 |
+
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
|
| 114 |
+
}
|
| 115 |
+
.btn-card-close:hover {
|
| 116 |
+
background: rgba(239, 68, 68, 0.85);
|
| 117 |
+
border-color: #fca5a5;
|
| 118 |
+
color: #fff;
|
| 119 |
+
transform: scale(1.08);
|
| 120 |
+
}
|
| 121 |
+
.btn-card-close:active {
|
| 122 |
+
transform: scale(0.95);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
/* ========== 共用背景 ========== */
|
| 126 |
+
.scene {
|
| 127 |
+
position: fixed;
|
| 128 |
+
inset: 0;
|
| 129 |
+
overflow: hidden;
|
| 130 |
+
}
|
| 131 |
+
.scene-bg {
|
| 132 |
+
position: absolute;
|
| 133 |
+
inset: 0;
|
| 134 |
+
background: url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
/* =====================================================
|
| 138 |
+
第一頁:Boss 介紹
|
| 139 |
+
===================================================== */
|
| 140 |
+
#screenIntro .scene-bg {
|
| 141 |
+
filter: blur(6px) brightness(0.45) saturate(1.1);
|
| 142 |
+
transform: scale(1.06);
|
| 143 |
+
}
|
| 144 |
+
.intro-wrap {
|
| 145 |
+
position: relative;
|
| 146 |
+
z-index: 2;
|
| 147 |
+
height: 100%;
|
| 148 |
+
display: flex;
|
| 149 |
+
align-items: flex-start; /* 防禦性:永遠自頂部對齊,解決平板/小螢幕負座標溢出導致頂部 X 按鈕消失的 Bug */
|
| 150 |
+
justify-content: center;
|
| 151 |
+
padding: 24px 16px 48px;
|
| 152 |
+
overflow-y: auto;
|
| 153 |
+
-webkit-overflow-scrolling: touch;
|
| 154 |
+
touch-action: pan-y;
|
| 155 |
+
overscroll-behavior-y: contain;
|
| 156 |
+
}
|
| 157 |
+
.intro-card {
|
| 158 |
+
width: 100%;
|
| 159 |
+
max-width: 1040px;
|
| 160 |
+
margin: auto 0; /* 內容高度小於螢幕時垂直居中,大於螢幕時頂部自��貼齊並平滑向下捲動 */
|
| 161 |
+
display: grid;
|
| 162 |
+
grid-template-columns: 1fr 1.1fr;
|
| 163 |
+
gap: 28px;
|
| 164 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
|
| 165 |
+
backdrop-filter: blur(18px) saturate(1.2);
|
| 166 |
+
-webkit-backdrop-filter: blur(18px) saturate(1.2);
|
| 167 |
+
border: 1px solid var(--glass-line);
|
| 168 |
+
border-radius: 24px;
|
| 169 |
+
padding: 26px;
|
| 170 |
+
box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 var(--glass-hi);
|
| 171 |
+
animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
|
| 172 |
+
touch-action: pan-y;
|
| 173 |
+
}
|
| 174 |
+
@keyframes cardIn {
|
| 175 |
+
from { opacity: 0; transform: translateY(18px) scale(0.98); }
|
| 176 |
+
to { opacity: 1; transform: none; }
|
| 177 |
+
}
|
| 178 |
+
.intro-portrait {
|
| 179 |
+
position: relative;
|
| 180 |
+
border-radius: 18px;
|
| 181 |
+
background:
|
| 182 |
+
radial-gradient(circle at 50% 55%, rgba(168, 85, 247, 0.45), transparent 62%),
|
| 183 |
+
url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 184 |
+
border: 1px solid rgba(245, 196, 81, 0.35);
|
| 185 |
+
overflow: hidden;
|
| 186 |
+
display: flex;
|
| 187 |
+
align-items: flex-end;
|
| 188 |
+
justify-content: center;
|
| 189 |
+
min-height: 380px;
|
| 190 |
+
box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
|
| 191 |
+
}
|
| 192 |
+
.intro-portrait::after {
|
| 193 |
+
content: '';
|
| 194 |
+
position: absolute;
|
| 195 |
+
inset: 0;
|
| 196 |
+
background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
|
| 197 |
+
pointer-events: none;
|
| 198 |
+
}
|
| 199 |
+
.intro-portrait img {
|
| 200 |
+
position: relative;
|
| 201 |
+
z-index: 1;
|
| 202 |
+
width: 100%;
|
| 203 |
+
max-height: 400px;
|
| 204 |
+
object-fit: contain;
|
| 205 |
+
filter: drop-shadow(0 16px 26px rgba(0,0,0,0.85));
|
| 206 |
+
animation: idleFloat 3.8s ease-in-out infinite;
|
| 207 |
+
}
|
| 208 |
+
.intro-info {
|
| 209 |
+
display: flex;
|
| 210 |
+
flex-direction: column;
|
| 211 |
+
gap: 16px;
|
| 212 |
+
min-width: 0;
|
| 213 |
+
}
|
| 214 |
+
.boss-title {
|
| 215 |
+
margin: 0;
|
| 216 |
+
font-size: 40px;
|
| 217 |
+
font-weight: 900;
|
| 218 |
+
letter-spacing: 4px;
|
| 219 |
+
background: linear-gradient(180deg, #fff 20%, #fde68a 60%, #f59e0b);
|
| 220 |
+
-webkit-background-clip: text;
|
| 221 |
+
background-clip: text;
|
| 222 |
+
-webkit-text-fill-color: transparent;
|
| 223 |
+
filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
|
| 224 |
+
}
|
| 225 |
+
.boss-desc {
|
| 226 |
+
margin: 0;
|
| 227 |
+
font-size: 14px;
|
| 228 |
+
line-height: 1.8;
|
| 229 |
+
color: #e2e8f0;
|
| 230 |
+
}
|
| 231 |
+
.class-progress {
|
| 232 |
+
display: flex;
|
| 233 |
+
flex-direction: column;
|
| 234 |
+
gap: 6px;
|
| 235 |
+
font-size: 12px;
|
| 236 |
+
color: #cbd5e1;
|
| 237 |
+
}
|
| 238 |
+
.class-progress-row {
|
| 239 |
+
display: flex;
|
| 240 |
+
justify-content: space-between;
|
| 241 |
+
font-weight: 700;
|
| 242 |
+
}
|
| 243 |
+
.mini-hp {
|
| 244 |
+
height: 8px;
|
| 245 |
+
border-radius: 99px;
|
| 246 |
+
background: rgba(0,0,0,0.45);
|
| 247 |
+
overflow: hidden;
|
| 248 |
+
border: 1px solid rgba(255,255,255,0.15);
|
| 249 |
+
}
|
| 250 |
+
.mini-hp > div {
|
| 251 |
+
height: 100%;
|
| 252 |
+
background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
|
| 253 |
+
transition: width 0.4s;
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.reward-box {
|
| 257 |
+
background: rgba(0, 0, 0, 0.28);
|
| 258 |
+
border: 1px solid rgba(245, 196, 81, 0.3);
|
| 259 |
+
border-radius: 16px;
|
| 260 |
+
padding: 14px 16px;
|
| 261 |
+
}
|
| 262 |
+
.reward-head {
|
| 263 |
+
display: flex;
|
| 264 |
+
justify-content: space-between;
|
| 265 |
+
align-items: baseline;
|
| 266 |
+
gap: 8px;
|
| 267 |
+
margin-bottom: 10px;
|
| 268 |
+
flex-wrap: wrap;
|
| 269 |
+
}
|
| 270 |
+
.reward-head h2 {
|
| 271 |
+
margin: 0;
|
| 272 |
+
font-size: 16px;
|
| 273 |
+
font-weight: 900;
|
| 274 |
+
color: var(--gold);
|
| 275 |
+
letter-spacing: 1px;
|
| 276 |
+
}
|
| 277 |
+
.reward-head span {
|
| 278 |
+
font-size: 11px;
|
| 279 |
+
color: #94a3b8;
|
| 280 |
+
}
|
| 281 |
+
.reward-list {
|
| 282 |
+
display: grid;
|
| 283 |
+
grid-template-columns: 1fr 1fr;
|
| 284 |
+
gap: 8px;
|
| 285 |
+
}
|
| 286 |
+
.reward-item {
|
| 287 |
+
display: flex;
|
| 288 |
+
align-items: center;
|
| 289 |
+
gap: 10px;
|
| 290 |
+
background: rgba(255,255,255,0.06);
|
| 291 |
+
border: 1px solid rgba(255,255,255,0.12);
|
| 292 |
+
border-radius: 12px;
|
| 293 |
+
padding: 9px 12px;
|
| 294 |
+
transition: transform 0.2s, border-color 0.2s, background 0.2s;
|
| 295 |
+
}
|
| 296 |
+
.reward-item:hover {
|
| 297 |
+
transform: translateY(-2px);
|
| 298 |
+
border-color: rgba(245, 196, 81, 0.6);
|
| 299 |
+
background: rgba(245, 196, 81, 0.10);
|
| 300 |
+
}
|
| 301 |
+
.reward-item.mvp {
|
| 302 |
+
grid-column: 1 / -1;
|
| 303 |
+
border-color: rgba(239, 68, 68, 0.4);
|
| 304 |
+
background: rgba(239, 68, 68, 0.10);
|
| 305 |
+
}
|
| 306 |
+
.reward-ico { font-size: 22px; flex-shrink: 0; }
|
| 307 |
+
.reward-name { font-size: 13px; font-weight: 800; color: #fef3c7; }
|
| 308 |
+
.reward-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
|
| 309 |
+
.reward-qual {
|
| 310 |
+
margin-top: 10px;
|
| 311 |
+
font-size: 12px;
|
| 312 |
+
font-weight: 700;
|
| 313 |
+
color: #fca5a5;
|
| 314 |
+
}
|
| 315 |
+
.reward-qual.ok { color: #86efac; }
|
| 316 |
+
|
| 317 |
+
.btn-start {
|
| 318 |
+
position: relative;
|
| 319 |
+
overflow: hidden;
|
| 320 |
+
width: 100%;
|
| 321 |
+
min-height: 58px;
|
| 322 |
+
border: none;
|
| 323 |
+
border-radius: 16px;
|
| 324 |
+
font-size: 20px;
|
| 325 |
+
font-weight: 900;
|
| 326 |
+
letter-spacing: 4px;
|
| 327 |
+
color: #2a1500;
|
| 328 |
+
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 329 |
+
box-shadow: 0 10px 30px rgba(245, 179, 35, 0.45), inset 0 2px 0 rgba(255,255,255,0.6);
|
| 330 |
+
cursor: pointer;
|
| 331 |
+
transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
|
| 332 |
+
}
|
| 333 |
+
.btn-start::before {
|
| 334 |
+
content: '';
|
| 335 |
+
position: absolute;
|
| 336 |
+
top: 0; left: -60%;
|
| 337 |
+
width: 40%; height: 100%;
|
| 338 |
+
background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent);
|
| 339 |
+
transform: skewX(-20deg);
|
| 340 |
+
animation: shine 2.8s infinite;
|
| 341 |
+
}
|
| 342 |
+
@keyframes shine {
|
| 343 |
+
0% { left: -60%; }
|
| 344 |
+
60%, 100% { left: 130%; }
|
| 345 |
+
}
|
| 346 |
+
.btn-start:hover:not(:disabled) {
|
| 347 |
+
transform: translateY(-2px) scale(1.01);
|
| 348 |
+
box-shadow: 0 14px 38px rgba(245, 179, 35, 0.6), inset 0 2px 0 rgba(255,255,255,0.6);
|
| 349 |
+
}
|
| 350 |
+
.btn-start:active:not(:disabled) { transform: scale(0.98); }
|
| 351 |
+
.btn-start:disabled {
|
| 352 |
+
cursor: not-allowed;
|
| 353 |
+
color: #94a3b8;
|
| 354 |
+
background: linear-gradient(180deg, #475569, #334155);
|
| 355 |
+
box-shadow: none;
|
| 356 |
+
}
|
| 357 |
+
.btn-start:disabled::before { display: none; }
|
| 358 |
+
|
| 359 |
+
/* =====================================================
|
| 360 |
+
第二頁:全螢幕戰鬥
|
| 361 |
+
===================================================== */
|
| 362 |
+
#screenBattle {
|
| 363 |
+
display: flex;
|
| 364 |
+
flex-direction: column;
|
| 365 |
+
}
|
| 366 |
+
#screenBattle .scene-bg {
|
| 367 |
+
filter: brightness(0.95) contrast(1.05);
|
| 368 |
+
}
|
| 369 |
+
.battle-hud {
|
| 370 |
+
position: relative;
|
| 371 |
+
z-index: 20;
|
| 372 |
+
margin: 12px 14px 0;
|
| 373 |
+
padding: 10px 18px 12px;
|
| 374 |
+
border-radius: 16px;
|
| 375 |
+
background: rgba(10, 8, 16, 0.62);
|
| 376 |
+
backdrop-filter: blur(12px);
|
| 377 |
+
-webkit-backdrop-filter: blur(12px);
|
| 378 |
+
border: 1px solid rgba(255,255,255,0.16);
|
| 379 |
+
box-shadow: 0 8px 24px rgba(0,0,0,0.45);
|
| 380 |
+
}
|
| 381 |
+
.hud-row {
|
| 382 |
+
display: flex;
|
| 383 |
+
justify-content: space-between;
|
| 384 |
+
align-items: center;
|
| 385 |
+
gap: 10px;
|
| 386 |
+
margin-bottom: 8px;
|
| 387 |
+
}
|
| 388 |
+
.hud-name {
|
| 389 |
+
font-size: 20px;
|
| 390 |
+
font-weight: 900;
|
| 391 |
+
letter-spacing: 3px;
|
| 392 |
+
color: #fff;
|
| 393 |
+
text-shadow: 0 2px 8px rgba(0,0,0,0.7);
|
| 394 |
+
}
|
| 395 |
+
.hud-hp-text {
|
| 396 |
+
font-size: 15px;
|
| 397 |
+
font-weight: 800;
|
| 398 |
+
color: #fca5a5;
|
| 399 |
+
font-variant-numeric: tabular-nums;
|
| 400 |
+
}
|
| 401 |
+
.hp-bar-outer {
|
| 402 |
+
height: 20px;
|
| 403 |
+
background: rgba(0,0,0,0.6);
|
| 404 |
+
border-radius: 99px;
|
| 405 |
+
overflow: hidden;
|
| 406 |
+
border: 1.5px solid rgba(245, 196, 81, 0.5);
|
| 407 |
+
box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
|
| 408 |
+
}
|
| 409 |
+
.hp-bar-inner {
|
| 410 |
+
height: 100%;
|
| 411 |
+
background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
|
| 412 |
+
border-radius: 99px;
|
| 413 |
+
transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
| 414 |
+
box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
|
| 415 |
+
}
|
| 416 |
+
.hp-bar-inner.low {
|
| 417 |
+
background: linear-gradient(90deg, #b91c1c, #ef4444);
|
| 418 |
+
animation: hpPulse 1.2s infinite;
|
| 419 |
+
}
|
| 420 |
+
@keyframes hpPulse { 50% { opacity: 0.6; } }
|
| 421 |
+
|
| 422 |
+
.battle-stage {
|
| 423 |
+
position: relative;
|
| 424 |
+
z-index: 10;
|
| 425 |
+
flex: 1;
|
| 426 |
+
min-height: 0;
|
| 427 |
+
display: flex;
|
| 428 |
+
align-items: flex-end;
|
| 429 |
+
justify-content: center;
|
| 430 |
+
pointer-events: none;
|
| 431 |
+
}
|
| 432 |
+
.boss-sprite {
|
| 433 |
+
height: 100%;
|
| 434 |
+
max-height: 100%;
|
| 435 |
+
max-width: 92vw;
|
| 436 |
+
object-fit: contain;
|
| 437 |
+
margin-bottom: -40px; /* 讓 Boss 微微壓在題目卡後方,增加層次 */
|
| 438 |
+
filter: drop-shadow(0 18px 28px rgba(0,0,0,0.85)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.45));
|
| 439 |
+
animation: idleFloat 3.8s ease-in-out infinite;
|
| 440 |
+
transition: filter 0.35s ease, transform 0.25s ease;
|
| 441 |
+
}
|
| 442 |
+
@keyframes idleFloat {
|
| 443 |
+
0%, 100% { transform: translateY(0); }
|
| 444 |
+
50% { transform: translateY(-10px); }
|
| 445 |
+
}
|
| 446 |
+
.boss-sprite.hit {
|
| 447 |
+
animation: bossHit 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
| 448 |
+
filter: drop-shadow(0 0 35px #ef4444) brightness(1.5);
|
| 449 |
+
}
|
| 450 |
+
@keyframes bossHit {
|
| 451 |
+
10%, 90% { transform: translate3d(-8px, 0, 0) scale(0.97); }
|
| 452 |
+
20%, 80% { transform: translate3d(10px, -4px, 0) scale(1.03); }
|
| 453 |
+
30%, 50%, 70% { transform: translate3d(-12px, 4px, 0); }
|
| 454 |
+
40%, 60% { transform: translate3d(12px, 0, 0); }
|
| 455 |
+
}
|
| 456 |
+
.boss-sprite.crit-hit {
|
| 457 |
+
animation: bossCrit 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
| 458 |
+
filter: drop-shadow(0 0 60px #f59e0b) drop-shadow(0 0 30px #ef4444) brightness(2);
|
| 459 |
+
}
|
| 460 |
+
@keyframes bossCrit {
|
| 461 |
+
15% { transform: scale(1.18) rotate(7deg) translateY(-20px); }
|
| 462 |
+
35% { transform: scale(0.88) rotate(-6deg) translateY(12px); }
|
| 463 |
+
55% { transform: scale(1.08) rotate(3deg); }
|
| 464 |
+
75% { transform: scale(0.97) rotate(-1deg); }
|
| 465 |
+
100% { transform: none; }
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
/* 浮動傷害 */
|
| 469 |
+
.floating-dmg-box {
|
| 470 |
+
position: absolute;
|
| 471 |
+
top: 38%;
|
| 472 |
+
left: 50%;
|
| 473 |
+
transform: translate(-50%, -50%);
|
| 474 |
+
z-index: 60;
|
| 475 |
+
pointer-events: none;
|
| 476 |
+
width: 100%;
|
| 477 |
+
display: flex;
|
| 478 |
+
justify-content: center;
|
| 479 |
+
}
|
| 480 |
+
.dmg-normal {
|
| 481 |
+
font-size: 48px;
|
| 482 |
+
font-weight: 900;
|
| 483 |
+
color: #ff6b6b;
|
| 484 |
+
text-shadow: 0 4px 14px rgba(0,0,0,0.9), 0 0 14px rgba(239, 68, 68, 0.8);
|
| 485 |
+
animation: dmgUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
|
| 486 |
+
}
|
| 487 |
+
.dmg-notice {
|
| 488 |
+
font-size: 26px;
|
| 489 |
+
color: #fde68a;
|
| 490 |
+
}
|
| 491 |
+
@keyframes dmgUp {
|
| 492 |
+
0% { opacity: 0; transform: translateY(0) scale(0.6); }
|
| 493 |
+
20% { opacity: 1; transform: translateY(-25px) scale(1.2); }
|
| 494 |
+
80% { opacity: 1; transform: translateY(-50px) scale(1); }
|
| 495 |
+
100% { opacity: 0; transform: translateY(-75px) scale(0.8); }
|
| 496 |
+
}
|
| 497 |
+
.dmg-crit {
|
| 498 |
+
text-align: center;
|
| 499 |
+
font-size: 68px;
|
| 500 |
+
font-weight: 900;
|
| 501 |
+
line-height: 1.1;
|
| 502 |
+
background: linear-gradient(180deg, #fff 15%, #fef08a 45%, #f59e0b 80%, #b45309);
|
| 503 |
+
-webkit-background-clip: text;
|
| 504 |
+
background-clip: text;
|
| 505 |
+
-webkit-text-fill-color: transparent;
|
| 506 |
+
filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.9)) drop-shadow(0 6px 12px rgba(0,0,0,0.9));
|
| 507 |
+
animation: dmgCrit 1.35s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
|
| 508 |
+
}
|
| 509 |
+
.dmg-crit small {
|
| 510 |
+
display: block;
|
| 511 |
+
font-size: 26px;
|
| 512 |
+
letter-spacing: 3px;
|
| 513 |
+
margin-top: 4px;
|
| 514 |
+
}
|
| 515 |
+
@keyframes dmgCrit {
|
| 516 |
+
0% { opacity: 0; transform: scale(0.2) rotate(-14deg); }
|
| 517 |
+
15% { opacity: 1; transform: scale(1.45) rotate(4deg); }
|
| 518 |
+
30% { transform: scale(1.1) rotate(-3deg); }
|
| 519 |
+
75% { opacity: 1; transform: scale(1) translateY(-30px); }
|
| 520 |
+
100% { opacity: 0; transform: scale(0.8) translateY(-70px); }
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
/* 暴擊特效 */
|
| 524 |
+
.screen-flash {
|
| 525 |
+
position: fixed;
|
| 526 |
+
inset: 0;
|
| 527 |
+
z-index: 2500;
|
| 528 |
+
pointer-events: none;
|
| 529 |
+
opacity: 0;
|
| 530 |
+
background: radial-gradient(circle, rgba(254, 240, 138, 0.9), rgba(245, 158, 11, 0.6) 45%, rgba(239, 68, 68, 0.4) 85%, transparent);
|
| 531 |
+
}
|
| 532 |
+
.screen-flash.active { animation: flash 0.4s ease-out forwards; }
|
| 533 |
+
@keyframes flash { 15% { opacity: 1; } 100% { opacity: 0; } }
|
| 534 |
+
.speed-lines {
|
| 535 |
+
position: absolute;
|
| 536 |
+
inset: -20%;
|
| 537 |
+
z-index: 15;
|
| 538 |
+
pointer-events: none;
|
| 539 |
+
opacity: 0;
|
| 540 |
+
background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(254, 240, 138, 0.28) 0deg 6deg, transparent 6deg 18deg);
|
| 541 |
+
}
|
| 542 |
+
.speed-lines.active { animation: lines 0.6s ease-out forwards; }
|
| 543 |
+
@keyframes lines {
|
| 544 |
+
0% { opacity: 0; transform: scale(0.8); }
|
| 545 |
+
20% { opacity: 1; transform: scale(1.05) rotate(4deg); }
|
| 546 |
+
100% { opacity: 0; transform: scale(1.3) rotate(12deg); }
|
| 547 |
+
}
|
| 548 |
+
.slash {
|
| 549 |
+
position: absolute;
|
| 550 |
+
top: 45%;
|
| 551 |
+
left: 50%;
|
| 552 |
+
width: 130%;
|
| 553 |
+
height: 8px;
|
| 554 |
+
z-index: 25;
|
| 555 |
+
pointer-events: none;
|
| 556 |
+
background: linear-gradient(90deg, transparent, #fff 25%, #fef08a 50%, #f59e0b 75%, transparent);
|
| 557 |
+
box-shadow: 0 0 25px #f59e0b, 0 0 45px #fff;
|
| 558 |
+
transform: translate(-50%, -50%) rotate(-30deg) scaleX(0);
|
| 559 |
+
}
|
| 560 |
+
.slash.active { animation: slash 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
|
| 561 |
+
@keyframes slash {
|
| 562 |
+
40% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.2); opacity: 1; }
|
| 563 |
+
100% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.4); opacity: 0; }
|
| 564 |
+
}
|
| 565 |
+
.heavy-shake { animation: heavyShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
|
| 566 |
+
@keyframes heavyShake {
|
| 567 |
+
10% { transform: translate(-14px, -10px) rotate(-1deg); }
|
| 568 |
+
20% { transform: translate(16px, 12px) rotate(1.5deg); }
|
| 569 |
+
30% { transform: translate(-18px, 8px) rotate(-1deg); }
|
| 570 |
+
40% { transform: translate(14px, -8px) rotate(1deg); }
|
| 571 |
+
50% { transform: translate(-10px, 6px); }
|
| 572 |
+
60% { transform: translate(8px, -4px); }
|
| 573 |
+
80% { transform: translate(-4px, 2px); }
|
| 574 |
+
100% { transform: none; }
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
+
/* ========== 玻璃鏡面題目卡 ========== */
|
| 578 |
+
.glass-card {
|
| 579 |
+
position: relative;
|
| 580 |
+
z-index: 30;
|
| 581 |
+
width: calc(100% - 28px);
|
| 582 |
+
max-width: 820px;
|
| 583 |
+
margin: 0 auto 14px;
|
| 584 |
+
padding: 14px 18px 16px;
|
| 585 |
+
border-radius: 22px;
|
| 586 |
+
background: linear-gradient(140deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.10));
|
| 587 |
+
backdrop-filter: blur(22px) saturate(1.4);
|
| 588 |
+
-webkit-backdrop-filter: blur(22px) saturate(1.4);
|
| 589 |
+
border: 1px solid var(--glass-line);
|
| 590 |
+
box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.08);
|
| 591 |
+
overflow: hidden;
|
| 592 |
+
}
|
| 593 |
+
/* 鏡面高光 */
|
| 594 |
+
.glass-card::before {
|
| 595 |
+
content: '';
|
| 596 |
+
position: absolute;
|
| 597 |
+
top: 0; left: 0; right: 0;
|
| 598 |
+
height: 45%;
|
| 599 |
+
background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
|
| 600 |
+
pointer-events: none;
|
| 601 |
+
}
|
| 602 |
+
.q-meta {
|
| 603 |
+
position: relative;
|
| 604 |
+
display: flex;
|
| 605 |
+
justify-content: space-between;
|
| 606 |
+
align-items: center;
|
| 607 |
+
gap: 8px;
|
| 608 |
+
margin-bottom: 10px;
|
| 609 |
+
font-size: 12px;
|
| 610 |
+
color: rgba(255,255,255,0.75);
|
| 611 |
+
}
|
| 612 |
+
.q-badge {
|
| 613 |
+
font-weight: 800;
|
| 614 |
+
padding: 3px 10px;
|
| 615 |
+
border-radius: 99px;
|
| 616 |
+
background: rgba(239, 68, 68, 0.25);
|
| 617 |
+
border: 1px solid rgba(252, 165, 165, 0.55);
|
| 618 |
+
color: #fecaca;
|
| 619 |
+
}
|
| 620 |
+
.q-badge.charge {
|
| 621 |
+
background: rgba(245, 196, 81, 0.28);
|
| 622 |
+
border-color: rgba(253, 230, 138, 0.7);
|
| 623 |
+
color: #fef3c7;
|
| 624 |
+
box-shadow: 0 0 12px rgba(245, 196, 81, 0.5);
|
| 625 |
+
}
|
| 626 |
+
.q-meta .crit-hint.buff { color: #fde68a; font-weight: 800; }
|
| 627 |
+
.q-stem {
|
| 628 |
+
position: relative;
|
| 629 |
+
font-size: 17px;
|
| 630 |
+
font-weight: 700;
|
| 631 |
+
line-height: 1.5;
|
| 632 |
+
color: #fff;
|
| 633 |
+
text-shadow: 0 1px 6px rgba(0,0,0,0.5);
|
| 634 |
+
padding: 12px 16px;
|
| 635 |
+
margin-bottom: 12px;
|
| 636 |
+
border-radius: 14px;
|
| 637 |
+
background: rgba(0,0,0,0.22);
|
| 638 |
+
border: 1px solid rgba(255,255,255,0.14);
|
| 639 |
+
}
|
| 640 |
+
.q-stem .tag { font-size: 12px; color: rgba(255,255,255,0.55); margin-left: 6px; font-weight: 500; }
|
| 641 |
+
.q-stem .charge-tag { color: #fde68a; font-weight: 900; margin-right: 4px; }
|
| 642 |
+
.q-stem img {
|
| 643 |
+
display: block;
|
| 644 |
+
max-width: 100%;
|
| 645 |
+
max-height: 220px;
|
| 646 |
+
height: auto;
|
| 647 |
+
margin: 10px auto;
|
| 648 |
+
border-radius: 10px;
|
| 649 |
+
object-fit: contain;
|
| 650 |
+
background: #ffffff;
|
| 651 |
+
padding: 4px;
|
| 652 |
+
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
|
| 653 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 654 |
+
}
|
| 655 |
+
.options-grid {
|
| 656 |
+
position: relative;
|
| 657 |
+
display: grid;
|
| 658 |
+
grid-template-columns: 1fr 1fr;
|
| 659 |
+
gap: 10px;
|
| 660 |
+
}
|
| 661 |
+
.opt-btn {
|
| 662 |
+
display: flex;
|
| 663 |
+
align-items: center;
|
| 664 |
+
gap: 10px;
|
| 665 |
+
min-height: 50px;
|
| 666 |
+
padding: 10px 14px;
|
| 667 |
+
border-radius: 14px;
|
| 668 |
+
font-family: inherit;
|
| 669 |
+
font-size: 15px;
|
| 670 |
+
font-weight: 600;
|
| 671 |
+
color: #fff;
|
| 672 |
+
text-align: left;
|
| 673 |
+
cursor: pointer;
|
| 674 |
+
background: rgba(255,255,255,0.10);
|
| 675 |
+
border: 1px solid rgba(255,255,255,0.25);
|
| 676 |
+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
|
| 677 |
+
transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
| 678 |
+
touch-action: manipulation;
|
| 679 |
+
}
|
| 680 |
+
.opt-btn:hover:not(:disabled) {
|
| 681 |
+
transform: translateY(-2px);
|
| 682 |
+
background: rgba(255,255,255,0.20);
|
| 683 |
+
border-color: rgba(253, 230, 138, 0.8);
|
| 684 |
+
box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 16px rgba(245, 196, 81, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
|
| 685 |
+
}
|
| 686 |
+
.opt-btn:active:not(:disabled) { transform: scale(0.98); }
|
| 687 |
+
.opt-btn:disabled { cursor: default; }
|
| 688 |
+
.opt-btn img {
|
| 689 |
+
display: inline-block;
|
| 690 |
+
vertical-align: middle;
|
| 691 |
+
max-width: 130px;
|
| 692 |
+
max-height: 80px;
|
| 693 |
+
height: auto;
|
| 694 |
+
border-radius: 6px;
|
| 695 |
+
object-fit: contain;
|
| 696 |
+
background: #ffffff;
|
| 697 |
+
padding: 3px;
|
| 698 |
+
margin: 2px 0;
|
| 699 |
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
| 700 |
+
}
|
| 701 |
+
.opt-btn .opt-tag {
|
| 702 |
+
display: inline-flex;
|
| 703 |
+
align-items: center;
|
| 704 |
+
justify-content: center;
|
| 705 |
+
width: 28px;
|
| 706 |
+
height: 28px;
|
| 707 |
+
border-radius: 8px;
|
| 708 |
+
flex-shrink: 0;
|
| 709 |
+
font-size: 13px;
|
| 710 |
+
font-weight: 900;
|
| 711 |
+
color: #fef3c7;
|
| 712 |
+
background: rgba(0,0,0,0.3);
|
| 713 |
+
border: 1px solid rgba(255,255,255,0.25);
|
| 714 |
+
}
|
| 715 |
+
.opt-btn.correct {
|
| 716 |
+
background: rgba(16, 185, 129, 0.38);
|
| 717 |
+
border-color: #6ee7b7;
|
| 718 |
+
box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
|
| 719 |
+
}
|
| 720 |
+
.opt-btn.wrong {
|
| 721 |
+
background: rgba(239, 68, 68, 0.38);
|
| 722 |
+
border-color: #fca5a5;
|
| 723 |
+
}
|
| 724 |
+
.opt-btn.dim { opacity: 0.5; }
|
| 725 |
+
.requeue-notice {
|
| 726 |
+
position: relative;
|
| 727 |
+
margin-top: 10px;
|
| 728 |
+
padding: 7px 12px;
|
| 729 |
+
border-radius: 10px;
|
| 730 |
+
font-size: 12px;
|
| 731 |
+
font-weight: 700;
|
| 732 |
+
color: #fde68a;
|
| 733 |
+
background: rgba(245, 158, 11, 0.18);
|
| 734 |
+
border: 1px solid rgba(245, 196, 81, 0.45);
|
| 735 |
+
}
|
| 736 |
+
|
| 737 |
+
/* ========== 結算彈窗 ========== */
|
| 738 |
+
.modal-overlay {
|
| 739 |
+
position: fixed;
|
| 740 |
+
inset: 0;
|
| 741 |
+
z-index: 2000;
|
| 742 |
+
display: flex;
|
| 743 |
+
align-items: center;
|
| 744 |
+
justify-content: center;
|
| 745 |
+
padding: 16px;
|
| 746 |
+
background: rgba(0,0,0,0.6);
|
| 747 |
+
backdrop-filter: blur(6px);
|
| 748 |
+
}
|
| 749 |
+
.modal-card {
|
| 750 |
+
width: 100%;
|
| 751 |
+
max-width: 440px;
|
| 752 |
+
text-align: center;
|
| 753 |
+
padding: 24px;
|
| 754 |
+
border-radius: 22px;
|
| 755 |
+
background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
|
| 756 |
+
backdrop-filter: blur(20px);
|
| 757 |
+
-webkit-backdrop-filter: blur(20px);
|
| 758 |
+
border: 1px solid var(--glass-line);
|
| 759 |
+
box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
|
| 760 |
+
animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 761 |
+
}
|
| 762 |
+
.modal-card h2 { margin: 6px 0 14px; font-size: 22px; color: var(--gold); letter-spacing: 2px; }
|
| 763 |
+
.res-rows {
|
| 764 |
+
text-align: left;
|
| 765 |
+
font-size: 14px;
|
| 766 |
+
background: rgba(0,0,0,0.25);
|
| 767 |
+
border: 1px solid rgba(255,255,255,0.12);
|
| 768 |
+
border-radius: 14px;
|
| 769 |
+
padding: 12px 16px;
|
| 770 |
+
margin-bottom: 14px;
|
| 771 |
+
}
|
| 772 |
+
.res-rows div { display: flex; justify-content: space-between; padding: 4px 0; }
|
| 773 |
+
.tail-kill {
|
| 774 |
+
margin-bottom: 14px;
|
| 775 |
+
padding: 10px;
|
| 776 |
+
border-radius: 12px;
|
| 777 |
+
font-weight: 800;
|
| 778 |
+
color: #fecaca;
|
| 779 |
+
background: rgba(239, 68, 68, 0.2);
|
| 780 |
+
border: 1px solid rgba(252, 165, 165, 0.5);
|
| 781 |
+
}
|
| 782 |
+
.btn-modal {
|
| 783 |
+
width: 100%;
|
| 784 |
+
min-height: 48px;
|
| 785 |
+
border: none;
|
| 786 |
+
border-radius: 14px;
|
| 787 |
+
font-family: inherit;
|
| 788 |
+
font-size: 16px;
|
| 789 |
+
font-weight: 900;
|
| 790 |
+
letter-spacing: 2px;
|
| 791 |
+
color: #2a1500;
|
| 792 |
+
cursor: pointer;
|
| 793 |
+
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 794 |
+
transition: transform 0.15s;
|
| 795 |
+
}
|
| 796 |
+
.btn-modal:hover { transform: translateY(-2px); }
|
| 797 |
+
|
| 798 |
+
/* ========== 手機版 ========== */
|
| 799 |
+
@media (max-width: 760px) {
|
| 800 |
+
.intro-card { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
|
| 801 |
+
.intro-portrait { min-height: 240px; }
|
| 802 |
+
.intro-portrait img { max-height: 260px; }
|
| 803 |
+
.boss-title { font-size: 30px; }
|
| 804 |
+
.reward-list { grid-template-columns: 1fr; }
|
| 805 |
+
html, body { overflow: auto; }
|
| 806 |
+
#screenIntro { position: absolute; min-height: 100%; }
|
| 807 |
+
.hud-name { font-size: 16px; }
|
| 808 |
+
.q-stem { font-size: 15px; }
|
| 809 |
+
.options-grid { grid-template-columns: 1fr; gap: 8px; }
|
| 810 |
+
.opt-btn { min-height: 46px; font-size: 14px; }
|
| 811 |
+
.boss-sprite { margin-bottom: -20px; }
|
| 812 |
+
.dmg-crit { font-size: 44px; }
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
/* ========== 版本更新公告模版 ========== */
|
| 816 |
+
.patch-modal-wrap {
|
| 817 |
+
position: relative;
|
| 818 |
+
border-radius: 20px;
|
| 819 |
+
overflow: hidden;
|
| 820 |
+
border: 1.5px solid rgba(245, 196, 81, 0.45);
|
| 821 |
+
box-shadow: 0 25px 70px rgba(0,0,0,0.8), 0 0 40px rgba(168, 85, 247, 0.25);
|
| 822 |
+
background: #090a10;
|
| 823 |
+
max-width: 520px;
|
| 824 |
+
width: 100%;
|
| 825 |
+
color: #fff;
|
| 826 |
+
animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 827 |
+
text-align: left;
|
| 828 |
+
}
|
| 829 |
+
.patch-stage {
|
| 830 |
+
position: relative;
|
| 831 |
+
width: 100%;
|
| 832 |
+
height: 220px;
|
| 833 |
+
overflow: hidden;
|
| 834 |
+
background: url('assets/boss_bg_arena.jpg') center / cover no-repeat;
|
| 835 |
+
display: flex;
|
| 836 |
+
align-items: flex-end;
|
| 837 |
+
justify-content: center;
|
| 838 |
+
}
|
| 839 |
+
.patch-stage::after {
|
| 840 |
+
content: '';
|
| 841 |
+
position: absolute;
|
| 842 |
+
inset: 0;
|
| 843 |
+
background: linear-gradient(180deg, rgba(9, 10, 16, 0.15) 0%, rgba(9, 10, 16, 0.95) 90%);
|
| 844 |
+
pointer-events: none;
|
| 845 |
+
}
|
| 846 |
+
.patch-silhouette-wrap {
|
| 847 |
+
position: relative;
|
| 848 |
+
z-index: 2;
|
| 849 |
+
width: 100%;
|
| 850 |
+
height: 100%;
|
| 851 |
+
display: flex;
|
| 852 |
+
align-items: flex-end;
|
| 853 |
+
justify-content: center;
|
| 854 |
+
}
|
| 855 |
+
.patch-silhouette-box {
|
| 856 |
+
position: relative;
|
| 857 |
+
display: inline-block;
|
| 858 |
+
line-height: 0;
|
| 859 |
+
animation: silhouettePulse 3.5s ease-in-out infinite alternate;
|
| 860 |
+
transform-origin: center bottom;
|
| 861 |
+
}
|
| 862 |
+
.patch-silhouette-img.is-silhouette {
|
| 863 |
+
height: 200px;
|
| 864 |
+
width: 200px;
|
| 865 |
+
object-fit: contain;
|
| 866 |
+
filter: brightness(0) drop-shadow(0 0 16px rgba(245, 196, 81, 0.95)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.8));
|
| 867 |
+
display: block;
|
| 868 |
+
}
|
| 869 |
+
@keyframes silhouettePulse {
|
| 870 |
+
0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 12px rgba(245, 196, 81, 0.7)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)); }
|
| 871 |
+
100% { transform: scale(1.025) translateY(-4px); filter: drop-shadow(0 0 22px rgba(245, 196, 81, 1)) drop-shadow(0 0 45px rgba(239, 68, 68, 0.75)); }
|
| 872 |
+
}
|
| 873 |
+
.silhouette-eye {
|
| 874 |
+
position: absolute;
|
| 875 |
+
border-radius: 50%;
|
| 876 |
+
background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%);
|
| 877 |
+
box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444;
|
| 878 |
+
z-index: 5;
|
| 879 |
+
pointer-events: none;
|
| 880 |
+
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg));
|
| 881 |
+
transform-origin: center center;
|
| 882 |
+
animation: eyeBlink 4s infinite ease-in-out;
|
| 883 |
+
}
|
| 884 |
+
.eye-left {
|
| 885 |
+
left: var(--eye-l-x, 24.5%);
|
| 886 |
+
top: var(--eye-l-y, 48.1%);
|
| 887 |
+
width: var(--eye-l-w, 9px);
|
| 888 |
+
height: var(--eye-l-h, 6px);
|
| 889 |
+
--eye-rot: var(--eye-l-rot, 14deg);
|
| 890 |
+
}
|
| 891 |
+
.eye-right {
|
| 892 |
+
left: var(--eye-r-x, 37.7%);
|
| 893 |
+
top: var(--eye-r-y, 44.5%);
|
| 894 |
+
width: var(--eye-r-w, 11px);
|
| 895 |
+
height: var(--eye-r-h, 8px);
|
| 896 |
+
--eye-rot: var(--eye-r-rot, -6deg);
|
| 897 |
+
}
|
| 898 |
+
@keyframes eyeBlink {
|
| 899 |
+
0%, 90%, 100% {
|
| 900 |
+
opacity: 1;
|
| 901 |
+
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 1);
|
| 902 |
+
}
|
| 903 |
+
93%, 95% {
|
| 904 |
+
opacity: 0.15;
|
| 905 |
+
transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 0.1);
|
| 906 |
+
}
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
/* 眼睛定位與校準工具 (Eyes Calibrator) 專屬樣式 */
|
| 910 |
+
.calibrator-modal {
|
| 911 |
+
width: 94%;
|
| 912 |
+
max-width: 820px;
|
| 913 |
+
max-height: 92vh;
|
| 914 |
+
background: #0f172a;
|
| 915 |
+
border: 1px solid rgba(245, 196, 81, 0.4);
|
| 916 |
+
border-radius: 18px;
|
| 917 |
+
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 196, 81, 0.2);
|
| 918 |
+
display: flex;
|
| 919 |
+
flex-direction: column;
|
| 920 |
+
overflow: hidden;
|
| 921 |
+
animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
| 922 |
+
}
|
| 923 |
+
.calibrator-header {
|
| 924 |
+
padding: 14px 20px;
|
| 925 |
+
background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
|
| 926 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 927 |
+
display: flex;
|
| 928 |
+
justify-content: space-between;
|
| 929 |
+
align-items: center;
|
| 930 |
+
}
|
| 931 |
+
.calibrator-header h3 {
|
| 932 |
+
margin: 0;
|
| 933 |
+
font-size: 16px;
|
| 934 |
+
color: #fde68a;
|
| 935 |
+
display: flex;
|
| 936 |
+
align-items: center;
|
| 937 |
+
gap: 8px;
|
| 938 |
+
}
|
| 939 |
+
.calibrator-body {
|
| 940 |
+
padding: 16px;
|
| 941 |
+
overflow-y: auto;
|
| 942 |
+
display: grid;
|
| 943 |
+
grid-template-columns: 290px 1fr;
|
| 944 |
+
gap: 20px;
|
| 945 |
+
}
|
| 946 |
+
@media (max-width: 720px) {
|
| 947 |
+
.calibrator-body {
|
| 948 |
+
grid-template-columns: 1fr;
|
| 949 |
+
}
|
| 950 |
+
}
|
| 951 |
+
.calibrator-preview-col {
|
| 952 |
+
display: flex;
|
| 953 |
+
flex-direction: column;
|
| 954 |
+
align-items: center;
|
| 955 |
+
gap: 12px;
|
| 956 |
+
}
|
| 957 |
+
.calibrator-stage-wrap {
|
| 958 |
+
width: 270px;
|
| 959 |
+
height: 270px;
|
| 960 |
+
background: radial-gradient(circle, #1e293b 0%, #090d16 100%);
|
| 961 |
+
border: 2px dashed rgba(245, 196, 81, 0.35);
|
| 962 |
+
border-radius: 14px;
|
| 963 |
+
position: relative;
|
| 964 |
+
overflow: hidden;
|
| 965 |
+
display: flex;
|
| 966 |
+
align-items: center;
|
| 967 |
+
justify-content: center;
|
| 968 |
+
user-select: none;
|
| 969 |
+
}
|
| 970 |
+
.cal-underlay-img {
|
| 971 |
+
position: absolute;
|
| 972 |
+
width: 250px;
|
| 973 |
+
height: 250px;
|
| 974 |
+
object-fit: contain;
|
| 975 |
+
pointer-events: none;
|
| 976 |
+
transition: opacity 0.2s ease;
|
| 977 |
+
}
|
| 978 |
+
.cal-silhouette-img {
|
| 979 |
+
position: absolute;
|
| 980 |
+
width: 250px;
|
| 981 |
+
height: 250px;
|
| 982 |
+
object-fit: contain;
|
| 983 |
+
filter: brightness(0) drop-shadow(0 0 12px rgba(245, 196, 81, 0.9)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.7));
|
| 984 |
+
pointer-events: none;
|
| 985 |
+
transition: opacity 0.2s ease;
|
| 986 |
+
}
|
| 987 |
+
.cal-box {
|
| 988 |
+
width: 250px;
|
| 989 |
+
height: 250px;
|
| 990 |
+
position: relative;
|
| 991 |
+
}
|
| 992 |
+
.cal-eye {
|
| 993 |
+
position: absolute;
|
| 994 |
+
border-radius: 50%;
|
| 995 |
+
background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%);
|
| 996 |
+
box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444;
|
| 997 |
+
pointer-events: none;
|
| 998 |
+
z-index: 10;
|
| 999 |
+
transform: translate(-50%, -50%);
|
| 1000 |
+
}
|
| 1001 |
+
/* 拖曳握把 */
|
| 1002 |
+
.cal-handle {
|
| 1003 |
+
position: absolute;
|
| 1004 |
+
width: 24px;
|
| 1005 |
+
height: 24px;
|
| 1006 |
+
border-radius: 50%;
|
| 1007 |
+
border: 2px solid #fff;
|
| 1008 |
+
transform: translate(-50%, -50%);
|
| 1009 |
+
cursor: grab;
|
| 1010 |
+
z-index: 20;
|
| 1011 |
+
display: flex;
|
| 1012 |
+
align-items: center;
|
| 1013 |
+
justify-content: center;
|
| 1014 |
+
font-size: 11px;
|
| 1015 |
+
font-weight: 900;
|
| 1016 |
+
color: #fff;
|
| 1017 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.8);
|
| 1018 |
+
touch-action: none;
|
| 1019 |
+
}
|
| 1020 |
+
.cal-handle:active {
|
| 1021 |
+
cursor: grabbing;
|
| 1022 |
+
transform: translate(-50%, -50%) scale(1.15);
|
| 1023 |
+
}
|
| 1024 |
+
.cal-handle.handle-l {
|
| 1025 |
+
background: rgba(16, 185, 129, 0.85);
|
| 1026 |
+
box-shadow: 0 0 10px #10b981;
|
| 1027 |
+
}
|
| 1028 |
+
.cal-handle.handle-r {
|
| 1029 |
+
background: rgba(14, 165, 233, 0.85);
|
| 1030 |
+
box-shadow: 0 0 10px #0ea5e9;
|
| 1031 |
+
}
|
| 1032 |
+
.cal-mode-pills {
|
| 1033 |
+
display: flex;
|
| 1034 |
+
gap: 6px;
|
| 1035 |
+
width: 100%;
|
| 1036 |
+
justify-content: center;
|
| 1037 |
+
}
|
| 1038 |
+
.cal-pill-btn {
|
| 1039 |
+
padding: 5px 10px;
|
| 1040 |
+
font-size: 12px;
|
| 1041 |
+
background: rgba(255, 255, 255, 0.08);
|
| 1042 |
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
| 1043 |
+
color: #cbd5e1;
|
| 1044 |
+
border-radius: 6px;
|
| 1045 |
+
cursor: pointer;
|
| 1046 |
+
font-weight: 700;
|
| 1047 |
+
transition: all 0.15s;
|
| 1048 |
+
}
|
| 1049 |
+
.cal-pill-btn.active {
|
| 1050 |
+
background: #d97706;
|
| 1051 |
+
border-color: #f59e0b;
|
| 1052 |
+
color: #fff;
|
| 1053 |
+
box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
|
| 1054 |
+
}
|
| 1055 |
+
.cal-controls-col {
|
| 1056 |
+
display: flex;
|
| 1057 |
+
flex-direction: column;
|
| 1058 |
+
gap: 12px;
|
| 1059 |
+
}
|
| 1060 |
+
.cal-card-group {
|
| 1061 |
+
display: grid;
|
| 1062 |
+
grid-template-columns: 1fr 1fr;
|
| 1063 |
+
gap: 10px;
|
| 1064 |
+
}
|
| 1065 |
+
.cal-eye-card {
|
| 1066 |
+
background: rgba(255, 255, 255, 0.04);
|
| 1067 |
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 1068 |
+
border-radius: 10px;
|
| 1069 |
+
padding: 10px;
|
| 1070 |
+
}
|
| 1071 |
+
.cal-card-title {
|
| 1072 |
+
font-size: 13px;
|
| 1073 |
+
font-weight: 800;
|
| 1074 |
+
margin-bottom: 8px;
|
| 1075 |
+
display: flex;
|
| 1076 |
+
align-items: center;
|
| 1077 |
+
gap: 6px;
|
| 1078 |
+
}
|
| 1079 |
+
.cal-field {
|
| 1080 |
+
margin-bottom: 6px;
|
| 1081 |
+
font-size: 12px;
|
| 1082 |
+
color: #94a3b8;
|
| 1083 |
+
}
|
| 1084 |
+
.cal-field label {
|
| 1085 |
+
display: flex;
|
| 1086 |
+
justify-content: space-between;
|
| 1087 |
+
margin-bottom: 2px;
|
| 1088 |
+
}
|
| 1089 |
+
.cal-field label b {
|
| 1090 |
+
color: #fde68a;
|
| 1091 |
+
}
|
| 1092 |
+
.cal-field input[type="range"] {
|
| 1093 |
+
width: 100%;
|
| 1094 |
+
accent-color: #f59e0b;
|
| 1095 |
+
cursor: pointer;
|
| 1096 |
+
}
|
| 1097 |
+
.cal-json-box {
|
| 1098 |
+
background: #020617;
|
| 1099 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 1100 |
+
border-radius: 8px;
|
| 1101 |
+
padding: 8px 12px;
|
| 1102 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
| 1103 |
+
font-size: 11px;
|
| 1104 |
+
color: #4ade80;
|
| 1105 |
+
max-height: 120px;
|
| 1106 |
+
overflow-y: auto;
|
| 1107 |
+
white-space: pre-wrap;
|
| 1108 |
+
word-break: break-all;
|
| 1109 |
+
}
|
| 1110 |
+
.cal-actions {
|
| 1111 |
+
display: flex;
|
| 1112 |
+
gap: 8px;
|
| 1113 |
+
flex-wrap: wrap;
|
| 1114 |
+
}
|
| 1115 |
+
.cal-act-btn {
|
| 1116 |
+
flex: 1;
|
| 1117 |
+
padding: 8px 12px;
|
| 1118 |
+
font-size: 12px;
|
| 1119 |
+
font-weight: 800;
|
| 1120 |
+
border-radius: 8px;
|
| 1121 |
+
border: none;
|
| 1122 |
+
cursor: pointer;
|
| 1123 |
+
display: inline-flex;
|
| 1124 |
+
align-items: center;
|
| 1125 |
+
justify-content: center;
|
| 1126 |
+
gap: 6px;
|
| 1127 |
+
transition: transform 0.15s, box-shadow 0.15s;
|
| 1128 |
+
}
|
| 1129 |
+
.cal-btn-copy {
|
| 1130 |
+
background: linear-gradient(135deg, #15803d, #22c55e);
|
| 1131 |
+
color: #fff;
|
| 1132 |
+
}
|
| 1133 |
+
.cal-btn-copy:hover {
|
| 1134 |
+
box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
|
| 1135 |
+
transform: translateY(-1px);
|
| 1136 |
+
}
|
| 1137 |
+
.cal-btn-apply {
|
| 1138 |
+
background: linear-gradient(135deg, #b45309, #f59e0b);
|
| 1139 |
+
color: #fff;
|
| 1140 |
+
}
|
| 1141 |
+
.cal-btn-apply:hover {
|
| 1142 |
+
box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
|
| 1143 |
+
transform: translateY(-1px);
|
| 1144 |
+
}
|
| 1145 |
+
.cal-btn-reset {
|
| 1146 |
+
background: rgba(255, 255, 255, 0.1);
|
| 1147 |
+
color: #cbd5e1;
|
| 1148 |
+
flex: 0 0 auto;
|
| 1149 |
+
}
|
| 1150 |
+
.patch-body {
|
| 1151 |
+
position: relative;
|
| 1152 |
+
z-index: 3;
|
| 1153 |
+
padding: 0 20px 20px;
|
| 1154 |
+
background: #090a10;
|
| 1155 |
+
}
|
| 1156 |
+
.patch-badge-pill {
|
| 1157 |
+
display: inline-flex;
|
| 1158 |
+
align-items: center;
|
| 1159 |
+
gap: 6px;
|
| 1160 |
+
background: linear-gradient(135deg, #b45309, #d97706);
|
| 1161 |
+
color: #fff;
|
| 1162 |
+
font-size: 11px;
|
| 1163 |
+
font-weight: 900;
|
| 1164 |
+
padding: 3px 12px;
|
| 1165 |
+
border-radius: 99px;
|
| 1166 |
+
letter-spacing: 1px;
|
| 1167 |
+
box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
|
| 1168 |
+
}
|
| 1169 |
+
.patch-title {
|
| 1170 |
+
margin: 6px 0 4px 0;
|
| 1171 |
+
font-size: 22px;
|
| 1172 |
+
font-weight: 900;
|
| 1173 |
+
letter-spacing: 2px;
|
| 1174 |
+
background: linear-gradient(180deg, #fff 20%, #fde68a 65%, #f59e0b 100%);
|
| 1175 |
+
-webkit-background-clip: text;
|
| 1176 |
+
background-clip: text;
|
| 1177 |
+
-webkit-text-fill-color: transparent;
|
| 1178 |
+
}
|
| 1179 |
+
.patch-subtitle {
|
| 1180 |
+
margin: 0 0 12px 0;
|
| 1181 |
+
font-size: 13px;
|
| 1182 |
+
font-weight: 700;
|
| 1183 |
+
color: #fca5a5;
|
| 1184 |
+
letter-spacing: 0.5px;
|
| 1185 |
+
}
|
| 1186 |
+
.patch-lore-box {
|
| 1187 |
+
background: rgba(255, 255, 255, 0.05);
|
| 1188 |
+
border: 1px solid rgba(245, 196, 81, 0.25);
|
| 1189 |
+
border-left: 4px solid #f59e0b;
|
| 1190 |
+
border-radius: 12px;
|
| 1191 |
+
padding: 10px 14px;
|
| 1192 |
+
font-size: 13px;
|
| 1193 |
+
line-height: 1.65;
|
| 1194 |
+
color: #e2e8f0;
|
| 1195 |
+
margin-bottom: 12px;
|
| 1196 |
+
}
|
| 1197 |
+
.patch-features-grid {
|
| 1198 |
+
display: flex;
|
| 1199 |
+
flex-direction: column;
|
| 1200 |
+
gap: 8px;
|
| 1201 |
+
margin-bottom: 16px;
|
| 1202 |
+
}
|
| 1203 |
+
.patch-feat-item {
|
| 1204 |
+
display: flex;
|
| 1205 |
+
align-items: flex-start;
|
| 1206 |
+
gap: 10px;
|
| 1207 |
+
background: rgba(255, 255, 255, 0.04);
|
| 1208 |
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 1209 |
+
border-radius: 10px;
|
| 1210 |
+
padding: 8px 12px;
|
| 1211 |
+
}
|
| 1212 |
+
.patch-feat-icon {
|
| 1213 |
+
font-size: 18px;
|
| 1214 |
+
line-height: 1;
|
| 1215 |
+
flex-shrink: 0;
|
| 1216 |
+
margin-top: 2px;
|
| 1217 |
+
}
|
| 1218 |
+
.patch-feat-tit {
|
| 1219 |
+
font-size: 13px;
|
| 1220 |
+
font-weight: 800;
|
| 1221 |
+
color: #fef3c7;
|
| 1222 |
+
}
|
| 1223 |
+
.patch-feat-sub {
|
| 1224 |
+
font-size: 11px;
|
| 1225 |
+
color: #cbd5e1;
|
| 1226 |
+
margin-top: 2px;
|
| 1227 |
+
line-height: 1.35;
|
| 1228 |
+
}
|
| 1229 |
+
.patch-btn-confirm {
|
| 1230 |
+
width: 100%;
|
| 1231 |
+
min-height: 46px;
|
| 1232 |
+
border: none;
|
| 1233 |
+
border-radius: 14px;
|
| 1234 |
+
font-family: inherit;
|
| 1235 |
+
font-size: 16px;
|
| 1236 |
+
font-weight: 900;
|
| 1237 |
+
letter-spacing: 2px;
|
| 1238 |
+
color: #2a1500;
|
| 1239 |
+
background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14);
|
| 1240 |
+
cursor: pointer;
|
| 1241 |
+
box-shadow: 0 8px 24px rgba(245, 179, 35, 0.4);
|
| 1242 |
+
transition: transform 0.15s, box-shadow 0.15s;
|
| 1243 |
+
}
|
| 1244 |
+
.patch-btn-confirm:hover {
|
| 1245 |
+
transform: translateY(-2px);
|
| 1246 |
+
box-shadow: 0 12px 30px rgba(245, 179, 35, 0.55);
|
| 1247 |
+
}
|
| 1248 |
+
|
| 1249 |
+
/* =====================================================
|
| 1250 |
+
大地圖沙盤呈現預覽模態視窗
|
| 1251 |
+
===================================================== */
|
| 1252 |
+
.map-preview-modal {
|
| 1253 |
+
width: 96vw;
|
| 1254 |
+
max-width: 1280px;
|
| 1255 |
+
height: 92vh;
|
| 1256 |
+
max-height: 840px;
|
| 1257 |
+
background: #0f121d;
|
| 1258 |
+
border: 1px solid rgba(245, 196, 81, 0.45);
|
| 1259 |
+
border-radius: 20px;
|
| 1260 |
+
display: flex;
|
| 1261 |
+
flex-direction: column;
|
| 1262 |
+
overflow: hidden;
|
| 1263 |
+
box-shadow: 0 30px 90px rgba(0,0,0,0.9);
|
| 1264 |
+
animation: cardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
|
| 1265 |
+
}
|
| 1266 |
+
.map-preview-header {
|
| 1267 |
+
padding: 12px 20px;
|
| 1268 |
+
background: #161a29;
|
| 1269 |
+
border-bottom: 1px solid rgba(255,255,255,0.1);
|
| 1270 |
+
display: flex;
|
| 1271 |
+
align-items: center;
|
| 1272 |
+
justify-content: space-between;
|
| 1273 |
+
gap: 12px;
|
| 1274 |
+
flex-wrap: wrap;
|
| 1275 |
+
}
|
| 1276 |
+
.map-preview-body {
|
| 1277 |
+
flex: 1;
|
| 1278 |
+
position: relative;
|
| 1279 |
+
overflow: hidden;
|
| 1280 |
+
display: flex;
|
| 1281 |
+
align-items: center;
|
| 1282 |
+
justify-content: center;
|
| 1283 |
+
background: #faede1;
|
| 1284 |
+
padding: 8px;
|
| 1285 |
+
}
|
| 1286 |
+
.sandbox-wrap {
|
| 1287 |
+
position: relative;
|
| 1288 |
+
width: 100%;
|
| 1289 |
+
height: 100%;
|
| 1290 |
+
max-height: 100%;
|
| 1291 |
+
aspect-ratio: 16 / 9;
|
| 1292 |
+
border-radius: 14px;
|
| 1293 |
+
overflow: hidden;
|
| 1294 |
+
box-shadow: 0 16px 40px rgba(0,0,0,0.35);
|
| 1295 |
+
container-type: inline-size;
|
| 1296 |
+
user-select: none;
|
| 1297 |
+
}
|
| 1298 |
+
.sandbox-bg {
|
| 1299 |
+
width: 100%;
|
| 1300 |
+
height: 100%;
|
| 1301 |
+
object-fit: cover;
|
| 1302 |
+
display: block;
|
| 1303 |
+
pointer-events: none;
|
| 1304 |
+
}
|
| 1305 |
+
.sandbox-spots {
|
| 1306 |
+
position: absolute;
|
| 1307 |
+
inset: 0;
|
| 1308 |
+
pointer-events: none;
|
| 1309 |
+
}
|
| 1310 |
+
.sandbox-spot {
|
| 1311 |
+
position: absolute;
|
| 1312 |
+
pointer-events: auto;
|
| 1313 |
+
transform: translate(-50%, -50%);
|
| 1314 |
+
display: flex;
|
| 1315 |
+
flex-direction: column;
|
| 1316 |
+
align-items: center;
|
| 1317 |
+
gap: 2px;
|
| 1318 |
+
cursor: pointer;
|
| 1319 |
+
transition: all .25s cubic-bezier(.34,1.56,.64,1);
|
| 1320 |
+
}
|
| 1321 |
+
.sandbox-spot:hover {
|
| 1322 |
+
transform: translate(-50%, -54%) scale(1.08);
|
| 1323 |
+
z-index: 40;
|
| 1324 |
+
}
|
| 1325 |
+
.sandbox-thumb {
|
| 1326 |
+
position: relative;
|
| 1327 |
+
display: flex;
|
| 1328 |
+
align-items: center;
|
| 1329 |
+
justify-content: center;
|
| 1330 |
+
}
|
| 1331 |
+
.sandbox-thumb img {
|
| 1332 |
+
width: 100%;
|
| 1333 |
+
height: 100%;
|
| 1334 |
+
object-fit: contain;
|
| 1335 |
+
filter: drop-shadow(0 10px 18px rgba(45,30,20, 0.45));
|
| 1336 |
+
}
|
| 1337 |
+
.sandbox-label {
|
| 1338 |
+
background: rgba(255,255,255,0.92);
|
| 1339 |
+
border: 1px solid rgba(180,130,100,0.35);
|
| 1340 |
+
border-radius: 8px;
|
| 1341 |
+
padding: 3px 8px;
|
| 1342 |
+
font-size: 11px;
|
| 1343 |
+
font-weight: 800;
|
| 1344 |
+
color: #334155;
|
| 1345 |
+
white-space: nowrap;
|
| 1346 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
| 1347 |
+
text-align: center;
|
| 1348 |
+
}
|
| 1349 |
+
|
| 1350 |
+
/* 世界 Boss 沙盤微縮手辦專屬特效 */
|
| 1351 |
+
.spot-boss-wrap {
|
| 1352 |
+
position: relative;
|
| 1353 |
+
display: flex;
|
| 1354 |
+
align-items: center;
|
| 1355 |
+
justify-content: center;
|
| 1356 |
+
animation: bossHoverFloat 4.2s ease-in-out infinite;
|
| 1357 |
+
}
|
| 1358 |
+
@keyframes bossHoverFloat {
|
| 1359 |
+
0%, 100% { transform: translateY(0); }
|
| 1360 |
+
50% { transform: translateY(-8px); }
|
| 1361 |
+
}
|
| 1362 |
+
.spot-boss-aura {
|
| 1363 |
+
position: absolute; inset: -15%; border-radius: 50%; pointer-events: none; z-index: 1;
|
| 1364 |
+
background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(239, 68, 68, 0.28) 45%, transparent 72%);
|
| 1365 |
+
animation: bossAuraPulse 3.2s ease-in-out infinite alternate;
|
| 1366 |
+
}
|
| 1367 |
+
@keyframes bossAuraPulse {
|
| 1368 |
+
0% { transform: scale(0.92); opacity: 0.75; }
|
| 1369 |
+
100% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6)); }
|
| 1370 |
+
}
|
| 1371 |
+
.spot-boss-img {
|
| 1372 |
+
position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block;
|
| 1373 |
+
filter: drop-shadow(0 14px 26px rgba(40, 10, 30, 0.6)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.65));
|
| 1374 |
+
transition: all .28s cubic-bezier(.34,1.56,.64,1);
|
| 1375 |
+
}
|
| 1376 |
+
.sandbox-spot:hover .spot-boss-img {
|
| 1377 |
+
filter: drop-shadow(0 20px 36px rgba(40, 10, 30, 0.75)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.9));
|
| 1378 |
+
transform: scale(1.08);
|
| 1379 |
+
}
|
| 1380 |
+
/* 封印態 */
|
| 1381 |
+
.sandbox-spot.boss-sealed .spot-boss-aura {
|
| 1382 |
+
background: radial-gradient(circle, rgba(100, 116, 139, 0.35) 0%, rgba(15, 23, 42, 0.6) 55%, transparent 75%);
|
| 1383 |
+
}
|
| 1384 |
+
.sandbox-spot.boss-sealed .spot-boss-img {
|
| 1385 |
+
filter: brightness(0.24) contrast(1.45) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(245, 196, 81, 0.4));
|
| 1386 |
+
}
|
| 1387 |
+
.sandbox-spot.boss-sealed:hover .spot-boss-img {
|
| 1388 |
+
filter: brightness(0.35) contrast(1.4) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(245, 196, 81, 0.8));
|
| 1389 |
+
}
|
| 1390 |
+
.spot-boss-seal-ring {
|
| 1391 |
+
position: absolute; inset: 4%; border: 2px dashed rgba(245, 196, 81, 0.7);
|
| 1392 |
+
border-radius: 50%; pointer-events: none; z-index: 3;
|
| 1393 |
+
animation: sealRingRotate 18s linear infinite;
|
| 1394 |
+
box-shadow: inset 0 0 15px rgba(245, 196, 81, 0.3), 0 0 15px rgba(245, 196, 81, 0.3);
|
| 1395 |
+
}
|
| 1396 |
+
@keyframes sealRingRotate {
|
| 1397 |
+
from { transform: rotate(0deg); }
|
| 1398 |
+
to { transform: rotate(360deg); }
|
| 1399 |
+
}
|
| 1400 |
+
.spot-badge-boss {
|
| 1401 |
+
position: absolute; top: -6px; left: -8px; z-index: 6;
|
| 1402 |
+
background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff;
|
| 1403 |
+
font-size: 11px; font-weight: 900; padding: 2px 10px; border-radius: 99px;
|
| 1404 |
+
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45); border: 1.5px solid rgba(255, 255, 255, 0.9);
|
| 1405 |
+
display: flex; align-items: center; gap: 4px; white-space: nowrap;
|
| 1406 |
+
}
|
| 1407 |
+
.sandbox-spot.boss-sealed .spot-badge-boss {
|
| 1408 |
+
background: linear-gradient(135deg, #475569, #1e293b); color: #cbd5e1;
|
| 1409 |
+
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.5); border-color: rgba(245, 196, 81, 0.6);
|
| 1410 |
+
}
|
| 1411 |
+
.sandbox-spot.spot-boss .sandbox-label {
|
| 1412 |
+
background: linear-gradient(135deg, rgba(26, 16, 36, 0.95), rgba(45, 18, 30, 0.95)) !important;
|
| 1413 |
+
border: 1.5px solid rgba(245, 196, 81, 0.6) !important;
|
| 1414 |
+
color: #fde047 !important;
|
| 1415 |
+
box-shadow: 0 8px 20px rgba(20, 10, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
|
| 1416 |
+
}
|
| 1417 |
+
|
| 1418 |
+
/* ========== 平板與手機響應式適配 (解決平板看不到右上角 X、手機難滑動問題) ========== */
|
| 1419 |
+
@media (max-width: 900px) {
|
| 1420 |
+
.intro-wrap {
|
| 1421 |
+
padding: 16px 12px 40px;
|
| 1422 |
+
}
|
| 1423 |
+
.intro-card {
|
| 1424 |
+
grid-template-columns: 1fr;
|
| 1425 |
+
gap: 16px;
|
| 1426 |
+
padding: 18px;
|
| 1427 |
+
border-radius: 18px;
|
| 1428 |
+
}
|
| 1429 |
+
.btn-card-close {
|
| 1430 |
+
top: 12px;
|
| 1431 |
+
right: 12px;
|
| 1432 |
+
width: 44px;
|
| 1433 |
+
height: 44px;
|
| 1434 |
+
}
|
| 1435 |
+
.intro-portrait {
|
| 1436 |
+
min-height: 220px;
|
| 1437 |
+
max-height: 260px;
|
| 1438 |
+
}
|
| 1439 |
+
.intro-portrait img {
|
| 1440 |
+
max-height: 220px;
|
| 1441 |
+
}
|
| 1442 |
+
.boss-title {
|
| 1443 |
+
font-size: 32px;
|
| 1444 |
+
letter-spacing: 2px;
|
| 1445 |
+
}
|
| 1446 |
+
.reward-list {
|
| 1447 |
+
grid-template-columns: 1fr 1fr;
|
| 1448 |
+
gap: 6px;
|
| 1449 |
+
}
|
| 1450 |
+
.reward-item {
|
| 1451 |
+
padding: 8px 10px;
|
| 1452 |
+
}
|
| 1453 |
+
.btn-start {
|
| 1454 |
+
min-height: 52px;
|
| 1455 |
+
font-size: 18px;
|
| 1456 |
+
}
|
| 1457 |
+
}
|
| 1458 |
+
|
| 1459 |
+
@media (max-height: 820px) {
|
| 1460 |
+
.intro-wrap {
|
| 1461 |
+
padding: 12px 14px 30px;
|
| 1462 |
+
}
|
| 1463 |
+
.intro-card {
|
| 1464 |
+
gap: 18px;
|
| 1465 |
+
padding: 18px 22px;
|
| 1466 |
+
}
|
| 1467 |
+
.intro-portrait {
|
| 1468 |
+
min-height: 280px;
|
| 1469 |
+
}
|
| 1470 |
+
.intro-portrait img {
|
| 1471 |
+
max-height: 280px;
|
| 1472 |
+
}
|
| 1473 |
+
.boss-title {
|
| 1474 |
+
font-size: 30px;
|
| 1475 |
+
letter-spacing: 2px;
|
| 1476 |
+
}
|
| 1477 |
+
.boss-desc {
|
| 1478 |
+
font-size: 13px;
|
| 1479 |
+
line-height: 1.6;
|
| 1480 |
+
}
|
| 1481 |
+
.reward-box {
|
| 1482 |
+
padding: 10px 14px;
|
| 1483 |
+
}
|
| 1484 |
+
.btn-start {
|
| 1485 |
+
min-height: 50px;
|
| 1486 |
+
font-size: 18px;
|
| 1487 |
+
}
|
| 1488 |
+
}
|
| 1489 |
+
|
| 1490 |
+
@media (max-width: 600px) {
|
| 1491 |
+
.reward-list {
|
| 1492 |
+
grid-template-columns: 1fr;
|
| 1493 |
+
}
|
| 1494 |
+
.boss-title {
|
| 1495 |
+
font-size: 26px;
|
| 1496 |
+
}
|
| 1497 |
+
}
|
index.html
CHANGED
|
@@ -360,6 +360,11 @@
|
|
| 360 |
<button id="luckyChest" class="lucky hidden" aria-label="幸運寶箱">🎁</button>
|
| 361 |
</section>
|
| 362 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
<script type="module" src="js/game.js?v=20261031_v1"></script>
|
| 364 |
</body>
|
| 365 |
</html>
|
|
|
|
| 360 |
<button id="luckyChest" class="lucky hidden" aria-label="幸運寶箱">🎁</button>
|
| 361 |
</section>
|
| 362 |
|
| 363 |
+
<!-- 世界 Boss 決戰殿堂:全螢幕極速無縫對戰容器(免白屏重整、0 秒瞬回九州大地圖) -->
|
| 364 |
+
<div id="viewBossOverlay" class="hidden" style="position:fixed; inset:0; z-index:99999; background:#000; display:flex; flex-direction:column;">
|
| 365 |
+
<iframe id="bossBattleIframe" style="width:100%; height:100%; border:none; background:#000;" allow="autoplay" src="about:blank"></iframe>
|
| 366 |
+
</div>
|
| 367 |
+
|
| 368 |
<script type="module" src="js/game.js?v=20261031_v1"></script>
|
| 369 |
</body>
|
| 370 |
</html>
|
js/boss-battle.js
ADDED
|
@@ -0,0 +1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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// ============================================================================
|
| 2 |
+
// js/boss-battle.js
|
| 3 |
+
// 世界 Boss 決戰殿堂:戰鬥流程、音效合成、題庫連動、血量同步與即時傷害結算
|
| 4 |
+
// ============================================================================
|
| 5 |
+
import { getDB, DBError, defaultBossState } from './js/db.js?v=20261031_v1';
|
| 6 |
+
import { loadBank, loadBankIndex } from './js/quiz.js?v=20261031_v1';
|
| 7 |
+
import { recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll, WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus } from './js/engine.js?v=20261031_v1';
|
| 8 |
+
import { todayStr, fmt, shuffle, renderRichQuizText } from './js/util.js?v=20261031_v1';
|
| 9 |
+
|
| 10 |
+
// ==========================================
|
| 11 |
+
// 1. 全域與連線狀態
|
| 12 |
+
// ==========================================
|
| 13 |
+
const BOSS_MAX_HP = 500;
|
| 14 |
+
const MAX_ORDERS = 3;
|
| 15 |
+
const QUAL_DMG = 5;
|
| 16 |
+
|
| 17 |
+
let db = null;
|
| 18 |
+
let currentUser = null;
|
| 19 |
+
let currentStudent = null;
|
| 20 |
+
let currentClass = null;
|
| 21 |
+
let worldBossData = null;
|
| 22 |
+
let unsubscribeBoss = null;
|
| 23 |
+
let activeBossKey = new URLSearchParams(window.location.search).get('boss') === 'qiongqi' ? 'qiongqi' : 'taotie';
|
| 24 |
+
|
| 25 |
+
function getCurBossCfg() {
|
| 26 |
+
return WORLD_BOSS_ROSTER[activeBossKey] || WORLD_BOSS_ROSTER.taotie;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
function applyBossTheme(bossKey) {
|
| 30 |
+
activeBossKey = WORLD_BOSS_ROSTER[bossKey] ? bossKey : 'taotie';
|
| 31 |
+
const cfg = getCurBossCfg();
|
| 32 |
+
const introImg = $('introBossImg');
|
| 33 |
+
if (introImg) { introImg.src = cfg.sprite; introImg.alt = cfg.name; }
|
| 34 |
+
const introTitle = $('introBossTitle');
|
| 35 |
+
if (introTitle) introTitle.textContent = cfg.name;
|
| 36 |
+
const introSub = $('introBossSubtitle');
|
| 37 |
+
if (introSub) {
|
| 38 |
+
introSub.textContent = activeBossKey === 'qiongqi'
|
| 39 |
+
? '⚡ 上古四凶之貳 | 決戰領域:【天罰雷獄・斷魂絕谷】'
|
| 40 |
+
: '🏛️ 門檻:完成第三單元(51-75)軍機策驗 | ⏳ 實裝破印時間:10/27(二)';
|
| 41 |
+
}
|
| 42 |
+
const introDesc = $('introBossDesc');
|
| 43 |
+
if (introDesc) introDesc.textContent = cfg.loreSummary;
|
| 44 |
+
const battleName = $('battleBossName');
|
| 45 |
+
if (battleName) battleName.textContent = cfg.name;
|
| 46 |
+
const bossSprite = $('bossSprite');
|
| 47 |
+
if (bossSprite) { bossSprite.src = cfg.sprite; bossSprite.alt = cfg.name; }
|
| 48 |
+
const bgStyle = `linear-gradient(to bottom, rgba(10, 6, 12, 0.35) 0%, rgba(10, 6, 12, 0.65) 55%, rgba(10, 6, 12, 0.92) 100%), url('${cfg.bg}') center center / cover no-repeat`;
|
| 49 |
+
const introBg = $('introSceneBg');
|
| 50 |
+
if (introBg) introBg.style.background = bgStyle;
|
| 51 |
+
const battleBg = $('battleSceneBg');
|
| 52 |
+
if (battleBg) battleBg.style.background = bgStyle;
|
| 53 |
+
const switchBtn = $('btnSwitchBossTheme');
|
| 54 |
+
if (switchBtn) {
|
| 55 |
+
switchBtn.textContent = activeBossKey === 'qiongqi'
|
| 56 |
+
? '🐲 切回當期世界Boss【上古・饕餮】'
|
| 57 |
+
: '⚡ 立即切換戰鬥場景預覽【上古・窮奇】';
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
let bossHp = BOSS_MAX_HP;
|
| 62 |
+
let ordersLeft = MAX_ORDERS;
|
| 63 |
+
let myTotalDamage = 0;
|
| 64 |
+
let myBankId = 'wiring';
|
| 65 |
+
let bankName = '';
|
| 66 |
+
let myMistakes = [];
|
| 67 |
+
let peerMistakes = [];
|
| 68 |
+
let realBankQuestions = [];
|
| 69 |
+
let simulatedMistakeCount = 0;
|
| 70 |
+
|
| 71 |
+
let inBattle = false;
|
| 72 |
+
let currentQueue = [];
|
| 73 |
+
let clearedAttacks = 0;
|
| 74 |
+
let currentRoundDamage = 0;
|
| 75 |
+
let hasChargeBuff = false;
|
| 76 |
+
let canClick = false;
|
| 77 |
+
let pendingTimer = null;
|
| 78 |
+
|
| 79 |
+
const $ = (id) => document.getElementById(id);
|
| 80 |
+
|
| 81 |
+
// ==========================================
|
| 82 |
+
// 2. 音效
|
| 83 |
+
// ==========================================
|
| 84 |
+
let audioCtx = null;
|
| 85 |
+
function playBeep(freq, type, duration, gainVal) {
|
| 86 |
+
try {
|
| 87 |
+
if (!audioCtx) audioCtx = new (window.AudioContext || window.webkitAudioContext)();
|
| 88 |
+
if (audioCtx.state === 'suspended') audioCtx.resume();
|
| 89 |
+
const osc = audioCtx.createOscillator();
|
| 90 |
+
const gain = audioCtx.createGain();
|
| 91 |
+
osc.type = type;
|
| 92 |
+
osc.frequency.setValueAtTime(freq, audioCtx.currentTime);
|
| 93 |
+
gain.gain.setValueAtTime(gainVal, audioCtx.currentTime);
|
| 94 |
+
gain.gain.exponentialRampToValueAtTime(0.0001, audioCtx.currentTime + duration);
|
| 95 |
+
osc.connect(gain);
|
| 96 |
+
gain.connect(audioCtx.destination);
|
| 97 |
+
osc.start();
|
| 98 |
+
osc.stop(audioCtx.currentTime + duration);
|
| 99 |
+
} catch (e) { /* 音效失敗不影響遊戲 */ }
|
| 100 |
+
}
|
| 101 |
+
const soundCorrect = () => { playBeep(523, 'triangle', 0.1, 0.15); setTimeout(() => playBeep(659, 'triangle', 0.15, 0.15), 80); };
|
| 102 |
+
const soundWrong = () => playBeep(220, 'sine', 0.25, 0.2);
|
| 103 |
+
const soundCrit = () => {
|
| 104 |
+
playBeep(140, 'sawtooth', 0.45, 0.4);
|
| 105 |
+
playBeep(280, 'sawtooth', 0.3, 0.3);
|
| 106 |
+
setTimeout(() => playBeep(587, 'sine', 0.25, 0.3), 50);
|
| 107 |
+
setTimeout(() => playBeep(987, 'triangle', 0.45, 0.3), 110);
|
| 108 |
+
};
|
| 109 |
+
|
| 110 |
+
// ==========================================
|
| 111 |
+
// 3. 畫面切換與連線即時渲染
|
| 112 |
+
// ==========================================
|
| 113 |
+
function showIntro() {
|
| 114 |
+
inBattle = false;
|
| 115 |
+
canClick = false;
|
| 116 |
+
clearTimeout(pendingTimer);
|
| 117 |
+
$('screenBattle').classList.add('hidden');
|
| 118 |
+
$('screenIntro').classList.remove('hidden');
|
| 119 |
+
renderIntro();
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
function showBattle() {
|
| 123 |
+
inBattle = true;
|
| 124 |
+
$('screenIntro').classList.add('hidden');
|
| 125 |
+
$('screenBattle').classList.remove('hidden');
|
| 126 |
+
updateHpUI();
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
function calcCritRate(isCharge) {
|
| 130 |
+
const base = isCharge ? 0.40 : 0.15;
|
| 131 |
+
const buff = currentStudent?.game?.merchantBuffs?.bossCritRate || 0;
|
| 132 |
+
return Math.min(1.0, base + buff);
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
function renderIntro() {
|
| 136 |
+
const today = todayStr();
|
| 137 |
+
const effClass = { ...(currentClass || {}), worldBoss: worldBossData || currentClass?.worldBoss };
|
| 138 |
+
const wbStatus = calcWorldBossStatus(effClass, currentStudent?.progress, currentStudent?.game, today);
|
| 139 |
+
const maxHp = wbStatus.maxHp;
|
| 140 |
+
const curHp = typeof worldBossData?.curHp === 'number' ? worldBossData.curHp : wbStatus.curHp;
|
| 141 |
+
const pct = wbStatus.pctFloat;
|
| 142 |
+
|
| 143 |
+
$('introHpText').textContent = `${curHp} / ${maxHp} HP`;
|
| 144 |
+
$('introHpBar').style.width = `${pct}%`;
|
| 145 |
+
$('introClassTitle').textContent = currentClass?.name ? `【${currentClass.name}】全班討伐進度` : '全班討伐進度';
|
| 146 |
+
|
| 147 |
+
// 累計個人傷害
|
| 148 |
+
if (currentStudent && currentUser && worldBossData?.damages?.[currentUser.uid]) {
|
| 149 |
+
myTotalDamage = worldBossData.damages[currentUser.uid].dmg || 0;
|
| 150 |
+
}
|
| 151 |
+
$('myRankSummary').textContent = `我的總傷害:${myTotalDamage} HP`;
|
| 152 |
+
|
| 153 |
+
// 領獎資格顯示
|
| 154 |
+
const qual = $('introQual');
|
| 155 |
+
if (myTotalDamage >= QUAL_DMG) {
|
| 156 |
+
qual.textContent = `✅ 已取得領獎資格(個人累計傷害 ${myTotalDamage} / ${QUAL_DMG})`;
|
| 157 |
+
qual.classList.add('ok');
|
| 158 |
+
} else {
|
| 159 |
+
qual.textContent = `領獎資格:個人累計傷害 ${myTotalDamage} / ${QUAL_DMG}`;
|
| 160 |
+
qual.classList.remove('ok');
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
// 動態計算並顯示依遊戲進度調整之討伐獎勵
|
| 164 |
+
const isKillerMe = !!(worldBossData?.killer?.uid && currentUser?.uid && worldBossData.killer.uid === currentUser.uid);
|
| 165 |
+
const rew = calcWorldBossRewards(currentStudent?.progress, currentStudent?.game, currentClass, isKillerMe);
|
| 166 |
+
const cfg = getCurBossCfg();
|
| 167 |
+
if ($('rewardTierTag')) {
|
| 168 |
+
$('rewardTierTag').textContent = currentStudent
|
| 169 |
+
? `當前進度【${rew.tierLabel}】專屬加成・擊破後全員發放`
|
| 170 |
+
: '依個人遊戲進度動態調整・擊破後全員發放';
|
| 171 |
+
}
|
| 172 |
+
if ($('rewardGrainTitle')) $('rewardGrainTitle').textContent = `1 小時產量包 ×${rew.grainHours}`;
|
| 173 |
+
if ($('rewardGrainSub')) {
|
| 174 |
+
$('rewardGrainSub').textContent = currentStudent
|
| 175 |
+
? `預估可得 +${rew.coins.toLocaleString()} 糧草`
|
| 176 |
+
: '依個人當下產能與進度補給(2~8小時)';
|
| 177 |
+
}
|
| 178 |
+
if ($('rewardBpTitle')) $('rewardBpTitle').textContent = `兵符 ×${rew.baseBp}`;
|
| 179 |
+
if ($('rewardBpSub')) {
|
| 180 |
+
$('rewardBpSub').textContent = currentStudent
|
| 181 |
+
? `${rew.tierLabel}(隨通關進度提升 2~10 枚)`
|
| 182 |
+
: '隨通關進度動態提升(2~10 枚)';
|
| 183 |
+
}
|
| 184 |
+
if ($('rewardScrollTitle')) $('rewardScrollTitle').textContent = `錦囊包 ×${rew.peekCount}`;
|
| 185 |
+
if ($('rewardScrollSub')) $('rewardScrollSub').textContent = `偷看卷 ×${rew.peekCount} + 刪去卷 ×${rew.eliminateCount}`;
|
| 186 |
+
if ($('rewardTitleSub')) $('rewardTitleSub').textContent = `【${cfg.titles.participant}】`;
|
| 187 |
+
if ($('rewardMvpTitle')) {
|
| 188 |
+
$('rewardMvpTitle').textContent = `MVP/最後一擊加碼:兵符 +${rew.killerBonusBp}(共 ${rew.baseBp + rew.killerBonusBp} 枚)`;
|
| 189 |
+
}
|
| 190 |
+
if ($('rewardMvpSub')) {
|
| 191 |
+
$('rewardMvpSub').textContent = `傷害第一【${cfg.titles.mvp}】・最後一擊【${cfg.titles.killer}】`;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
// 領獎按鈕狀態
|
| 195 |
+
const btnClaim = $('btnClaimReward');
|
| 196 |
+
const isDefeated = wbStatus.defeated || curHp <= 0;
|
| 197 |
+
if (isDefeated && myTotalDamage >= QUAL_DMG) {
|
| 198 |
+
btnClaim.classList.remove('hidden');
|
| 199 |
+
if (currentStudent?.game?.boss?.rewardClaimed) {
|
| 200 |
+
btnClaim.disabled = true;
|
| 201 |
+
btnClaim.textContent = '✅ 已領取神獸全服勝利寶庫';
|
| 202 |
+
btnClaim.style.background = '#475569';
|
| 203 |
+
btnClaim.style.boxShadow = 'none';
|
| 204 |
+
btnClaim.style.cursor = 'default';
|
| 205 |
+
} else {
|
| 206 |
+
btnClaim.disabled = false;
|
| 207 |
+
btnClaim.textContent = `🎁 領取神獸寶庫(兵符×${rew.totalBp}、${rew.grainHours}小時糧草、錦囊×${rew.peekCount})!`;
|
| 208 |
+
btnClaim.style.background = 'linear-gradient(135deg, #10b981, #059669)';
|
| 209 |
+
btnClaim.style.boxShadow = '0 4px 18px rgba(16,185,129,0.45)';
|
| 210 |
+
btnClaim.style.cursor = 'pointer';
|
| 211 |
+
}
|
| 212 |
+
} else {
|
| 213 |
+
btnClaim.classList.add('hidden');
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
// 終結一擊英雄橫幅
|
| 217 |
+
const killerBanner = $('killerBanner');
|
| 218 |
+
const killerName = $('killerName');
|
| 219 |
+
if (worldBossData?.killer) {
|
| 220 |
+
killerBanner.classList.remove('hidden');
|
| 221 |
+
killerName.textContent = `座號 #${worldBossData.killer.seat} ${worldBossData.killer.name}`;
|
| 222 |
+
} else {
|
| 223 |
+
killerBanner.classList.add('hidden');
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
// 渲染班級功勳金榜
|
| 227 |
+
renderLeaderboard();
|
| 228 |
+
|
| 229 |
+
// 計算今日剩餘討伐次數(統一使用 calcWorldBossStatus)
|
| 230 |
+
ordersLeft = wbStatus.ordersLeft;
|
| 231 |
+
const maxOrders = wbStatus.maxOrders;
|
| 232 |
+
|
| 233 |
+
const btn = $('btnStart');
|
| 234 |
+
if (isDefeated) {
|
| 235 |
+
btn.disabled = true;
|
| 236 |
+
btn.textContent = `${cfg.shortName || '神獸'}已被全班封印!`;
|
| 237 |
+
} else if (ordersLeft <= 0) {
|
| 238 |
+
btn.disabled = true;
|
| 239 |
+
btn.textContent = `今日討伐次數已用完(0/${maxOrders})`;
|
| 240 |
+
} else {
|
| 241 |
+
btn.disabled = false;
|
| 242 |
+
btn.textContent = `開始討伐(${ordersLeft}/${maxOrders})`;
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
function renderLeaderboard() {
|
| 247 |
+
const container = $('leaderboardList');
|
| 248 |
+
if (!container) return;
|
| 249 |
+
const damagesObj = worldBossData?.damages || {};
|
| 250 |
+
const list = Object.entries(damagesObj).map(([uid, r]) => ({ uid, ...r })).sort((a, b) => (b.dmg || 0) - (a.dmg || 0));
|
| 251 |
+
|
| 252 |
+
if (!list.length) {
|
| 253 |
+
container.innerHTML = '<div style="color:#94a3b8; text-align:center; padding:8px;">全軍整裝待發,尚未有同袍出征!快搶拔頭籌!</div>';
|
| 254 |
+
return;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
const medals = ['🥇', '🥈', '🥉'];
|
| 258 |
+
container.innerHTML = list.slice(0, 10).map((r, idx) => {
|
| 259 |
+
const isMe = currentUser && r.uid === currentUser.uid;
|
| 260 |
+
const rankLabel = idx < 3 ? medals[idx] : `#${idx + 1}`;
|
| 261 |
+
const killerBadge = (worldBossData?.killer?.uid === r.uid) ? '<span style="color:#ef4444; font-weight:800; margin-left:4px;">👑 終結者</span>' : '';
|
| 262 |
+
const meBadge = isMe ? '<span style="color:#f59e0b; font-weight:800; margin-left:4px;">(我)</span>' : '';
|
| 263 |
+
return `
|
| 264 |
+
<div style="display:flex; justify-content:space-between; align-items:center; padding:5px 8px; border-radius:6px; background:${isMe ? 'rgba(245,158,11,0.2)' : 'rgba(255,255,255,0.05)'}; border:1px solid ${isMe ? 'rgba(245,158,11,0.45)' : 'transparent'};">
|
| 265 |
+
<div style="display:flex; align-items:center; gap:6px;">
|
| 266 |
+
<b style="width:24px; text-align:center; font-size:13px;">${rankLabel}</b>
|
| 267 |
+
<span style="font-weight:700;">#${escapeHtml(r.seat || '')} ${escapeHtml(r.name || '同袍')}</span>
|
| 268 |
+
${killerBadge}
|
| 269 |
+
${meBadge}
|
| 270 |
+
</div>
|
| 271 |
+
<b style="color:#fca5a5; font-size:13px;">${r.dmg || 0} HP</b>
|
| 272 |
+
</div>
|
| 273 |
+
`;
|
| 274 |
+
}).join('');
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
// ==========================================
|
| 278 |
+
// 4. 戰鬥流程
|
| 279 |
+
// ==========================================
|
| 280 |
+
function startNewCombat() {
|
| 281 |
+
if (inBattle) return;
|
| 282 |
+
|
| 283 |
+
const curHp = typeof worldBossData?.curHp === 'number' ? worldBossData.curHp : bossHp;
|
| 284 |
+
if (worldBossData?.defeated || curHp <= 0) {
|
| 285 |
+
alert('太古凶神・饕餮已被全班合力封印!');
|
| 286 |
+
return;
|
| 287 |
+
}
|
| 288 |
+
if (ordersLeft <= 0) {
|
| 289 |
+
alert('今日出征討伐次數已用完(每日 3 次),請明日破曉再來!');
|
| 290 |
+
return;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
// 檢查是否通關第三單元 (u3)
|
| 294 |
+
if (currentStudent && currentStudent.progress) {
|
| 295 |
+
const u3Best = currentStudent.progress?.u3?.best || 0;
|
| 296 |
+
if (u3Best < 85) {
|
| 297 |
+
alert('出征資格未符:須先完成第三單元(51-75)軍機策驗且達 85 分方可出征!');
|
| 298 |
+
return;
|
| 299 |
+
}
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
clearedAttacks = 0;
|
| 303 |
+
currentRoundDamage = 0;
|
| 304 |
+
hasChargeBuff = false;
|
| 305 |
+
$('requeueNotice').classList.add('hidden');
|
| 306 |
+
|
| 307 |
+
// 依學生個人錯題簿數量決定集氣題數量
|
| 308 |
+
const mistakeCount = myMistakes.length || simulatedMistakeCount;
|
| 309 |
+
let chargeCount = 0;
|
| 310 |
+
if (mistakeCount >= 35) chargeCount = 3;
|
| 311 |
+
else if (mistakeCount >= 25) chargeCount = 2;
|
| 312 |
+
else if (mistakeCount >= 15) chargeCount = 1;
|
| 313 |
+
|
| 314 |
+
// 檢查本學科題庫是否就緒
|
| 315 |
+
if (!realBankQuestions || realBankQuestions.length === 0) {
|
| 316 |
+
alert(`【${bankName || myBankId}】學科題庫載入中,請稍候 1~2 秒再點擊開始!`);
|
| 317 |
+
return;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
// ==========================================
|
| 321 |
+
// 學科嚴格限定出題算法(Cascading Subject Selector)
|
| 322 |
+
// 優先序 1:學生個人錯題 (myMistakes)
|
| 323 |
+
// 優先序 2:同班同學科其他人的錯題 (peerMistakes,非隨機亂挑,嚴格同學科)
|
| 324 |
+
// 優先序 3:學生自己學科的真實題庫 (realBankQuestions)
|
| 325 |
+
// ==========================================
|
| 326 |
+
const myMistakePool = shuffle([...myMistakes]);
|
| 327 |
+
const myQSet = new Set(myMistakes.map(m => m.q));
|
| 328 |
+
|
| 329 |
+
// 同科同袍錯題(���除自己已經有的錯題,並去重)
|
| 330 |
+
const peerMistakePool = [];
|
| 331 |
+
const seenPeerQ = new Set();
|
| 332 |
+
for (const pm of shuffle([...peerMistakes])) {
|
| 333 |
+
if (!myQSet.has(pm.q) && !seenPeerQ.has(pm.q)) {
|
| 334 |
+
seenPeerQ.add(pm.q);
|
| 335 |
+
peerMistakePool.push(pm);
|
| 336 |
+
}
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
// 自己學科題庫(排除已在上述錯題中的題目)
|
| 340 |
+
const bankPool = shuffle(realBankQuestions.filter(bq => !myQSet.has(bq.q) && !seenPeerQ.has(bq.q)));
|
| 341 |
+
|
| 342 |
+
// 挑選 5 題主力攻擊題目
|
| 343 |
+
const combatQuestions = [];
|
| 344 |
+
|
| 345 |
+
// 階梯挑選 1:優先出自己的錯題
|
| 346 |
+
while (combatQuestions.length < 5 && myMistakePool.length > 0) {
|
| 347 |
+
const q = myMistakePool.shift();
|
| 348 |
+
combatQuestions.push({
|
| 349 |
+
q: q.q,
|
| 350 |
+
o: q.o,
|
| 351 |
+
a: q.a,
|
| 352 |
+
bank: myBankId,
|
| 353 |
+
tag: '弱點精熟',
|
| 354 |
+
isCharge: false
|
| 355 |
+
});
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
// 階梯挑選 2:自己的答完了,出自己學科其他同袍的錯題
|
| 359 |
+
while (combatQuestions.length < 5 && peerMistakePool.length > 0) {
|
| 360 |
+
const q = peerMistakePool.shift();
|
| 361 |
+
combatQuestions.push({
|
| 362 |
+
q: q.q,
|
| 363 |
+
o: q.o,
|
| 364 |
+
a: q.a,
|
| 365 |
+
bank: myBankId,
|
| 366 |
+
tag: '同袍錯題支援',
|
| 367 |
+
isCharge: false
|
| 368 |
+
});
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
// 階梯挑選 3:若同袍錯題亦用完,從自己學科題庫隨機抽取
|
| 372 |
+
while (combatQuestions.length < 5 && bankPool.length > 0) {
|
| 373 |
+
const q = bankPool.shift();
|
| 374 |
+
combatQuestions.push({
|
| 375 |
+
q: q.q,
|
| 376 |
+
o: q.o,
|
| 377 |
+
a: q.a,
|
| 378 |
+
bank: myBankId,
|
| 379 |
+
tag: bankName || '學科策題',
|
| 380 |
+
isCharge: false
|
| 381 |
+
});
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
// 極限保底:若題庫規模過小,循環從自己學科題庫挑選
|
| 385 |
+
while (combatQuestions.length < 5 && realBankQuestions.length > 0) {
|
| 386 |
+
const q = realBankQuestions[Math.floor(Math.random() * realBankQuestions.length)];
|
| 387 |
+
combatQuestions.push({
|
| 388 |
+
q: q.q,
|
| 389 |
+
o: q.o,
|
| 390 |
+
a: q.a,
|
| 391 |
+
bank: myBankId,
|
| 392 |
+
tag: bankName || '學科策題',
|
| 393 |
+
isCharge: false
|
| 394 |
+
});
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
+
const queue = combatQuestions;
|
| 398 |
+
|
| 399 |
+
// 集氣題目來源:同樣遵循 自己錯題 -> 同袍錯題 -> 自己學科題庫
|
| 400 |
+
const chargePool = [...myMistakePool, ...peerMistakePool, ...bankPool];
|
| 401 |
+
if (chargeCount >= 1 && chargePool[0]) {
|
| 402 |
+
queue.splice(2, 0, {
|
| 403 |
+
q: chargePool[0].q,
|
| 404 |
+
o: chargePool[0].o,
|
| 405 |
+
a: chargePool[0].a,
|
| 406 |
+
bank: myBankId,
|
| 407 |
+
tag: '集氣試煉',
|
| 408 |
+
isCharge: true
|
| 409 |
+
});
|
| 410 |
+
}
|
| 411 |
+
if (chargeCount >= 2 && chargePool[1]) {
|
| 412 |
+
queue.splice(4, 0, {
|
| 413 |
+
q: chargePool[1].q,
|
| 414 |
+
o: chargePool[1].o,
|
| 415 |
+
a: chargePool[1].a,
|
| 416 |
+
bank: myBankId,
|
| 417 |
+
tag: '集氣試煉',
|
| 418 |
+
isCharge: true
|
| 419 |
+
});
|
| 420 |
+
}
|
| 421 |
+
if (chargeCount >= 3 && chargePool[2]) {
|
| 422 |
+
queue.splice(1, 0, {
|
| 423 |
+
q: chargePool[2].q,
|
| 424 |
+
o: chargePool[2].o,
|
| 425 |
+
a: chargePool[2].a,
|
| 426 |
+
bank: myBankId,
|
| 427 |
+
tag: '集氣試煉',
|
| 428 |
+
isCharge: true
|
| 429 |
+
});
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
currentQueue = queue;
|
| 433 |
+
showBattle();
|
| 434 |
+
renderCurrentQuestion();
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
function renderCurrentQuestion() {
|
| 438 |
+
if (!inBattle) return;
|
| 439 |
+
if (currentQueue.length === 0 || clearedAttacks >= 5 || bossHp <= 0) {
|
| 440 |
+
finishCombat();
|
| 441 |
+
return;
|
| 442 |
+
}
|
| 443 |
+
const q = currentQueue[0];
|
| 444 |
+
if (!q || !Array.isArray(q.o)) { finishCombat(); return; }
|
| 445 |
+
|
| 446 |
+
const badge = $('qBadge');
|
| 447 |
+
if (q.isCharge) {
|
| 448 |
+
badge.className = 'q-badge charge';
|
| 449 |
+
badge.textContent = '⚡ 集氣試煉';
|
| 450 |
+
} else {
|
| 451 |
+
badge.className = 'q-badge';
|
| 452 |
+
badge.textContent = `攻擊回合 ${clearedAttacks + 1}/5`;
|
| 453 |
+
}
|
| 454 |
+
$('qQueue').textContent = `待精熟:${currentQueue.length} 題`;
|
| 455 |
+
|
| 456 |
+
const critRate = calcCritRate(hasChargeBuff);
|
| 457 |
+
const crit = $('qCrit');
|
| 458 |
+
crit.textContent = hasChargeBuff ? `⚡ 暴擊率 ${Math.round(critRate * 100)}%` : `暴擊率 ${Math.round(critRate * 100)}%`;
|
| 459 |
+
crit.classList.toggle('buff', hasChargeBuff);
|
| 460 |
+
|
| 461 |
+
$('qStem').innerHTML =
|
| 462 |
+
(q.isCharge ? '<span class="charge-tag">【集氣】</span>' : '') +
|
| 463 |
+
renderRichQuizText(q.q) +
|
| 464 |
+
`<span class="tag">(${escapeHtml(q.tag || '')})</span>`;
|
| 465 |
+
|
| 466 |
+
$('optContainer').innerHTML = q.o.map((opt, i) => {
|
| 467 |
+
const label = String.fromCharCode(65 + i);
|
| 468 |
+
return `<button class="opt-btn" type="button" data-label="${label}">
|
| 469 |
+
<span class="opt-tag">${label}</span><span>${renderRichQuizText(opt)}</span>
|
| 470 |
+
</button>`;
|
| 471 |
+
}).join('');
|
| 472 |
+
|
| 473 |
+
canClick = true;
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
function handleAnswer(selected) {
|
| 477 |
+
if (!inBattle || !canClick) return;
|
| 478 |
+
canClick = false;
|
| 479 |
+
|
| 480 |
+
const q = currentQueue[0];
|
| 481 |
+
const isCorrect = selected === q.a;
|
| 482 |
+
|
| 483 |
+
document.querySelectorAll('#optContainer .opt-btn').forEach(b => {
|
| 484 |
+
b.disabled = true;
|
| 485 |
+
const l = b.dataset.label;
|
| 486 |
+
if (l === q.a) b.classList.add('correct');
|
| 487 |
+
else if (l === selected) b.classList.add('wrong');
|
| 488 |
+
else b.classList.add('dim');
|
| 489 |
+
});
|
| 490 |
+
|
| 491 |
+
if (isCorrect) {
|
| 492 |
+
$('requeueNotice').classList.add('hidden');
|
| 493 |
+
if (q.isCharge) {
|
| 494 |
+
soundCorrect();
|
| 495 |
+
hasChargeBuff = true;
|
| 496 |
+
if (currentUser && currentStudent && currentStudent.game) {
|
| 497 |
+
const safeQ = { ...q, bank: myBankId };
|
| 498 |
+
recordCorrect(currentStudent.game, safeQ);
|
| 499 |
+
}
|
| 500 |
+
const nextCrit = calcCritRate(true);
|
| 501 |
+
showFloat(`⚡ 集氣成功!下一擊暴擊率 ${Math.round(nextCrit * 100)}%`, 'notice');
|
| 502 |
+
currentQueue.shift();
|
| 503 |
+
pendingTimer = setTimeout(renderCurrentQuestion, 900);
|
| 504 |
+
} else {
|
| 505 |
+
clearedAttacks++;
|
| 506 |
+
const critRate = calcCritRate(hasChargeBuff);
|
| 507 |
+
const isCrit = Math.random() < critRate;
|
| 508 |
+
|
| 509 |
+
// 基礎傷害與暴擊傷害(支援西域商隊珍寶加成)
|
| 510 |
+
let dmg = 1;
|
| 511 |
+
if (isCrit) {
|
| 512 |
+
dmg = 2 + (currentStudent?.game?.merchantBuffs?.bossCritFlat || 0);
|
| 513 |
+
if (currentStudent?.game?.merchantBuffs?.bossCritDmg) {
|
| 514 |
+
dmg = Math.round(dmg * (1 + currentStudent.game.merchantBuffs.bossCritDmg));
|
| 515 |
+
}
|
| 516 |
+
}
|
| 517 |
+
currentRoundDamage += dmg;
|
| 518 |
+
hasChargeBuff = false;
|
| 519 |
+
applyDamage(dmg, isCrit);
|
| 520 |
+
currentQueue.shift();
|
| 521 |
+
pendingTimer = setTimeout(renderCurrentQuestion, isCrit ? 1400 : 750);
|
| 522 |
+
}
|
| 523 |
+
} else {
|
| 524 |
+
soundWrong();
|
| 525 |
+
if (q.isCharge) {
|
| 526 |
+
hasChargeBuff = false;
|
| 527 |
+
showFloat('集氣失敗…', 'notice');
|
| 528 |
+
currentQueue.shift();
|
| 529 |
+
pendingTimer = setTimeout(renderCurrentQuestion, 1100);
|
| 530 |
+
} else {
|
| 531 |
+
$('requeueNotice').classList.remove('hidden');
|
| 532 |
+
// 錯題庫防污染保護閥(Anti-Pollution Guard):
|
| 533 |
+
// 嚴格核對題目的 bank 必須與學生本人學科一致,絕對不允許跨科題目誤寫入個人錯題庫!
|
| 534 |
+
const qBank = q.bank || myBankId;
|
| 535 |
+
if (qBank === myBankId && currentUser && currentStudent && currentStudent.game) {
|
| 536 |
+
const safeQ = { ...q, bank: myBankId };
|
| 537 |
+
recordMistake(currentStudent.game, safeQ, selected, 'boss');
|
| 538 |
+
} else {
|
| 539 |
+
console.warn(`[Anti-Pollution Guard] 攔截跨學科錯題:題目學科 (${qBank}) 與個人學科 (${myBankId}) 不符,拒絕寫入個人錯題簿!`);
|
| 540 |
+
}
|
| 541 |
+
currentQueue.push(currentQueue.shift());
|
| 542 |
+
pendingTimer = setTimeout(renderCurrentQuestion, 1400);
|
| 543 |
+
}
|
| 544 |
+
}
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
function restartAnim(el, cls) {
|
| 548 |
+
el.classList.remove(cls);
|
| 549 |
+
void el.offsetWidth;
|
| 550 |
+
el.classList.add(cls);
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
function applyDamage(dmg, isCrit) {
|
| 554 |
+
bossHp = Math.max(0, bossHp - dmg);
|
| 555 |
+
updateHpUI();
|
| 556 |
+
|
| 557 |
+
const sprite = $('bossSprite');
|
| 558 |
+
if (sprite._hitTimer) {
|
| 559 |
+
clearTimeout(sprite._hitTimer);
|
| 560 |
+
sprite._hitTimer = null;
|
| 561 |
+
}
|
| 562 |
+
sprite.classList.remove('hit', 'crit-hit');
|
| 563 |
+
void sprite.offsetWidth;
|
| 564 |
+
|
| 565 |
+
if (isCrit) {
|
| 566 |
+
soundCrit();
|
| 567 |
+
restartAnim($('flashOverlay'), 'active');
|
| 568 |
+
restartAnim($('speedLines'), 'active');
|
| 569 |
+
restartAnim($('slashFx'), 'active');
|
| 570 |
+
restartAnim($('screenBattle'), 'heavy-shake');
|
| 571 |
+
sprite.classList.add('crit-hit');
|
| 572 |
+
showFloat(dmg, 'crit');
|
| 573 |
+
|
| 574 |
+
sprite._hitTimer = setTimeout(() => {
|
| 575 |
+
sprite.classList.remove('crit-hit');
|
| 576 |
+
sprite._hitTimer = null;
|
| 577 |
+
}, 850);
|
| 578 |
+
} else {
|
| 579 |
+
soundCorrect();
|
| 580 |
+
sprite.classList.add('hit');
|
| 581 |
+
showFloat(`-${dmg}`, 'normal');
|
| 582 |
+
|
| 583 |
+
sprite._hitTimer = setTimeout(() => {
|
| 584 |
+
sprite.classList.remove('hit');
|
| 585 |
+
sprite._hitTimer = null;
|
| 586 |
+
}, 400);
|
| 587 |
+
}
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
function showFloat(content, kind) {
|
| 591 |
+
const box = $('floatingDmgBox');
|
| 592 |
+
box.innerHTML = '';
|
| 593 |
+
const el = document.createElement('div');
|
| 594 |
+
if (kind === 'crit') {
|
| 595 |
+
el.className = 'dmg-crit';
|
| 596 |
+
el.innerHTML = `CRITICAL!!<small>暴擊 -${content} HP</small>`;
|
| 597 |
+
} else if (kind === 'notice') {
|
| 598 |
+
el.className = 'dmg-normal dmg-notice';
|
| 599 |
+
el.textContent = content;
|
| 600 |
+
} else {
|
| 601 |
+
el.className = 'dmg-normal';
|
| 602 |
+
el.textContent = content;
|
| 603 |
+
}
|
| 604 |
+
box.appendChild(el);
|
| 605 |
+
setTimeout(() => el.remove(), kind === 'crit' ? 1350 : 900);
|
| 606 |
+
}
|
| 607 |
+
|
| 608 |
+
function updateHpUI() {
|
| 609 |
+
const maxHp = worldBossData?.maxHp || BOSS_MAX_HP;
|
| 610 |
+
const pct = Math.max(0, (bossHp / maxHp) * 100);
|
| 611 |
+
$('hpBar').style.width = `${pct.toFixed(1)}%`;
|
| 612 |
+
$('hpBar').classList.toggle('low', pct <= 20);
|
| 613 |
+
$('hpText').textContent = `${bossHp} / ${maxHp} HP (${pct.toFixed(1)}%)`;
|
| 614 |
+
}
|
| 615 |
+
|
| 616 |
+
async function finishCombat() {
|
| 617 |
+
if (!inBattle) return;
|
| 618 |
+
canClick = false;
|
| 619 |
+
inBattle = false;
|
| 620 |
+
|
| 621 |
+
// 戰鬥結束時清除 Boss 任何受擊或暴擊強光
|
| 622 |
+
const sprite = $('bossSprite');
|
| 623 |
+
if (sprite) {
|
| 624 |
+
if (sprite._hitTimer) clearTimeout(sprite._hitTimer);
|
| 625 |
+
sprite.classList.remove('hit', 'crit-hit');
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
// 扣減今日出征次數並記錄到學生存檔
|
| 629 |
+
const today = todayStr();
|
| 630 |
+
if (currentStudent && currentStudent.game) {
|
| 631 |
+
currentStudent.game.boss = currentStudent.game.boss || {};
|
| 632 |
+
if (currentStudent.game.boss.date !== today) {
|
| 633 |
+
currentStudent.game.boss.date = today;
|
| 634 |
+
currentStudent.game.boss.used = 0;
|
| 635 |
+
}
|
| 636 |
+
currentStudent.game.boss.used = (currentStudent.game.boss.used || 0) + 1;
|
| 637 |
+
const effClass = { ...(currentClass || {}), worldBoss: worldBossData || currentClass?.worldBoss };
|
| 638 |
+
ordersLeft = calcWorldBossStatus(effClass, currentStudent.progress, currentStudent.game, today).ordersLeft;
|
| 639 |
+
} else {
|
| 640 |
+
ordersLeft = Math.max(0, ordersLeft - 1);
|
| 641 |
+
}
|
| 642 |
+
|
| 643 |
+
let isKiller = false;
|
| 644 |
+
let finalHp = bossHp;
|
| 645 |
+
let effectiveDmg = currentRoundDamage;
|
| 646 |
+
|
| 647 |
+
// 雲端資料庫原子交易同步
|
| 648 |
+
if (db && currentStudent && currentStudent.classCode && currentRoundDamage > 0) {
|
| 649 |
+
try {
|
| 650 |
+
const txRes = await db.recordBossDamage(currentStudent.classCode, currentStudent, currentRoundDamage);
|
| 651 |
+
finalHp = txRes.curHp;
|
| 652 |
+
bossHp = finalHp;
|
| 653 |
+
isKiller = txRes.isKiller;
|
| 654 |
+
effectiveDmg = txRes.effectiveDmg;
|
| 655 |
+
myTotalDamage = txRes.myTotalDmg;
|
| 656 |
+
if (currentStudent.game.boss) {
|
| 657 |
+
currentStudent.game.boss.totalDmg = myTotalDamage;
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
// 儲存學生個人存檔
|
| 661 |
+
if (currentUser) {
|
| 662 |
+
await db.saveGame(currentUser.uid, {
|
| 663 |
+
game: currentStudent.game,
|
| 664 |
+
progress: currentStudent.progress || {},
|
| 665 |
+
stats: currentStudent.stats || {}
|
| 666 |
+
});
|
| 667 |
+
}
|
| 668 |
+
} catch (err) {
|
| 669 |
+
console.error('[boss] 戰報寫入雲端失敗:', err);
|
| 670 |
+
alert('戰報同步異常:' + (err.message || err));
|
| 671 |
+
}
|
| 672 |
+
}
|
| 673 |
+
|
| 674 |
+
const dead = finalHp <= 0;
|
| 675 |
+
$('resIcon').textContent = dead ? '🏆' : '🎉';
|
| 676 |
+
$('resTitle').textContent = dead ? '饕餮已被成功封印!' : '本場討伐完成';
|
| 677 |
+
$('resDmg').textContent = `+${effectiveDmg} HP`;
|
| 678 |
+
$('resBossHp').textContent = `${finalHp} / ${worldBossData?.maxHp || BOSS_MAX_HP}`;
|
| 679 |
+
$('resMyDmg').textContent = `${myTotalDamage} HP`;
|
| 680 |
+
const ok = myTotalDamage >= QUAL_DMG;
|
| 681 |
+
$('resQual').textContent = ok ? '✅ 已達標' : `尚差 ${QUAL_DMG - myTotalDamage} HP`;
|
| 682 |
+
$('resQual').style.color = ok ? '#86efac' : '#fde68a';
|
| 683 |
+
|
| 684 |
+
const tailKillEl = $('tailKill');
|
| 685 |
+
if (isKiller) {
|
| 686 |
+
tailKillEl.classList.remove('hidden');
|
| 687 |
+
tailKillEl.innerHTML = `👑 <b>終結一擊英雄!</b><br>你給予了饕餮致命最後一擊!獲得專屬稱號【斬魔將軍】與全服首破至高榮譽!`;
|
| 688 |
+
soundCrit();
|
| 689 |
+
} else if (dead) {
|
| 690 |
+
tailKillEl.classList.remove('hidden');
|
| 691 |
+
tailKillEl.innerHTML = `🏆 <b>封印大獲全勝!</b> 饕餮已被全軍平定,快回主殿領取全服討伐神獸寶庫!`;
|
| 692 |
+
} else {
|
| 693 |
+
tailKillEl.classList.add('hidden');
|
| 694 |
+
}
|
| 695 |
+
|
| 696 |
+
$('modalResult').classList.remove('hidden');
|
| 697 |
+
}
|
| 698 |
+
|
| 699 |
+
function closeResult() {
|
| 700 |
+
$('modalResult').classList.add('hidden');
|
| 701 |
+
showIntro();
|
| 702 |
+
}
|
| 703 |
+
|
| 704 |
+
async function handleClaimReward() {
|
| 705 |
+
if (!worldBossData || !worldBossData.defeated) return;
|
| 706 |
+
if (myTotalDamage < QUAL_DMG) {
|
| 707 |
+
alert(`個人累計傷害需達 ${QUAL_DMG} HP 才能領取全服獎勵(目前 ${myTotalDamage} HP)`);
|
| 708 |
+
return;
|
| 709 |
+
}
|
| 710 |
+
if (currentStudent?.game?.boss?.rewardClaimed) {
|
| 711 |
+
alert('您已經領取過本次世界 Boss 討伐獎勵囉!');
|
| 712 |
+
return;
|
| 713 |
+
}
|
| 714 |
+
|
| 715 |
+
try {
|
| 716 |
+
const isKiller = !!(worldBossData.killer?.uid && currentUser?.uid && worldBossData.killer.uid === currentUser.uid);
|
| 717 |
+
const rew = calcWorldBossRewards(currentStudent.progress, currentStudent.game, currentClass, isKiller);
|
| 718 |
+
const cfg = getCurBossCfg();
|
| 719 |
+
|
| 720 |
+
grantGrain(currentStudent.game, rew.coins);
|
| 721 |
+
grantTally(currentStudent.game, rew.totalBp);
|
| 722 |
+
grantScroll(currentStudent.game, 'peek', rew.peekCount);
|
| 723 |
+
grantScroll(currentStudent.game, 'eliminate', rew.eliminateCount);
|
| 724 |
+
currentStudent.game.boss = currentStudent.game.boss || {};
|
| 725 |
+
currentStudent.game.boss.rewardClaimed = true;
|
| 726 |
+
|
| 727 |
+
if (currentUser) {
|
| 728 |
+
await db.saveGame(currentUser.uid, {
|
| 729 |
+
game: currentStudent.game,
|
| 730 |
+
progress: currentStudent.progress || {},
|
| 731 |
+
stats: currentStudent.stats || {}
|
| 732 |
+
});
|
| 733 |
+
}
|
| 734 |
+
|
| 735 |
+
alert(`🎉 恭喜成功領取【${rew.tierLabel}】神獸寶庫!\n🌾 糧草 +${rew.coins.toLocaleString()}(${rew.grainHours}小時產量包)\n🧧 兵符 +${rew.totalBp}${isKiller ? `(含尾刀加碼 +${rew.killerBonusBp})` : ''}\n📜 偷看卷 ×${rew.peekCount}、刪去卷 ×${rew.eliminateCount}\n🏅 獲得榮譽稱號【${cfg.titles.participant}】${isKiller ? ` 及【${cfg.titles.killer}】` : ''}!`);
|
| 736 |
+
renderIntro();
|
| 737 |
+
} catch (e) {
|
| 738 |
+
console.error('領取失敗', e);
|
| 739 |
+
alert('領取獎勵失敗:' + (e.message || e));
|
| 740 |
+
}
|
| 741 |
+
}
|
| 742 |
+
|
| 743 |
+
function escapeHtml(s) {
|
| 744 |
+
return String(s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
| 745 |
+
}
|
| 746 |
+
|
| 747 |
+
|
| 748 |
+
// ==========================================
|
| 749 |
+
async function init() {
|
| 750 |
+
try {
|
| 751 |
+
$('btnStart').addEventListener('click', startNewCombat);
|
| 752 |
+
$('btnModalClose').addEventListener('click', closeResult);
|
| 753 |
+
$('btnClaimReward')?.addEventListener('click', handleClaimReward);
|
| 754 |
+
|
| 755 |
+
// 下期世界 Boss【上古・窮奇】圖鑑與場景切換綁定
|
| 756 |
+
applyBossTheme(activeBossKey);
|
| 757 |
+
$('btnPreviewQiongqi')?.addEventListener('click', () => {
|
| 758 |
+
$('modalNextBoss')?.classList.remove('hidden');
|
| 759 |
+
});
|
| 760 |
+
$('btnCloseNextBoss')?.addEventListener('click', () => {
|
| 761 |
+
$('modalNextBoss')?.classList.add('hidden');
|
| 762 |
+
});
|
| 763 |
+
$('btnCloseNextBossTop')?.addEventListener('click', () => {
|
| 764 |
+
$('modalNextBoss')?.classList.add('hidden');
|
| 765 |
+
});
|
| 766 |
+
$('btnSwitchBossTheme')?.addEventListener('click', () => {
|
| 767 |
+
applyBossTheme(activeBossKey === 'qiongqi' ? 'taotie' : 'qiongqi');
|
| 768 |
+
$('modalNextBoss')?.classList.add('hidden');
|
| 769 |
+
renderIntro();
|
| 770 |
+
});
|
| 771 |
+
|
| 772 |
+
// 返回大地圖按鈕(設定 idle_fast_return 旗標,0 秒瞬回大地圖免重讀)
|
| 773 |
+
const exitToMap = () => {
|
| 774 |
+
if (window.parent && window.parent !== window) {
|
| 775 |
+
window.parent.postMessage({ type: 'BOSS_BATTLE_EXIT' }, '*');
|
| 776 |
+
} else {
|
| 777 |
+
try { sessionStorage.setItem('idle_fast_return', '1'); } catch (e) {}
|
| 778 |
+
window.location.href = 'index.html?from=boss';
|
| 779 |
+
}
|
| 780 |
+
};
|
| 781 |
+
$('btnExitToMap')?.addEventListener('click', exitToMap);
|
| 782 |
+
$('btnExitToMapTop')?.addEventListener('click', exitToMap);
|
| 783 |
+
|
| 784 |
+
// 僅在帶有 ?debug=1 或 ?test=1 參數時才顯示測試工具列
|
| 785 |
+
const urlParams = new URLSearchParams(window.location.search);
|
| 786 |
+
if (urlParams.get('debug') === '1' || urlParams.get('test') === '1') {
|
| 787 |
+
$('debugBar')?.classList.add('debug-active');
|
| 788 |
+
}
|
| 789 |
+
|
| 790 |
+
$('optContainer').addEventListener('click', (e) => {
|
| 791 |
+
const btn = e.target.closest('.opt-btn');
|
| 792 |
+
if (btn && !btn.disabled) handleAnswer(btn.dataset.label);
|
| 793 |
+
});
|
| 794 |
+
|
| 795 |
+
$('btnDebugToggle').addEventListener('click', () => $('debugBar').classList.toggle('collapsed'));
|
| 796 |
+
$('btnPreviewPatch').addEventListener('click', () => $('modalPatch').classList.remove('hidden'));
|
| 797 |
+
$('btnDismissPatch').addEventListener('click', () => $('modalPatch').classList.add('hidden'));
|
| 798 |
+
$('btnReset').addEventListener('click', () => {
|
| 799 |
+
if (confirm('確定要將本地測試數值重置回滿血嗎?(不影響伺服器)')) {
|
| 800 |
+
bossHp = BOSS_MAX_HP;
|
| 801 |
+
updateHpUI();
|
| 802 |
+
renderIntro();
|
| 803 |
+
}
|
| 804 |
+
});
|
| 805 |
+
document.querySelectorAll('[data-mistakes]').forEach(b => b.addEventListener('click', () => {
|
| 806 |
+
simulatedMistakeCount = Number(b.dataset.mistakes) || 0;
|
| 807 |
+
b.animate([{ transform: 'scale(1.15)' }, { transform: 'scale(1)' }], { duration: 200 });
|
| 808 |
+
}));
|
| 809 |
+
document.querySelectorAll('[data-hp]').forEach(b => b.addEventListener('click', () => {
|
| 810 |
+
bossHp = Number(b.dataset.hp) || BOSS_MAX_HP;
|
| 811 |
+
updateHpUI();
|
| 812 |
+
if (!inBattle) renderIntro();
|
| 813 |
+
}));
|
| 814 |
+
|
| 815 |
+
if (typeof initCalibrator === "function") initCalibrator();
|
| 816 |
+
if (typeof initMapPreview === "function") initMapPreview();
|
| 817 |
+
|
| 818 |
+
// 資料庫連線與驗證
|
| 819 |
+
db = await getDB();
|
| 820 |
+
db.onAuth(async (u) => {
|
| 821 |
+
currentUser = u;
|
| 822 |
+
if (!currentUser) {
|
| 823 |
+
$('introClassTitle').textContent = '⚠️ 請先登入遊戲主頁';
|
| 824 |
+
$('btnStart').disabled = true;
|
| 825 |
+
$('btnStart').textContent = '請先由主頁登入座號帳號';
|
| 826 |
+
const lbEl = $('leaderboardList');
|
| 827 |
+
if (lbEl) lbEl.innerHTML = '<div style="color:#fca5a5; text-align:center; padding:8px;">尚未登入帳號,請返回主頁登入後再進入討伐!</div>';
|
| 828 |
+
return;
|
| 829 |
+
}
|
| 830 |
+
|
| 831 |
+
try {
|
| 832 |
+
if (currentUser.role === 'student' || currentUser.role === 'unknown') {
|
| 833 |
+
currentStudent = await db.getStudent(currentUser.uid);
|
| 834 |
+
if (!currentStudent) {
|
| 835 |
+
alert('找不到學生檔案,請返回首頁重新登入');
|
| 836 |
+
window.location.href = 'index.html';
|
| 837 |
+
return;
|
| 838 |
+
}
|
| 839 |
+
currentClass = (await db.getClass(currentStudent.classCode)) || {};
|
| 840 |
+
|
| 841 |
+
// 1. 第一時間立即初始化並渲��� Boss 血量與班級功勳榜(不等待題庫與全班錯題載入)
|
| 842 |
+
if (currentClass.worldBoss) {
|
| 843 |
+
worldBossData = currentClass.worldBoss;
|
| 844 |
+
bossHp = typeof worldBossData.curHp === 'number' ? worldBossData.curHp : BOSS_MAX_HP;
|
| 845 |
+
if (worldBossData.bossId && WORLD_BOSS_ROSTER[worldBossData.bossId] && !new URLSearchParams(window.location.search).get('boss')) {
|
| 846 |
+
applyBossTheme(worldBossData.bossId);
|
| 847 |
+
}
|
| 848 |
+
} else {
|
| 849 |
+
try {
|
| 850 |
+
worldBossData = await db.getWorldBoss(currentStudent.classCode);
|
| 851 |
+
bossHp = typeof worldBossData?.curHp === 'number' ? worldBossData.curHp : BOSS_MAX_HP;
|
| 852 |
+
} catch (wbErr) {
|
| 853 |
+
console.warn('[boss] 初始讀取 getWorldBoss 備援失敗', wbErr);
|
| 854 |
+
worldBossData = defaultBossState();
|
| 855 |
+
}
|
| 856 |
+
}
|
| 857 |
+
renderIntro();
|
| 858 |
+
updateHpUI();
|
| 859 |
+
|
| 860 |
+
// 2. 立即建立即時監聽班級世界 Boss 血條與傷害名冊
|
| 861 |
+
if (unsubscribeBoss) unsubscribeBoss();
|
| 862 |
+
unsubscribeBoss = db.onWorldBoss(currentStudent.classCode, (wb) => {
|
| 863 |
+
worldBossData = wb;
|
| 864 |
+
bossHp = typeof wb.curHp === 'number' ? wb.curHp : BOSS_MAX_HP;
|
| 865 |
+
renderIntro();
|
| 866 |
+
updateHpUI();
|
| 867 |
+
});
|
| 868 |
+
|
| 869 |
+
// 3. 載入該生所屬學科題庫與個人錯題
|
| 870 |
+
myBankId = currentStudent.bankId || 'wiring';
|
| 871 |
+
try {
|
| 872 |
+
const banks = await loadBankIndex();
|
| 873 |
+
bankName = banks.find(x => x.id === myBankId)?.name || myBankId;
|
| 874 |
+
} catch(e) { bankName = myBankId; }
|
| 875 |
+
|
| 876 |
+
try {
|
| 877 |
+
const b = await loadBank(myBankId);
|
| 878 |
+
if (b && Array.isArray(b.questions)) {
|
| 879 |
+
realBankQuestions = b.questions.map(q => ({ ...q, bank: myBankId }));
|
| 880 |
+
}
|
| 881 |
+
} catch (e) {
|
| 882 |
+
console.warn('載入學科題庫失敗', e);
|
| 883 |
+
}
|
| 884 |
+
|
| 885 |
+
myMistakes = Object.values(currentStudent.game?.mistakes || {})
|
| 886 |
+
.filter(m => !m.mastered && m.q && Array.isArray(m.o) && (!m.bank || m.bank === myBankId || m.bank === 'default'))
|
| 887 |
+
.map(m => ({ ...m, bank: myBankId }));
|
| 888 |
+
|
| 889 |
+
// 4. 背景非同步載入同班、同學科(相同 bankId)其他同袍之未精熟錯題
|
| 890 |
+
peerMistakes = [];
|
| 891 |
+
try {
|
| 892 |
+
const classStudents = await db.listStudents(currentStudent.classCode);
|
| 893 |
+
const myQSet = new Set(myMistakes.map(m => m.q));
|
| 894 |
+
const seenPeerQ = new Set();
|
| 895 |
+
for (const s of classStudents) {
|
| 896 |
+
if (s.uid !== currentUser.uid && s.bankId === myBankId && s.game?.mistakes) {
|
| 897 |
+
const sMists = Object.values(s.game.mistakes).filter(m => !m.mastered && m.q && Array.isArray(m.o) && (!m.bank || m.bank === myBankId || m.bank === 'default'));
|
| 898 |
+
for (const sm of sMists) {
|
| 899 |
+
if (!myQSet.has(sm.q) && !seenPeerQ.has(sm.q)) {
|
| 900 |
+
seenPeerQ.add(sm.q);
|
| 901 |
+
peerMistakes.push({ ...sm, bank: myBankId, donorName: s.name || `座號${s.seat}` });
|
| 902 |
+
}
|
| 903 |
+
}
|
| 904 |
+
}
|
| 905 |
+
}
|
| 906 |
+
console.info(`[World Boss] 成功載入學科【${bankName}】:個人錯題 ${myMistakes.length} 題,同科同袍錯題 ${peerMistakes.length} 題,學科題庫 ${realBankQuestions.length} 題。`);
|
| 907 |
+
} catch (err) {
|
| 908 |
+
console.warn('[boss] 載入同袍錯題失敗', err);
|
| 909 |
+
}
|
| 910 |
+
} else if (currentUser.role === 'teacher') {
|
| 911 |
+
// 教師視察模式
|
| 912 |
+
const clsList = await db.listClasses();
|
| 913 |
+
if (clsList.length) {
|
| 914 |
+
currentClass = clsList[0];
|
| 915 |
+
currentStudent = {
|
| 916 |
+
uid: currentUser.uid,
|
| 917 |
+
name: '教師管理員',
|
| 918 |
+
seat: '師',
|
| 919 |
+
classCode: currentClass.code,
|
| 920 |
+
game: { boss: { date: todayStr(), used: 0 } },
|
| 921 |
+
progress: { u3: { best: 100 } }
|
| 922 |
+
};
|
| 923 |
+
if (currentClass.worldBoss) {
|
| 924 |
+
worldBossData = currentClass.worldBoss;
|
| 925 |
+
bossHp = typeof worldBossData.curHp === 'number' ? worldBossData.curHp : BOSS_MAX_HP;
|
| 926 |
+
renderIntro();
|
| 927 |
+
updateHpUI();
|
| 928 |
+
}
|
| 929 |
+
if (unsubscribeBoss) unsubscribeBoss();
|
| 930 |
+
unsubscribeBoss = db.onWorldBoss(currentClass.code, (wb) => {
|
| 931 |
+
worldBossData = wb;
|
| 932 |
+
bossHp = typeof wb.curHp === 'number' ? wb.curHp : BOSS_MAX_HP;
|
| 933 |
+
renderIntro();
|
| 934 |
+
updateHpUI();
|
| 935 |
+
});
|
| 936 |
+
}
|
| 937 |
+
}
|
| 938 |
+
} catch (err) {
|
| 939 |
+
console.error('[boss] 學生資料載入失敗:', err);
|
| 940 |
+
const lbEl = $('leaderboardList');
|
| 941 |
+
if (lbEl) {
|
| 942 |
+
lbEl.innerHTML = `<div style="color:#fca5a5; text-align:center; padding:8px;">讀取戰況連線逾時,請點擊 <a href="javascript:location.reload()" style="color:#fde047; font-weight:800;">重新整理</a> 再試一次</div>`;
|
| 943 |
+
}
|
| 944 |
+
}
|
| 945 |
+
});
|
| 946 |
+
} catch (err) {
|
| 947 |
+
console.error('[boss-test] init 失敗:', err);
|
| 948 |
+
}
|
| 949 |
+
}
|
| 950 |
+
|
| 951 |
+
window.addEventListener('DOMContentLoaded', init);
|
| 952 |
+
|
| 953 |
+
// 自動啟動
|
| 954 |
+
if (typeof window !== 'undefined') {
|
| 955 |
+
window.exitBattleToMap = exitToMap;
|
| 956 |
+
if (document.readyState === 'loading') {
|
| 957 |
+
document.addEventListener('DOMContentLoaded', () => init());
|
| 958 |
+
} else {
|
| 959 |
+
init();
|
| 960 |
+
}
|
| 961 |
+
}
|
js/game.js
CHANGED
|
@@ -330,6 +330,7 @@ async function loadStudentData() {
|
|
| 330 |
onBroadcastConquer: (b) => { broadcastConquerVictory(b); },
|
| 331 |
onOpenTianji: () => openTianjiModal(),
|
| 332 |
onOpenBoss: () => openWorldBossModal(),
|
|
|
|
| 333 |
onOpenMerchant: () => openMerchantEventModal(),
|
| 334 |
});
|
| 335 |
|
|
@@ -374,6 +375,52 @@ async function loadStudentData() {
|
|
| 374 |
setTimeout(() => checkAndShowAnnouncements(), 800);
|
| 375 |
}
|
| 376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
// 多裝置衝突檢測:當偵測到此帳號已在其他裝置登入,立刻凍結存檔,防止覆蓋新進度
|
| 378 |
async function checkActiveSession() {
|
| 379 |
if (isSessionLocked || !user || user.role !== 'student' || !mySessionId) return false;
|
|
|
|
| 330 |
onBroadcastConquer: (b) => { broadcastConquerVictory(b); },
|
| 331 |
onOpenTianji: () => openTianjiModal(),
|
| 332 |
onOpenBoss: () => openWorldBossModal(),
|
| 333 |
+
onLaunchBossBattle: (bossKey) => openBossBattleOverlay(bossKey),
|
| 334 |
onOpenMerchant: () => openMerchantEventModal(),
|
| 335 |
});
|
| 336 |
|
|
|
|
| 375 |
setTimeout(() => checkAndShowAnnouncements(), 800);
|
| 376 |
}
|
| 377 |
|
| 378 |
+
// ===================== 世界 Boss 極速無縫戰場(0 秒瞬回免白屏重讀) =====================
|
| 379 |
+
function openBossBattleOverlay(bossKey = 'taotie') {
|
| 380 |
+
const overlay = $('#viewBossOverlay');
|
| 381 |
+
const iframe = $('#bossBattleIframe');
|
| 382 |
+
if (!overlay || !iframe) {
|
| 383 |
+
try { sessionStorage.setItem('idle_fast_return', '1'); } catch (e) {}
|
| 384 |
+
window.location.href = `boss.html?v=${APP_BUILD_VERSION}&boss=${bossKey}`;
|
| 385 |
+
return;
|
| 386 |
+
}
|
| 387 |
+
stopLoop();
|
| 388 |
+
iframe.src = `boss.html?v=${APP_BUILD_VERSION}&embed=1&boss=${bossKey}`;
|
| 389 |
+
overlay.classList.remove('hidden');
|
| 390 |
+
document.body.classList.add('in-boss-battle');
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
// 監聽世界 Boss 決戰殿堂 postMessage(返回地圖事件)
|
| 394 |
+
window.addEventListener('message', async (e) => {
|
| 395 |
+
if (e.data?.type === 'BOSS_BATTLE_EXIT') {
|
| 396 |
+
const overlay = $('#viewBossOverlay');
|
| 397 |
+
const iframe = $('#bossBattleIframe');
|
| 398 |
+
if (overlay) overlay.classList.add('hidden');
|
| 399 |
+
if (iframe) iframe.src = 'about:blank';
|
| 400 |
+
document.body.classList.remove('in-boss-battle');
|
| 401 |
+
|
| 402 |
+
// 恢復背景主循環
|
| 403 |
+
startLoop();
|
| 404 |
+
|
| 405 |
+
// 背景靜默更新學生最新資料(不重整頁面,即時同步傷害功勳與兵符獎勵)
|
| 406 |
+
try {
|
| 407 |
+
student = await db.getStudent(user.uid);
|
| 408 |
+
classInfo = (await db.getClass(student.classCode)) || {};
|
| 409 |
+
game = normalizeGame(student.game);
|
| 410 |
+
progress = student.progress || {};
|
| 411 |
+
dState = derive(progress, classInfo, game, Date.now(), user?.uid);
|
| 412 |
+
renderRes();
|
| 413 |
+
renderBuild();
|
| 414 |
+
renderMapSpots();
|
| 415 |
+
updateHeader();
|
| 416 |
+
toast('⚔️ 自世界 Boss 決戰殿堂凱旋歸來,軍資與戰功已即時同步!', 'gold');
|
| 417 |
+
} catch (err) {
|
| 418 |
+
console.warn('[Boss Exit Sync Error]', err);
|
| 419 |
+
}
|
| 420 |
+
}
|
| 421 |
+
});
|
| 422 |
+
|
| 423 |
+
|
| 424 |
// 多裝置衝突檢測:當偵測到此帳號已在其他裝置登入,立刻凍結存檔,防止覆蓋新進度
|
| 425 |
async function checkActiveSession() {
|
| 426 |
if (isSessionLocked || !user || user.role !== 'student' || !mySessionId) return false;
|
js/map.js
CHANGED
|
@@ -472,9 +472,13 @@ export function openWorldBossModal() {
|
|
| 472 |
return;
|
| 473 |
}
|
| 474 |
|
| 475 |
-
// 若已破印解鎖:
|
| 476 |
-
|
| 477 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 478 |
}
|
| 479 |
|
| 480 |
/**
|
|
|
|
| 472 |
return;
|
| 473 |
}
|
| 474 |
|
| 475 |
+
// 若已破印解鎖:優先透過無縫對戰容器進入戰場(免重讀);若無法開啟則向下相容跳轉 boss.html
|
| 476 |
+
if (typeof mapCtx?.onLaunchBossBattle === 'function') {
|
| 477 |
+
mapCtx.onLaunchBossBattle(wbStatus.bossId || 'taotie');
|
| 478 |
+
} else {
|
| 479 |
+
try { sessionStorage.setItem('idle_fast_return', '1'); } catch (e) {}
|
| 480 |
+
window.location.href = `boss.html?v=${APP_BUILD_VERSION}&boss=${wbStatus.bossId || 'taotie'}`;
|
| 481 |
+
}
|
| 482 |
}
|
| 483 |
|
| 484 |
/**
|
teacher.html
CHANGED
|
@@ -362,7 +362,7 @@
|
|
| 362 |
<option value="qiongqi_open">⚡ 第二期【上古・窮奇】— 正式破印開放討伐</option>
|
| 363 |
</select>
|
| 364 |
<button class="btn btn-primary" id="btnSaveBossPhase">💾 套用期別/預告狀態</button>
|
| 365 |
-
<a href="boss
|
| 366 |
<button class="btn btn-danger" id="btnAdminResetBoss" style="background:#fee2e2; border-color:#fca5a5; color:#dc2626;">🔄 重設班級 Boss 滿血</button>
|
| 367 |
</div>
|
| 368 |
</div>
|
|
|
|
| 362 |
<option value="qiongqi_open">⚡ 第二期【上古・窮奇】— 正式破印開放討伐</option>
|
| 363 |
</select>
|
| 364 |
<button class="btn btn-primary" id="btnSaveBossPhase">💾 套用期別/預告狀態</button>
|
| 365 |
+
<a href="boss.html" target="_blank" class="btn" style="text-decoration:none;">⚔️ 前往世界 Boss 決戰殿堂 ➔</a>
|
| 366 |
<button class="btn btn-danger" id="btnAdminResetBoss" style="background:#fee2e2; border-color:#fca5a5; color:#dc2626;">🔄 重設班級 Boss 滿血</button>
|
| 367 |
</div>
|
| 368 |
</div>
|
tools/verify-integrity.mjs
CHANGED
|
@@ -80,10 +80,14 @@ for (const file of jsFiles) {
|
|
| 80 |
}
|
| 81 |
|
| 82 |
const bossHtml = fs.readFileSync(path.join(ROOT, 'boss-test.html'), 'utf8');
|
|
|
|
| 83 |
for (const pat of FORBIDDEN_PATTERNS) {
|
| 84 |
if (pat.regex.test(bossHtml)) {
|
| 85 |
throw new Error(`❌ [Schema Guard] 在 boss-test.html 發現禁用自創欄位:${pat.msg}`);
|
| 86 |
}
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
ok('靜態代碼掃描檢驗通過(無幽靈欄位)');
|
| 89 |
|
|
@@ -288,7 +292,7 @@ for (const file of jsFiles) {
|
|
| 288 |
}
|
| 289 |
|
| 290 |
// 檢驗主要 HTML 檔案中的本機 script 與 css 標籤
|
| 291 |
-
const htmlFiles = ['index.html', 'teacher.html', 'boss-test.html'];
|
| 292 |
const htmlScriptLinkRegex = /(?:src|href)=['"]((?:js\/|css\/)[^'"]+)['"]/g;
|
| 293 |
for (const hf of htmlFiles) {
|
| 294 |
const content = fs.readFileSync(path.join(ROOT, hf), 'utf8');
|
|
|
|
| 80 |
}
|
| 81 |
|
| 82 |
const bossHtml = fs.readFileSync(path.join(ROOT, 'boss-test.html'), 'utf8');
|
| 83 |
+
const prodBossHtml = fs.readFileSync(path.join(ROOT, 'boss.html'), 'utf8');
|
| 84 |
for (const pat of FORBIDDEN_PATTERNS) {
|
| 85 |
if (pat.regex.test(bossHtml)) {
|
| 86 |
throw new Error(`❌ [Schema Guard] 在 boss-test.html 發現禁用自創欄位:${pat.msg}`);
|
| 87 |
}
|
| 88 |
+
if (pat.regex.test(prodBossHtml)) {
|
| 89 |
+
throw new Error(`❌ [Schema Guard] 在 boss.html 發現禁用自創欄位:${pat.msg}`);
|
| 90 |
+
}
|
| 91 |
}
|
| 92 |
ok('靜態代碼掃描檢驗通過(無幽靈欄位)');
|
| 93 |
|
|
|
|
| 292 |
}
|
| 293 |
|
| 294 |
// 檢驗主要 HTML 檔案中的本機 script 與 css 標籤
|
| 295 |
+
const htmlFiles = ['index.html', 'teacher.html', 'boss-test.html', 'boss.html'];
|
| 296 |
const htmlScriptLinkRegex = /(?:src|href)=['"]((?:js\/|css\/)[^'"]+)['"]/g;
|
| 297 |
for (const hf of htmlFiles) {
|
| 298 |
const content = fs.readFileSync(path.join(ROOT, hf), 'utf8');
|